From e115d9cddf509f82d6e7fa9483a6596a44bdd97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Tue, 22 Oct 2019 15:05:19 +0800 Subject: [PATCH 01/33] move some transactions to WiccApi --- index.js | 30 ++--- lib/wiccapi.js | 203 +++++++++++++----------------- test/test-cancelordertx.js | 7 +- test/test-cdpliquidatetx.js | 9 +- test/test-cdpredeemtx.js | 7 +- test/test-cdpstaketx.js | 5 +- test/test-commontx.js | 15 +-- test/test-dexbuylimitordertx.js | 7 +- test/test-dexbuymarketordertx.js | 7 +- test/test-dexselllimitordertx.js | 8 +- test/test-dexsellmarketordertx.js | 8 +- test/test-fcoinstake.js | 7 +- test/test-ucointransfertx.js | 8 +- 13 files changed, 139 insertions(+), 182 deletions(-) diff --git a/index.js b/index.js index 181d101..a08bcd1 100644 --- a/index.js +++ b/index.js @@ -71,21 +71,21 @@ bitcore.deps._ = require('lodash'); // Internal usage, exposed for testing/advanced tweaking bitcore.Transaction.sighash = require('./lib/transaction/sighash'); -bitcore.Transaction.RegisterAccountTx = require('./lib/transaction/registeraccounttx') -bitcore.Transaction.CommonTx = require('./lib/transaction/commontx') -bitcore.Transaction.ContractTx = require('./lib/transaction/contracttx') -bitcore.Transaction.DelegateTx = require('./lib/transaction/delegatetx') +// bitcore.Transaction.RegisterAccountTx = require('./lib/transaction/registeraccounttx') +// bitcore.Transaction.CommonTx = require('./lib/transaction/commontx') +// bitcore.Transaction.ContractTx = require('./lib/transaction/contracttx') +// bitcore.Transaction.DelegateTx = require('./lib/transaction/delegatetx') -bitcore.Transaction.CdpStakeTx = require('./lib/transaction/cdpstaketx') -bitcore.Transaction.FeedPriceTx = require('./lib/transaction/cpricefeedtx') -bitcore.Transaction.CdpLiquiDateTx = require('./lib/transaction/cdpliquidatetx') -bitcore.Transaction.CFcoinStakeTx = require('./lib/transaction/cfcoinstaketx') -bitcore.Transaction.CdpRedeemTx = require('./lib/transaction/cdpredeemtx') -bitcore.Transaction.UCoinTransferTx = require('./lib/transaction/ucointransfertx') -bitcore.Transaction.DexSellLimitOrderTx=require('./lib/transaction/dexselllimitordertx') -bitcore.Transaction.DexBuyLimitOrderTx=require('./lib/transaction/dexbuylimitordertx') -bitcore.Transaction.DexBuyMarketOrderTx=require('./lib/transaction/dexbuymarketordertx') -bitcore.Transaction.DexSellMarketOrderTx=require('./lib/transaction/dexsellmarketordertx') -bitcore.Transaction.DexCancelOrderTx=require('./lib/transaction/dexcancelordertx') +// bitcore.Transaction.CdpStakeTx = require('./lib/transaction/cdpstaketx') +// bitcore.Transaction.FeedPriceTx = require('./lib/transaction/cpricefeedtx') +// bitcore.Transaction.CdpLiquiDateTx = require('./lib/transaction/cdpliquidatetx') +// bitcore.Transaction.CFcoinStakeTx = require('./lib/transaction/cfcoinstaketx') +// bitcore.Transaction.CdpRedeemTx = require('./lib/transaction/cdpredeemtx') +// bitcore.Transaction.UCoinTransferTx = require('./lib/transaction/ucointransfertx') +// bitcore.Transaction.DexSellLimitOrderTx=require('./lib/transaction/dexselllimitordertx') +// bitcore.Transaction.DexBuyLimitOrderTx=require('./lib/transaction/dexbuylimitordertx') +// bitcore.Transaction.DexBuyMarketOrderTx=require('./lib/transaction/dexbuymarketordertx') +// bitcore.Transaction.DexSellMarketOrderTx=require('./lib/transaction/dexsellmarketordertx') +// bitcore.Transaction.DexCancelOrderTx=require('./lib/transaction/dexcancelordertx') bitcore.Mnemonic = require('./lib/mnemonic'); bitcore.WiccApi = require('./lib/wiccapi') diff --git a/lib/wiccapi.js b/lib/wiccapi.js index bf4f824..c25e0e5 100644 --- a/lib/wiccapi.js +++ b/lib/wiccapi.js @@ -4,10 +4,6 @@ var _ = require('lodash'); var $ = require('./util/preconditions'); var Mnemonic = require('./mnemonic') var Address = require('./address') -var RegisterAccountTx = require('./transaction/registeraccounttx') -var CommonTx = require('./transaction/commontx') -var ContractTx = require('./transaction/contracttx') -var DelegateTx = require('./transaction/delegatetx') var Random = require('./crypto/random') var Hash = require('./crypto/hash') var buffer = require('buffer') @@ -16,11 +12,86 @@ var aes = require('./aes-cbc') var CryptoJS = require('crypto-js') var HDPrivateKey = require('./hdprivatekey') var CustomBuffer = require('./util/buffer') -var RegisterAppTx = require('./transaction/registerapptx') -var CpriceFeedTx = require('./transaction/cpricefeedtx') -var UContractTx = require('./transaction/ucontractinvoketx') -var AssetCreateTx = require('./transaction/assetcreatetx') -var AssetUpdateTx = require('./transaction/assetupdatetx') + +var txMap = { + 2: { + txName: 'REGISTER_ACCOUNT_TX', + txAction: require('./transaction/registeraccounttx') + }, + 3: { + txName: 'COMMON_TX', + txAction: require('./transaction/commontx') + }, + 4: { + txName: 'CONTRACT_TX', + txAction: require('./transaction/contracttx') + }, + 5: { + txName: 'REG_APP_TX', + txAction: require('./transaction/registerapptx') + }, + 6: { + txName: 'DELEGATE_TX', + txAction: require('./transaction/delegatetx') + }, + 8: { + txName: 'FCOIN_STAKE_TX', + txAction: require('./transaction/cfcoinstaketx') + }, + 9: { + txName: 'ASSET_ISUUE', + txAction: require('./transaction/assetcreatetx') + }, + 10: { + txName: 'ASSET_UPDATE', + txAction: require('./transaction/assetupdatetx') + }, + + 11: { + txName: 'UCOIN_TRANSFER_TX', + txAction: require('./transaction/ucointransfertx') + }, + 15: { + txName: 'UCOIN_CONTRACT_INVOKE_TX', + txAction: require('./transaction/ucontractinvoketx') + }, + 16: { + txName: 'PRICE_FEED_TX', + txAction: require('./transaction/cpricefeedtx') + }, + 21: { + txName: 'CDP_STAKE_TX', + txAction: require('./transaction/cdpstaketx') + }, + 22: { + txName: 'CDP_REDEEMP_TX', + txAction: require('./transaction/cdpredeemtx') + }, + 23: { + txName: 'CDP_LIQUIDATE_TX', + txAction: require('./transaction/cdpliquidatetx') + }, + 84: { + txName: 'DEX_BUY_LIMIT_ORDER_TX', + txAction: require('./transaction/dexbuylimitordertx') + }, + 85: { + txName: 'DEX_SELL_LIMIT_ORDER_TX', + txAction: require('./transaction/dexselllimitordertx') + }, + 86: { + txName: 'DEX_BUY_MARKET_ORDER_TX', + txAction: require('./transaction/dexbuymarketordertx') + }, + 87: { + txName: 'DEX_SELL_MARKET_ORDER_TX', + txAction: require('./transaction/dexsellmarketordertx') + }, + 88: { + txName: 'DEX_CANCEL_ORDER_TX', + txAction: require('./transaction/dexcancelordertx') + } +} var WiccApi = function WiccApi(arg) { if (!(this instanceof WiccApi)) { @@ -268,117 +339,15 @@ WiccApi.prototype.changePassword = function (seedinfo, oldpassword, newpassword) } WiccApi.prototype.createSignTransaction = function (privkey, txType, txData) { - if (txType == WiccApi.REGISTER_ACCOUNT_TX) { - var register = new RegisterAccountTx(txData) - return register.SerializeTx(privkey) - } - else if (txType == WiccApi.COMMON_TX) { - var commonTx = new CommonTx(txData) - return commonTx.SerializeTx(privkey) - } - else if (txType == WiccApi.CONTRACT_TX) { - var contractTx = new ContractTx(txData) - return contractTx.SerializeTx(privkey) - } - else if (txType == WiccApi.REG_APP_TX) { - var registerAppTx = new RegisterAppTx(txData) - return registerAppTx.SerializeTx(privkey) - } - else if (txType == WiccApi.DELEGATE_TX) { - var delegateTx = new DelegateTx(txData) - return delegateTx.SerializeTx(privkey) - } else if (txType == WiccApi.PRICE_FEED_TX) { - var cPriceFeedTx = new CpriceFeedTx(txData) - return cPriceFeedTx.SerializeTx(privkey) - } else if (txType == WiccApi.UCOIN_CONTRACT_INVOKE_TX) { - var ucontractTx = new UContractTx(txData) - return ucontractTx.SerializeTx(privkey) - } - else if (txType == WiccApi.ASSET_ISUUE) { - var assetIssueTx = new AssetCreateTx(txData) - return assetIssueTx.SerializeTx(privkey) - } else if (txType == WiccApi.ASSET_UPDATE) { - var assetUpdateTx = new AssetUpdateTx(txData) - return assetUpdateTx.SerializeTx(privkey) - } + var txConstructor = txMap[txType].txAction + var txBody = new txConstructor(txData) + return txBody.SerializeTx(privkey) } WiccApi.PROTOCAL_VERSION = 1; -WiccApi.REGISTER_ACCOUNT_TX = 2; -WiccApi.COMMON_TX = 3; -WiccApi.CONTRACT_TX = 4; -WiccApi.REG_APP_TX = 5, //!< register app - WiccApi.DELEGATE_TX = 6; - -WiccApi.FCOIN_STAKE_TX = 8; - -WiccApi.ASSET_ISUUE = 9; -WiccApi.ASSET_UPDATE = 10; - -WiccApi.UCOIN_TRANSFER_TX = 11; -WiccApi.UCOIN_CONTRACT_INVOKE_TX = 15; -WiccApi.PRICE_FEED_TX = 16; - -WiccApi.CDP_STAKE_TX = 21; -WiccApi.CDP_REDEEMP_TX = 22; -WiccApi.CDP_LIQUIDATE_TX = 23; - -WiccApi.DEX_SETTLE_TX = 89; //!< dex settle Tx -WiccApi.DEX_CANCEL_ORDER_TX = 88; //!< dex cancel order Tx -WiccApi.DEX_BUY_LIMIT_ORDER_TX = 84; //!< dex buy limit price order Tx -WiccApi.DEX_SELL_LIMIT_ORDER_TX = 85; //!< dex sell limit price order Tx -WiccApi.DEX_BUY_MARKET_ORDER_TX = 86; //!< dex buy market price order Tx -WiccApi.DEX_SELL_MARKET_ORDER_TX = 87; //!< dex sell market price order Tx - - -//彩种 -WiccApi.LOTTERY_FOOTBALL = 1; //足彩 -WiccApi.LOTTERY_BASKETBALL = 2; //篮彩 - -//足彩玩法 -WiccApi.PLAY_FOOTBALL_SPF = 1; // 胜平负 -WiccApi.PLAY_FOOTBALL_TOTAL_NUM = 2; //总进球 -WiccApi.PLAY_FOOTBALL_ODD_EVEN = 3; //单双 -WiccApi.PLAY_FOOTBALL_HALF = 4; //半全场 - -//足彩胜平负投注方案 -WiccApi.FOOTBALL_SPF_WIN = 1; //主胜 -WiccApi.FOOTBALL_SPF_EVEN = 2; //平 -WiccApi.FOOTBALL_SPF_LOSE = 3; //主负 - -//足彩总进球投注方案 -WiccApi.FOOTBALL_TOTAL_0 = 1; //大于2.5个 -WiccApi.FOOTBALL_TOTAL_1 = 2; //小于2.5个 - -//足彩单双投注方案 -WiccApi.FOOTBALL_ODD_EVEN_ODD = 1; //单 -WiccApi.FOOTBALL_ODD_EVEN_EVEN = 2; //双 - -//足彩半全场投注方案 -WiccApi.FOOTBALL_HALF_GOAL = 1; //进球 -WiccApi.FOOTBALL_HALF_NO_GOAL = 2; //没有进球 - -//篮彩玩法 -WiccApi.PLAY_BASKETBALL_SF = 1; //胜负 -WiccApi.PLAY_BASKETBALL_RSF = 2; //让分胜负 -WiccApi.PLAY_BASKETBALL_TOTAL_SCORE = 3; //总得分 -WiccApi.PLAY_BASKETBALL_ODD_EVEN = 4; //单双 - -//篮彩胜负投注方案 -WiccApi.BASKETBALL_SF_WIN = 1; //胜 -WiccApi.BASKETBALL_SF_LOSE = 2; //负 - -//篮彩让分胜负投注方案 -WiccApi.BASKETBALL_RSF_WIN = 1; //胜 -WiccApi.BASKETBALL_RSF_LOSE = 2; //负 - -//篮彩总得分投注方案 -WiccApi.BASKETBALL_TOTAL_SCORE_GREATER = 1; //大于215.5分 -WiccApi.BASKETBALL_TOTAL_SCORE_LESS = 2; //小于215.5分 - -//篮彩单双投注方案 -WiccApi.BASKETBALL_ODD_EVEN_ODD = 1; //单 -WiccApi.BASKETBALL_ODD_EVEN_EVEN = 2; //双 +for (var item in txMap) { + WiccApi[txMap[item].txName] = Number(item) +} module.exports = WiccApi; \ No newline at end of file diff --git a/test/test-cancelordertx.js b/test/test-cancelordertx.js index 29e4190..5f3c564 100644 --- a/test/test-cancelordertx.js +++ b/test/test-cancelordertx.js @@ -3,6 +3,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for cancel order transfer note: @@ -33,7 +35,6 @@ var dexCancelTxinfo = { network: 'testnet' }; - var dexCancelOrderTx = new bitcore.Transaction.DexCancelOrderTx(dexCancelTxinfo); + var dexCancelOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_CANCEL_ORDER_TX, dexCancelTxinfo); - var hex = dexCancelOrderTx.SerializeTx(privateKey) - console.log(hex) + console.log("----dexCancelOrderTx----",dexCancelOrderTx) diff --git a/test/test-cdpliquidatetx.js b/test/test-cdpliquidatetx.js index d5f007d..6d2e03d 100644 --- a/test/test-cdpliquidatetx.js +++ b/test/test-cdpliquidatetx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for cdp liquidate transaction @@ -44,8 +46,5 @@ var cdpliquidateTxinfo = { }; - var cdpliquidateTx = new bitcore.Transaction.CdpLiquiDateTx(cdpliquidateTxinfo); - console.log(cdpliquidateTx.bcoinsToStake) - - var hex = cdpliquidateTx.SerializeTx(privateKey) - console.log(hex) + var cdpliquidateTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_LIQUIDATE_TX, cdpliquidateTxinfo) + console.log("-----cdpliquidateTx-----",cdpliquidateTx) diff --git a/test/test-cdpredeemtx.js b/test/test-cdpredeemtx.js index a44e85c..afa66dd 100644 --- a/test/test-cdpredeemtx.js +++ b/test/test-cdpredeemtx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for cdp redeem @@ -46,7 +48,6 @@ var cdpRedeemTxinfo = { }; - var cdpRedeemTx = new bitcore.Transaction.CdpRedeemTx(cdpRedeemTxinfo); + var cdpRedeemTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_REDEEMP_TX, cdpRedeemTxinfo) - var hex = cdpRedeemTx.SerializeTx(privateKey) - console.log(hex) + console.log('----cdpRedeemTx----', cdpRedeemTx) diff --git a/test/test-cdpstaketx.js b/test/test-cdpstaketx.js index 6b41ebc..f3ebe50 100644 --- a/test/test-cdpstaketx.js +++ b/test/test-cdpstaketx.js @@ -56,7 +56,6 @@ var cdpStakeTxinfo = { }; - var cdpStakeTx = new bitcore.Transaction.CdpStakeTx(cdpStakeTxinfo); + var cdpStakeTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_STAKE_TX, cdpStakeTxinfo) - var hex = cdpStakeTx.SerializeTx(privateKey) - console.log(hex) + console.log("----cdpStakeTx----", cdpStakeTx) diff --git a/test/test-commontx.js b/test/test-commontx.js index b232b39..71e0056 100644 --- a/test/test-commontx.js +++ b/test/test-commontx.js @@ -43,16 +43,5 @@ var commonTxinfo = { var tmp = (value >>> 7) - var commonTx = new bitcore.Transaction.CommonTx(commonTxinfo); - console.log(commonTx.destAddr) - - /* - var ret = commonTx._SignatureHash() - var ret = commonTx._SignatureHash() - console.log(ret.toString('hex')) - - commonTx._Signtx(privateKey); - */ - - var hex = commonTx.SerializeTx(privateKey) - console.log(hex) + var commonTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.COMMON_TX, commonTxinfo) + console.log("----commonTx----", commonTx) diff --git a/test/test-dexbuylimitordertx.js b/test/test-dexbuylimitordertx.js index b21ffad..dadb9da 100644 --- a/test/test-dexbuylimitordertx.js +++ b/test/test-dexbuylimitordertx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for dex buy limit transfer @@ -42,7 +44,6 @@ var dexBuyLimitTxinfo = { network: 'testnet' }; - var dexBuyLimitOrderTx = new bitcore.Transaction.DexBuyLimitOrderTx(dexBuyLimitTxinfo); + var dexBuyLimitOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_BUY_LIMIT_ORDER_TX, dexBuyLimitTxinfo) - var hex = dexBuyLimitOrderTx.SerializeTx(privateKey) - console.log(hex) + console.log("----dexBuyLimitOrderTx----", dexBuyLimitOrderTx) diff --git a/test/test-dexbuymarketordertx.js b/test/test-dexbuymarketordertx.js index ebf6b9d..510eadb 100644 --- a/test/test-dexbuymarketordertx.js +++ b/test/test-dexbuymarketordertx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for market buy transfer @@ -39,7 +41,6 @@ var dexBuyMarketTxinfo = { network: 'testnet' }; - var dexBuyMarketOrderTx = new bitcore.Transaction.DexBuyMarketOrderTx(dexBuyMarketTxinfo); + var dexBuyMarketOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_BUY_MARKET_ORDER_TX, dexBuyMarketTxinfo) - var hex = dexBuyMarketOrderTx.SerializeTx(privateKey) - console.log(hex) + console.log("----dexBuyMarketOrderTx----", dexBuyMarketOrderTx) diff --git a/test/test-dexselllimitordertx.js b/test/test-dexselllimitordertx.js index 29bb7c0..cedbe18 100644 --- a/test/test-dexselllimitordertx.js +++ b/test/test-dexselllimitordertx.js @@ -3,6 +3,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for sell limit transfer @@ -34,7 +36,5 @@ var dexSellLimitTxinfo = { }; - var dexSellLimitOrderTx = new bitcore.Transaction.DexSellLimitOrderTx(dexSellLimitTxinfo); - - var hex = dexSellLimitOrderTx.SerializeTx(privateKey) - console.log(hex) + var dexSellLimitOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_SELL_LIMIT_ORDER_TX, dexSellLimitTxinfo) + console.log("----dexSellLimitOrderTx----", dexSellLimitOrderTx) diff --git a/test/test-dexsellmarketordertx.js b/test/test-dexsellmarketordertx.js index 3ff7e26..009ea08 100644 --- a/test/test-dexsellmarketordertx.js +++ b/test/test-dexsellmarketordertx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for sell limit transfer @@ -33,7 +35,5 @@ var dexSellMarketTxinfo = { network: 'testnet' }; - var dexSellMarketOrderTx = new bitcore.Transaction.DexSellMarketOrderTx(dexSellMarketTxinfo); - - var hex = dexSellMarketOrderTx.SerializeTx(privateKey) - console.log(hex) + var dexSellMarketOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_SELL_MARKET_ORDER_TX, dexSellMarketTxinfo) + console.log("----dexSellMarketOrderTx----", dexSellMarketOrderTx) diff --git a/test/test-fcoinstake.js b/test/test-fcoinstake.js index 78cbaca..a58f108 100644 --- a/test/test-fcoinstake.js +++ b/test/test-fcoinstake.js @@ -44,8 +44,5 @@ var fcoinStakeTxinfo = { }; - var cfcoinStakeTx = new bitcore.Transaction.CFcoinStakeTx(fcoinStakeTxinfo); - console.log(cfcoinStakeTx.bcoinsToStake) - - var hex = cfcoinStakeTx.SerializeTx(privateKey) - console.log(hex) + var cfcoinStakeTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.FCOIN_STAKE_TX, fcoinStakeTxinfo) + console.log("----cointransferTx----", cfcoinStakeTx) diff --git a/test/test-ucointransfertx.js b/test/test-ucointransfertx.js index 21006a8..c1fb7e5 100644 --- a/test/test-ucointransfertx.js +++ b/test/test-ucointransfertx.js @@ -4,6 +4,8 @@ var bitcore = require('..'); var WriterHelper = require('../lib/util/writerhelper') var privateKey = bitcore.PrivateKey.fromWIF('Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ') +var arg = {network: 'testnet'} +var wiccApi = new bitcore.WiccApi(arg) /* Build a transaction for common transfer @@ -50,8 +52,6 @@ var cointransferTxinfo = { network: 'testnet' }; -var cointransferTx = new bitcore.Transaction.UCoinTransferTx(cointransferTxinfo); -console.log(cointransferTx.destAddr) +var cointransferTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.UCOIN_TRANSFER_TX, cointransferTxinfo) +console.log("----cointransferTx----", cointransferTx) -var hex = cointransferTx.SerializeTx(privateKey) -console.log(hex) From dfbc819328a7fa3a0583ab434600aa1f2cca238c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 23 Oct 2019 20:49:58 +0800 Subject: [PATCH 02/33] updute --- .gitignore | 1 - .npmignore | 1 - CONTRIBUTING.md | 268 - LICENSE | 32 - README.md | 53 - benchmark/block-357238.json | 1 - benchmark/package.json | 8 - benchmark/script.js | 85 - benchmark/serialization.js | 122 - bower.json | 21 - dist/wicc-wallet-lib.js | 46 + docs/address.md | 65 - docs/block.md | 46 - docs/browser.md | 66 - docs/crypto.md | 17 - docs/encoding.md | 8 - docs/examples.md | 113 - docs/hierarchical.md | 52 - docs/index.md | 104 - docs/networks.md | 55 - docs/privatekey.md | 47 - docs/publickey.md | 59 - docs/script.md | 136 - docs/transaction.md | 177 - docs/unit.md | 80 - docs/unspentoutput.md | 32 - docs/uri.md | 41 - gulpfile.js | 5 - karma.conf.js | 36 - main.js | 2 + package-lock.json | 5090 ----------------- package.json | 110 +- index.js => src/index.js | 20 +- {lib => src/lib}/address.js | 0 {lib => src/lib}/aes-cbc.js | 0 {lib => src/lib}/block/block.js | 0 {lib => src/lib}/block/blockheader.js | 0 {lib => src/lib}/block/index.js | 0 {lib => src/lib}/block/merkleblock.js | 0 {lib => src/lib}/crypto/bn.js | 0 {lib => src/lib}/crypto/ecdsa.js | 0 {lib => src/lib}/crypto/hash.js | 0 {lib => src/lib}/crypto/point.js | 0 {lib => src/lib}/crypto/random.js | 0 {lib => src/lib}/crypto/signature.js | 0 {lib => src/lib}/encoding/base58.js | 0 {lib => src/lib}/encoding/base58check.js | 0 {lib => src/lib}/encoding/bufferreader.js | 0 {lib => src/lib}/encoding/bufferwriter.js | 0 {lib => src/lib}/encoding/varint.js | 0 {lib => src/lib}/errors.js | 0 {lib => src/lib}/errors/index.js | 0 {lib => src/lib}/errors/spec.js | 0 {lib => src/lib}/hdprivatekey.js | 0 {lib => src/lib}/hdpublickey.js | 0 {lib => src/lib}/mnemonic.js | 0 {lib => src/lib}/networks.js | 0 {lib => src/lib}/opcode.js | 0 {lib => src/lib}/pbkdf2.js | 0 {lib => src/lib}/privatekey.js | 0 {lib => src/lib}/publickey.js | 0 {lib => src/lib}/script/index.js | 0 {lib => src/lib}/script/interpreter.js | 0 {lib => src/lib}/script/script.js | 0 {lib => src/lib}/transaction/assetcreatetx.js | 0 {lib => src/lib}/transaction/assetupdatetx.js | 0 .../lib}/transaction/cdpliquidatetx.js | 0 {lib => src/lib}/transaction/cdpredeemtx.js | 0 {lib => src/lib}/transaction/cdpstaketx.js | 0 {lib => src/lib}/transaction/cfcoinstaketx.js | 0 {lib => src/lib}/transaction/commontx.js | 0 {lib => src/lib}/transaction/contracttx.js | 0 {lib => src/lib}/transaction/cpricefeedtx.js | 0 {lib => src/lib}/transaction/delegatetx.js | 0 .../lib}/transaction/dexbuylimitordertx.js | 0 .../lib}/transaction/dexbuymarketordertx.js | 0 .../lib}/transaction/dexcancelordertx.js | 0 .../lib}/transaction/dexselllimitordertx.js | 0 .../lib}/transaction/dexsellmarketordertx.js | 0 {lib => src/lib}/transaction/index.js | 0 {lib => src/lib}/transaction/input/index.js | 0 {lib => src/lib}/transaction/input/input.js | 0 .../lib}/transaction/input/multisig.js | 0 .../transaction/input/multisigscripthash.js | 0 .../lib}/transaction/input/publickey.js | 0 .../lib}/transaction/input/publickeyhash.js | 0 {lib => src/lib}/transaction/output.js | 0 .../lib}/transaction/registeraccounttx.js | 0 {lib => src/lib}/transaction/registerapptx.js | 0 {lib => src/lib}/transaction/sighash.js | 0 .../lib}/transaction/sighashwitness.js | 0 {lib => src/lib}/transaction/signature.js | 0 {lib => src/lib}/transaction/transaction.js | 0 .../lib}/transaction/ucointransfertx.js | 0 .../lib}/transaction/ucontractinvoketx.js | 0 {lib => src/lib}/transaction/unspentoutput.js | 0 {lib => src/lib}/unit.js | 0 {lib => src/lib}/uri.js | 0 {lib => src/lib}/util/betitem.js | 0 {lib => src/lib}/util/buffer.js | 0 {lib => src/lib}/util/js.js | 0 {lib => src/lib}/util/preconditions.js | 0 {lib => src/lib}/util/util.js | 0 {lib => src/lib}/util/votefund.js | 0 {lib => src/lib}/util/writerhelper.js | 0 {lib => src/lib}/wiccapi.js | 2 + {lib => src/lib}/words/chinese.js | 0 {lib => src/lib}/words/english.js | 0 {lib => src/lib}/words/french.js | 0 {lib => src/lib}/words/index.js | 0 {lib => src/lib}/words/italian.js | 0 {lib => src/lib}/words/japanese.js | 0 {lib => src/lib}/words/spanish.js | 0 test/address.js | 572 -- test/block/block.js | 268 - test/block/blockheader.js | 302 - test/block/merkleblock.js | 230 - test/crypto/bn.js | 153 - test/crypto/ecdsa.js | 325 -- test/crypto/hash.js | 139 - test/crypto/point.js | 173 - test/crypto/random.js | 36 - test/crypto/signature.js | 340 -- test/data/bip69.json | 215 - test/data/bitcoind/base58_keys_invalid.json | 152 - test/data/bitcoind/base58_keys_valid.json | 452 -- test/data/bitcoind/blocks.json | 27 - test/data/bitcoind/script_invalid.json | 672 --- test/data/bitcoind/script_valid.json | 821 --- test/data/bitcoind/sig_canonical.json | 7 - test/data/bitcoind/sig_noncanonical.json | 22 - test/data/bitcoind/tx_invalid.json | 174 - test/data/bitcoind/tx_valid.json | 224 - test/data/blk86756-testnet.dat | Bin 9500 -> 0 bytes test/data/blk86756-testnet.js | 12 - test/data/blk86756-testnet.json | 684 --- test/data/contract-hello.lua | 47 - test/data/ecdsa.json | 230 - test/data/merkleblocks.js | 486 -- test/data/messages.json | 22 - test/data/sighash.json | 503 -- test/data/tx_creation.json | 85 - test/docs.js | 17 - test/encoding/base58.js | 123 - test/encoding/base58check.js | 124 - test/encoding/bufferreader.js | 360 -- test/encoding/bufferwriter.js | 188 - test/encoding/varint.js | 126 - test/hdkeys.js | 372 -- test/hdprivatekey.js | 311 - test/hdpublickey.js | 275 - test/index.html | 18 - test/index.js | 16 - test/mocha.opts | 2 - test/mytest.js | 236 - test/networks.js | 128 - test/opcode.js | 165 - test/privatekey.js | 457 -- test/publickey.js | 430 -- test/script/interpreter.js | 417 -- test/script/script.js | 1079 ---- test/test-assetcreatetx.js | 77 - test/test-assetupdatetx.js | 84 - test/test-callcontracttx.js | 49 - test/test-cancelordertx.js | 40 - test/test-cdpliquidatetx.js | 50 - test/test-cdpredeemtx.js | 53 - test/test-cdpstaketx.js | 61 - test/test-commontx.js | 47 - test/test-delegatetx.js | 52 - test/test-dexbuylimitordertx.js | 49 - test/test-dexbuymarketordertx.js | 46 - test/test-dexselllimitordertx.js | 40 - test/test-dexsellmarketordertx.js | 39 - test/test-fcoinstake.js | 48 - test/test-feedpricetx.js | 43 - test/test-messagevertify.js | 19 - test/test-registeraccounttx.js | 39 - test/test-registercontracttx.js | 59 - test/test-ucointransfertx.js | 57 - test/test-ucontractinvoketx.js | 51 - test/test-wallet.js | 52 - test/transaction/deserialize.js | 34 - test/transaction/input/input.js | 99 - test/transaction/input/multisig.js | 177 - test/transaction/input/multisigscripthash.js | 147 - test/transaction/input/publickey.js | 71 - test/transaction/input/publickeyhash.js | 64 - test/transaction/output.js | 191 - test/transaction/sighash.js | 37 - test/transaction/sighashwitness.js | 24 - test/transaction/signature.js | 133 - test/transaction/transaction.js | 1677 ------ test/transaction/unspentoutput.js | 94 - test/unit.js | 197 - test/uri.js | 257 - test/util/buffer.js | 156 - test/util/js.js | 83 - test/util/preconditions.js | 80 - webpack.config.js | 13 + 200 files changed, 114 insertions(+), 23693 deletions(-) delete mode 100644 .npmignore delete mode 100644 CONTRIBUTING.md delete mode 100644 LICENSE delete mode 100644 benchmark/block-357238.json delete mode 100644 benchmark/package.json delete mode 100644 benchmark/script.js delete mode 100644 benchmark/serialization.js delete mode 100644 bower.json create mode 100644 dist/wicc-wallet-lib.js delete mode 100644 docs/address.md delete mode 100644 docs/block.md delete mode 100644 docs/browser.md delete mode 100644 docs/crypto.md delete mode 100644 docs/encoding.md delete mode 100644 docs/examples.md delete mode 100644 docs/hierarchical.md delete mode 100644 docs/index.md delete mode 100644 docs/networks.md delete mode 100644 docs/privatekey.md delete mode 100644 docs/publickey.md delete mode 100644 docs/script.md delete mode 100644 docs/transaction.md delete mode 100644 docs/unit.md delete mode 100644 docs/unspentoutput.md delete mode 100644 docs/uri.md delete mode 100644 gulpfile.js delete mode 100644 karma.conf.js create mode 100644 main.js delete mode 100644 package-lock.json rename index.js => src/index.js (67%) rename {lib => src/lib}/address.js (100%) rename {lib => src/lib}/aes-cbc.js (100%) rename {lib => src/lib}/block/block.js (100%) rename {lib => src/lib}/block/blockheader.js (100%) rename {lib => src/lib}/block/index.js (100%) rename {lib => src/lib}/block/merkleblock.js (100%) rename {lib => src/lib}/crypto/bn.js (100%) rename {lib => src/lib}/crypto/ecdsa.js (100%) rename {lib => src/lib}/crypto/hash.js (100%) rename {lib => src/lib}/crypto/point.js (100%) rename {lib => src/lib}/crypto/random.js (100%) rename {lib => src/lib}/crypto/signature.js (100%) rename {lib => src/lib}/encoding/base58.js (100%) rename {lib => src/lib}/encoding/base58check.js (100%) rename {lib => src/lib}/encoding/bufferreader.js (100%) rename {lib => src/lib}/encoding/bufferwriter.js (100%) rename {lib => src/lib}/encoding/varint.js (100%) rename {lib => src/lib}/errors.js (100%) rename {lib => src/lib}/errors/index.js (100%) rename {lib => src/lib}/errors/spec.js (100%) rename {lib => src/lib}/hdprivatekey.js (100%) rename {lib => src/lib}/hdpublickey.js (100%) rename {lib => src/lib}/mnemonic.js (100%) rename {lib => src/lib}/networks.js (100%) rename {lib => src/lib}/opcode.js (100%) rename {lib => src/lib}/pbkdf2.js (100%) rename {lib => src/lib}/privatekey.js (100%) rename {lib => src/lib}/publickey.js (100%) rename {lib => src/lib}/script/index.js (100%) rename {lib => src/lib}/script/interpreter.js (100%) rename {lib => src/lib}/script/script.js (100%) rename {lib => src/lib}/transaction/assetcreatetx.js (100%) rename {lib => src/lib}/transaction/assetupdatetx.js (100%) rename {lib => src/lib}/transaction/cdpliquidatetx.js (100%) rename {lib => src/lib}/transaction/cdpredeemtx.js (100%) rename {lib => src/lib}/transaction/cdpstaketx.js (100%) rename {lib => src/lib}/transaction/cfcoinstaketx.js (100%) rename {lib => src/lib}/transaction/commontx.js (100%) rename {lib => src/lib}/transaction/contracttx.js (100%) rename {lib => src/lib}/transaction/cpricefeedtx.js (100%) rename {lib => src/lib}/transaction/delegatetx.js (100%) rename {lib => src/lib}/transaction/dexbuylimitordertx.js (100%) rename {lib => src/lib}/transaction/dexbuymarketordertx.js (100%) rename {lib => src/lib}/transaction/dexcancelordertx.js (100%) rename {lib => src/lib}/transaction/dexselllimitordertx.js (100%) rename {lib => src/lib}/transaction/dexsellmarketordertx.js (100%) rename {lib => src/lib}/transaction/index.js (100%) rename {lib => src/lib}/transaction/input/index.js (100%) rename {lib => src/lib}/transaction/input/input.js (100%) rename {lib => src/lib}/transaction/input/multisig.js (100%) rename {lib => src/lib}/transaction/input/multisigscripthash.js (100%) rename {lib => src/lib}/transaction/input/publickey.js (100%) rename {lib => src/lib}/transaction/input/publickeyhash.js (100%) rename {lib => src/lib}/transaction/output.js (100%) rename {lib => src/lib}/transaction/registeraccounttx.js (100%) rename {lib => src/lib}/transaction/registerapptx.js (100%) rename {lib => src/lib}/transaction/sighash.js (100%) rename {lib => src/lib}/transaction/sighashwitness.js (100%) rename {lib => src/lib}/transaction/signature.js (100%) rename {lib => src/lib}/transaction/transaction.js (100%) rename {lib => src/lib}/transaction/ucointransfertx.js (100%) rename {lib => src/lib}/transaction/ucontractinvoketx.js (100%) rename {lib => src/lib}/transaction/unspentoutput.js (100%) rename {lib => src/lib}/unit.js (100%) rename {lib => src/lib}/uri.js (100%) rename {lib => src/lib}/util/betitem.js (100%) rename {lib => src/lib}/util/buffer.js (100%) rename {lib => src/lib}/util/js.js (100%) rename {lib => src/lib}/util/preconditions.js (100%) rename {lib => src/lib}/util/util.js (100%) rename {lib => src/lib}/util/votefund.js (100%) rename {lib => src/lib}/util/writerhelper.js (100%) rename {lib => src/lib}/wiccapi.js (95%) rename {lib => src/lib}/words/chinese.js (100%) rename {lib => src/lib}/words/english.js (100%) rename {lib => src/lib}/words/french.js (100%) rename {lib => src/lib}/words/index.js (100%) rename {lib => src/lib}/words/italian.js (100%) rename {lib => src/lib}/words/japanese.js (100%) rename {lib => src/lib}/words/spanish.js (100%) delete mode 100644 test/address.js delete mode 100644 test/block/block.js delete mode 100644 test/block/blockheader.js delete mode 100644 test/block/merkleblock.js delete mode 100644 test/crypto/bn.js delete mode 100644 test/crypto/ecdsa.js delete mode 100644 test/crypto/hash.js delete mode 100644 test/crypto/point.js delete mode 100644 test/crypto/random.js delete mode 100644 test/crypto/signature.js delete mode 100644 test/data/bip69.json delete mode 100644 test/data/bitcoind/base58_keys_invalid.json delete mode 100644 test/data/bitcoind/base58_keys_valid.json delete mode 100644 test/data/bitcoind/blocks.json delete mode 100644 test/data/bitcoind/script_invalid.json delete mode 100644 test/data/bitcoind/script_valid.json delete mode 100644 test/data/bitcoind/sig_canonical.json delete mode 100644 test/data/bitcoind/sig_noncanonical.json delete mode 100644 test/data/bitcoind/tx_invalid.json delete mode 100644 test/data/bitcoind/tx_valid.json delete mode 100644 test/data/blk86756-testnet.dat delete mode 100644 test/data/blk86756-testnet.js delete mode 100644 test/data/blk86756-testnet.json delete mode 100644 test/data/contract-hello.lua delete mode 100644 test/data/ecdsa.json delete mode 100644 test/data/merkleblocks.js delete mode 100644 test/data/messages.json delete mode 100644 test/data/sighash.json delete mode 100644 test/data/tx_creation.json delete mode 100644 test/docs.js delete mode 100644 test/encoding/base58.js delete mode 100644 test/encoding/base58check.js delete mode 100644 test/encoding/bufferreader.js delete mode 100644 test/encoding/bufferwriter.js delete mode 100644 test/encoding/varint.js delete mode 100644 test/hdkeys.js delete mode 100644 test/hdprivatekey.js delete mode 100644 test/hdpublickey.js delete mode 100644 test/index.html delete mode 100644 test/index.js delete mode 100644 test/mocha.opts delete mode 100644 test/mytest.js delete mode 100644 test/networks.js delete mode 100644 test/opcode.js delete mode 100644 test/privatekey.js delete mode 100644 test/publickey.js delete mode 100644 test/script/interpreter.js delete mode 100644 test/script/script.js delete mode 100644 test/test-assetcreatetx.js delete mode 100644 test/test-assetupdatetx.js delete mode 100644 test/test-callcontracttx.js delete mode 100644 test/test-cancelordertx.js delete mode 100644 test/test-cdpliquidatetx.js delete mode 100644 test/test-cdpredeemtx.js delete mode 100644 test/test-cdpstaketx.js delete mode 100644 test/test-commontx.js delete mode 100644 test/test-delegatetx.js delete mode 100644 test/test-dexbuylimitordertx.js delete mode 100644 test/test-dexbuymarketordertx.js delete mode 100644 test/test-dexselllimitordertx.js delete mode 100644 test/test-dexsellmarketordertx.js delete mode 100644 test/test-fcoinstake.js delete mode 100644 test/test-feedpricetx.js delete mode 100644 test/test-messagevertify.js delete mode 100644 test/test-registeraccounttx.js delete mode 100644 test/test-registercontracttx.js delete mode 100644 test/test-ucointransfertx.js delete mode 100644 test/test-ucontractinvoketx.js delete mode 100644 test/test-wallet.js delete mode 100644 test/transaction/deserialize.js delete mode 100644 test/transaction/input/input.js delete mode 100644 test/transaction/input/multisig.js delete mode 100644 test/transaction/input/multisigscripthash.js delete mode 100644 test/transaction/input/publickey.js delete mode 100644 test/transaction/input/publickeyhash.js delete mode 100644 test/transaction/output.js delete mode 100644 test/transaction/sighash.js delete mode 100644 test/transaction/sighashwitness.js delete mode 100644 test/transaction/signature.js delete mode 100644 test/transaction/transaction.js delete mode 100644 test/transaction/unspentoutput.js delete mode 100644 test/unit.js delete mode 100644 test/uri.js delete mode 100644 test/util/buffer.js delete mode 100644 test/util/js.js delete mode 100644 test/util/preconditions.js create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore index 641dadf..42d53a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ .DS_Store .vscode/ node_modules/ -dist/ .jsbeautifyrc .eslintrc.json .history \ No newline at end of file diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 1795c8d..0000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -.history \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index b550cd9..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,268 +0,0 @@ -Contributing to Bitcore -======= - -We're working hard to make *bitcore* the most powerful JavaScript library for working with bitcoin. Our goal is to have *bitcore* be a library that can be used by anyone interested in bitcoin, and to level expertise differences with great design and documentation. - -## Community - -If there are any questions, etc., please feel to ask in one of the community channels: - -- https://labs.bitpay.com/c/bitcore (Support Forum) -- https://gitter.im/bitpay/bitcore (Development Chat) - -## Quick Checklist - -Ideally, please make sure to run: - -* `gulp test` passes all the tests (We run tests against Node.js v0.10, v0.12, io.js, and modern browsers) -* `gulp coverage` covers 100% of the branches of your code (See `coverage/lcov-report/index.html` for details) -* `gulp lint` doesn't complain about your changes - -## Design Guidelines - -These are some global design goals in bitcore that any change must adhere. - -### D1 - Naming Matters - -We take our time with picking names. Code is going to be written once, and read hundreds of times. - -We were inspired to name this rule first due to Uncle Bob's great work *Clean Code*, which has a whole chapter on this subject. - -In particular, you may notice that some names in this library are quite long for the average JavaScript user. That's because we prefer a long but comprehensible name than an abbreviation that might confuse new users. - -### D2 - Tests - -Write a test for all your code. We encourage Test Driven Development so we know when our code is right. We have increased test coverage from 80% to around 95% and are targeting 100% as we move towards our 1.0 release. - -### D3 - Robustness Principle - -*Be conservative in what you send, be liberal in what you accept.* - -Interfaces should accept as many types of arguments as possible, so there's no mental tax on using them: we want to avoid questions such as "should I use a string here or a buffer?", "what happens if I'm not sure if the type of this variable is an Address instance or a string with it encoded in base-58?" or "what kind of object will I receive after calling this function?". - -Accept a wide variety of use cases and arguments, always return an internal form of an object. For example, the class `PublicKey` can accept strings or buffers with a DER encoded public key (either compressed or uncompressed), another PublicKey, a PrivateKey, or a Point, an instance of the `elliptic.js` library with the point in bitcoin's elliptic curve that represents the public key. - -### D4 - Consistency Everywhere - -Consistency on the way classes are used is paramount to allow an easier understanding of the library. - -## Style Guidelines - -The design guidelines have quite a high abstraction level. These style guidelines are more concrete and easier to apply, and also more opinionated. The design guidelines mentioned above are the way we think about general software development and we believe they should be present in any software project. - -### General - -#### G0 - Default to Felixge's Style Guide - -Follow this Node.js Style Guide: https://github.com/felixge/node-style-guide#nodejs-style-guide - -#### G1 - No Magic Numbers - -Avoid constants in the code as much as possible. Magic strings are also magic numbers. - -#### G2 - Internal Objects Should be Instances - -If a class has a `publicKey` member, for instance, that should be a `PublicKey` instance. - -#### G3 - Internal Amounts Must be Integers Representing Satoshis - -Avoid representation errors by always dealing with satoshis. For conversion for frontends, use the `Unit` class. - -#### G4 - Internal Network References Must be Network Instances - -A special case for [G2](#g2---general-internal-objects-should-be-instances) all network references must be `Network` instances (see `lib/network.js`), but when returned to the user, its `.name` property should be used. - -#### G5 - Objects Should Display Nicely in the Console - -Write a `.inspect()` method so an instance can be easily debugged in the console. - -#### G6 - Naming Utility Namespaces - -Name them in UpperCamelCase, as they are namespaces. - -DO: -```javascript -var BufferUtil = require('./util/buffer'); -``` -DON'T: -```javascript -var bufferUtil = require('./util/buffer'); -``` - -#### G7 - Standard Methods - -When possible, bitcore objects should have standard methods on an instance prototype: -* `toObject/toJSON` - A plain JavaScript object that `JSON.stringify` can call -* `toString` - A string representation of the instance -* `toBuffer` - A hex Buffer - -These should have a matching static method that can be used for instantiation: -* `fromObject` - Should be able to instantiate with the output from `toObject/toJSON` -* `fromString` - Should be able to instantiate with output from `toString` -* `fromBuffer` - Should likewise be able to instantiate from output from `toBuffer` - -`JSON.stringify` and `JSON.parse` are expected to be handled outside of the scope of Bitcore methods. For example, calling `JSON.stringify` on an Bitcore object will behave as expected and call `transaction.toJSON()` and then stringify it: - -```javascript -var transactionString = JSON.stringify(transaction); -``` - -Likewise to instantiate a transaction from that string: - -```javascript -var data = JSON.parse(transactionString); -var tx = new Transaction(data); -``` - -### Errors - -#### E1 - Use bitcore.Errors - -We've designed a structure for Errors to follow and are slowly migrating to it. - -Usage: -* Errors are generated in the file `lib/errors/index.js` by invoking `gulp errors`. -* The specification for errors is written in the `lib/errors/spec.js` file. -* Whenever a new class is created, add a generic error for that class in `lib/errors/spec.js`. -* Specific errors for that class should subclass that error. Take a look at the structure in `lib/errors/spec.js`, it should be clear how subclasses are generated from that file. - -#### E2 - Provide a `getValidationError` Static Method for Classes - -### Interface - -#### I1 - Code that Fails Early - -In order to deal with JavaScript's weak typing and confusing errors, we ask our code to fail as soon as possible when an unexpected input was provided. - -There's a module called `util/preconditions`, loosely based on `preconditions.js`, based on `guava`, that we use for state and argument checking. It should be trivial to use. We recommend using it on all methods, in order to improve robustness and consistency. - -```javascript -$.checkState(something === anotherthing, 'Expected something to be anotherthing'); -$.checkArgument(something < 100, 'something', 'must be less than 100'); -$.checkArgumentType(something, PrivateKey, 'something'); // The third argument is a helper to mention the name of the argument -$.checkArgumentType(something, PrivateKey); // but it's optional (will show up as "(unknown argument)") -``` - -#### I2 - Permissive Constructors - -Most classes have static methods named `fromBuffer`, `fromString`, `fromJSON`. Whenever one of those methods is provided, the constructor for that class should also be able to detect the type of the arguments and call the appropriate method. - -#### I3 - Method Chaining - -For classes that have a mutable state, most of the methods that can be chained *SHOULD* be chained, allowing for interfaces that read well, like: - -```javascript -var transaction = new Transaction() - .from(utxo) - .to(address, amount) - .change(address) - .sign(privkey); -``` - -#### I4 - Copy Constructors - -Constructors, when provided an instance of the same class, should: -* Return the same object, if the instances of this class are immutable -* Return a deep copy of the object, if the instances are mutable - -Examples: -```javascript -function MyMutableClass(arg) { - if (arg instanceof MyMutableClass) { - return MyMutableClass._deepCopy(arg); - } - // ... -} -function ImmutableClass(arg) { - if (arg instanceof ImmutableClass) { - return arg; - } - // ... -} -``` - -#### I5 - No New Keyword for Constructors - -Constructors should not require to be called with `new`. This rule is not heavily enforced, but is a "nice to have". - -```javascript -function NoNewRequired(args) { - if (!(this instanceof NoNewRequired)) { - return new NoNewRequired(args); - } - // ... -} -``` - -### Testing - -#### T1 - Tests Must be Written Elegantly - -Style guidelines are not relaxed for tests. Tests are a good way to show how to use the library, and maintaining them is extremely necessary. - -Don't write long tests, write helper functions to make them be as short and concise as possible (they should take just a few lines each), and use good variable names. - -#### T2 - Tests Must not be Random - -Inputs for tests should not be generated randomly. Also, the type and structure of outputs should be checked. - -#### T3 - Require 'bitcore' and Look up Classes from There - -This helps to make tests more useful as examples, and more independent of where they are placed. This also helps prevent forgetting to include all submodules in the bitcore object. - -DO: -```javascript -var bitcore = require('../'); -var PublicKey = bitcore.PublicKey; -``` -DON'T: -```javascript -var PublicKey = require('../lib/publickey'); -``` - -#### T4 - Data for Tests Included in a JSON File - -If possible, data for tests should be included in a JSON file in the `test/data` directory. This improves interoperability with other libraries and keeps tests cleaner. - -### Documentation - -#### D1 - Guide and API Reference - -All modules should include a developer guide and API reference. The API reference documentation is generated using JSDOC. Each function that exposes a public API should include a description, @return and @param, as appropriate. The general documentation guide for the module should be located in the `docs/guide` directory and is written in GitHub Flavored Markdown. - -#### D2 - Proofread - -Please proofread documentation to avoid unintentional spelling and grammatical mistakes before submitting a pull request. - -## Pull Request Workflow - -Our workflow is based on GitHub's pull requests. We use feature branches, prepended with: `test`, `feature`, `fix`, `refactor`, or `remove` according to the change the branch introduces. Some examples for such branches are: -```sh -git checkout -b test/some-module -git checkout -b feature/some-new-stuff -git checkout -b fix/some-bug -git checkout -b remove/some-file -``` - -We expect pull requests to be rebased to the master branch before merging: -```sh -git remote add bitpay git@github.com:bitpay/bitcore.git -git pull --rebase bitpay master -``` - -Note that we require rebasing your branch instead of merging it, for commit readability reasons. - -After that, you can push the changes to your fork, by doing: -```sh -git push origin your_branch_name -git push origin feature/some-new-stuff -git push origin fix/some-bug -``` -Finally go to [github.com/bitpay/bitcore](https://github.com/bitpay/bitcore) in your web browser and issue a new pull request. - -Main contributors will review your code and possibly ask for changes before your code is pulled in to the main repository. We'll check that all tests pass, review the coding style, and check for general code correctness. If everything is OK, we'll merge your pull request and your code will be part of bitcore. - -If you have any questions feel free to post them to -[github.com/bitpay/bitcore/issues](https://github.com/bitpay/bitcore/issues). - -Thanks for your time and code! diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 96b54d3..0000000 --- a/LICENSE +++ /dev/null @@ -1,32 +0,0 @@ -Copyright (c) 2013-2017 BitPay, Inc. - -Parts of this software are based on Bitcoin Core -Copyright (c) 2009-2015 The Bitcoin Core developers - -Parts of this software are based on fullnode -Copyright (c) 2014 Ryan X. Charles -Copyright (c) 2014 reddit, Inc. - -Parts of this software are based on BitcoinJS -Copyright (c) 2011 Stefan Thomas - -Parts of this software are based on BitcoinJ -Copyright (c) 2011 Google Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/README.md b/README.md index abc10e3..139597f 100644 --- a/README.md +++ b/README.md @@ -1,55 +1,2 @@ -# wicc-wallet-utils-js -Official JavaScript library that provides WICC Offline Wallet capabilities -## Key Functions -### Generate mnemonic phrase, private-public key pair and WICC addresses for mainnet/testnet -[Example](./test/test-wallet.js) -### Offline sign registration transaction for newly created WICC addresses -[Example](./test/test-registeraccounttx.js) -### Offline sign WICC coin transfer transactions -[Example](./test/test-commontx.js) -### Offline sign contract Lua Script deployment transactions -[Example](./test/test-registercontracttx.js) -### Offline sign contract calling transactions -[Example](./test/test-callcontracttx.js) -### Offline sign delegate vote transactions -[Example](./test/test-delegatetx.js) -## Get Started - -``` -npm install wicc-wallet-lib -``` - -``` -bower install wicc-wallet-lib -``` - -## Contact us -To get community assistance and ask for help with implementation questions - -* Telegram group: https://t.me/waykichaindeveng -* Wechat ID: wjlT2D2 - -## Development & Tests - -```sh -git clone https://github.com/WaykiChain/wicc-wallet-utils-js.git -cd wicc-wallet-utils-js -npm install -``` - -Run all the tests: - -```sh -gulp test -``` - -You can also run just the Node.js tests with `gulp test:node`, just the browser tests with `gulp test:browser` -or create a test coverage report (you can open `coverage/lcov-report/index.html` to visualize it) with `gulp coverage`. - -## License - -Code released under [the MIT license](https://github.com/WaykiChain/wicc-wallet-utils-js/blob/master/LICENSE). - -Copyright 2017-2019 WaykiChain, Inc. diff --git a/benchmark/block-357238.json b/benchmark/block-357238.json deleted file mode 100644 index 03ef883..0000000 --- a/benchmark/block-357238.json +++ /dev/null @@ -1 +0,0 @@ -"02000000dff776908b8cbfc363cd421dc8d233b8340c9c82aa295d07000000000000000094c8470331881af67ede892bfaec01a0dc238b1f49a8db49ec974151451dc9952a405c55f58616180b6ea042fd710101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5603767305e4b883e5bda9e7a59ee4bb99e9b1bcfabe6d6de8af9d3e87efcf95d1d9283083ad9494e78a00a6266fb905219cf46ba59d8de61000000000000000005d2e5331aa00004d696e656420627920646171696e67ffffffff015f1f5195000000001976a914c825a1ecf2a6830c4401620c3a16f1995057c2ab88ac000000000100000001d73d5c90f4012a4692c16044e7218f1cd4ae88c5634e50b5a9e3edb77d2a6007010000006a473044022065fb9235816b88ca8b9935a209b19eb9920166a9be5ec3ec98f0cc4f1eb8e92602206221445c268ba8f25d7d0719baba48decbeefd7bed81c738e76a9f77bc444b4d012102181125824b6752a7a4b6a68f7eb2a0338196e26835b5026688fb27c440d140ebffffffff0228785a00000000001976a9141c14fd16948896b3d531c85d1f6b5cb5e9803f5788ac365d8fca060000001976a9142abc00cdaeb6816a644781b16dd3764859e8c79d88ac000000000100000003b61ddddc724c813d3524e0e938ee427486ffe33199cf3030fbcfd6f24f2e9d3f000000006a473044022075eabe38ca7e42312b8acfb3dec8c52ee6533e9699cae15ddec429a195cde4820220714c6540104eb7bb8584385cc627641801782553161f74c0841cfd0f87dcbd09012102388cf4f63763792c8bc31b7f9fb7810f3d76252924afa03fa5b8df2c4b7f23f5feffffff9aa1906b76dfcb4ac3915d2bbc4993df20a7173e4f4283db7d0199ca215965a0000000006a4730440220588c4b23155144874d2ed8c6e094fe273394b608869059d7a337384ab45b75550220444451f80495b5b2e3db450cd3a658c6f59b493e6b26a52080eef37c3f6846b50121032805bca89441dc0c0204deed677e5c70e5122ff46d7e689133b30ece1c402941feffffffb07c99d494e170a86dfed9c26d7c6978c3bf09c2e11ba0a2d111f6e84a2640a9010000006b483045022100933195eee1e8746eebb945ea587d950c5b4abb6aaeb5041788a9d36c3c6f2c87022062e971cff6354d0ef3ec4a2e42ada3937b239a6426fc13aae52c41084ad3fc89012102069711114026b14654b41a6a48a1d6f584c54140de4a7e5559ab46489e973cbffeffffff0229ef0f00000000001976a9141707adc467eaa4063e4cebebadb1ecd64455c94c88ac5a341400000000001976a9141717df2106312e23d0a0c81aacc02e93c5b59bd788ac6b7305000100000001b27f317f3ebd36213a96eb82b855ff984bdb29af1116eca61f5afdb6dec9b2aa080000008b483045022100a26df8e4f840886125f054563a0eae422317911f8a05aae6083ed4a897b1eb4a022045bd1756aa7a67d0b39590c2b77d045177860ce2a882770f87c261c5b078e0220141041749d8bc9b9f26c8bc5f04c53bc5250569743d5c795a948e52119669c30150167ce3bf2f68f92b3ee2208fbece7b7a9aa2daae0f79f20ecfdc2f96ef13cbfc38ffffffff022b14fc00000000001976a9141874412f8ca28449b9ab69b87692de600527425788ac55709301000000001976a914cceecc96ed84b1ffc64bdf9f9dd6f46a0f2f244e88ac0000000001000000059ea012fe00771c442c3aa7cebcec1d07c75803667fe12b26d8bbc22d8dd747e9080000008a473044022025597889ad3087e3c1e259a327e953544c0d7a60466cf847fe89eb1a23f6a5220220509c3e72e5ad746a6d9f4ac3d2c812cd05cfd9b7bef95bf85c5090aced05490201410485b97e1e968ca47d47bb8723fc36de98349c806b6ca794936117424ec4a1e174f6c8bc5114dd27a2847abfacd0d8f316153d466d5eb9ea98740b881b9d0d5967feffffff220486e4b6aa0e718e0391e04229dfc8dfc4b9cc1b11f81c9988d82ba6538c3d000000008a47304402203b7bae428655e1d0c4d2e7f90b6147d374eba0fc3c3bc002ceac8631f66a8a90022031fe25627248f705c22278e18e911482f2aed5432dc8f3d8b70d3a38410f947b014104bbd70f82b340784bd90d4c0ad4faedc05d764f6234cccd74801e5650a1079f21a9bca7327e5e82a344e8f4d36280adaef4f0fbf7912a17e917d30d725cf158affeffffff7e70a6981c26db7d0a6243fd2d4f106add6210944a9d912af9c4dd954acfc945000000008b4830450221009aeb94b4af07479057378173e4b125c2211c05eaaacc2693807eb3ceb2b69d7c0220072e0db6467d3c5dee524579472cf441f558d9fd4d8d4c7bf654a19789892e360141044e56e73f29b830a47958db52d734860bc413da97d421e6f1ff57e7b37d5343c8e306bc745046db45330a5261e64d632c3db94e5712a35a35a79262656cdce0a2feffffff6aeb7f37c2e6cc6d984955394476a593c928833c16602feed012480560249abe000000008a473044022072be600922a3a8cb88a35cc93892af506c1ac050a27491f52f58821ffc35b86e0220535d0f805e3f6f2b9f54064dd50ca93ed0f2129616fd2525b704fa7550f7cf7a014104fe16d056a085da2529a8ab7531e0fe9cc99750002a9fda24d9b3df24154958694d1b7ad0eb0c94e25f6d2a26f26e86525c2028953bab857fb4e73ff2aa4b5237feffffff49693c7ed8a00ff3d22fd0c04fa0c4f3033afbb3c825bcf7eec22f05e2ae071d000000008b483045022100fa82ee5db88e98ceeb91ab290cf38e467881f7c910fa5d0f618aaa8f2266c8d902203f06c66ee3c6d460e722893101c9cb491d6fcc40963a9bf0eb885b23f20c1886014104df183cd9f0ad9355730e3031a63d6077efc548984d971bb545f16bbe3b96e21839bc3356c187e67a493d357df82310d897c75bb0d118c2ed706eae446407d02cfeffffff02b9480f00000000001976a9144d187819caa754acd6a09791883326f4079be92d88ac80e7bd02000000001976a914b638d0a971d6fa5100690da506e998130264ed0d88ac6b7305000100000002066059d1f44d002dae496f2987b0e9e9a51c11cce9d03d5f110804cddf275c64010000004a00483045022100e71e1ff0cf80067f41cb4005b5228c7fa79d8a276883581ebbda463b4fc5f3e60220531d433eb6309117b82c6905e59c2f7db6b89367f7e51d3245ffae5aed78267001ffffffff066059d1f44d002dae496f2987b0e9e9a51c11cce9d03d5f110804cddf275c64020000006a473044022020d376d82b42597793509bb86a4c7c36861bc6d1c1560dd1b5f6475abbc2ffc3022059b50b86387b42bccb7362a5dad5e09e19e3b8e2f157c6f4d320e7d7463538e10121030a359f43e33acce58ba94cb68997f2ea32efb149998bb88f2426b5d6ec056726ffffffff031027000000000000695121025442303030310006a01f6291a39f2e81131821638dee132f0003000000000000210254423030303100070000000000000000637573742e75736400000000000061a82103c098d6eae67f30e46302e8bd1698a13edaaade40a2fb2c45b9ca1ac04a03962153ae10270000000000004751210254423030303100020000000000000000637573742e7573640000000002d6b32821030a359f43e33acce58ba94cb68997f2ea32efb149998bb88f2426b5d6ec05672652ae80a90300000000001976a914a9278558b535733ed21754b2fe90ed09de3ecbe988ac0000000001000000035550506d8843676f474773dd9ba50bf1757ea2af25bab9d041dd10286698fcb5010000006b483045022100c638fea092793fa904bb9465e765d01cbf35bb0c0d34b347440d94ea8c36a66f022006d27bf81a03e8cdf5a78c48f633e7a3a066b70844a92beb040c43c16efb5f00012103c7770fda634ec274372d37f03dda791043a25cfaf6b1108e92fe238ddd9f2a17ffffffffa4e9d670eb433c9c02c0e97e4d2992da6d9ed763fcd402fa35411c2f5b9bf2f0000000006a473044022043d79e0bbfd38e5164c3f4ce8de7e4184e60092ae3b723594c5e443f6588f43b02200660dc73584ce6d288cadb17b8f4c3b46449639cf0aef18e35df1876bbc192ec012102b93a5b43e830b9a533ae89a16c1bed754dd3b81210a7b1e6e1849acda3d87298ffffffff6862c6767d037a0c51d50e56e41ad93fcb32c79d0050418ba25bcef571e729c7000000006b483045022100bddd7ca5db2943f491aeb08cc01093ed8a47326729d6524c7dbe3c102c7250d302201cad58c85bdee56cde6cc007b3b009ac77ff011cd6f8e94d9f38455a1caf23d60121029b0fd27f90f65cb7806452c47be95b0d47473d4456d85a67d1394812b8444d0affffffff0278d1b302000000001976a91492369f23908d091f783d32d4ff6c1c8fa0e6124188ace0ed3700000000001976a914f00d8406e59a45ab7e97c0b04db7f9429ebb301d88ac0000000001000000010a8ffd8997b353519fe987cbaf280f25018293006c9336e98199ad2258543095010000008b483045022022a60231f49b02fca872298eb7077455c00d42f029dd85af9eafd64eeaf9f496022100e2f14a6c7dcf7c937350e10fac083cfa5b545e31d8a8632d1474269a2a12ecf80141049968d5053be466e3c398f5d6045fb88576d9dfc6a48a3f93caf63f5182d2ddce8dc394ad4abd419ce50a03842f35d824a24d0f9224ff9e424c27635afe821516ffffffff01d0667c01000000001976a914ddfc115356a8aee78c3dff41b67623b34c8ed71488ac000000000100000001aa39ce07f91292d5e50e6940aa4e847ff36b14ddd22e32bb818ba8313a1d441b010000006a473044022010a6400966914282d27e1c5319ed69ce661024f2e2a3657212d7cc06f36a7f0702203fcc022b9432a7786479903bd871e13373a8fdb9ca655a7d1ffd5f1015ca3a090121030bf390e50be47f35271f7ff784c8a31ee6d728a05f020ebd2956eff637e4d628ffffffff0250ffc70f000000001976a9142a13790951513e0eacfcf5c787e53c8ff6789b5088aca0f33f04000000001976a9148065a535e5f61d63a781ddfaa0b1f3ef481f928088ac000000000100000008dcf8dfdd94afee9459fc4066350d77d8893fe107c28fd805bdef42d7e2e91546010000006a47304402207e263870a5026d5532ca29b9f2df0d3f129ecd2c0e103bad7ebf9b5d78e4930902204a1f136297a6115269deca648879f81531872cd99ff0c5c608f1116762c02f950121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffff9a6b13557c83e7556651a9749cf2ca255b92f612508f302416552fc4bc0e5341010000006a47304402205a15be4b0ae1f4ed7b34d14d7e369e7c247fb11ff802f2fe9be7c50e8dfe498a02207e4e4fc474350634497da2e8e6a248d8808bd311daf698932a30ddca564071bf0121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffff2cd87672f92ae36bcba7ca9a5e5bd8c7cc667d4a966cd5021dc935c35801eef9020000006b483045022100e722da39a270ae8b81a8782ffad5f14532102d6409c3818b577a82c382a71211022011c6a1562dc522a7eab518dd27669e25ca450c7509a709618a9286a1bb3b81570121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffffaae392c7bb3f4bc25358b69d577cd91bdf8e3ace571cd9cd45bffe9c3c07d128010000006b483045022100de95f6337ce508cc9b89aaccf040c7ac3456226cf9063a39ef53c687c9847b8d02203fdaaab93e6845820dca867ba086cb86ec33954ee25c40792ea9294b52e979680121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffff268704b94df7e0ab522419ab4420eb56d80014a60adca1da14dfa393afefdd0c000000006b4830450221008e7909240bae3249436ef51f933fd845540823f2fe6abb23469ca79dda693d4502207b51aa110ba4ecfb05cf1ccbe877c666e946df19fe9343255885d10e672adb0a0121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7fffffffff5448c167bdf10e5c2bf7bd6c3cd8f0044b22220e8a3e7579db27630003e9c05020000006a4730440220126f27403eb28cd1a4582286b8b4674782744a70d6eb5f52f9c52b1a9161b1b402205089b41f8f59d9166c3ba462610da8b4c1c38258aa254fe662f768f29bd3cdc70121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffff946aab125b0812821ec07e95b019713bca11ebaa3c0ac99ec8b4d367b43d3775010000006b4830450221008f87cc69e2bc92cf9f5264599e324bfd26586d11383854e450e013645d7ccd5e0220079d5cfd2129bc5a317aa030d03cbc75aaf19309b3540eb4e1b6c178db6a0b0c0121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffffe9e8d2d09ad4a1be40fadba8f13ae05046d723675c583d83aacdcfa5fe18877e010000006b4830450221008617630a622685c89f3bd6ed0696001b103f568070b70de9cc49fdf9f13627e9022062a657b65ce16e3cd39fcaf41c5aad0907144b51b38424863f01c30539c4898c0121021e31286c929729c2aa14a2865f34c22346d307845fe38fe58b6ceb06e2b860e7ffffffff01fd04e375000000001976a91431184ddc851e36a6f39918b2960a191d91b6c76388ac00000000010000000176e5da424a4be62cc19ff3c5ff3a8d3271329277b92816b9b139b11dbd730a80000000008a473044022070441fb3ceb2aafede66a9934984fee9904f1aecb31297132a46553ac50fe59502203008dad3ce7b48aea41e7737a23f03585988498c12c9a07862a3c87384c9d9bc01410453c2594391811f5f77fca5187fe7284e0e5778dddc8448c67aa81cc9b0c8b010aedd726aa87d1737abd22dbd423f7325e271fcb6d6867f6e257d8bcf50000614ffffffff02ec822c00000000001976a914b3900a7d5dcf83b7fc8d7e3154b07b776f239ba788ac04e72300000000001976a91479b7d1d2b783f73ab61ec88fbae2e56c0eee7bee88ac0000000001000000010b1049a52126fa02eb3798bb4b43578b2d03513a7b40f78168a9378419ff5ed2000000008b48304502205bf4997ccaf0314628c05868717823f89979e41bee8f4a512bb3b728c256f649022100a590d50b0cca5ef5f82beb074b924554cde69edfa2624fd0e0b2de933959c92a014104584f01f019c00a70c69941696dab6515d15c8875038b259175061abe07ad4e4ec981c94d4a23ca1e70dc13adec0a10da2cd22aa2fa5b21a24155854ce66eaf99ffffffff02e4217428000000001976a91435a9b1485261ebc0ac0bf36708fa5c06175452dd88acfc157f00000000001976a914309778abfb8ed9bbe624994ea3ab6d9f911c788988ac0000000001000000018f4f289e2e6fb064c10bd35a699b5426d542e495f7ac8a1b876653c45db3c82c000000008b483045022100e6e9eb3fffd196f29300fd8f62c39564dbaa09fab37cd45cde98c49c300ae8c4022028fe6a183ba5124798139be76ef443cd8c863bb2dcb2ef9b2900ef52084a83c1014104eede7afbb8b7d2cf67155e6f872acfa3361aa5d4e73bf0d2598d298799315a6405bc3ea85712f43a8ea74353cde4b03e0b03b33f5f86602d4e4a79be5988a025ffffffff0214741800000000001976a91430695e87c91a00a3b9c203c076c970a2704476fa88ac84e28301000000001976a9143188ef666dccf271d14ee73cc7e7a849b65a146a88ac0000000001000000011f734d81d4d6d72c8885d87b70895442891ff91bbd7db304fa4d112c20387e86010000008b483045022100cf9e45ab28ce16fe46fc0ef7f6684891518b7026d4a89cdd6e0b46374033625d02204b47035352d30560493e09e8447780ad9229d077ea7a02eb4cb8110a0113cb1f014104eede7afbb8b7d2cf67155e6f872acfa3361aa5d4e73bf0d2598d298799315a6405bc3ea85712f43a8ea74353cde4b03e0b03b33f5f86602d4e4a79be5988a025ffffffff0164948301000000001976a914ec8d47c394ebc7edd23558d502799478b03511f588ac0000000001000000012d8705543251d4263493d3123b143f913cfa2b0d019249ecbc95d5f894348a9b000000008b483045022100ef90a7342fe63bcaf326648b927f0c7ade7ff00a92a18f1292783eb87456c8c502205ea535de93b38adaeac5d31c541ce83a674d5fa1381d20a88f6597c154194c080141047514c08fe46c28a8aeef978ab6c80f44412d4e45adb23ebf369410e1db24fc67fc5e0c3d19988cfa00fedb3104c4359c7a1070bb394f3fb0f989a60b1fe52711ffffffff02eaf70900000000001976a91430695e87c91a00a3b9c203c076c970a2704476fa88acf2f3a000000000001976a91475f42e19ab22f181ae659bb8b57654cdcb163bb588ac0000000001000000018a1fc3fd495edc6d8c5d08fc55376bdffe7576c7ce8d6cc7d3bc6b65743d05f8010000008b4830450221009757e45377fcd1b5d311f1c1c5b67d5613c9e9d7dd262d5337c693d2fd04803f022025a1e5e32c24610620fb54e0a7bb39d1bb7c74c8281a64ed2089bbc599b3627e0141047514c08fe46c28a8aeef978ab6c80f44412d4e45adb23ebf369410e1db24fc67fc5e0c3d19988cfa00fedb3104c4359c7a1070bb394f3fb0f989a60b1fe52711ffffffff01d2a5a000000000001976a914ec8d47c394ebc7edd23558d502799478b03511f588ac000000000100000001221799b04a17495c1bafb4f01a3bce188f4cb5b39cace85404ddd986e5957214000000008b483045022100da765331c7458305fe67ffd713de3804f1990b42a3c564e0abf31bf6d8104ef10220355e331b523d3cc62ed30d11bdcc8aea53fd95ab336b336a325cd8f14390847a014104e316955a7f6dbeea88e45b93e8712ff10ca6adf068cfee4210c32d01a52a91795c7d837955bcea694634138531c1cb66c23abdb02209f78bd064ca1f4c160f9effffffff02eaf70900000000001976a91430695e87c91a00a3b9c203c076c970a2704476fa88acf2f3a000000000001976a914d285ead84a0011c2f201d67c3ec9ab605825cf0f88ac000000000100000001aa84edba72c80ba383ae1593d29501b4b18c1e3e5477ea3eff06453d4f0bec02010000008a47304402203b81f67235807523b55a48a1d1de8ba8abab91e04ae4aecfdc11ec6ecd9b2a47022049ea8336c6d818788716b38209db872451837125b941057883b04d8d1b1b86dd014104e316955a7f6dbeea88e45b93e8712ff10ca6adf068cfee4210c32d01a52a91795c7d837955bcea694634138531c1cb66c23abdb02209f78bd064ca1f4c160f9effffffff01d2a5a000000000001976a914ec8d47c394ebc7edd23558d502799478b03511f588ac000000000100000003076b09cb06578ad8db6b4ab14d2845918dd93e52d56fb8dd9a7aefe687d32a6d010000006b483045022100f0e2a31a98e77e12437ff9262c80fa24c9bf4e5707d941f9ea436b08281aa92f022065df85db32cb5845318737342320ad83a406447545a2c144d667ca4c2b4bd3d10121035b82476987874fb36d6ec3c51900f2685eb32ea0af26dbcaf4e352936c658885fefffffff535a7ff4141bb5e19c89929921f4c369e301568a262faa4e52034ed44aa258c000000006a47304402207f87020f51c87f271cb5aaa401f4e300011840905099c17083a6faab462e020702204e83206144d58061c6d4a9404ed5fe93fc670f88b670742363bbff1f9491cdad01210374ffda4d0d05f42725faf60c40b207a5fa130b2733cc8788cebc4edf83df00a0feffffff9ff39c885d0b21400d64ae86c9738c098ca5ca0bcac26623fde6c02178fb7cd4000000006b483045022100d023e89bbb4146f9b19e655da83e99d67ed3a0b20ee83a9d1aa653542fadc14b02207c9b7ecbdaab342b9c2ae72e0db11e6c21f6400ad976da1e4233c61995ab58f6012103e3146c787eb374e6743d76647b18335f51fe1bda826a81053f8c4da609a2d403feffffff0220bf0200000000001976a9146139abbba94f0511f01bae46d03984bf3328eddc88ac33770f00000000001976a9142579a29c3d7beb7d727a8b7efbcd9ccc090f773188ac6b7305000100000003c760b315c2037109790e51cb1f139e6c84b8b12f039a2acde53ae9bc0544711e020000006b483045022100d521334b3b5983a3a7fa029324a9c841963ae3ede8cc8b7eec42944eb565f6f502203709644e9745d212d570ca311893f277313eb1a80bb98632dcaec35be647e8d4012103634e6959e745804a48abe16a2ddeb610602cd118a34755bcdc90560840435e34ffffffff78acca93811a4d6b153070c3c31ec0232546b3f810c7fa8f9b3e7790eb590877010000006b483045022100bc1660c7604bd06c165df612685ab230d3532dac54b7021f90db367a3b6f7e8602206d43599b28fad0ac19126588b5c516f90a03e3c2f738b8089751bc801fc591a6012103dacce46f47ad6a668eabce3e9d1b0d11ba8f04c8237f4e0b44dc23dcf0b29ea8ffffffffbfeef9e9c1c8bd197212dcddc177508b5e203b8f3540e6b2e73c4e8916b3954f000000006a473044022052245545f80fe9f8a65fa72998a241dba23ec296ad274a5547055fc418632402022013f5a6189281e133f48e326d11055e1ac88ce50f041db490320f626a220f951401210289dfc24b6ccdee409259a7d851cedddcfbcf3be172440b883988497253049307ffffffff0157e25d03000000001976a91447901cb32b5c682580450753bc56f5959cea56be88ac00000000010000000104a098b36afe0e2a9684bd74d0cce542fa46e88583b15a049b7d2422e202d297000000006a4730440220474f4b189cb566228922a9986730e3b65141b3e0dfff6104ea987f9e6a9c21ce02204df177c1f4834ee63bfb4658839c6ce4ae93c3f08e45bb86bf9b6bbde9cc09d2012103ec4215d376c572beaf1c48ad4ff69162bd4a1efe8948ca578bbeb99fd1ab80c2ffffffff0280880000000000001976a9141d3f3e7811def0f11c19edb862d4e0eda2d31b5a88ac204e00000000000017a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87000000000100000001551cbb8a6aeacbd2b969e1dc4b4cc5b5f252b9a10b14f80d87eccfeb1facb591000000006b48304502210081aa4fa55d12a533389978c908395e9461b87afd861c214bcc96fb603914059102204df77a93c685827e750e69b950c5542488c982cc354dfa4fe62511635cfc85ba012102f9b024cc53a145393bd7db45095cbe0867f1c46f608f78dc6a4219f97899711cffffffff06d75900000000000017a91440a755a63fbc5772cdf08dd13d09eb3f53c4314587979e4500000000001976a9148be16414db228a6e4d9ddef614816e2e9bc7cd9988ac845800000000000017a914177b27b818d55fac1fd75c429024b1b8bd473c3887b45500000000000017a914ebd2d9d3ab30583c9dce846538f85e3e92436d5787d45800000000000017a9146302519cf2a23afdb1c403245fb6447caf75fe8887286e00000000000017a91419b2df584562bd1bf9f05a6b91f219b912e8aae487000000000100000001b891f1aede1bfb556dead6da9679084feaab2a443ac0348262bd292e2e119b47000000006a4730440220798d20631fa10067cd789b78fb2e414d0a37201794fab59589433952a4a7a55e02201079016582b69b2ffc2a7979e06d2a4a04286b329fc8f9e47a16d203a8dce3d0012103753d2bc5dd476a428cdbf408f3a18cf64bff8d3e0c0d3e66412062092faa6daaffffffff02e5a87939000000001976a91452ec7c0f46079166be2913f2a56c484757b79f7388ac00c2eb0b000000001976a914542d1fa1fd285d2b8ecdae3052cf5b5e0dbc479e88ac00000000010000000149a27000a23b2c8372329a5d91d9d716c1b7bff5978b07f5c3fa2e917e0cfa6e010000006b483045022100fe0304b42ccaefa198c8c8fb79e5dc9ee90264c91f0660f3066014c3dd7f4a9c022072fb076b956763ddc5bce425537add720497fac9f4fbb116a16e767ea118d36f01210387bfc30f41630ba2369fca54448ffb65d2a2e1e2b6a29d3a1592967d6fc1f6e3feffffff02da61bf01000000001976a91433655fcb7c93ec46c9ffca277e9a921d177c5eba88acc8418600000000001976a914408446ef75571b162aad83464a370909d5ef30c088ac6b730500010000000121fd41243d2d8a41e82cb1688dd9a69b0bb44063add5bca960c3c77b1edbe55a010000006a47304402206e1c5625bd11694f1e9d24ba01753500d635d01524c3e17c2188f3499c71b642022044edfe0dc089c661a5d1e59117f60093a97bd481f5e0329e438b79b268730ddc012103b392197b7c8aa33e913d11abe47aacbaff0f82573d73b4017e3c469d6faf7e4cfeffffff0294702020000000001976a914370618eec9462bdb84041cd9efda5dd8678d413f88ac4accee00000000001976a9149f74449dc90fbceb3a01bd122f2d94053014e19988ac6b730500010000000130025f9c35a6fcdaa596b94a41a9c679e66b2c8d8059633f85f27496dd533346000000008a47304402205da0fc5e4a4d179bfd6a074e6250944b2d2967f2fab12e0951633cb45190900602203117dfa17feaffb3c9323b58ae488e233daadbf48fa83a1b1851b1b9dd72c3230141045df6979005f1c6aa18c3c584a6f2eb497dea8063666b501af64ff704796cd00c89a76fd880852fd7d4a39e7990225f63bfae738ec8260dedf3aab4b69e4ed8c9feffffff02e5a4c71a000000001976a9140a2744a882cff0ee83a607bc9543df6f59966d4e88ac005a6202000000001976a914f41e218ba91329c8589d528e8d5127f58629ce2988ac6b7305000100000001f948a63540ac888b7787904ceb2d18051bdf45d9b988481d4589271d9fcea686010000008a473044022075d631b4ced8dd0eb5e8ca55641b06ba720e3fcab383734c5e42103434b0051902206fb3a1ed0fc63021000ad911f6a37f128498579e75789a0d06fc37a4fdca8ab0014104cee97d83b2217a920617452d2ab704fc6f67c624378710d440c6aef7905346fab8cf7d2b22853012d32d4a2791e02e3727abb5cb2edfd1f89b57e9333e07f815feffffff0210d64b00000000001976a914e375e3edba517501576a696121748de6b0728d1d88ac27691f14000000001976a914df8783d628d4c9ba82499e6c2e6a770752249cf188ac6b73050001000000017de77a4c0886ce3525583c5ba530e1afac84e2c974fab78ea39ac2cb1847a422000000008a473044022001a93308ee78cc06f6c1f64e009946f08dcf8298fe4285bce7ac8d6acb398ab1022023bbe8892445cbd71bced8f3f6d78cf4687808ce9b0c5ea053e977e80f8840690141047057ea524f27f1be6a3fdf2175ae107e62e4d006c1714f0e767a204ae1224a0555bcdb46700249132633727be8333625bdb8e1ab11f223edac848a0d85c2fc42feffffff023d7b881c000000001976a9142d18177007b598bb5f5f88f2c7b25df41caac9ea88ace0de3001000000001976a9147c8c335356fcd6895a2296bae552480a4aa8352388ac6b730500010000000145abc36bb9687459ff4de1894b127d974630fb1a3d73ade474eaf7109ddb9659000000008a47304402200fc913fbdb56af117cfb97d2bd50b35094d9e44b7d802819edf2b74ac26c13b90220675082e79bb392a428ddda8683061afc260ec6bfeabda35d834790f0587d6c8e014104b367f3f19344c38fa5435d0d12c9146f8fd49119cee2d498f8a96797f5165ddf6cd2b6b66f5b21d5993d7f02e6de5e2d39b2eaa420e2393736ba862365fa758dfeffffff027dca1005000000001976a9145909af5dab4516664210f686958efc1fa8ee062b88acc0f35e01000000001976a914d409ae9abf2892e3b23b7e411cc4af5bbba4c03888ac6b7305000100000001d94c39526b098947b973163d9511da14926a1af4fbf2355c4446b2a59dde3137010000008a4730440220739c85353049baf5a8a498df6fca8b2631eefb28c67bac4495fce3c1530bdf4e022062ecc477af768ee743b82fcfd4b5664392c5d2f20475bec1bae567a3168eb5b4014104da7dde0a4f252f9987cc301e7c6560bdd8bb85a908ba1a6936bc96a2f871ce0385bd4558fa5b1d2939554a47394de736c41be002935c19e9022f0e0f91c20275feffffff025d2beb02000000001976a914ede1723bfcd10f72b1633c21d3299ad474ca01a788ac804cce00000000001976a9147ce7695c6069847d2e50b3ca0eb5382434fea9d088ac6b73050001000000040c23a4ea2254b76a21da06bd2229e91693f6d3e58cab4acc1a56020ee2ff1e1a000000008a473044022004afe613bbc70b82f276ed2e1fe9999df600491f8f99d6b716cd145c46c7d30202207c1e2909d890a0776d5f89386c12f80c8a52f2714991dc2737d722a1d5ca66090141043fabd43be8e1baad3318d58fd0835e207255208c2c310c32f378bb6f2ce5531eba206b5b576c4c450e4e7b2736c2a8c2be1dbe02b88079e770ed86fd12e7fdc9fefffffffee118e884774fe56f2048a42fc875cc5d53226142feb1b0f3b8ea1d424d8aa3010000008a4730440220385623b0f3b16d7c34770e45351c270c9749482527c1e5d6162f51bd844d721a022065da6b9f444cf3fab285eedec5e41d098a1a59b90144c2de51c4f8c31adeda7f014104860b649d2244e5862598372cf98f3111d1e039d1bdd0fa6658bcb35e90aa526c0059120c44ea4d53829e43949aa7c9f86ef3d1a37dc31e67616b8e5b00f6a719feffffffdff8238a2350a9ce5bc8a627e76be82a725d5f8705b249fe885126ee7db249a8000000008a473044022048c31419046b29f68e14c57078615fa79c682061cd435bf56fd916ef62e6948302201e1f0f736f3773062aeff6b20c481356706a947970feb305e319764eb61d8cf80141046c407066b6745238601c096c40838c3b63c7c38eb840490b64f0d3f63421aaa566f65269e94b26ff93ea2f8bef5cb12a1e491c2f0f1c529376ebc8186c5f6a49feffffffea002a1c875b4358518c6c6c00e6a679ade13e7fc98ec466e6b93ce4a6ef68f0030000008b483045022100fee134e87fd8a4070c32a410fb29eabdd9c95316688c9d4166131c96f683b11302206cb684a07e70e380d076458c0d8791bc174aab6f316a3e892aca48a24cb8c32e014104de2e5df0d8f8c4a3758996b407a33aaa9a7545d11403eeada17145c1f9c539c67a47b6369d3bcafbd3de483b4e9615a783696542803315a92407be89f3c08a50feffffff028014ef03000000001976a914da53c3330fb2a9510ed3f10d217ac675eaac812688ac691d1000000000001976a9141d25595e1e77e4074c5c215835568a09520942b488ac6b7305000100000002a4f921e8751b3e85f874b6517898fab5e67ab89d6425e99d7d30bd21f91a361c000000008a47304402207486b729088ff9da6cdbd14d2474622723ed5a7b4e596d6a7b8b00d2836e6e560220571640262fc47edc85f0862ad98da17888f9a655f2c08589062ce5b089660a5c014104534c91d1033679ebef054d26f83926c0d635b434a8252791246338fc6749a2b217720369d33c8c9162ef9311cede8e994aba718ccd5a0feef2e93ea47fd24c44feffffff4e274a32f9135cc711c71a5f9b468230055d0711d5c7d3c3211ae8fe2a1053f2010000008a47304402201c10e9c402aacea7ade976a5c79da7bf59af6a4e66c28492636d2e3dcca772c9022060c5b3061e48bea5ff2fec5baebc9efe88bfa6d23f51ac0d7490b7d3bf037752014104751fca4ddadb7e29d9290c4c7fe20232cbdae2cddb3f201e9999716a9007f7f6d063c0667d0122e12b0e5c2d69a9afc0862e95772722f949296d2374541e95c0feffffff02dca7d601000000001976a914679073654786942f18aa47ba13bccde8b27ef7f488ac90ecfe06000000001976a9148a078a671cb1e43fe6a9b3273eccfb806764c23b88ac6b7305000100000001e90cd5e374dc13316f0bef529ee06e98724fa7c313347b14c023df8a2f8009d3000000008a47304402205dc25bd364bad5b94c61f2543598846e2d19e57a473365412df342da47efc8f102201b369031cdfb44960c3648c35828e931236c7aa6ae2bf3c9728a7fb032bc93c0014104696bbf8b348769de91da3c154f7bf5d4541a217d278154dc65df2688c6e402e4983ea21a9dbace4c7b829dc29a901dbf0707975134c3174d2ee8b3e4ec88649cfeffffff02c0d8a700000000001976a914c1ec36cd5aac57fb267152c58374b4acf68eaac388ac599a2e01000000001976a9146cbbb26e733385908ab9a22d68fa5433b95e5e4788ac6b73050001000000026cbcfaa83de070785187262936e2e2648ae25c5e33f802dfc323b5e7ee2ae117010000008a47304402205aac00fccee79a44d03c1d8ac6646820d66efc424eca5b262b30183c865a4912022015cede804a0730aa93c085bdfd9cf0d62959cb272ca6cf09eff7a56c77891b010141042443eb65532c904cac2a2dd110c37e1f2394ba662f99f46e031a7d4de3822c2a60597f9b112caf44bb4a3e2b039c9734c0b3ce6d4d9cf69052158452aeaaf048feffffff033d639996f7201f09f117d4adb0af9b801d547c25df536f24eff47175f9a8de000000008a473044022010307b9a3e13d5e3930d518501d8c052c5063eb6959854acf0b19397f551b2ce022026acedec8fe4e626adb769443b329eaccc34eaf5a47224e7edb70fc85185db5001410493d25b6077915bbb772c179706bb03dcaa78ba11db625fbb8f30534a966552cad23620cb913092756568202bedf9ca61bec1bcb6c084840121de70c848dead7ffeffffff02a0d88803000000001976a914456edc10750cb6196e10d363f2b7354c1ad5c4b988acb7939000000000001976a914aeda8b4c43d5165d0771aa5e0c4606cc8771813288ac6b7305000100000001b3b3057c8edc25c22ff8dd196220082eb6f55621b3e4789b0b98d4a1bf12f9fb000000006a47304402203b167f7aa049e3aa2d48eaff085af956712474d64901085b999d7010a9fc4dac022034c575f3c086ce6846bbea39ffda73548ae18d5931985dda6c8d9fd5aab054d501210375921ce0dafde0ab7995f1c5aab9e8f28343e92d02bf9d58eac51e2600cc6405ffffffff01727eb404000000001976a91482d1d4412c2960cd904f65b406b14bca8e0faabb88ac000000000100000001aedd6713608438f0ee6073216310f920902e0cb6ff56e2318e5d62f180801c34010000006a473044022069db66dbeb9efcad4b948ffaa6decd2f580fbf451386f01f0e65e33c14555e4f0220470eb90605b3a36868e6ab4984007f06c61dd0704f5d9c8b32b14fe0e2639127012103731e2873fda2698091a86f570270524829f2a20a2c5f0e17757fc94a892d86a7ffffffff012aa20700000000001976a9143de2754334cbb32e7e2044f2c4229ed5924f9e8e88ac0000000001000000015493140afbc0836a488b29de5b6189e5448f79d8e3050c5ce0477f67e89fdb2e000000006a473044022076adee2de46059e5c125f803452836418087da88ef376e5f6d1ea7690203433f022073506f56beb64f4b4ae2aacdd7db300ea0e96aac477e34a4ac08d5a048e0de55012103b813445c8b7ae98e723b2c3b13312cc2c11bbe83ed3e2d6bec020bd38d5ad988ffffffff019dcd4100000000001976a914848b666af00163fe665f77f9b7e6ba86b2d94c0088ac00000000010000000145ed0168be77593d04e6db69c957b0105e371830cf675830d51d22bb3643d7b9000000006a47304402204203e188586200e71e869a73f84629cb748cb6669fdf2cab1abfda714d0e76de02202ad66d75c74f3e30493ba35b8684bb46e1a7df8d67c0e023a239b7279cba6f08012102166db204432130284ccde5074e74233207bd2f0ffbd745cd068976639802817affffffff0291dddb15000000001976a914c590f4636c2d7f5b45546be2da07afef841f99a088acdc025201000000001976a914117f63c79e3b58d356788d9584cbe80005d928b888ac000000000100000006610dfe252fdedb1920b61858a745c83ce5cf4db5283c9b102feff74922258f3e010000008b483045022100f92436c9c6420dc996bb2a5ce82b0c698607ce27fc3cd459cd043daf33a9ca8102204f29f1fe8edd4e686b1558a440d5dcc9573005da781aa3faf016d25467de59850141048a004149964fc211baae2ccfea29d7192c4eaf0a51068efc066a41eef141a40bdb995dd371c139533477775e92634bf395139de6e8caf7df2c6fa77a2205f841feffffffee61d526328eb371fc8c3c9a539eec7b97a6a5475cf62a359c12f046222bf986000000008b483045022100b122a8cad3a80789d3386210dd6ccac3814d4bdc0f127e4fef7d5d9554feac4c022012e0c063edf8115d6add1c5bd798d8d73d6022d7f596e74f6ae979586c8c39cf014104c91b6aabaea166cca6a275dc6932d1cd9d545131b7a15ce3e69b37220a4f47d5f6cd339880c8bf20828d8945144d3a658e38f727ab811f5c451f075aaf372cc4feffffff70d0879d60be54cafbfb7ab79a2e67360f89e8b20afdfc586630ac93d5d4f877010000008a4730440220526c3835a9290eedcc3829e6c91e18499eef468b208d489c01b347d7da6854630220682a7796f20ea84a1bd68e9e8ddd6a2cc72569e4f7f6575cd07113123214e4d1014104fda8f815f0d2f530d4b13f2e0460697604ab82e69e1ca84ff65769d63d986cdbbf4c6659b2e7c7b086d234ad555a5401d3a9f5f4a94b03e4c1e8137fbae85aa6feffffff05359e9ae9f441177b477464e6be92faf2744d34ec85391d2d75d5584cba8db5000000008a47304402201d23ccb337a9732380afebdc8bd1e57ef9cc5b672c946680d7faa3e7e1b9ea6d022058a589ded9c21f85dcc96d5997b593f57f501509ec3d4a6946acae844acbfc9001410411bc365a73dee2acfc89ebd0c4b98d0bf740626fa52f8d9534b2176424b4dab7daf9f7addb9a404dd36709f930c34a10f24764b472013c27ff457a3db4ad65e6fefffffff744ea1f97990b0d8cd54e77b4f8f9177ed7ea791e948249b9fec10073467291000000008b483045022100ef9eb6938f9689f4bed8cf9a83911164bbb2f08a72eeaf1aa124ff4b755da62102202e3ea13b3702a2e45a2a7a5790a92f237350ae6d06139fb5a5c26e5e78bc12080141048a2702d356d7d2bee2c3baf46c421d1d426f3f3c460bfc02009c483d342e6c76646590a64e3d87cf074853dabbb19e6dc207695dc03bb26d2da8ac65ad600e63feffffff59473f3dc1d6afe2e1023d1aa047a9338a981a914e12598e2a6cb31f5f573219000000008b483045022100c62e5c66109a1b2d0456b4f27ea71fc80df1434937da0899cfc14eca05062ac902207340b92d4d34b8029a931a27736c80528d5317f44a8cc6c151406803de1acf49014104bb47210b16ae138bb48ffce9f04e6032cb4869aaf54650fc6e3e7f504bd7567bb92a3437ac4d46cbd4f943325494b2a7339763bd30b5af7ac01bab8d527199f2feffffff02b1e60f00000000001976a9146d09b3fa268fc0cc66722d4ad5ce9047f618f50788ac00db8b02000000001976a914c89f4ee52654e96c2e49e1cd5518c76bfd8b1bf088ac6b730500010000000341bde9420f1947fe26a5321431933e02029cfb4655039aac619c777d9511c929000000008a47304402204717c65789985b004da6064e1b5758ae60fb37db6d21e951a8d5cf8e979776a3022024cac8ae919f1db1cda91c2ab6b9b00a3003d0fa787979ba8ab57504f8aeeca6014104165b26b96a1526054a44ea0b574938b58d3b3fdac9de2a9e52b267ffb0d3f29282ccd79a852803941e8cc6797f6b5b0d00cbe2d91c2af3e7787b84cbd378e132feffffffd42a867326a342cc49b0cc2509b850ebbae5ce9757462742ad292efc234bbd02000000008a47304402202050811786e74604f2eb6f8444a5b7e8f0891f0f4279838bb9520d369e3f23ef022006b867cff1eb9c1571c9886e2247c3a89f06c2ddc86a818933135fd1ff3d2426014104d5e1eefd037caade75730e666ac55f7a175dcb935191fbfdd67b7be017c4ba69c12e7e0f51c729bb65739d924c1559e84b3714f69996ac6059ff2d057dd006b9feffffffe70146022e637cef27928db264f92702dd9dd97326b8812f758f902817cc33c8000000008b483045022100da0a9a2ade7c8cd4e12293f13bd5e69b19a80d77bd55ae4b71c9bc5389786f3c0220759328ecc71e61ed39b94005d526014fab53f9544bc592253371e628cf665d8a014104c831c670a810276f0fb7c9074d2380bc57e563bc2eecbd478f0d7e8b15632548478f412a7e184bfff6a5021998e8aeadd23cba1cf95c573187d432fa247284a4feffffff020e361100000000001976a9143b6c0030bcd515f6dc1d3c4b90e4d101320895b188acc0912100000000001976a9141121fe40bf0c2ba887f017abc77aaa9636eb5f6d88ac6b73050001000000016b52db9467e7eccaca9910c1af55487b4213157be30567aef44fb17c93af2428000000008a47304402205b149a8cfb61f25cace003fcc5de8a399fb0ef088d6c839ac6c218a69219e0a0022050839b133ee1c8d6513f74edff189250b78eaa268c5a520fdfb9defd46b49d970141042d87142ad4b5ae0bd28dcce8d181b1200ac0616c103409006fdae7fe610e46cd2e7ca41dfee001aade71c5d3a8ddc273588efee76b87431a83fac2b1da4bc9f3feffffff0270347504000000001976a91432edf00751e493cebff40cab55b4f6715a59f36e88ac7e619b00000000001976a91419dbe37486144fca422f694e04cf02d644510c9f88ac6b7305000100000001b8657b7c750ab42ab8048879a2a497a523b83330b622e982e5625fb96ee2a675000000006b483045022100ace90903d97d6e2e7e1ca1baf76c93ce7adaf141a137875d9ae1e26bd3fd0dfa022005701048795d94c9a2fe9ee482fa18ee3eede0e42f11d10ffe42ab2dcbd78dc101210323060c72f72a1a3d02c793be6e2b5a4a8995cd80fe668ab4d2d58a09dbe9f389feffffff02a8290e00000000001976a91488608ac2495bfeb6681936e88ce7942e703930bb88ac60ea0000000000001976a914175e1bdefe0cb110e409c17ce2d6231d492ad1f488ac6b73050001000000015fc96fce2130f646d0ee5bacfa54d4b428aebc88f514116cf5c452db718535cd000000006a47304402204b06d0f802cd776ea8b5a8989bf8faba2926af803b61e3724074758a7a087f530220364f1c939524db16f3181d27a3074f76aee277ff33cb3801293ddd824575eddd012102eb1745b8425b7c5ed2b661066efc20de22c031b21dcddb2d4a21c05f365045cbfeffffff02a0860100000000001976a914183a6e66d6712399d05a30524fdf803ec46a292488acd0740c00000000001976a91480f963dac9713df08b073502334583c44f59678588ac6b73050001000000017acf3524e1174c8c5ad40944e16053c5722ad5900a81080323d74f4230b2dd8e010000006b483045022100e6ca75c970a2e3218af9218423928f1e5c6b54a8b3433833866b4b9e74243e2102201cbce06c5feba87dafb7335dd2f924eb1115c352c983687aabb0f5e1cca61085012102cc2f4b82847c2f28ebff5560707448cfbfe2f21ddf69b9eceae6d33e5ae006a5ffffffff030d3fd50b000000001976a9141b38c9937288abf8410f0c82972138e85e4610db88ac80c8b308000000001976a9148ac6f52a27b8fc9ac103ec037f27f6e01d27213388acf0ea7900000000001976a914298f787d25a8c918be3ac8d3dae97de97dbd069388ac000000000100000001de07de55556fd20dbe5375b0617fa01d240e328c2a119cceedb81d42c30f0fa6000000008b483045022100eee004b9b83a38cfcbe9086a0f10ee9eb01a6955e67842dfb725fd763c51aca202205d73fe1bac26da07bc0140d7ae92cd366fc52dfdd3ee29e951913df4dfd6376b0141047433d45fc5e77af3b9889ad48bb2bea24da92ca1f0a64b224574a74933353ebc53ef51bbbcf2d4b2ef5d94e4bdb8e17754356ced2d73b4c9188d0569d93cbf3ffeffffff022d13b83c000000001976a914a395bdcd72f987c4da56c18800adea46e7da1b1888ac90503c01000000001976a914e3c9b9f555dda8faf46f169b6302157edb9d6c2788ac6b7305000100000001c9023028bd3b3f8142803863148ae5e0919c49a43e15e04358eee99e907e9336010000008b483045022100a2f48a5b39e31122f343b9c34c0a195450f48137230b5cdc2e9cb5c0f8a7bbab022053073a152460cd42f531e3b9fd8be8627e5f68430e1eb3a100722bebd9f0348d01410421851578f99ed2fd7af9bc1681e5f1b6edd792048cde66f8c34ceb1340d41d0b1e26fee296aec7b0be574723fe2f8f585aeb4cc603a30b13e291387d37b6e0bbfeffffff0240660301000000001976a914eb375f88e164b33f783f4e6650705c327acc579b88acfdc9c91c000000001976a914861cb5c02ff83c3c5c563ce28f1ed545b23da2de88ac6b730500010000000157620c2a1e2a025f7c73578866322be0aaff625c7a2348cf6ee97580ff970f89010000008b4830450221009844b8eb6b80fca13cd040533c9786b977c35d09a3a98678438257a2bf1d119802205ac37a60f46827dd2615fce3801142706f91845f3ff0a298cf41047b5dbedb1f0141043218bbf6141c254d72790cdb8723c0fa04d7f019a76b0623731d2f464e8e715fcc0a96928db30651fb237fc24d59d10513267fd87cff6ad0f3460ac9a5b23e47feffffff02e21db331000000001976a91402d8d43546593a4d647d6c09a7713e30792f18c588ac30037e03000000001976a914cb190f1afdaece24ecbae350c156f4c249a5fb5388ac6b730500010000000133b33b7096c96de09dc439443a95398fe650f7e7c9c616a039ee587d5388af28000000008b4830450221009ecc310cfd0ad0fd5bce987567d3fc10d1728da6d4ea0e021583b278cf3b8cde022011bb565d522ef37cbafa28ae087d57bd6b481264ccc86505a86f9ef5d3679fa0014104467f1a98656db1a4792432c9d6051ea43a54d8c2778cb4a8c9459b91d39c75a2c66fa899de2edd9ba63f590646567573f5eba34fa1b535ad8916a3384a770083feffffff0220496900000000001976a914f706c28a02e4b701076052fb99a993f9a9fa374188ac3e6c400e000000001976a914cfca16725d1d20df7d60218916777b42f87e604d88ac6b73050001000000019c9cc5bf058fb24846f164138504a41f28a9576921558ec3d252e28b0f6d86d4010000008b483045022100a933f5b127b7c40a8afd56c820aa40c9d0f5175b0a76b052fdc971255aae6917022001679d0d7bfb21f353445af9cf3db6723aefd2388dacf5a3df17031fef429165014104f4401ae1622c3169496d4f1223a74ed2b5dcb50ce11813a03a57f1c41138c704b575abc06c2d12240389a6ce69427a8246ad92221c47132410353f7793c3f473feffffff0200c0d401000000001976a9148e68d87aac458c7256454137aa2dea428f72b1a588acfa79f100000000001976a9142c5bdd2bf3f8ea7b679e4d7fa28c37f9303452c388ac6b73050001000000025f89c72f52e4d08218cb6796ebb814d6facbbb0588ca3185291257830b343a09010000008b483045022100fdaaf572cc21d1d6adcb6717bfdde0f12ab65b2be8eb5a602721911762469091022024f7cf367df50f43f5ee257179a3eb43d09f80474170322b60bdd3544a65d5910141049f260ccaa1954846be9e2ef1f1a81aa9a30737ccbefca1ea6443a9cfbd54beb394eb2901d850d6bce273c874e79bae792c618c6ce8fd17ab245ad769300d0057feffffff30f5fe248019bebf7ccd132b27e4c6f876810b9c05ca58195afc358621a467d1010000008a47304402200ea388bae9083e12fe39dc2806f850b4653a4b32e2c7c087127d80a079ffbd5402206d7e76fc04ec7caad42ca69be9066030dc90825b008096da5ad09bd6ac346d550141044cd82067bac6a6f2206e2a108d396816ff682e387ab2c88d9ea8a1d8fe42558cf3bf764bc70acc726f6000d729f0c583dde0c81b2ca519cdd7b270bf65599bfcfeffffff02941f1d00000000001976a914c647c50f3310e9539916e8ba328eb18e5e8e760588ac701ee400000000001976a9140ad39e1ad57aa9a34c8d5bab5462680b2fc25ca188ac6b7305000100000001d36f1a82dbbcd2eef8efc72dee6e66a5594a321d19c3d2a116923244db68f468030000008b483045022100aa0b63cadafd41b8a3e75bdabbb6b15791afe957c7566ce28882840402e9dc230220674b9874299ec5d0932b35689f17dafcd246c4151f3862568087981c394e48fa014104fd8e0212b9791b849093e00a3a31e690668fcee5dc783e8f7cb7b6fd4e64b51be178fc405296ec84679242c92a12793ceefc7fcf7f426a9f8b448944ff97ed97feffffff021db36d01000000001976a914d0e03fbf6fd1e15a00a7d7f59e3a625eb2d7b70088aca0db5b00000000001976a9142e77e0441faa4c821cb3bf77743b977102c9d7a888ac6b7305000100000001dafafb4f9b45091f51f2f7cee2d8b320a2661ca3385df81fd6e83608d7d9d373010000008b4830450221009514f2fe8551684dc38ab56baf257abca51f36a6901ba0ddb08c0872d91ad873022061c9e52baad12fee89de0f34b49f6ea4d8f2ae44858b6d70fe5b2acaec9bfbdd014104cdefaec12941b5891a7a8202055815030a55f6ce6dc9702f530bf3db5b57fb75416a64ce61260869040b56916d13a5f0f0c571c6b37ef50863e7ac7d882dcda2feffffff020bb8bc03000000001976a914c333d3c2b76c7132479f06c647d20faa0403001688ac707f830a000000001976a914bbae59fb403f55a5918f70fa17ec6438067c9bc788ac6b7305000100000001ef695ae4b8c20736aa574effb0de418b5007f4dc1b8affb36b52f9e0b74563ff000000008b483045022100e7c02e1011d15ee0596fa9b686cc50f343c3151ab3bd83f477b01eb670615bb7022074656abea3417d3637d81dbd80e8dec82ad78bf5f1c70f01df19b7d94852320401410447c2079139a9050bb4809b136fb3d048e1fbe7b537ec158d5f35a4326e2b1bcaf623f6ef5083d88a68cd15309bcb28e3287aa4861b7660b08a98666a7a4617f0feffffff025a513c00000000001976a914c71633be4de58db9923af76b24f88b905c69104488ac002d3101000000001976a9141871c16fb15e1eb9f4367305bffc6a31c13ac10188ac6b7305000100000001f50e91d4768000b15f8204a2ae110b0508c630f1e602ec1f83a4f75764f03c92010000006a47304402205bd7bfd57af89afafca54c2e6eeed18ca349b5a47b2fae933d88afb9e5b620e20220781804fbeabbb7195eaddb911adce854821c0d78a3fbeeaa51e9a2074b449154012103cf543a431e6e171fcbcf7456d86e8e5c0aca24aa523503a56460aee346ce5255ffffffff0291b7bf0a000000001976a9147b3aff0a6ee9aa274cf07bb60ad9bc8c506b3de788ac87ed9400000000001976a914e1c4314ee223e0040ee91ef220aebe801fed329188ac000000000100000001d4bfe3e3f38c7f75d3007094722e705464c6dcd09349281704bb38ea88ef21f3000000006b483045022100c1d64929797ccdd2a8f530f0f4a660b5eee666852e28fa46dcc0eb792fd4e23302201922e32927d2468791ca45a09bcd28969d2448cc59daada5359bae23805a0977012102a6b1d256e9d3b3019ae0d522ae848486887f10bd07eacedc61b739d87f860f49ffffffff01600b2204000000001976a9146b06f7f3e67f8b9cba3781db44a063001be9e7c088ac0000000001000000015460642b3baa14d6d10b56660e02a9ace786bb3924790e009081ac4a5453d552000000006b483045022100c99623df8a153ed0ad016ded0ba1847fb67d3ff57021f45605f620548b518b2f02207bf879d144c65dd7a0106d8f57868e3c9e58ad46decf6b78d2faca9269f73569012103e47e7ff7db1ee7acf41031bc6fd58e41a4720e5f8a664bce4ef73f197c3a045effffffff0170811201000000001976a914c92a19ef9b1870d667118390a63f056206a7938a88ac000000000100000001f950333ebe505f50497016fd4cb80679ce0735ebaab59c1380f087ac6091bc7f000000006b483045022100f253ea00a6e27eef23f361715d5b81df7aade17cc0baa4b1d0f902ceddc93a60022017a9788dfd0f40a5e86e0bcc005b62bbeb8dd78aea49edf1b814a63d673188310121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0170811201000000001976a91438860090779c6df12ea41cbe472359b62957527188ac000000000100000001e58219f400c731b2794ca848366d2a05fc8706bb766f88c5e1a9987775181494010000006c493046022100d9bc2415b6cfb90fd7382cc0e1ba6873c01248d13e801e45b7b4b9c70da72e4a022100cc86d1d7fe3fc32161da40d86364d03025c35f1d12dd6d44672903c28a8196ea0121039297a3d6ae6c39a4e9d10d0914a614f7ff33c30359e3339e317eca435a0a5fb8ffffffff01f030d30b000000001976a914052512987b42c82119e245d2dd1ac13f25040a4d88ac00000000010000000298904d7aeea69c514e72e66549b1f97555378dd3339ab318e140db5fadc0de13000000006b4830450220265dc454e58151236c78a7d360a3257e82056fd83e1fe147c7343ad75ff464b4022100c6e345d212e1f74ec669fb2878c72ae75ce85088a044c436e8a2a4856130c29f0121025ccf220fe3c13ce73a9e36fa833d24c6dfa97147581b417c100919b351509babffffffff5ba80c2ba44030e650e70e208eae263d4737508dba8e9c7e811b55727e1fafe0010000006a4730440220607c2eb9f30ec6919e1f1381041c26619f25624d3f10704c04ab0c7df49c01d402207efc403c0dd8d4227adebadffe37ba49b6186eda788c928d2344200957217ba80121037a6c265394aabf6d0c57e054a9e92dbd292abfc2c4495fedeb461b5bababdfedffffffff0250218603000000001976a9146abd8fdc78dafb3a46b4e115f61d5ef70718303888ac012986d3000000001976a914c19197d5169d11ee09705dec0002ba6130bcc5c188ac000000000100000002cd3572a1d88b138aaaecef543fbc5a6af7940b35d482e7f7a143477035d5fbb80e0000006a473044022056cf51b44cee2229d52e6b0588e72f230a34bdfb84659614f35097248018db6f02207d78567138e5a5bbcdb45c45be5daefc859ccb02871d540439bbe51dc7691ba50121037f12513fccd7c0d368a04c89a472b3b22bf51dc7219d51f5c87ecc3ac090a767fffffffff82e3f69930615e41b427db43a0bf0a7ea3baea9cba77694e67c301744813717010000006a47304402202a898a464e428feaaaf0030cedbd3c3e0f5ec632b8cf74f4aabc958a8eaa338f02204fb47fce736a50515d817e758ac82f2e25f2efb764751b298de9649abf7954b9012102548bab906b6f8d5ac3b3c94cb9bbe79318565b249b2901d2b4e0d45d3a322825ffffffff02001c4e0e000000001976a9146ecbf14333b99e4042b38848b3b8adc36ecc7acf88ac98db3f1a000000001976a9141327420594ab0f81a890e8311f1f5eeb8f7e65a188ac000000000100000002bb3a28418ab13c835f602cc2a3ab6447c2858a927963aa9c1fe60fd5d0fa4e51000000006b48304502210091c01607215fbb5a212627fdbeb485e8b69166e4e33a46b772cf64caa338f8f402203e417ff27737309d805657e1625617c1c3639a5c38fa1003e4a641e936802932012102d005ee5b656ac952e27ce8f186faee480fa3fd507636867ce076c826c7699684ffffffffeb37be1c1c8652d7f8b5cdff8a37082516927a87feece972198e95de1668931b000000006a473044022021e8cf072339dc39a632f9b752b4ac17ca40bf3dfe679e85d8a27d2a444d4e0d0220029ef93c89e13ff59906a2d0ca02024d777fb976e121c14f098fb21fb727c25c012102d005ee5b656ac952e27ce8f186faee480fa3fd507636867ce076c826c7699684ffffffff0225020000000000001976a914442aaa24540db8d5a75a1fa0f3df1f849617a9aa88ac3dfe1901000000001976a91460c605067547b894ae69751e42f278e1a3b9978f88ac0000000001000000011c9b76e5f99fc2373386947ded583c9238138d9f9644d6977e5b7014aa69edae010000006a473044022045e9c42729550d006916fad78e27a27191ec0126605fe9ff040d1318ac388fd102200c8cff5632d7d11b9d5033824a1e0e8a90f92cfcdddb216f19c9bfdebec999dd012102b0020cee4ae5bbf61a3e01a1bb7be71a650e376abf06d046e03046af3e153e7bffffffff017030f400000000001976a914b463f3587148bf61adf493f88f9820fbcd9f546b88ac000000000100000001f035478b37c96960c7b200fc9c07396204b4147c36f4d7d34ccb14f4188fed21010000006a4730440220433c465abd410cae3857ce91c4dbc243596f7ea65c9c769e6fd244c6b4c971a50220090d5bd0454d11fcb84af75a5a20f60bf9ce38eca94913fdb58a78f28513e4690121036d02cf2a2326f8ee6a075d5bec1b6e76fd11a9046d4614fa308fd20f4434d44bffffffff021c081d05000000001976a914ed070abae54b9fe467b1d901f2c319a2fb7c5ec688acc08dce06000000001976a91417975a867a8a0286f9f03054281fdc6c7ecf75ff88ac000000000100000001daced51e62369b85a9ca05e0b0e2d02ec7bac174a38e59ad4f95be5367f747c1000000006a47304402206b39a550f3c1a474ff0271604a96ac1cc89daa6a99968f3b80e649f8ab63af9602201958d2abee567d8c71f1fa6a1f18f99aa707c8a46296691df11cd2c1593c7be90121034fa53fa85a67c202eb55dbf18d282eb48ac46c54de11edbd79c587dfd2e5a1b0ffffffff0266020700000000001976a91493c0009675bfbd7748d63ddfbed031353119715188ace0db561a000000001976a9149737060a06b1f7e67d57a2a9dbf63767f444c8b688ac000000000100000001686f4713594e23b45043cf2c851680fa972cab149379e00edd0f3a4fafce0ecf010000006b48304502206889193c966dba19ab9d37c0297da7dadf69d91569dfb345f14dee4ab6644618022100e9aa1b9eb6e594d5c631b7801b65b91daa8d356fb8349d99843f2c6ee28063b2012103ada9c5d634f80e9fa7095a6633b3cebb955e283c3d180efcc483ed48d27dc2b1ffffffff02b0d1b90a000000001976a91499e4249f2fa24ce8c0f6f9da1a5aae0bad8e1bb588ac971d5914000000001976a9149d52c32a7d2354a31992324e48ce26dbb53ce8fb88ac000000000100000005f035478b37c96960c7b200fc9c07396204b4147c36f4d7d34ccb14f4188fed21040000006b483045022100863d98bdc250d306034dde69e31b231a53fa09ee9dc991ee68aba7641baee76902205c7d2ed72a4a1c84c9963f367934f3460be07ccbf4ba927c4e425b066c6979a2012102a28bf1d0d112866a3c531a197a134c87e82f93dac4cf1232fff2de992ec6bf58fffffffff035478b37c96960c7b200fc9c07396204b4147c36f4d7d34ccb14f4188fed21060000006a47304402205f15d4b2a264d4e78c03b7262031d69b58f3579c6a28e255dfa6ad15fab78716022061122ec9557b4325a728b61bbfb19ab8b6add3bb0120d338068f69b13ac615d201210320b6d857052191ad758a998a0cd0f4d2b6e14ccc1c427b999b6c5115c9ccf46dffffffffb240b7f3208f85ec69d85b1a9449d68336af167493a0645dbf2c841968d3b8be010000006a473044022013b20d7f822f045fb7e584c0c162a9ac71d5ec9620f104fe9c0074ab89ac5dd7022022b5f7212e2c1e3cc2ed4e0adea5320c81e01fb00ce682ba47ca58b0e0dc0231012103877977df995439e715b8aed07f612cc9ef601856b45943e8f915f076e21e023bffffffffce034905869dd0145887f68c25c13561ff60b142110f63bc6b84241b0d62aa74010000006a47304402202b285a25c46e5bb8fcf8c9fa90a7405f3cc56a1095d6a0c2de4aff207113291502201e881504c541b3e6932a7e9b05a3eb0f72838d0d14ea10b256b3d995d96849ca012102c7a111393b8ad5c041c05097aa01f8aaf53c154ed608a3ff9fcb410ca6101fdcfffffffffd801ffda59fdf92d4663e57708596f271100e81b9bbb255e723c7222d66fd3a020000006a47304402207987cbf3d58f50cb712f5fec3c87c6e9a92ccc25a081c67b34207273c703c17a02207c4360bd96d0f3b3e1949890ccbcd5923437f6b88f2b7098e6f8811862a2fc070121032467db06b1d3465eb0075265ee062c60f0f8f7c0805b257356cf83b7fd9ae7d6ffffffff0e00dd6d000000000017a914206d262bda8ca8acaea3116d97ed3bc4330a695787e0673500000000001976a9140685a05466905721f6292fa5d173682da801c5c488aca0f01900000000001976a914b1969f7c94b88ce424593494cbd4bff08fedc98388ac80b92a00000000001976a914147b7bfe27567b9ba74145b949046924a426dc5788ac60f6f201000000001976a914b6857240f83fc4f3f264497419aabbc939da4caf88acb0f2ca00000000001976a9145e226c737a56cd3d23e40b7dfd375f40f51676ec88ac81801700000000001976a914ff130497dd1cb702517bde96efe5a96874efec8988aca0a1b800000000001976a91417931c824938b76b66de6794a9e8c4eb600465a988ace5d44900000000001976a914f7c5c870369fc85af88126d3d4d12f41bb3751da88acc0a4fd01000000001976a914a1d3109f5f68aad2b646d7d7c4641e7d6ad1622288ac00623d01000000001976a914d5ddc75a81b4b6a5996da2ce5eb05150ae99b0ec88ac20674605000000001976a914164a7664be790b361f169ac06df076519eaf166a88ac0055ad07000000001976a9148ada333317eb164d11345bc04f1b389a6df2129a88ac40ea7000000000001976a914ac1fa5ecc3762eacb28ad2c55447fd4234a8065788ac0000000001000000025436fac399a17e71ed1d10de0d6e6b3e491c726d7c308fe56379b2c8ba696086000000006c493046022100a5c0b9f4b35481def597be00f3866b11bfa9e3edfccccd996e99e656c007b9f4022100a8787fec943004001877b86b0bfb06de65874d91aa72cd8ae0e22dcb55ffdde5012103e1df4782705418bcc5e8960c4d1d858ccf6c7debb99b5b248f9938e1c758f259ffffffff20a38d8e1c9a5b059387c271afc44cab0a9872e3de9ed82d2bb358e6e29c893b000000006a473044022022df251ae2c8c7a91ac640b96bc858e4eedab6c6e9234e1ac72339a9bafc91e50220689a4a2dae3f1c8fdcbed1f464b337e1937384c6863781ba78cb7bb59878354a012102a84c452675a19866c291f00ab096266fdab5cb465ae5e9d6232b0782518c6574ffffffff02c3c9a900000000001976a914604861784894334f267439e3ace8e537a7786f8188ac408af701000000001976a91431f249f7394248e96d227319c1c18b8a2d92e47c88ac000000000100000001f6d3f6f1ab3121d60d0a4273d5b5b8cefa0c8eae30603573e48f1913d47c1960010000006b4830450221009749f213e3d199fdea8939b5e69a601d6ba5a98c7412fb2c5042492fbc635adc022039fdeda61422b518a468e3fcec4e589a0eb0897591c25bdab8b321591e29f7860121034a106051bb1c0a530bed24543f6848f233357aa1ec5dc5ca4eaed30240b01b57ffffffff02fc0d1504000000001976a9149f87f831cedbf181d64e1a9313e48b1f23cc0caf88ace0a6e001000000001976a914270c46e4a9fbacbabf19265eae0dc7d4868ea44688ac000000000100000001e881fbf0dc4797661bc8f46087a1cfb1430ba7be5ad31ef2e4dde325f5ebf668000000006b4830450221008ca2d41cc60a147467530d455498351c472e577ffda79e2aaf6770b63ef86132022074e93028dfdb359a550d006abb2fc9edcece8d48e616572043f43546d1ea661d01210361ccc6e695f4e09a8fbdd2c002618e4d7c9404de586f92016acd8e15bc904584ffffffff0200032604000000001976a914bf1edc00580977eae6c766e9b1a64808f1c2df9c88ac3ce6da00000000001976a9144ef0db89f4a9f0a1a757cd5bbd5367bf580e5c1e88ac00000000010000000113e2d56f92cf0d7499fa57ff4013b231adb6119b1d70f6f2e56367dc6d6beff6020000006a47304402200a134c15a0faf8bbb0e3b65ed5646f6ad942bfa36e86eb3505cde3542f771787022071e8a9bb03028372c84d5b2740ff7c530fcd7296782c013ea4ba69d9dc2dbe910121021a13cdbc83063aa3e2bb9721b101e12d46c2514ebc8d9a60881c22ed452f4664ffffffff0200b6a602000000001976a914e86d1ea9cf0ed6e5aa26b2157292ca0b938f96e488ac32f7ab00000000001976a914adaf165ab79032028c19773885cba02bc5308b6f88ac000000000100000001b0a00d8c8fcd8b44a7997b0b938037d287b5d6713588638a728ace51e6159456010000006b483045022100a2bcd9da822feff103de077453d055887e21a7af9d2d4e91972a4ca827f23283022077fae8ff2e8301a4f98abb3f0307afacc45687282f824659173b96151c472af70121025f7227076ed1cb30dfb74040dd5dc7d6bdc5d1cd9a979286b93b86eeb027ee82ffffffff0210dda602000000001976a914e86d1ea9cf0ed6e5aa26b2157292ca0b938f96e488acd958ac00000000001976a9142ad7bcff321748f1d4d7a04f9c400791f9818e1b88ac000000000100000007b6739977b899bf717218463d8f013e79fad7f4a17377cdd953f744563c164a01000000006a47304402204f3bfc5a7245e4363d9b03c7f72323b7808b09423b171868b00d75f275415cfa02207bbcd6177ad9469c276150e87dac25c26ad538de7311174c9f214b59339d5b2a012103bd2115990c8029a06d88a0660e87e34443f9c03dff67ed5ef30a13b348c3bb1cffffffffc4b6d472a8cdd9b6066932444013d72318709dfaef63c29dc1ea149225d9d103000000006b483045022100f5a1a55c2bd3f92ee8ca8e2f71b751a4f3be187fd4166253eeb863a2f50e23d702205a7a12b3230c27ce430519f1757d9b8ef2c1d0b4e3b4c6539990feee18a768e5012103ce6a4efcc536db89e2a2b9d7ef5e4be3ab5b9f57639f741330a3af340f84c157ffffffffc7facfe9d347a3c87a2576a7aa3d15ef9694640ecf0ebed18efccc3a5a481212000000006a47304402204413a7dcfae659c8d4de5740816d70c9e77278c65df6510c01d1ff89fc1a528602207009594ab6b68135ebe48cb5af4f011ae804b048886c24b8c605070686bec1b40121035da3723617cdb641c505ddc53f12659e1f5f89bc5dae221e5eb8085402043d77fffffffffae13171659fbdbebd0558bfdc0605ac772bba1ebce19209bbc63bc955ba2f3c000000006a47304402202d91a97a4d4153b0b0624839ceb38ae342b2e14ef6e38e7e7d23418a8db92d5a0220555f2dd270841313dc6f205e1e646f842bd258dba22238125f65251cf592e375012102d6cf9acc074949b4dae46b698b2da8cf54efda29d5bd24eb9fe48b1bce5b68baffffffffbfbd8945fbd6452b812b7d9add7f5246a276bf5ef910d4380dcb6506248c3061000000006a47304402200a9e72958f167eed09087a33cbf62f14ca5f0fae6a30ded5639daf0a1c6d8649022064d30b49eaeaef920346e412e556c4388d0e055fdc2e76295a1e234d23792f13012102469cffb446b2885dc9308089687b033bdc2ac0b401ecc3a7be8b5f6a211ecdb2ffffffff2b1664836242d7b6c75a8bb9235e5da18296f7bd522e2c039e81c8acff9d9a6c000000006a4730440220157076892744793141722f4339dd615c851ceb486db01e63afec78543845e23d0220361efbdf36a60a16f91b06b6bf5853d65758d18cc24880d9be6adabb32601f11012102bb57e1c76158de4ade57bf2cc89c6b5451cf1c9988900b666703eb73ababc5f9fffffffffdcbb349cd3f53801960eb0cd19dfcc55a6039e719b8ef1839081a2a7cbd956e700000006b4830450221008ce0ecb57e5e5e4c3471999d352c94c4594f1fbf124683f8fd9d33776b188ef302204c64edde37c44e6dda9f2bb228f66976cd7168877c7b413dd9b4a71dc7be2662012102cff65727866c72600b2837515684af4d1d21e8fb2a5a4d1f57f92805bb3aa16bffffffff0255104a1a000000001976a914c0d9681f12ab9c0d7823eddd5c31feebf67b7a1888ac23b8563d000000001976a9148f67b4acb6e5b5b6a3adbd95397e389cdabcc1a588ac000000000100000003533deb01f1635c1b6b97903dd2a8b4b252d716065dd525d418d57b10b32c1850010000006a4730440220646c5f95c64ad3c84c1e92b2e013efcc05585bd84d3b3f883e3a377a46cc8274022020480be5d2a536ed70bae2215cfe3626e3d9a56e47bd0a659ad4ac21936689e6012102eb8a333277a3b0989f90b46e3dde2d5ee8be661e7b000a5b015b055455efb8c0ffffffffb77bd9b048b9c22f25fd3593dca9e72b94a449421b947606b4ea89da70a7294e010000006a47304402201166807473c28696f313fd19bd369a4f4e7cd52652c472180f69e7b6c6135fdb022050a64cd511055d1e59e1bcab6eeaae4f42cad177e132bfe73628274cb9fb7cbf01210226b0f87dd45d32630338c668019f90d2006c305060b3ea846ea3f192a70a5bcfffffffffb590e512b02047e0887863072b720d8cf11ff709044ddf8e0afcbc4ab1fb5936000000006b4830450221009017920b62ab9d6103a4ee4a04616e23b9b1b92adc4d19ffa30de7a0a35f7fcc022010ebef675d7129e7e2c0cf1f08c06ea66345afdba1d9ba4ebe7991101144002b012102eb8a333277a3b0989f90b46e3dde2d5ee8be661e7b000a5b015b055455efb8c0ffffffff024e420100000000001976a9142a97aa43d00fc34ba42ee44613f0e7e64c45748388ac8f4a0f00000000001976a914d6035e17ed7a53366f0cdd77037331dcc23ff5d088ac0000000001000000012f927d00d1741ce17d7642648254832ee69d9fdb86f71500c35a88e1797259f2010000006a47304402201c657ed2f84e2cde028f1ced92aa1826ea3fd12462403d56794a91dc2ec8a01d022006fc1afe0c6ec81e43b7d203cd0f371cce183d497819d3517f613728e7ad7170012103296adeac3061ba2fa10f47240d3badf08a1c83d55e86d27489805b182526e738ffffffff0270cb67c9010000001976a9146c923862cb18f19ac30c8d24785cd3fcc3405da988ac805d6e130000000017a914428ba6f2fc0ed4c313d010303d19bfa179e3b8b987000000000100000001dd1037e1f607d45e4c8f8bca9f40958a86a8ba7b1b467fbc4b82d19d3692ea13010000006a473044022044e2a97c7060b1f6f7f3469cc35129af02db6d8ff7a94c3e24f5ede2d761287702202faeef6c09291342a664fce4c561f50b59f1b68c5c1f6268987a851c294cbeb5012103fdafd4b07cdedf69f07732f05e45a5bcd79eb08830a34519d798bf2ac9e10bceffffffff02365600000000000017a91479aa08475896a09a7fb124b6f73fc3c9dbaedf12879286fe00000000001976a9147e22cbdd42a94d6c9a558588b14de09b6df0292888ac000000000100000001f33161c044eb91072091031d90ea5789ea01f9403ee85b54f83d6e57c82186ff010000006a47304402207660901e581bf919559d55117bcdbeb0713c3af117eb18a6112a55dec6245a03022018f72c4a31f833fbdd3133c14cf2462020bf19b1871f66bc9163bdfba2c19be5012102a4cc9d15b730f4861c50400a4363c1d358708db4a042811488664cebf93953bbffffffff03408cf73d000000001976a914c4e81ca6a0ba38fe24b529c1e08231b3233b4e9688aca0816a00000000001976a9142b9b4b6f710e79079fe7576a52859d9be2526d5f88ac4027151f000000001976a914ae0c82ceb5e399509851fbf0724ce4194f9789e588ac000000000100000001ecc01846859532133d89ba619bb364321ba782d4e16c91ddc6965d96e802bc65020000006a47304402205e595626bf18345df99228920d18978abe955db7d2b93917b3e068755b9ff2f80220704f9f2eb7054c75ed6ce5678a55abd7297007dda79b595b865cc20fca11354401210363b17d5e1405d4460021e22239ee676d5881ecc8af35dd92891084d876009eb1ffffffff065072644c000000001976a91403f961740caab8ba0e4a2f871ad835b83bb07a7b88ac007a8b1d000000001976a914055291e21c7da5de004c41cb3334e2a40134eea188aca437ff00000000001976a914aa7dbbb6d9dbca6771aa9b11ea7f5493c12f1c7f88aca0816a00000000001976a9145051b8371ca176fefc114dfcf3c596a7b3cdc9a588ac0be55f00000000001976a914e648be52aac41926387e3c1497e81268f341825f88acc0cf6a00000000001976a914d089ccd5458d5e9488be3f6b8b886618bab71a4388ac000000000100000001600172346cb7116931c0f12d5c60dc7495a25c2e6b90f6ee018bc66f7b21940f000000006a47304402205bbdb0b1aa90758a6fbf4e65e896a865b3803917fd408c21d25ed20109bfce2a02205d36a3e3c5ca25daeef7452bee29da5cd7f733abf43a520d1433fe0db8ea0316012102f1f2e93521144418cfd3840fcb2c9680918151c3cbba47fa7441b6eca98a6b00ffffffff02ca862000000000001976a9141c14fe354a7fc559bc69dab05c67cde74e63eb9f88acda44fbc0010000001976a914337ce63eeee2d829265f491a30e2d0945a80274d88ac000000000100000001172a0fd3f5210c3a2f0e96c14e14a09cef8193ada464337c9a4719e0c5143e7c010000006a4730440220505c23e40804c4ea35b02216ce7526e343cafdefb4ec49719c8d6bb6d17ca2be02202d9094f266d469c3455bd75db07026cc8ba914cdfb90bbd0f698af07dd105d8f0121029b0907aa5b983785ef89d2deb4318042091bcd8bc97135eab444372debbca92dffffffff02ff97910b000000001976a914bb10be30d4dbdd497a5dbdc7775ac7f2f23d0c3e88acc6f05e01000000001976a9147ab62b816aa234edee820bd7fad92b94ef9a2b5a88ac00000000010000000173859d7ae919e5fb528fb1317506ed2e09d789c6b926d0ee5a35cae73963e7c6060000006a473044022050ecfb5a97a47962172e97f7cab9c4e0b73adc6a508b179d0c4b96bfd39a1dfd022041b8c847594f0d84734c9f42ed05f142a32cfc396e42b9e6d2df0e3df39ce66f0121020c2d3031307852ca879aca17f08550466ea1f594d8d1137c4e92a4ee7742a520ffffffff0212191100000000001976a914145f53d9f2ab804960ae6893d08d1393026bae9188acf0e29e01000000001976a9144623c7b4656bf2e3531c70eeac96937c884c750988ac0000000001000000011e9a8e27282be8ca6ca99231c848ef7b25373eff4a8301362e549b7d3a35112c020000006a4730440220710e75d5ada73ed0de64f216b7eec053c5dfaea9a9b477511ef22792ec152113022076b71c00963b5441f18a73e19101b5a45a266e854d961f5654473a4927c0da100121039a14a147c9209b4515236f957656d5ad3d9562acd4147b0c51f2acf0d8049ebaffffffff0254380703000000001976a9149bcc7a05b648f444daa6cea8ce613c9fb03f6dd188accc086903000000001976a91437817c8296734d1ca790d766537c8fc33149877788ac000000000100000001e7dbd20af0cc96a3b78f9593792674acf51576e2c83b344167cea14261690cf9000000006a47304402203ff0abd794b935bbfdc361cd1b77de5977c133416e5d7cba26894ff97ef9426202202eea3db1eda9cd90bb475da73e89216dffb99ad065f58471d5095256fb0f40ff012102d99155da2326b14dd62b99d4231b417331ead6fb41790cdc2ae4cb491b54dc16ffffffff0280c3c901000000001976a914a1defaad8caa4e2fa1b022ea586bebfa1f042e9d88ac402ead02000000001976a914e3c072ebac22762e5fe1d9059e1608c8656a46b588ac000000000100000001268cff48075bc3dd287337c6853b9f31da2751f65767069d0906ab4db1620021010000006a473044022034f602ac2f67f936f47c0d554b4d2a848950cfb2d7a83fa2c127ebcae0b2e20a0220272ad4d1b1f5121188b4bdb95f542c58bc27ce20076bbcdfb7349ab12c79adc0012102abca151efa734d6de039f7c92423049579ffc164da53ecb8dbe79f06f5330a92ffffffff0280c00d16000000001976a914ee78446417d60f2c63acab44dc171a1ade844ad888ac3079cd38000000001976a9141e1254b8c796ac7b29f832eea2dce57619f6e3bf88ac000000000100000001a8bcff39488c1d07debf6c345b2846db0b054b779566b8b204a10bd198eeabaf000000006a473044022025bc60bb44147d364dbcc5622d62fbb07acdde68456adf6c5c6897b3ceaea4da02203e61f11d0f149eb478dad4684517735e4bd7f618c354c9565cb5db708e62e2cb012103550ca9231cfc8ea7ac94f75ecfd45c1e20acb3424e3d4cc1561d1aff020d0ebcffffffff02406bed07000000001976a9146fcf36ebfbbb15407f0eb1e70f617d6cf8188e1b88acb0f9983f000000001976a914bf1560e2eb0800abf1825e9fadba7b44ac644be988ac0000000001000000014f0edd25a951e4fe2fb3c4bf3e0936c0076af967e0795b6a0f0e6e2245dc91a4000000006a473044022025dfe7f1880286ced455f9c51d2c0cac4659e16c5a3ac4be839c1d1258c689aa022077f3b550dd6e2632a41c9053b69edb76d84fd366bf12314d29ff19a1e94aad6601210363a7712f839be58c122ce47afe1979e9bdfa5ea36a59bcbd313faef8930caa7bffffffff021e052700000000001976a9143b49e53329acbd43011365b1b1ab83697574e08588ac1d5de4d3000000001976a9144d97037920024e0b4086c5a9f8343685a0aed8ab88ac000000000100000001bdd99be7cbe86d0fbd686b516329326a54a3421b669674fa7843e892e61974f7000000006a47304402203cf3ad7d19daa355156a0e771f6b6ea542144bc80e644b5162fdb7cb51bda730022018849d4ac21c28fa9dc253fafd5e01baa670e5ddf8682766772b9651a28c7a29012102a1dc260c319af08d5780a8d73760f989cea6d9fa7e50647461b58a69f195108cffffffff02a0860100000000001976a914346cfcfba55206fbb4898ae03348e36b1ff04a5c88acf2344119000000001976a914c1315156575d1e12c249043780c3df7d71eba64488ac000000000100000001c474e8c61aa9ee9c241173827df56d271dcc6e5fab8f19dcf322651a48bdce4d010000006a4730440220764ffdda26897c3010bc0ae2450ed1dd154f01b7713e2206fc0b7a8d4d4ec165022009ffeb5a8b104a7902e0a1bd12370c86a0ba178a60743a6e3ca0c17c25bb7bc601210341b9a1465688683a83d646393419664348d3f0464ac57fc7a5829f2be04fde5cffffffff022f381b00000000001976a914f12ef58f0c46989fa50d4a92e454e16e3ab9574188acb5af823a000000001976a9143203927fd4f2d34aebe400bd1957208cec9fa4e588ac000000000100000001d8a2dbd0b2609085422a8e4a05ebc33d43c2edc0079437d3f948e031a14d8d25010000006a47304402206e488d1fd407c0c382b76421cdb6380ba28710528cbd5958d27a972fc7d683820220636c1141662442de7c8cf865fb1f6113a98ce1c1cf9e91b1f3afd533fb7c5f2701210287b8b0cf019c487f28159351d89cdcafb26994a5f0de9b45afe8f6809147d257ffffffff0210c4a530000000001976a914f310b6a018336b9c0c7120b51c6af7335ea6c7fe88ac407ab206000000001976a91443fd228ba52205f992fec33fab72853e16b7e8f688ac000000000100000001f6f96c9c9e1bd3fca35514d0315a7d5b1c49cedd99b3489e575e4c7f6f126553010000006a4730440220085550e4f74661d6a867e3c594df89a852ef32edfc057f80b2773fd3f77aca0f02206d295379e96af9af15ce8e761dd31090c96adae5a95ca2cef37215711fdf96e001210222490b49851f66e6c4a62496e832ddb49bb3506e8a71f636523774723c829416ffffffff028140c301000000001976a914b1349556da0674c556575f4681ae6333b027c67b88ac28a8a39b000000001976a914e7bc21d19b61066ba8c0ebc88a47e01fa21430ea88ac000000000100000001bd2c1e9a8459f7cc7f97efab94dadcb6b2f940e56c23651c5b8455c1344f87b9010000006a47304402202f428ef438319b178d3ea23f1adce1865540c316506d6e31ff517237a6bfef350220575c71994be1e1293fe42bb8a6b5e0f3d127b264e2f138bf98939714ffea6d3601210307f62272d70e21ad691326b961c854e45dbbde084b41463c9024f7cd419267d6ffffffff02de727c0f000000001976a914776ae69e64e7c9841906c362a4c5581ebb25a0cb88ac408af701000000001976a9142bac77792cce38af44b6fc2044f054ee8a48766588ac000000000100000001c1474b48ce5362b74a05475263e200f7f14f57938caa7c81bce5fb1fbfcefefa020000006a473044022016a7f5c39dddcb26b68927842f62550185684220b693f3c913cbf125764abd7302200b97e55b12ba537c081693bafd4e0e45b39d5a36d90ac9d394f15b0a6ca7f9c301210369e68c095e7b0f1a3e5840152d941548c5182020ac3d7e94ab712eda51a9c53affffffff02a2861f03000000001976a914ade49952a30aa11abda207766d2605116fb0c84788ac26679500000000001976a91462e5daa3e792bcc5e2050ce859853f77cf38246b88ac0000000001000000019b7a429419b08d214d61862b87c7acc449c3c9d1551b5fad3a9eadf5adc8412b010000006a47304402206afcec4a46b06c7aefda5fcd0be016551342c3824f24fb2aa481323e78e7e6220220564599e20fe7a0df1c89047c3912eb2e18788e2fe60d07de78c3b19144147fb101210326e4afc2dd2be8d8fd497ee4dc29eea50d340691f236eee88a627713e94c33ebffffffff02689b264e000000001976a914ff168c1462780481767570a4bf7260f7a9f646c488ac60763d00000000001976a914ce632cf6a6791083bc7f0a3ec454ade18f52cbea88ac0000000001000000017d8eba89b990c452ebf342c7242a9faa5ab222a8880ee0f13f895ddf692cb3b6010000006a473044022048facbf0b846a98086847d99895afd0f5382c311828061c2ef97766de1d15f9302203bc9028e285353285665db27f6d5e80be791e88c6f1e49ec6be29b6bed79e2ef012103f41df08e73d97acabb7681b6b617b724461aca0c45c6ac80586e9ab5bb4d2beaffffffff02eb2deb03000000001976a914132a85db508b1b85235b35f8c50dd6d94d28785388acd0754100000000001976a914f351d4e82b77b86d4ba4a9a6d32a3631de4a74b388ac0000000001000000019bc5a9e9eca88aa8756388382a1b5c6bb507be7c219f212d13532dd24fe83e35000000006a47304402204b3bbb0943d41d79a73c5af14e38347599f2759c097d0716b13f46c457f9a8a9022067623d72d9d8d34b31e4d0e8da433cb39881ccfdab2316ff810ac9a3b187b4410121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02e007bc01000000001976a914c7969f71e653d9ac71e5618623862001edfda92788ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000012bf18cfc97b9eb520cd9282b83add722ab367fba775c23c8ac66a1537f775197010000006a47304402202642d8a26e3990cad6648965e34160409050a37f4baf3cf5f005ce6c890994a902204b3b1383c87c231bd5b97dfb7bb4f5a6198264998bf44df2fb76a847e4ac9d5f0121034b8be16a12ca3b7995eee693dba26f1b66b4682f045797b9644a930b0b2cd03affffffff02f2b71801000000001976a91460892e91b53df6927f026ff9118cecd6c3fb111f88ac2ed33f00000000001976a914508ce255d7dcce4b5316d3fa7917006045ca40da88ac0000000001000000010e629ad4d8b55ac1dfeda549aa9fc10fca2c20b74a25fdef2119ad1b78f4b9a9000000006a47304402206393fe3fec01c86015f21de5b519ab97f001051abbc90b51b9bb6a40b129e40b02205dbfaf6d7b82783f07dfeb989b2f5901125d577b65d22755523a8846e9e844c80121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02e007bc01000000001976a91418d14c15d19b4cd947536b6ff2c5b295b68b900288ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac00000000010000000159d649c73b4fdc4fdf75502f60207092873dba8135c1d664fdedfb1d0b07b2e5000000006a473044022006b542a18cd3e9443c0c3c0ac1e72433cb7ebb61de722adb1ce6882796e018ef0220193daa9d82962ba0a99e9167a33d17ada190fdec34795f6e1177167bccf3d26f0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ace007bc01000000001976a9142c75415ec4c990144ec683999d30f449c7ead26788ac000000000100000001bdd24cae38a46dc2cdcdb4caa60cd96b1f6d17152c277701ff8b54097d84b8b3010000006a47304402200623a026e414f5e7587f3a9657c2eac4ef25bafff77dfb757a646db2c266a8e402201a02388a94f6020209ac9f1772355024634725bb1d192dd7d5a8e75bf6b4023e012103ed3a071e9d29b17f9d1ca30f71759fcecafc06800107275aa42856da7305a4f6ffffffff02688a5f0a000000001976a914734c04d3938cdc702699fecd7b0cd02eaef34c6688ac7898d701000000001976a914a78fad23bc7dca26a52a1f6c3df19f44b1b6e4de88ac0000000001000000015483e6e5cc987968c691e299cf20ff9e169fb2d4eb2991d1b3fcf5f642840358000000006a473044022053b9bce93ce18742255e26af0bc35fdfb4dd34d783a9314aaa820c85054025a402202fdb1be78695260fb4abde315107dd2b5621f0ae56d0dbabb696750d4664ae900121032a2a46bb68b9ec89d3aa2ebeb303099ca5a7bdc3e8b6587f304c72c0f06cadc9ffffffff0248c54100000000001976a91409d271ebb449ec549c328d38a3ac25fb0d5cda5b88ac80d85100000000001976a914eb57d58d8ebb8f69d784cbaa6be5f777c89cc0c488ac0000000001000000016df5b6d7ffe94b95ac90046167b0f59c85aae44ecbd7bf4e391ba679a286ef69010000006a4730440220536dbb2013115ec451ff553fddf21de28ccf74dbacbcf890a89c65fb34afddc102206a1e7fab4fe41370fcd1f7afc601b176518c99c0c190735703408b60b2d860d1012102e528bbd538db3859864da7eac8fe342a4aeb40a5c0d8a46079f354f653bc6910ffffffff0278cd0019000000001976a9144fd2c7ef794523552e2395103e5bf34ef98b8ed188aca8721200000000001976a9144d4f41f12799bc0206df13e3a1a22b472ab97e3688ac000000000100000001ffb3896752b1ff6fb41f913711f7e2d5957feaedba0d9fb1d7ff7a4203f9dfbb010000006a47304402202610313b5cb6cb531d45c693b9207aa766d1d690e1c2771966517ee1ff7af4dc022068d4380ff8528654304b85dd7523c37d8cbe51b8a5b519e247dc779f108e381e0121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff026f060300000000001976a914120a5a881c997a6249a68639436d0182f3c6663f88ac4f988416000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000001400591e679a2b9eef96eee67533dee3bf8edc1c26527f3cbafa02c1676f4e0bf000000006a473044022071764f8da2428518faccae6d169393854d986f8496006e8f011fd446ddb45f9d022056a2d4c51b720046726bbdedc9c8b2b09e95951ce864d9765d7ff9e1822e1ecd01210387c90a8faed32ed93d01e44a12e05d3bc15d529df77d3976ef305bbdb741a7c2ffffffff0286453901000000001976a91471873b8851687d8a5577ee0c473654dd93764ebb88ac499a4c01000000001976a914c1bc06eb3e5138529652d9d18b8412f5b6c6309c88ac000000000100000001ce939184b6d82e6b47c29eec0ada85d3450f235fe3824c1263eda0b9ed37d433010000006a47304402201297086229c9e90cd1e8770bdf51e94907c58cbef28fa225a1b2c35a1b79d03f02200c070389b12634f4057762423d68ee53a7dd48385c31109c5703f7d027de274e012102a21dda9f8d3937714ad760e3d20fad0bc0352efdf4f16e9985d5c82a01fc3b50ffffffff0288626613000000001976a914058df15fe881545c3bbf129f69e617faf759e27288ac60b31e00000000001976a914c8c4d8ca374f8e910a006b23e374ac0c5363376988ac0000000001000000012a432728bd16824f14967b49e37e87e662b5fb6413f6d90f51f11e11a1b93ba6010000006a47304402204d057825ea89037ba64fe4fcd0ce3b226681e0e122ba12e537496272d02a03b3022075eb1c3835940fbeca5cf584a33259fbaf467cdd0db9c091d14f25becfd7ddfc012102f6c8e6e4a8e169bb26f36cbf9c067ac0f1aedbc36a15d583a9c74872fce36dcbffffffff02db280000000000001976a91473ae6f70c95540738bed2e365719294f1582a06588ac62993101000000001976a9145d70813a21a27353b2d3db03a23987e7db23b2c988ac0000000001000000011b639963b1be1cab59fed358de5ee2a53d13044e474c7e2df71ae8399e80c452000000006a473044022007663db5627a975be28023e248e5b6bba9d32c41c4f671193061babd0cd2895002202a32b336ad7b7ed9c00b2bad21b3be306f7911db33247e94e8d99230b7d6b055012102fc059e7568b8f252823697c42754e37405633ed011a6945840d3df69e444cad4ffffffff0240420f00000000001976a914deedd99ceafa42f18a9efabe36b199741d6553ff88ac50bc1600000000001976a91439aac2d847449bb2886dff1801d105fa66aebe4e88ac0000000001000000018975ca60293156e174e184f5ea111e303e7f07e8c4e37564a60289d2471eaab5010000006a47304402207df7daa34ac7d4b350f31955998b66ef497cab7c7e6a82b44da8cc667cd9f299022044bbfc697c96d0773a93f85f1212e3581a281637ad46462253ce61f32ab40d68012102cfb36bbc29543de60f5904507705d73446ead91022c09e6f0c1f5aa44b5e31ccffffffff02002d3101000000001976a914c888e10324b193c191fed2bc5c25688bc44a168a88acf0601300000000001976a9141c4e344c2fe0f18ad8daa061254f7b9030e0393c88ac0000000001000000010ca82b63cc68cbe2f608b3c56b7d1c447b6a6f50ce6e4bb53d79fb6ced8059d2000000006a47304402200d182a7218d0059b5298446f34aedbfdaf6b7181f0065f2c269b29d14b9e4767022063d56c9c31cde707be4f6ff1e0cf2ccaed26cd06473d3c26c5a6472166a614ab01210323bec18eefbc5adeb1ae4c51720d1ab4fd3fa992ce69cca8905ba999f19ca0f0ffffffff0280969800000000001976a9146a9658b449893f34a8bc34f6794a11eb3d46a4e488acb1e92c00000000001976a914883b8c4f8db39d9a9ed0bdb9f331546a2193f5fb88ac000000000100000001b4d9712aa48cc284b40d8457bc68697d84133337dccaacce760e2213e634b87a000000006a473044022032696aa4cac783a9bc41457845b7c3a85107d3176f9820e4983e5dbe6e3072f3022056a58b2b5c2b60656477703429bfbec87ba724b20c2789f9b862becb6feb81820121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02a0aaf500000000001976a9144f98b9ea451a395a264ccba82468344645c8476088ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000013839bc9441a29efe7edf619dd8a97e412313bbd7aab568815e6b5da913762f94000000006a473044022001bdb0d0f44ffe961f8d9d97bf8579f14ed6f8e97eda6aa07ab4c95553ae82db02203d05135ed0acae03db89d3e2a57015d4d3f637c6c9e91d9d02dec7ca64715f700121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02b014d600000000001976a91438860090779c6df12ea41cbe472359b62957527188ac40e81d00000000001976a91464c84d28f1405de2b2287fd01154be54cabb2db288ac0000000001000000017de98d18f4c76ba8d889b9e5af999214fcfb828d2dc4d7a556d8934a0a4b5f45010000006a47304402206bb249232db0cd70373f18184d8a4c1ef5e426dea8bb33aba5f17d21001321b5022037deb19f8436b80d5e40aeaf5012bbc7c85dfe9337d8befa4839e3e9a6986ceb012103a84de722cf09dc208c9d4c6455125122ac8017d70f91642b24b2d0afddb404c5ffffffff02409c0000000000001976a9141b0cc0c376c49c75492a926f7c69a9103d17f24388acc8a81600000000001976a914da187fdb76af936933c75effddc08c5b9b8666ce88ac000000000100000001d6245ec41222161bdbc30a25b30ae84ec5c35e876e38c5ce0d9ab0aedbe30310010000006a473044022018357533e3983a84585fc82808c32ecb527512540dc9459ef74351d9211a45590220676f99e37ce755d8d4aee44c643dfe9613c206a023c59098fdca7f3498328285012103895bb384d5fa15aac61d77ca5c9c904e2778e73f798db89cbd7ae3d00a69324cffffffff0270010100000000001976a9148c129a277c19e5d934a48addb29f21897688960088ac7c506304000000001976a9143b31bd659ae233c28d55d7c2495132eed1fea69a88ac000000000100000001a9c29209863a5e1458f837b47ca4f7dc429e7d3d44239458ff36c464ed3e8a44000000006a47304402205d88bfc2ec466f24d80849ccc5be52daffbe70b0f21e3c97a174f539df4a290c02205429188f6b44dddc51b63bff1424c20333b38a49656c5e0be1dc57090337fd6f0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02a0987b00000000001976a9140147d2002454dd300ea73fdfed4d42176645411688ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000019c878725d330387c59cfee07d19a83adbbdec3c0ac557418046f7b083c32a24e000000006a47304402207c90d62431c5d075899594fb233f37b975cd122343c58c2229a665d4e960d03e02203ff2470126ba49114f65a2391548b8aa8bea9f51ba8006353932fa4f83886f5c0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02e0da8a00000000001976a914d0df323103ac934ebf7325487d7819e0536be9ab88ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac000000000100000001a3dfa355beb11b68807159070020dfdbe7c951239c37d1674bc0cf9d61d51b8e000000006a473044022001f43a46e6ed87ed912d7d95461f12cba02319f6836a30be2e2ce3a9bfe2e78502200417e8ed522a355698053ba02660b055ad9df67081a5fa87ab182861f498d15a0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac00127a00000000001976a91415225e873956bc71bf5bcbb758df50cf85f901c988ac000000000100000001362f60bfae5164401c0c75dd4fb42a95619c4ea6158af253daf8cb9617bc9730010000006a47304402204eb3023798ac6334ec59e807024a6286e93cd1e2317defa9c1b9bc913008365202202bff125a6a17124740c08eb8e3ccb4ccd9c3f17a8c10e698c1a8f12560129b6e01210226453444f4579d247f45701d28d344402d8493d960cbb8246d174de477dd6e2cffffffff0260160200000000001976a914c3a39075c2ef4847b676461e1807c606fc5072ba88acdc2e1000000000001976a9147ce6a0c88631d90e62873b07d5c9b35091eb09a388ac0000000001000000013ec41a0c5145806690113271c5d864c89f27c6bc96321545f5bfe72e0f9f798f010000006a4730440220508b9db7de0854c0557a3a7d9ad4371205195d07eab20add03a9418c014f706302205c0f3a80626edc3a7f3c7b976c7067bd7635d341fa23586019a111c7bf2a066401210347b44d162f2bdf68d9c5ebdcd905be8d6910758ba538d390bd05183bf33afbedffffffff02f0ef1000000000001976a9147a663e6eb9c7488d79898887281b77182e253a8d88ac95610f00000000001976a914169a70ed2484128636e107b10ef320cff9b9721788ac000000000100000001f47ac73f4d0e63d7189fd293e0949d5dd021f85b9c4d1ab0b844ada945ebd0b9010000006a4730440220040cd499e0a44d2d2df0335bb53a1f7e9e4061178bd905c2b30ff1926a45e86302204d542bb9ca988688f5970406aa32b90e467070dcd5ced8d495bc6fa745d1b6c701210348c1d88e355f243e8594a45f0b919f68858bcb7820684eca7497326c5eab216bffffffff0208970100000000001976a91473cbf98c252aff15695e4f9d42f9d9e4df2552e588ace5a12800000000001976a914f5d9ad5823925f82c103d0ba90417fe7451a235988ac0000000001000000015939d2c533142ee4b1dc8e5be6bf7b3e6bef078909701c4f69597dbb32b00448010000006a4730440220799c687e0a25d58aad1eae8949990ae778b830fdc35e27bfce7e22f41f3c04930220178029bf598a71184e60f2df8d1ee032da112d022bc9ea7eefa2143ccf69a525012103b9ab447400f3509c5b19d220416671591acd01d955beac7b68d8607abcdcd953ffffffff0230fc2800000000001976a9148361a238c19e141dacab43c755f73512f952df2688ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac000000000100000001b9b94b28b5fb79f09264a39c7a44cdfc36dbf66997fc1b5b9dc16a8b16f83f6a010000006a47304402207769e6f97c548f78ab11cd88b0a80235c660e56813c178896190f66c390c5197022070966fb3e84af80d917983bdf3251e539f9480a87e893a1b55c1aa1f8984a57b012103e88effbe55fb6ae6802367134ace6d88d9c9edf74277fea5c246e6b196a95059ffffffff0210757000000000001976a914c56a564bb34ae3b1b139116bd8ce6dde4dd0852a88acb4092100000000001976a91418e3c34da41da9833bd3d98756601d9719d4877c88ac000000000100000001e24ea0c000344039d5832a926a21f4f2c11cd0855f1f10f84345edcbc3a3be3c010000006a4730440220373ee04a6a4823a5a1310e01c8a677d477930540e582bdb20a4d7c60ce135d04022052d408278a5620b2eeb2af8950073e67d130fbc45014df30f7becdb75b7c32b4012103256a446e496bfd4b389685925049bab1987d285c94616b785eac65de38bf023bffffffff0254150000000000001976a914ed3e6bfade38f2743206a5cd8a10a5b6a9aab8b388ac849b0d00000000001976a9140737a6f9db3eaeee1ea900c783a9c8003a07751788ac0000000001000000018244d39664243eeb4d6e0e222e0e41011952a03b145e82a5a3243a7f2f3ab557010000006a47304402206bead8684510673fb8af96075c48bef4824405ad79f5670b524f64710d361e3a0220331692e74e98bf320602e04d7664d11d2e5583b40ff184f7b2267c1464e4fc2c01210314be789166ab5dfe23996cbae5afdb20a9641c630415686d4192a2c7855ad37dffffffff021fc70000000000001976a9144b479154b27fbb1ef2c2cd62d07725f62ef8bc1788ac42a21000000000001976a9141edf6e1e94346438616aac1a247a6bdf5f69f2fd88ac000000000100000001eec6b28b200b51f215fb1d64cadfe895c69238796d24e57c76f802db42053f5e010000006a473044022033594913ec763fb844e4e792957177fe31f0a5e64f87871e6e3810fdf2e3e97502203927013dfef64ee8dc773f3101c7de9587419a14bdf714a67f7f8cf42343d7d70121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff0263290000000000001976a914eb032b6fc0e86583f2165ff512c90601a8bce9e788acdc478416000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac0000000001000000044fe8bf1e8abf974e5cd797d674f11b69848e9be31eeb7be1a8990ae61748d7d7020000006b483045022100d5b385f31fbd97f9c365fddf691c652ba96315b25770daeb91a8fd33f4b9775802202225839d1838c8cca303bc680a702d33214ed8a0490f471b08758aea4a75dff2012103867e97da711bc1734a0e098e7ad607cf94c13627f36bdc999a9e66120cc9cb25ffffffffc543f1458ed2889e533b2aca47e4c1ad9152aa983101a7c6a4012bf29d20c065000000006a473044022060e67eec74744e2055216d3b0209d79416efd97fb3fe7145c9b3f2f779cf541f02205c0b8453e8e896a69e7d348ebbf9a07dd018451162fda398c2d6bf4817400dc7012103aacc2a727bd32959c735b7210af2fb12e4ba94fafc00f5b45a62ddc77e654043ffffffff259b894599246285c1e8cf5cd6af0bf1539e731b0032255795362bc5426ffb36000000006a47304402205c73640d083a736f58be23224891e4a120450b0e3e3ec64e297d05c45695e8440220396a489021d907e58be7ddc66deeddaf187d4c02a42ca1830198078ca7ff054b01210354f060757385d078664eff03a823eec88d786ef00c10b1ed2a87f1187093661bffffffff1cc772e46376125f106d2e57c018472e045b9c670f7f00987ccdc644b632da6e020000006b483045022100b22a66c0f290779c6eb0c3bbf93b5385a6e5995b8e5abb3077d700f907bc9e9e022002f7606d75782c5d5c2d72a761974681686128fc387bda5c9a05b3cb4d99ed66012103ba3e4d086d7a16c7384b68bbe6a5007973cf59314a4771e03a5c024aa8914156ffffffff088058840c000000001976a9148c17987ef8515a763b0fc5c8d18ab2a1fe240ea588aca0816a00000000001976a9147616896872b564c34fe7a615655474a719d5b00d88ac455a1a00000000001976a914eb3c2e6382ce0bf46bbfe9cee4853c032a8ac43388ac004e5205000000001976a91426f91fc06f0a97a94d87fa1769918d60ce2e060288ac10270000000000001976a91459d429605481ea5991bf64e665ede1894eedc65388ac802a9e02000000001976a914807ee6a16a9f9ffe7ec8f15a379989a2c26e16f088ac10270000000000001976a9144b892fa751fbf50feb8b65d568eab6868fe2a06188acff4e1e04000000001976a914912d1b4cf6938c6b663988762803fccd2256615488ac000000000100000001575c50e90197bec6e376cbfe74f95d9bc655ab861a46326c53eee10e38bb90df000000006a47304402206b62be2b9154747c463d06fdd01b1080be4b10e2f8dfef0c9c7d6b608c93f5c202205422b784b504b9c36613454503c08dc53c40411f7b35dee5b5f3f436e74a38f501210280add675bced763b91412fa73707f003528ec352ce8a0baceee49f0e8bfddd55ffffffff02006e4100000000001976a914e5b7f2a12bde034be7ee3a811863aa203979790388acdef59600000000001976a914a8dd9ece2be8a73f7b9ac8056e201c375add437788ac000000000100000001cd923dfe733f48fca05b7dc7d95a0edaf584a2124c3f6f9fc6325e6f52f5b519000000006b483045022100c28e9177d8bb4acab41def1318ce9d1f9a7370c15f428ccde9a40b9c26ec11f5022064148a6c05070be527d06ef598eb0cd7eeb2d8308d08dc9bc2dd5fa2df59aa0c01210301f8eb0b8fbf04e2042d1f9a67c217393ddd8e0a5786ab0799f69b85cd8e2ba3ffffffff02e8d4e002000000001976a914e5926a8340f621120187c5a120085f095af0fbbd88ac58bd6200000000001976a91412fa3c68f2114a946422dd60685a6eeff43301a788ac000000000100000001b809a5ec6b5635153b29abdf017856854e0579d8bbcf125fa7d1e3b2a1bcd40c010000006b483045022100a834c3e8b6367a16b423f7b0ddeaed033b8ac2b70075bbdb9505ba44b320eeda022059469dcaced2c69749f0e1c595d6ae7edef6394eacb9af7dfdd7c3ee78f8a860012102b1c6e7995cd1c951ed0715c45fa3bb2eff38818080e22818ec6797aa554f0542ffffffff02a0860100000000001976a9141f2bd67e8c7351d50b295ea0cbf2a93f4f7e312888ac60770805000000001976a914c00798e35a36828798f4936f269d34cb2fc538d488ac00000000010000000101031bd6a5c638968027f32485b49b16e164dba791b15b553bfb86e8c4022139010000006b48304502200d4ee27a2948015075964e9a2ac05c8f1696e306870a93d9accde31cac168b66022100c6c26358e4735fe64d69a94a919d01eb90582500550ef905a321b73bd8b9a809012103ed69e2a9d65f882c51ffacbc0b8b0c39c81f284e48ead9b9364f88c5378017d5ffffffff022c058a26000000001976a9149efb51d09cc05d61903bfaf672aef133b1eb502f88acd6398332000000001976a9149ecbba239023d289a75704c11d5e17cfc161c5c288ac0000000001000000017c591b324f18f0851e22081aa8af96f5f98e3cdbe740cb04b031c45367b5a49b000000006b483045022100d1bd33b4a02b17fb028b842106c35162d15eaaeed2b34e1ebad311231eae616102201fb9aa2ee23dd9c91a649479a054e19ea9c059ae9623a8d403607383923c3a1d01210245abccdb5ef077dc76f8662ff22c2068404c34b9c3dadaabd79eb886d0548303ffffffff02f03047f80d0000001976a914bd331e6e30a99525ef117b616ed49cfae24aff3388ac00902f50090000001976a91444d7af16f54b777e4f8215b6e2c15cd5a88b794e88ac0000000001000000015d72cb9ac0d2cfecb1c1d09f47aecf4e73ba9bfde1800ac89700cb3643e5a966010000006b483045022100ecada075f466137d7186ef68dae62baa4318e70fad19855b1beeb8468921bcab02201d6cd4aedc7372d8c364f2cea0479f681b4dcb7d669e32d77b3a6ebffceb48d20121037fffd97103ec85c3210e9f5616c7f271bdab30511f7cd0f789934406a1d96724ffffffff020a844500000000001976a91458f58831463e2831e462cc19fcd6006d5e9bcd7888ace6c58009000000001976a914ae0d4f86906d8b0301cf0f2d92c637437d07fbe488ac00000000010000000115d1c8c6bd8c4065c7b3522c7afd9970833f7a4ad2155cea7ee419735c2740ef010000006b483045022100a7e0db03ed3ea89ddfa62e22a3cd58c9709f8fb16f2f7c04c511cf0a2cffe2a202201e6aa49c8c0ccebb26e5471a0cb8fcc1dd6f8801b21ae31fc31f82d4b096a2fd012103c6eaf702e2e6d75d1d676ab3d6f2df2b150e35519d64769a7aa9530e633a8903ffffffff02b075570f000000001976a91482c2ccfe28d36fda7ffc36020147550fd87cf8ed88ac404bfff1000000001976a9149a7b8ef5eed97ce984ab24e41cc0cce19a815a2688ac0000000001000000012113593294a2f1617c3d13b364dc9cb315eb587d54b4ce89857634be280f0c59010000006b483045022100ec0446d7bc2fb778d9af8a8597565f605864dd8d8334f03b8a3bc0d59fe3b64502202cd77f88496713313b4980008317bd63425e3a0fa2414e791648eb1253853a200121020b2d562037611d73cf237e004391a5305d1e22d297d2d4a722cd40cf7f8bc7aaffffffff02c32d41d0070000001976a91426305778e2957a6b800e74d558d784b96632ef9288ac00e1f505000000001976a9144c9b0263d9daf901e3ee7266f915a162727f9bf488ac0000000001000000019bc0cef1556621342322257bcc2bafcef8bcd39d90f43f117fed7088363f0c3e000000006b483045022100e87c21d2fc85642df3d642edcff3c9a0c6998b0ef985d2eb3b5b7e10dcc67798022050f03c35fb34554e717bad389a5b34d6874913e14079d6b99f862dd57a684e500121020e8399ca26be2a407e62a69bbf0ff32024e3a50c9c636d8104f86b36d3a9fc48ffffffff020046c323000000001976a914f7cbb7d3d192b34daffe6cea712534b901efbe7e88acf093eea0000000001976a914f59902ae46f9447c3822af49a9171a2df185982988ac000000000100000001aee41558e3a87c47329a37987025961b205638ef711fd6a914ebe81a241e244f000000006b4830450221008ed0ec8ac6cad0feccf30caa49dd990d89b0a1f570df56dd8085f7048b3ccfd702200964997b99e83acc8d3c9a45a2666df964987177ae6099006e1d2fd116516bdf0121028a6afc749e14ba582650c93727d4fe611d7015413178fefb3a506b1e2cd8896fffffffff0280841e00000000001976a91410ca7e902937e42cb7ef6e95bbfcdea18048286d88ac7102dc96000000001976a91412bad820a3b1e87dae90d4e7b1128fd02beacbc788ac0000000001000000018ee61f2711348d857733082fbc396a8a8cb06669d0de985f8709162bae798ee7010000006b483045022100a2935121c07bd5a967e0ba188d553662c79ac64e1302e482a6232ca7d586b52802202c4af7cec1aae7362f214a9f5222d5193650191eea8cb7b5c0e6dd2201e9329301210229cc5cad1c5c362008962dff2ae1843d80f4f80d046f73fab00b19d0b2a24bc0ffffffff02625ba1c8010000001976a914d05e54da9bc1d4087335466051d7baa16e12a66588acf78d1f00000000001976a9148abc4f2a097717044df73f65f89b43793185788888ac000000000100000001c7a0655d3faac9d3d4baf72c4c3fb40f20271b5405a303955e79933a4a0a5d5f010000006b483045022100fc1435ab892792e0ef0deb7085722b3a7af71384e46d469da09090bb4904d59c02201312a97096741fd043f62bbf84be13b18383ba1972eb039e56596ee33ae04c36012102db976aa25a148ebee43a9b894cacd78bf6be9a916d9297f06adeb56fe2d2f115ffffffff0256296301000000001976a914f82eeca14644c53055d956bb00a1dbe8509f05e488ac8a6c8004000000001976a914ac8b57bab2e186dd81fef9b2b488ef8433d41e6188ac000000000100000001eb4ce207aa6fc891e2d5ba5c37ff47dd43829446eb29cc012ec4645263bd6b84010000006b4830450221008d796aa5d4d05a90948fb1dfc5e92d44d845e313f3bfc09f211f6bb969a804ba0220584c5a8917cba5f3e0bd12a7d9a394f8fc4b93ba79c45621c93ed938c58ab9090121038bb694bb23990394c01386ec22754308856275eae55078eb04347cec36a31f00ffffffff024d94f002000000001976a9148417f90bbe6ba0d5c30d52b3e164035a32c207db88ac0e16652c000000001976a914cf4193d4cd88947e75f87748e09e8c336e4fe6fb88ac0000000001000000011f391a5423820d78a12b159dfbc90f4f994852c4dfee9378b127ed4055e27173010000006b483045022100fee3bebc0d0725023cc42fb409ef7460d29c3deff52027848fb3726c1a2726d202204f3a9bae84ddd00a7c323ab81b490f6762914ac115f962b3d3e1b5bc19cd49510121030a8db54c488a62b3f3c0d9d69aa47267c3b9d002678dc334452df65828aae731ffffffff02749e0509000000001976a91471fd325d962517343bb871b4cf4478e8e2675b3d88ac2dd72115000000001976a914241517c84e278f88b0776ca2b6b7b849a506ce2288ac000000000100000001af05edfaf5b92d20d3559620c76f10499d8e8affa88ecfa4302924150f7662a4010000006b483045022100b8fd166f0eddee447e70dce6744f2839e5eb1c0d338c741bf48de559805465b20220273b0a0ba1941f0bfc1b421f7a53795a1f687d978603c265c0d8f1857b865c37012102e8663cb69e4570ab028182511e04444d175f3f2e3987e74fa8cdc3356ee69c9bffffffff0280b14f01000000001976a9146d6cd0ed8776c867aed1209a7b6d7515f7aa55a088ac60361e00000000001976a9140a0a386267ada33fa306c1ff068c6efc37355e8f88ac0000000001000000019a6779c9e474b79c2c34133d114eb061d05b14304e5105e1f414d808c5f880ee010000006b4830450221008b5a2aa0de2f3c2de37514e29299c577fbeb745acdb5b6228cf2a4ccbe40960f0220146cde08499995ae7d0918b43749e725af75d7b0d5ca6aa9a4da3518710c12b90121024a154aa3e9da28830f8977e3b8cdd16f105eac7d9ca5e1729e8072dad0db1b3affffffff02af6b0637000000001976a914607e63d78290810266f9f0d4aa5e8ca21491150888ac3ba4ce13000000001976a914ac3e63be0413dd2b7645fb95147666df6ec39d1288ac00000000010000000166468f20bfdfc74b6a41422cc2805556d17e9167170e2ded718044d6d6fd80d2000000006b483045022100d863c33c43f8a3a856305c21478ab1c3d5f109dbb11e2ff76c91f07080cb393f022014797e90bb0e0ad833239fd4bf95dcb06a6317b2e29006f9cea1e23da42ac48c0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02e007bc01000000001976a914972c4144930ae77bb164ce37ae7510353405c69388ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac000000000100000001d101b087484390ba48ee8b2d755f70eaed58e308b70fba155b5f38defd0a48ce010000006b483045022100c9aca125b1e83bf8299f6ab156c16bc8bb40716f6d7b20757c465e997367007a02200cefd62d68abcacf0be673d0a386befe69f7e094583e5fbe1152f7fac44de0b90121033f0e0230910892dc13665f6988785cab141579dfc9fea685bd2376e60d59ab1dffffffff02a0860100000000001976a9147d91e2a66f6a67b69847a1c819dadf79d1f520e388ac106a5d00000000001976a9145f7ae8efc124fcb5971b0cf3c1c13736c6411ac588ac000000000100000001999fb095b9ada6d16cfc5cebc2d846573472272535ce5df4d45a069a4f9ae52d010000006b483045022100f9a1956b9165a873b323b896f1664ef5a011e6c6cae6d362ba015298ac405df80220558d3d5c3603a32111beb8c09325a8740f76d848320ea24a06b34b7a69231d720121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff02f0d20000000000001976a9148af0f7b34c79191af3c1e3d403369af8379792e788ace6535229000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000001b5987727f4f1faac50127c3cd6faa8ec5cef04802221a3df376c5497a5dcf97a010000006a473044022021f367a4af1ec7b20b4afd4f9bb568be1820b37f248438e38b4db9281ca0e34802205c8aa4be2d3b3c603633b37c9e7cd3b74698a1677557736dc27a1a9ca81a6c760121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff02e81601000000000017a914916a8b61fb7ea250a068c48c39b54025fc283d9187ee155129000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000001c7d3f93e6064bb4e9730058a4ae9ac64d6f3cc700da0d9291a7e1e6c6f2ace4a000000006b483045022100fa0a36cd452bf8e4d081ad7caf99e3892ed01c77fe1b4ca12d6a464e00f806e5022007211515644ed8536a3072b60c613da64d671bc45af19270cd63d2921be12b8b0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02e007bc01000000001976a914401c3d5df57db5895b4e9f5d4909bdda3c19702688ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac00000000010000000149a6d1c09d28bbfdfa44f85dbb23a645d2ffa14f6e35f29568fc8e6bf31f754e000000006b483045022100a91fa6dbb0aad004d982abb7d18e015691cf6c2becbe048db0840648ba4f9f130220288b20b9d211912b58552c3ede7217b594decdedaf584dfbc1f043486517ccee012102600f5c7debb32fd61dc607fbfd2bb91438076f2f1e2371421656e7700fbf596bffffffff0250bc1600000000001976a9140bfbd90393953d94e2febe64be3346851fa03fc988ac7c321700000000001976a91465adfcf6df67bc04aeca17daf55abe22d963dd2488ac000000000100000001ad3463882aa18cda75cf581bdd9467dc4c0f8403e358e8e9f70d1740ae65e5cf010000006b483045022100ed0163bc41db8d569027aa198b16007ffc54ef590fbaaefc1213c805deda023e022044bdf2db968844b7809a9577fefe3239ba5a1dc29454d30282a802801c755bce012103d039e3add28083f402c3c643bf09d34af2c48ebba585c878a810860a53e8ee8affffffff0214700500000000001976a914bf33c5bbe3e714eb8b16bfa4604e77c2e19ba81888ac890a8b01000000001976a9145e7f4db40e540034f471b263613a76fe1eb59db788ac0000000001000000017bdb499287c0efa7c96fd17ac4736b2ad3dba4ff61b3f16c4461c70aac5e9290010000006b4830450221009c9c07067b82128a244d42fbd00b6dc5265897d5479f8fd53ffc32aaf154c117022076cd5d5eef590591711e4232b93c86e70d3bcafa4f1d3964fa682cca69da12a1012102b1b0169d96986fe9fed4cc7cea8ba0085d9cce8f22988f3db17b4b209dc38a30ffffffff0281030000000000001976a9148cd38391986e6109944bda6279909483c628cd8e88acd7635501000000001976a914d0de9b4bb9eba5e72e3655431657f3ae4d438bc188ac000000000100000001c88284648378a48a69954a1973952cb753efb7569f31ff221549a8c8d6fc5ee6010000006b483045022100b75fc3429a5e1ed1073b8a4e8132742b445e175d3de32dde8f17ab1311e9f17302202440cda157673a519b1e3596e203644774258ac4945aac266eb99890c890ebbf012103b739f933520ce207c4840b59614627de4eb493296e3ba5aeff33c3738dac33dcffffffff0280518800000000001976a914adc01a9efd60ebbf30c7e6bc2d2bdaf27b5fcd2a88ac80052500000000001976a914cd9f90fe5b4a0003d0c55b56a73a015647e15a5c88ac00000000010000000169a2c6acfcf811ad5d11fc77df1202c53309d09c6120979d90d3534249d46563010000006b483045022100b6679d434f227c1f05567e0cabede2c198bcec5ac780fdc366696585339fbdd102203701843468bfa9e6e5a1593e06c3d218cca9d7d9e95a29bcf14bc45bc4b87c270121029907af798eec9e9421b60634190a0c4e9e2259fd48c45852fefed5d3ed5f3558ffffffff029fd45f00000000001976a91497c5026d2a8f79d11b285e717743168b88f3c0eb88ac0d74cf00000000001976a914433dcec802a46aa475acd7156d960b105547261988ac00000000010000000145860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4030000006b483045022100e2dfe807849295fbcbdd637bc21d3ae6fb5c54e522dc0bd29926126d4fd3dc46022010ab51482b93e066ad7946bf4c9bef340600aa8b108c19c410554e3edc351278012103da29f6e2cc099bf603c50305613d27529d6e2a8a0c7757dc5b148fe8001c1f7effffffff02701df301000000001976a91467c87b8159f81cdc289edf19cab8f3b80a26ded188ac809c0204000000001976a914e09df74c9e44a71868d090ee25ad347c01de3ee388ac000000000100000001a937214679c8aa6b79e385a2f722e0b3b1046286ed28100660ab1bfc3f1a01db020000006b483045022100f2805fb32fce0304763b9a7394dd87c86a21862771665e356aaa3bfc658b203b02200b3a948f51bd115225b5cbd69fbeaa6635316d97a2103f78f1da6245a5968846012102e637ec08527bf402a7356e01b54880e7ee04caa3a683a40d98151c59be945541ffffffff02890b7d00000000001976a914bf7dfb385abf4af5ee8a2f998c04e4a8974f745088ac92f60500000000001976a914ae79e277ea067a9b2e14aac28489fbd5a6e39a5188ac0000000001000000010c9a471a31f6119cdea16b9191f781443f0b27842dd89515444b08033215c138010000006b483045022100d56655deb3e8bcf8cf208679372edfdf5f8d399dfcb2b3e4fcb7143f3abc9bd40220267821c57cbc752ef3844ff5a46c76ceb952024a15a240ceae61bc7c4dd297f0012103c123132d3d4c34c32bde4c26a2189639fbf7a1ba2e670cd1fe393a053c3f6528ffffffff0258bb0100000000001976a91410d74808df150bd217834ecc14b486c55834120788ac82baf600000000001976a914653621945c2fe1aabcaf0ff6a78cc815d877f9f488ac00000000010000000140ff2efd341fdc43c8c5e88a45e2a3f28234f2560c2497d8b0f87b5469df7ad6000000006b483045022100ce7e10fc5fdb0714659e2ed0ced29fde4e9a4a42ceb5257919d3a87665ecf39a0220624524f12539c5f4f4c97cff2df7d67b68d3ad3f0077e3db6602133fa14e4dee012102f808415e680de0148c07c4db4d2a2226968799cdfc4c9d2decb20c67aca351bbffffffff0240420f00000000001976a914d55ee9a20a19bbbf0f8697a51f40f19b869a036e88ac8bcc1800000000001976a914d0eb5c01dbfa363f9750774c5b4f10185e16283e88ac0000000001000000010a94d4de728b23dc9c2d996eb1f272c048125cffc5f70c13f76aec0203816c8f000000006b483045022100fdff65ff849b67e0906fad9246bf8432c0a82d947246241134a192e6256f6afc0220693e5bfcf2eeb1d0c95e5a89dc1c4ad0533404e14c50bc10e4af4d778998c44a0121024bb96b97b76402ca4eb828d41a5da5f25d6b60a70af62c87f52f0139a0247e46ffffffff02307ca20b000000001976a914f0119d3b5391517b8781066872a06aa3050801b788ac60b31e00000000001976a914dc7e4de11b932d81a4425c796da2e81149d252fd88ac00000000010000000170bb356bc6f582587960b82b5cca5a522a04763265fd823c5b28d0ac708ff091000000006b483045022100ba49cc3f1ade7351e1b53d3cda164c7eb671517aaad968feaee36531121d6f7e022014d021d2c34827623a8b963b6277d07e6459fc6f4b12fa983656647dc0d5485a0121029d9eba916f8c3d91587a7cbd42dc4fa3e0f04c9af02c733a64973c89b387534bffffffff028396a800000000001976a914dd5bed484d1b593e8e5340b3b066815b042f70af88acf24de002000000001976a9142aba685cf139e6cd00fbfd919e390a4e7df1ea6088ac0000000001000000018a2665aa6e0927a151efbda6d01c937ba54f09c26e6c319cdfe18770493dd48b000000006b483045022100f39120f6b631d770f8d95a19343700356bdf12524519fa8095ec188e3da95af5022057dcf5d7cda9a332f8b753bce89cb6e9eb30429676d090310ff8fd0a5ff112410121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02d0de6801000000001976a914f0a2f1c67ef4222ae52a14877e8503264d6b387588ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000019f8f6f46f26a924dffbfa7dd7aec6eceff93457610e2b1ed688c95d878ea7a77010000006b483045022100fe8dcd386a7d084022faa5be4c5b927eec4b88e9bdfb8c4d8532bba02bbf594b0220526bf62b738ab326a01a221ffd4a20be0cc88199f7b460188bde33fbf24608fc012103bca51dcc46680e44bd07fd5173d8a794b8af1d6487d504d33880c4a0ac19b48dffffffff024aef0600000000001976a91480cc9eac1269f098ef3cff22cefe9edfd768b01e88ace3c18400000000001976a914304b7a9d53cb13eca39e5f690b0cedad07bae9a688ac000000000100000001776771b211f636b2b11d64c885cbc8dd2f8a70d008f0d44591a9ce65877e132b000000006b483045022100afa3ca2977bbe453982832bad4d306231870f46d8739f7b754f358b63ea1808a02202b66c10a698dc1c659051bb94d30655f58088ef622afb5971dcdd76d6ec697700121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ace0da8a00000000001976a914204fb49a7fc7ebf05deb1b7f0d556c026f4e47a888ac0000000001000000010e255176480ec25a43687568a2c3649c5c66899e0087005cf57d187dc1eaecd1000000006b483045022100ba76236d62f2f67b84bcee6b8c7e14eb1599c47db0179ea0352504261ce339cb0220415985b1c41c794cea7b4045d6310dc7d5f26eab8c015bf534ad26aec2c922740121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290657d00000000001976a9142ccf5d8ad65fe734d5d99a7cf308d2155caf7f2588ace0091b00000000001976a91438860090779c6df12ea41cbe472359b62957527188ac00000000010000000177f2464e93eb488326437572a0b56fc9d30324c537262d66fdec9cd9e290adc6000000006b483045022100888fcf82556583eb229f627deb78fbd639da3c2697fed0d00fdd3fe7256f2ce902205c2fcc1e91fdaa59a7eaf00215a8fd2c6a7f2fbd91e2ee98fa75cc2ae580f6000121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02201d9a00000000001976a91489def75a8fb788a679f22dfa5345c9f133ea574888ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000018151a8ff35ab872067c2eec721a82e5aabaed5945273d23d8a8a2d333b929eed000000006b4830450221009cd3a7b001a4d2855e4f36b16b4f868bb76bab7e6e1c59c8c15bd232c98ed2d002203b4196bc9f7ab29e7645f9cc1a07ff20f574c45f981ee42ba3eeffe1f64aa8a90121029a53ad741219c815f012e960f4405d18f3a1961f7d649ae81a063a2487c22d6effffffff0280841e00000000001976a914d5abb8ac00c6959c378feb148323b98bd49541e988ac18c34704000000001976a9145b549868035856dee5145b75d27beaedb3edf24f88ac000000000100000001cbbc4e573d773a6165be372ecff34dde39d9e2f7deb7715a2ab3faaa2f8df8d6010000006a47304402205c3a1bfebeef5bff09e9c63327faf69eee827fec5c77a1506f352e57d130dea90220354e4c761042fb2f8f36fa10ada2a7348ea05be39bdf7d99591d94c4e85fa6b4012102c57c3b0a8d3bbb77cc99e148fd32310f5528395126965fec8862679c8bd327efffffffff0280841e00000000001976a914ff74a935d6f5bf9c149f10efd201b7fb9983729b88ac88172904000000001976a914b07c5b35c954c7fd3b2b39daba0df3ef46c7c34188ac0000000001000000014861b3b6a2737b62efb2d5a572921fba6f065f27ec8b74c3b02582c6e5c8290c010000006a4730440220070a23849da7f0f58eb77c025e32ea5ebcfd5c33bf90bf97f479cd49aca3167e0220225d2211eb93914ca0e484dbc9f502e8eb4b93a4ad638d865a97d6308f8afaf6012103e86ddb6fe3df077d839e235730c3818c34125e22b4933ea0dee3561b96533c19ffffffff0280841e00000000001976a9141c41a87d9f581de62a1e7e0dba682bda0383a71d88acf86b0a04000000001976a9147e087cee0c1b74ec718e1418a4a5a5d18c1e08d188ac00000000010000000146da060e9d8586b8b46c684ac68e38a9e37bfcfda8867259b970a424719b2688010000006a473044022032290d6078896c1e58bfeca1f9eaac6cbadb6ef7f9237e21ed9509bb77c67b7e0220669429afe7508b927ed0d31b58740f5e7291ab9aaee5a36534eaf9fb0296af54012102dde2e50ad9e2c5b07fed6b356b76eaeadfd7dc8cde2d868d4c548bef8112aaa3ffffffff0268c0eb03000000001976a914f819c43121750389b394011167a2282a2796398288ac80841e00000000001976a914160f442aafc9e12afe54885c177def530b765e0e88ac000000000100000001cd24089021d9b6261c2052df521fb512adbeff83b7771d6c20176e6967a204d4000000006b483045022100ac02d3ca2301104437335700fc7cb32cdd3b859c9313e6b5ae33f8de89c5c8b402205e60660f2222b09f1727581031391c5dae59412bc46bcfea62459119db9e15ab0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0200127a00000000001976a914cf09ea4634b5bb96c82c06cb97365b5c5f84d22588ac301b0f00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000018ef0a3ebd97f4d897eb643b27e4cbc17233a441c1e0a649b54295438ca18e529000000006b483045022100ab29fd58ee92015b6f80419cc54b879084a32463092b6d6ba5c924e26b26914b0220479ccbe3cca1cef5b86b4cf0443f0a4fcf7b7e50965070991bc9d606efed928b0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ace0da8a00000000001976a914771a7d1ec15ab698ff58a98eb2fe173c926b22f188ac00000000010000000155eb18e2320fd5a1721b90ea70871bb5eb82a7359fc8acc56e6a73919648771a000000006b483045022100986fa3c5318f63d4a852826112b0bea467d882215e38ad30aff53abc8e40e10e02205bb2442f4f0f2b88b86b2ed181fe0c61ad1510f3df91e7305b594f2262485b6f0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0210df8800000000001976a91449bca11e088295c20333dea7c5e8a70b3063c11188ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac000000000100000001816a8822c544a2771ec30dc0425e82a7fb7bf4548f15be7a74ff6b0545836cc4010000006b483045022100cd04d829ff95186c10514ef6fe6723a2a758fbd9539de877814404920f4a810002205327fc7c8e9d07d2671255f985d99457ce9998e9724b9841d6d8a4605664d6b1012103eb20647ad0700e4a20da7674bb7170e4a8b5b3405ff0fcd7a413e42fd6206871ffffffff02b0bae400000000001976a91401f891811089303fb4e907cf55f5b73c49c6caf788ac60ae0a00000000001976a91447fe5849bc4370a754e94cbe4e926ba407b0ab3988ac000000000100000001e8a910fd3f05638d439d1f09338a1df10844a8c305d3de5b2518222c5227eb43010000006b48304502210088c7f1417ba7af6987323610b0c2e922383fc571c03c88e995931165183eff72022056f781eb850970adb80dccf36f3814157a5957738052ac543260f97107a7763801210287b7cf0dd2765905d7e5dc4b30474d21837e8a1ee462dd12b5e16cf75d319127ffffffff029bcefc00000000001976a9147c443d62b0cbbcd3969538dda04e56f9860d0dbe88aca51d5001000000001976a9146e85c2704efeb3ec5064285d9b2406f70fea90fa88ac000000000100000001fb913c3a335f8253c20c149947fbc3dda67cad293b91580b16005b7d164bc403000000006b48304502210082b5bab93f1a35d265c6c6cbaa620810e1cee2437e37a1afc2735aec9249b2bd0220790bc112a0b4d0e9da60ff7f5bc645f15aebe0edbd630ffbc393b8f762a9082c0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff02a08f3e00000000001976a914da81d3fa9fd322983ec7e43bb46eda0b0f1f5edd88ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac00000000010000000139da200b400ab66126d8dce55898b8c290c44c797e40597f2dc737a65456c3c3010000006b48304502204a48960591c0472787fafb0ede188ada633b3b70c08f60f25528f6ca915b0ada0221009c9b7cb24a7a0683816c0fb42bbfa4878320b628228573dcc7a58a3820528aa0012102ef66fc53d127bb10e6571c8881a18271c10d039b380fc99e16097353f9236630ffffffff0241b5f900000000001976a914dd20a8903341d9efabf7df4f7e8bfdca05c133c188acba808e00000000001976a91482dad6ae232c1b977ac6416e4acf758d29480be088ac000000000100000001a57af39bab4187ea4c528911c92115f4a297d42057a1c8e569481f8604c85567000000006b483045022100fe9987ed4c19b6e5db66bb1be8ebaead78e0624756b637433333043e985dfd2c02200366453469ddf0db4913b74925e2af60eb718b05cfbac34b303b4316e34294a40121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ace0c81000000000001976a91451c5d817051928f8ab1330918cc13eb3231fb40c88ac000000000100000001e6da3293d3d761d12f1df1d2efc66ec77be0b37a18a2f0f239104db5b9e1ede7010000006b483045022100fdcdc80ac4adf4f40e1a4bb5817678852a08cbb8c1518b02852ad742d94bd186022066f67b49e6c2ae974551022836c44066e16458231214ed87e6d7786bc23943d9012103895bb384d5fa15aac61d77ca5c9c904e2778e73f798db89cbd7ae3d00a69324cffffffff0239550000000000001976a91443c2498401e674923e0e82e5edcec99dc824077088ac33d46204000000001976a9143b31bd659ae233c28d55d7c2495132eed1fea69a88ac000000000100000001b68f38680e7ea29b7c1c52d032f2b91b99c7d77373019f9653431ec99bb58cd2010000006b483045022100e0d7ab075d1767e38745cb16d357bc3ef140f07e40297f0660b57b277909140a02205f8143a000f2c31ce47dcb2b36ab8490e2505243a1781d8a4bb40d44435cac350121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff02c0270900000000001976a914efa8e9a2e71650dd9816a775274908ba460502a688ac0cf97a16000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000001aa2b9ff72f22db58e5c45b13c26846b0d864862b4e448c6fdc37e26235000d83010000006a473044022004aaaaba2b6f5b0d763656d8480f835169f28f3020ea52f728074f99d1fc7baa02205e310d11f338eef22f0d8965c5a1a6e3c3e48f8685d4d0330b169512d2da02710121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff02409c0000000000001976a914134b26e10583070eff5f3164bbf3bb570fb9dfd088acbc357a16000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000001027664cf2072f891cd97627185786e5094b598261a2826846dab1e0d9d2f07a7010000006b483045022100b3c87e3dc58c8439dc8ac8c46da9da2802ec9b2810c281707e0306cd738d915602203a9e6746df994e9666208d98804f95d17c4a2ab1a402a903c4c1960b863049570121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff0220a10700000000001976a9143bb9cdc3ece1474b65eec2bc03397cf8fd987b7388acbe4d4929000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac0000000001000000012478e42e89096f434077404683aba5006ef39a6e7cacbea9e6edbd5b61d7eca3010000006b483045022100af1bd66374bf00976a040a0b0de28786759a3e5a12f8bd689e0fec6fcd032c4a02205903134193bda1b4db186ce3c8201dfea3ad07f8da0db3e79c2e8d44496b47d00121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff0267e50000000000001976a9142f303f7bf98a4dee67e27349122f4fb722282ed688ac47414829000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac0000000001000000015c192b5b837ed9030503bb869c8e277a706f93027d05dbe31794cbd24357081e010000006b483045022100d28312155f33af5157cb2ad7b045679a6b5c4d1e70e83e56ea4bee40681824a902203722d7f4b948c02bb5416cbecfb5d08a9e58e2456a83953363b8b8955e297b450121035f75b297af0306a021e623aa339fb1e07177b75573021757a789189bd4331b40ffffffff029e472200000000001976a914643e406ad6b41600d727d7763877a7de2a4d937188ac99d22529000000001976a91408ae76736aaff6f278745818a018bc0f9273b90088ac000000000100000002352e9e691b3c14e6a50eeb598eac65bd80b6a6ba41259e342af1d3a27217c1dc000000006b483045022100ab046930a42b7b1765feef18445a85a43a64236e55f9840308b3cc1cb96b142a022061a6e5982159b449069240c37bae804cc2a41e5d2c8057cabc0ca6384a25f79e012102e898373018aa6062bec933518f4f7bd6f71b1e21cd7aed6158b544a6af28fe3dffffffffd3395db02ac6e4f02ee89313a7e2da1a97afe48add0a4e234b8bb1723a4aa511000000006b483045022100b94395a3594e5653f7e84302ed01eb3e37ccced20415220f93481ef94453c98d02200c3974d68ab587a902c6794d2206374bd847f95b95be270adb2a07bbe8acc22d012103a9374fe2eb93dc73e63c29d46493341bb5b64ff89c44e196b95ba5ad599028ecffffffff029d9a0f00000000001976a914e71eff250b0630d79ca4e263630e2c61dcb6f48c88acfc4832010000000017a91471acd974894d1f213668016a59f73882392a16038700000000010000000190a7b1919973937bdeba4b3ded04ac1f4a586672cf13c41abca5b317f22f1e8900000000894630430220383461015d8a61997644125f8aa32f6a47b7f1883a26ccc87a5aefa60581c974021f3641c9be6ea61d349466e5581e95fb7687455f8fda3f54a3dbcf693d50ddf60141041bc774d6ec28fa00003f7994d75b16b4e0c3fd6a375ff316ea22f138ba965529fcebf727e6ab36a67c09e69e6c16508ca0c7dd056773f45df9d54c2a12f9b4cfffffffff0200dd6d00000000001976a914e89db39ab753c6d07da5d5992b1105941cbb038188acd2ca5300000000001976a914aecdf57a5136ff9b91e780b35aa36e683203ca5588ac00000000010000000163ba2dc09b3662d6920e6e44675d3623987b7de9a7674f6255ac95c86ee24131010000008946304302200a720d6f3238ffe04fae0de67406525fcc4da257299edf8f037ee912873d9197021f59fa66fa8769a8ff042177ecb8b7776dc5d415a997543901a91c2f6c3716d601410474235a4e0b3a44ad26e46885a8825b943d603f4d28f33abee31b7983245b97627848daacbdb979429921a1788a84d154c64dbe071fcdab4b28b355c04dc2519dffffffff0274be1300000000001976a914e2678d43a48793d5838e2664356d2529f3e5b53d88aca5684100000000001976a9147da1b8948e7c8ee47b5e8689f7ba3c55da0ed6f588ac0000000001000000017ea8f3cddc248338f29e4124c64c337108cea33cbc8503255df96b29339a59eb000000008a473044022069dff4843a106ef0f9349cccc5ac214ec78295b57ec315967c65a13532155a6c02207c06a3aeff15b4dbdaec2cb317080443f30d23acb0be112223e1efe2c7d5592e014104c3b032a654919bbadac9e22c3ac28c6fe5aa332e1f4611cc74614c3ef9eb766e358db4166687d57853ded01a7123cdf6bc17194ae6ff33b4d2034143ffdfaba7ffffffff02809dce1d000000001976a9149521b4960ce31e5f6010ac07a6e98778ceedf81488ac80d1f008000000001976a914e9e8b70f42f21748503da5163cef3bd20ed85dbc88ac0000000001000000019976607afeace5a527f482470379f258c7f2b3769ff202a6705aab381460dc16010000008a47304402201bec49ff689c3644e6260039ecc1f45911cea3d53a1da1a312688bcce97f1e8102206e04074ce7b747feaad9a2f8b2b4eaaf65400115afb73a333632bcc399a379c301410437f693a9a0b48248fe108dd4453a247657d58489e20efc07dd8e1175a3cf8e5dd7d62b61d4030a46c43b077d47629e6bbb0cef82a13fe64632752551885d9dcfffffffff0200b42d00000000001976a914a20c5773dd11c6138cdda12cab6339888aa8eda288acfbe45902000000001976a91489b36f026ab4672b2bb81811a8ed5b56d8bbbd7588ac000000000100000001175aab3689286f34a4bd0679ad47a3823ddedf4c3e24fb8ee670a1914bf38ede010000008a47304402207ffd0790c6979f3eaa3af0168f69af5c62206028093ce32373e460481e087cd002206c3e48c43766af4db76032ed71fac5370af4d894645ebf0540544b3c577e70060141041a1e02b6552ea8edc143580df651dc8c63c7bb5f712bc40c2b74a9cca8385bd7ddcd1d4f1bca9246837ae83e9e65351b1451c55298b5306382fc99f0785bcfebffffffff0260e47801000000001976a914a93411db6c196477f9874feef0ff040f2a396d7088ac30e76401000000001976a9144ce1bad2cd7a8f26576247f20e6470c7a449749588ac0000000001000000012ecee018ad8606d304b68093a93d6ce29f2ff72e7b0123148ba365e8f50de214010000008a47304402200c024e29325beeeb051afbfd8997822eea0e847e28f87aac7e87d4821c33f152022023801fb4b03256ffa58382390484b758599424df370beb1e0c06eefd6ef20ba20141043cced1a91f53030e27cc77bb5b4d09074046503eb6b0b421e8d0fe962d02d20f22a3af5a0021e58548306a2a14ad8bd8875154ae25dcfc3f05a894a0b312af95ffffffff0267b9ff03000000001976a91489f54e6f4834e6e9af1133e99e894b75ce92b8f888ac8e212f02000000001976a914e880d0c75ec4e0b1706d77c95a2861d8cd58941d88ac0000000001000000017cbc8ed7364ca984459cccef1064a1539a87f08077e68161fe3edcc83fdd334c010000008a4730440220184e1493750e12c0424b8a24cc5484861e2ecb5082e4d01f10100b15cb7bf4a102201a8f90350e74fc6b89fa09b990639b30c996810b3638cf4aa6d5cb387fcfcd80014104d7cca46db4d019050091efca2ddb22f84db422ddd3e5412f5047d5f164a03fe4a5f4921b117daeee43b579ad45599e7c9f6a0f3868ba3c14ac3425dc777aa446ffffffff0280c3c901000000001976a9140f435479fdd5915f30d0ec53956bd8f9df561f2588acda968e01000000001976a9144f4c3c6c608695d000ada658741b2c74657a992d88ac00000000010000000161f13dc990094509e7b42f6547bd85a5627e94cd25518dccaaffd04742719141010000008a4730440220190df8b356f2f818201efb0adce267a8983071307ec072e86a1b32b029b50f08022060696d8a18681b6b03ff32f7441f4c57464c7ea69396c41c6e7e1439d0807cf0014104a47a6d2cf0b0ea4378cf6bcb220e5a1e6540cc79d7aa8159944b951bb50de16b694e9fff7de2f82607498b6fdf49637b27897e75ed9fa9b37383853dc9fd2f6fffffffff025acb9c01000000001976a914c6e272e758974b3e62f255fe720d3433acf625e388acd0c5a30b000000001976a914c1181de3d914815f73488beb833ada384df9bde588ac000000000100000001915d175b7b4c984fff3fa34903f49269e70ccf53756469b770e8d089a2ae38fc010000008a473044022047ba8cf3423dccf745dc2d3ad232825d55142366c128a19eef05337d57f9a4670220588914eabdbd27390ea3efc2c1d3930a1c779f272a6ef5d741c71617181dc7be014104662d123f77c12b85cd810b293a8feedc85d0bae17fd7b2828116f83d74ee7949f874319ccf04d555f39b4eb39bcf06f0a9aa8e0c8f9d6a6d00e3f8de141fdb09ffffffff025e762700000000001976a914d95fdf3e2923a6e03d575d60874e141c2b095ab288ac99ee5b00000000001976a91418ad971c9a4b43a3d9b64f04d95857243b9200b888ac000000000100000001435fda4275f5eed149f1583d9b8fc8c241fc3901049f85323a909b47c7fa718a030000008a47304402202b98cabbd0390519633a6b98bcfa65d7e39a4fa667ad8f8ad41c65cf2b44ca1f02203fc590c6861273b7b6851a4c03c5ec6fdfc1b3667f4b1db3a3928fd9996871980141043bff7b473684842a592c4e3a525f4fa6adf4dc9283d6133ac1dfb9d5faa83605ae3a7fcc9ca4e18652b2fcf30ef8e6abad8dbe11433f3b0405bb8710583281aaffffffff026cda4801000000001976a914d86d62ad5f079e0b2df59f3d6a8a9791e401e7cb88ac044f2b00000000001976a914c75b5885ab89d1e965b212c18af6056681b96b1188ac000000000100000001b99b1f9130a9ec8654a4563a44861352356982be96e640c62d2f92659ace8258000000008a47304402200abe8bf1e5b8f2fc9dfcb567d1883bb31fed5ec039320f5eabac6edd4dfea5c302202ce1d344d5bcc038d833dd915004027aaa12180f7dfd90f733a2b89b63103b50014104ceb6a6735d2c1bbf8cb98ac86a913ee6b8c52f176c686032dc6e6cc4051561976962673e5749d123f10f10e0196e4088bf73c8bf6764ffba4920cc138ae3f75cffffffff0298bc0a00000000001976a914339b675e1964b342792e70dd90990fe3f161a15288ac58492601000000001976a9140925d3e6304ec2f4020b36915b0edf3928152a8e88ac000000000100000001c60743a3990c2b422bba35bac463bc362795ddb9e5e1aedf751932fe9e91732d000000008c493046022100c623b5e8b182433eb417e51c4c4c73ff693e59d4cb4cc5f9804abc7921119eb20221008b4bf3ee24a105537afcb4eab724af89632e1f8d7e90d8c2036b0dd69dbaf66d01410458aa045e796693592ad1c0f9787d384db12d01ac21f83eb2dbc01ac2867bad3d9c3079633919ac0929405d555c779945016f7326735590ee7c549f7484a55260ffffffff02905f01000000000017a91459c97c71e18d10dd6c8bece399fad89e51b429718780fc0a00000000001976a9141099aaf36b519918cb910590df0d3deb40a2a6a488ac0000000001000000017962982a879a0d77578c61961181ac576425d9275b281c70f272af6a50cf947d010000008a47304402201a548265fa9ec6d7b5315f2d2044075855a4687fc7daced6e4f3ddea102749720220489a6e9b47307e12d05ab21db9cf72e30f1723c1a197ff51afadf5332fc73b07014104f59e40aa5f1e7cff9a48652e5b956393cbb720ad6014798d852681779b021135df449dcb85f96630931abac99a2b0562c02cbb38403d804a8660a55adda93ef2ffffffff02528e0100000000001976a9145cd816f1abfa4340ed1dbfef0fee040eda04ab4f88ac1a3a0100000000001976a9147b0d09d785f0d04257fdd9079339fd8c3c51267a88ac0000000001000000014109001bfef7efd778d4ac0cf20907d810067984b496bcad2d2b4c4422a5254b010000008a47304402201e205fca551a11a846ecb95bb762165a52668938ff8c804b903a0e82535ead5902204e7cc481397ecf2e77c37ad9332a48b525f9b7f4b8d4927e1259b584e863aa5e014104a97b6a922622daeb24383bbe3b3262a7093a625c6097e9d1d8ac125878df8aa1e7ed8fa7b56436978d0cd8c31d5f04bc4500cfe588e7bfc091457f9683d434a1ffffffff02839c0100000000001976a9144a6d24d0657c150cdffa3e19f5b9ca3fab85581c88acb5c4b000000000001976a9148cbf5be921cb1ae293908ecd329f4f9024b7f2c488ac000000000100000001075ecf21d75905e38fa74492558092853922b95f138e7be73f694a82e6823e4a000000008a47304402204e7a831eb8431dd1c54d0f162138c467eaa10efa5b0af977f54796277aa1223b02202b77d26a497b080bb7e3d62eabe07e5faf8366d30313e1b4b688c0da0aaacc7a014104107c6cae014ad7d97003ad83e0f34c5f63fe6e1669086473e5d4395ad0fc041b39ba269fa2efd33c1014333c7aac3c2943a2aff044b226ee79f57d1f06debda1ffffffff02a0860100000000001976a914aa663ac6d9c21282193b9148192dadf7455e9a2688ac70fc4200000000001976a9141c2ab40b32a5d3094b922fbd8acff705bdf9e68b88ac000000000100000001c03b0a21bf7013368b0e93c4fe6beea937981fabc1a1a3d06c2a634e0a5924fe010000008b483045022100ff3acfc24961fe3dd9e5c462ea4ed7deb84a6a012fadf535e65860568099b079022042fc355b9f02271c053a7a84045927448d6d9c50fbdd4f87e009632b4dfda74501410414c4f2d625ec8b16ba51fea09976170055185de9315bf8ba3469b32e158559801462a08c3b39748084a8e6c87db67aa92115105b32e925f4cfea8e1fb86f482cffffffff02c6219202000000001976a914e5585e30519eb7f088b21c0dfb3a6fbd158f632b88acb96dee35000000001976a91422c5526fdbc3b8a9144703b785a72d5782c3367c88ac000000000100000001deb5fc9c75012001f61afb1ae7e5a9360a4f4b1fbe4f2002b8e2befc8d251c64010000008b483045022100f9557ff4c04207b5699d039d9cf249b2a82364cc3868cccf31eb54770304a6c302201d00fe262591cee5bff049ee86bde08e187913c4c00ade7bdec64815b45b9e61014104aab5e25e3e5bb152fcc112002e5fe132b8bccf215ae9da0316b4c592fb4db306e3db3806da59ace6e3a5475b42416a043123a271841f2b490a9cf2586ce6b853ffffffff02b07f5002000000001976a914db74dc5d8d5f06fd3c26f8bc0db2b47121205ba988acdf7d7507000000001976a9148360d0189eaf67f0b24ea7b289ec61475f7501a288ac000000000100000001ddc5f30f030e6b3e83780b2ba15fbd6f62f21522c1bf9c62492407036b3be487010000008b483045022100d218846dc5e0e9c9437ef012efd838adf342db2adc2e64185d5554b12e790e5a022024d308eb601e047faaa19ce35899d197e13ab2f8b12ac40c28bbeeb8b17957d20141044ea5ed048e7a56f3a4bb0c3dfd303617ef481369e9304e1c3c0ef5740d70da456c84032046b50b44e64f509f41b5db52c360fbaccceed86196710b9a1991ead6ffffffff025e762700000000001976a914cb926601139fd310f000165f492060abcf640cc988ac42a93601000000001976a91454e3685c8893b6d283fcc4b186c0d669c8ce112888ac000000000100000001afadaa57ff0b061f1da58d648ca7e02c63a7bc4df818512d17d053a45f8825f5000000008b483045022100dafe77e266223dd7a8b96940d0dd41a299823dbaded4488f2a1321730d4da8c7022065d1486566e9bd53c7c2a4c223d0c751e127624699858781b303b6f856bc3a7e01410461e6ce37992f76ea9312a79dd9e6694c950508f524abc56fc3bcacfdf8cea4da3837522b8bff5675a732ac04bec84905d09eb7e519f207fd20d72893f6299cdaffffffff02903c6f00000000001976a91448bf8f4b1d3fd7119827e12622fbdf38c55a6f3288ac6f801300000000001976a914da25a9fdae68aa9d8d0a8ebb44aa5892c306f3b888ac00000000010000000188f6595dd9f4c10e7081373170660a6b7eb92ffdbca19bd5b9044e6fdab903ac020000008b483045022100c82e72fdbef0c9bb00454500476141aed10aaa0aab3de4d5bb9896407d4f6db7022028a82c5ae5ae52216a0ec6d05f681b244552a2b5f3e890693799380bf184c91d014104d19d36a81409b86c777d2a2f4e709c7197fd738a5fc33d5c0ccde0eb8721d0597d28713711dca7c26d673180963e471d97a54795bc8e41dcdb17759d89a78ab8ffffffff029019dd00000000001976a9148f289a7eb1181236c68208765ed86ad2673cdee688acac624d21000000001976a914443f12eacc14df374acd393118503e7fc4c79a5688ac0000000001000000014526ac41de8ac46faf8fdb15e0b47d10c0f3279dbc77c392b2e7cd05ad00a456020000008b483045022100feba0ff52dcf44a53b653f5eac3fcf610e16753127f15d5949ca7ee501cbb86c022005a7615da7dc679e4f47937e60cd8da9d31ca199d14187f3e10c1a7c2aa5759f014104d27e2aa497c10a4b9c59cac083219fbd8e71c0b1eaaf77691b63f371d310ae6515069292ae84d3751f63f20c5a84e931fc82a3b21e10e7a04e80a54648da24f6ffffffff0274499b01000000001976a9141cc08e71e20b330a92a570fa6f2f35222e421a5288accd5c2101000000001976a914c818a6b3e990634aa93008edc9d0e86c199081b388ac000000000100000001fe5da73b657fc9c315ec7436c908129947c0bb377da4988d9992695f5fcec4fa010000008b483045022100db639d9166ed6565363e4c4c626817b2a8bec9cf9f391116eb395516c2ebbb3c02202ecc39553a61c63d24a0e285a972b0d85624883415cb50aa8cdbc47e8ee830340141045ecd59c94a3324ae6dca5d2f273429ace957fa5098480c0af23ccd2bb0009fa9e047a5e9e72e5d7fc8a7126850633c75807bb6ef9205b26ee55e77b8261f0e83ffffffff02b0692305000000001976a914231d1428aca537e7181fc5c48912ae661bfd9fe988aca1993400000000001976a9145597e8062c77ca2ac43896e2ac87396d6918287188ac00000000010000000161f13dc990094509e7b42f6547bd85a5627e94cd25518dccaaffd04742719141000000008b483045022100d8bf1a90527235e3d85447c08fdb8c6c1ce11e98f0f8509c2da68d1dfcc4092e022054de3b12a7b572628f23b019ce656f8ee28baf91e5f930906672f05d535d22ff014104401b445c1d3009dfddc7e4090418530f87ff99fa7ae34bae465b8342d2e08fcb2fda7a332ecb3403a362977e132e772bab5cb54da13c0cfcbb8744eea46eaeecffffffff0236155c00000000001976a914b7ccfe33ca650d3dca6d4d042715c3829b695ef688ac8a242700000000001976a914cf65d27fad09c4b45e75bac6dfe3509d04392f8c88ac0000000001000000015600d15ab7b25a10b4390a8bcfd1768bd7f588c71cff0713a3edc8626ebc6d9b010000008b483045022100a5f33d09ce93c6b464865e783d0461393ece97b682a83fd8edfd8e5425f4b1be02201866e91dcf85dcdb7b0562f9d08f31239b197236ddce35dc930d9c58c38d991f0141047aafcdf886aa17dbcb9387abba7d997de1c978130d4fccbdc51f89a84e8520ab2d7a1fed6506b9774fccae068390043181b43109f73502a6f2d05358e5407e40ffffffff02f0490200000000001976a91408a9c60df3b9a9058affd6d796eba2b580b7f9ea88ac6cb41100000000001976a914f8d5af3a7522f923652974bd34bfdec8fab01a5788ac000000000100000001c3fe3630216ea082103792d8783f391a9bad8ad5712d830f07e17e421258d67f010000008b483045022100b32a1074985ffb185409569e571f126c8194d0bd5fc3a964e362e4ee1d9702e60220451bd887ab0292a6dfb0e990bb037ba07e6ce504e1ea11f24b7ecd354ee62fde014104107c6cae014ad7d97003ad83e0f34c5f63fe6e1669086473e5d4395ad0fc041b39ba269fa2efd33c1014333c7aac3c2943a2aff044b226ee79f57d1f06debda1ffffffff02f0490200000000001976a914aa663ac6d9c21282193b9148192dadf7455e9a2688ac708b4000000000001976a9141c2ab40b32a5d3094b922fbd8acff705bdf9e68b88ac0000000001000000015b647a206ebf675a3d4ff2793786f5a1e6bf75f595ef58bc2211f0e7d8cd3225010000008b483045022100ad81f129f600edca3437208140c4b4ba388dae9a36ff75e00a4bf5b74513de5402206b88458d48551eb3ed8eaf652d7b5365aafd2475fbf79124a58e747d14f2ebe2014104aab5e25e3e5bb152fcc112002e5fe132b8bccf215ae9da0316b4c592fb4db306e3db3806da59ace6e3a5475b42416a043123a271841f2b490a9cf2586ce6b853ffffffff02b07f5002000000001976a914db74dc5d8d5f06fd3c26f8bc0db2b47121205ba988ac1fd72405000000001976a9148360d0189eaf67f0b24ea7b289ec61475f7501a288ac0000000001000000016941a70b4b3898d9ee26c15069a741b61d807978093af79eb809e9b4831d35e5000000006a47304402205aafe6ca6b3ea108456bea0f235c3128c293f76d280d749a16c23204b72f64e10220715bebaf7c9561146f9becfa9e7afeb203b13b1b1a44984328e3adfb784effa2012103dc76f390898c21bb9b8b7e53a6c861e03355d6ae56f790121d789bfa44440834ffffffff0310bf3a00000000001976a914d4a2681e7db09391f987d5a0c9c1958a6164571388ac90e00c05000000001976a914105d20612c4f3624386204598176cfb13a48fa4d88ace6b49a1b050000001976a914b28a53f439b972f2db9c9680a005d640e830359088ac000000000100000001e8bd6b9f7e08e9149c1a387c42ba8d19c8e989b3f5cb7ba0c7ae32124f8dfa42010000008a47304402201fc8942e2833e8b2566106eda56eae3d8a9d64338abab46d84b2a0c8af70716c022031ca1ad6c2f6608cfc6a156f80181597a18a47d98f10e67755c096631ff594ad014104551b1e0003bcef0db4819d8191b672392cef24a6d13ca5c8f5f6207693e587e913e287b3bb42c91b3e81a154e8eeda4fa21c410d18c90dae8d3062de82acf13cffffffff022fbb1300000000001976a9143f351045f778e91e337226aab7ab2b2f2135c3e488ac51fef804000000001976a914105d20612c4f3624386204598176cfb13a48fa4d88ac00000000010000000120bddaccb167d5061090abc1f59c8d179d5587f96ff9ef9689a186052a9409fa010000008b4830450221008e60a35ecf2f531c0d55187867fa499193780380ba5976fdc85ca08f3297d8db02201d9e4e25cf8cfa26a4ae760ffc3c3fbb20554e0cbbbd4b187e849f0a4e8fbd65014104551b1e0003bcef0db4819d8191b672392cef24a6d13ca5c8f5f6207693e587e913e287b3bb42c91b3e81a154e8eeda4fa21c410d18c90dae8d3062de82acf13cffffffff027c0b7700000000001976a91441a8dad1e784e4fa4c40a84755843b2586a543fd88acc5cb8104000000001976a914105d20612c4f3624386204598176cfb13a48fa4d88ac00000000010000000337ee96ba2dc1edbb65af690e7ab66ad2518ab2da5c6d5e571126ab32cbb2372e010000006b4830450221009de1d03ae4bfbaed4d5b171eb934525898d7cde7af7a665e7b46588d116573c402207bd3c04993ebc884e41d69798d4fa02db143573b15ab75d1bf9b5a4d6694613f012103a76be126c9d08432406d6e6fbfb5cc03324d9bde8eae7b72b4e71586d4489c21ffffffff31e35daab606346045b3cbdda2ffc435e84f8b8dbae6e34d971433b19febe920000000006a473044022045ace32620bc395d4187175e46f934905b491b178542d554727a33b23a1ae8c002203e1b769f070df327e4f26cb1d9374e1817493f82e7fcaf21c12edd009a433b6401210295db9944bd20a9d78d59f5199ae55b91742ba8ffd555425e97f8f17e98bf1187ffffffff66dc651f87a912b50b5d45110a1eb75bff64c6489584cb262674685092f0ea4d0100000069463043021f1f1418db2a9ab04a62ba8ae948ba94610ce3789e738536f9360f56e473d587022033468ed082ab76ce5fa55cfca0686b67622cdd05a5a994a64018563911c9724e012103a6eede2a81d823f67ee5610256e857182f49ed4444ef8773bb738203425eb89cffffffff0280841e00000000001976a914fac2ad0a0ccd563abd2d15a7a280b4a2f7e2495788ac5a5b0f00000000001976a914ab9b9df8a28ad1fbdb8575130909b9822dd31e4c88ac000000000100000003ed2029a0f24227cc8836c4c730a5924cbe728ccfa0a0e7fdac89385c56a7d510000000006a473044022054e48b01ada692ad9fb5a510c46afe65170ce9f4ed1709cdaa9b82dc625659ef022074ebaf1af4e56f36821dbc1739205b1db7eb2f53d9fac05339fa870160c24172012103d01ccbe0948b2a008db994a68428191812fd5016d78b09fc21d0becce89cb465ffffffffe569f3581f316d7db9106ecb97e39e36afef2c1cf6d235d6e86339296be2c02d000000006b483045022100a3acfc0475693884b34612caa53d04dbd7488db176d7236b490fdce2fc8c276f02205bb5e24576d312433a4f8cb286aebe9f44bc0bbaa348ecc1372994a2509502d6012103fffcc7f657d2a2368b8f58c143276928adcb949d00171befcc07a59f1de911a0ffffffff2cad593a889de9aa8bf6167d5aa0eb2a4da53a4a7d0f8038d7ad876ba5e8fd37000000006a47304402206ae0aaf1b341da94c60715e31abccd20e44d64583f6fafb0e4f6862c6b6ea86c0220745ef223262638626dcca5fb718fd680720889b9cff6c58ce21acd69a853ec990121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0250690f00000000001976a914ee3e38b648a77abfc4ce550042a6f5c3a7dc484888ac9055d300000000001976a91438860090779c6df12ea41cbe472359b62957527188ac0000000001000000024c4052a792a3f325d045eb3ea86b80be5ddd3247e8a7934d6e1db875669bc437010000008a47304402200dcaea399a77c0f2940063de262544ba0e639d4f5b64c06cf79c2c694279279f02204dbdcbb7499871b5c23648f6c12117f3674cec21d3a765a173f2f55f76e8436301410461e6ce37992f76ea9312a79dd9e6694c950508f524abc56fc3bcacfdf8cea4da3837522b8bff5675a732ac04bec84905d09eb7e519f207fd20d72893f6299cdaffffffff07ad7f5112dab5756d77a10500dbac92c24cb1e3dbbc7a4b21997833d18d6c0c010000008a473044022014b1054e1f7733dbba7185fccb58d48e6340692dd26b5fb83bc49043712101e8022044630fdd84e8bc10f109ece092a6c5336ce39497ae30ede2a7d6ecf4640022b701410461e6ce37992f76ea9312a79dd9e6694c950508f524abc56fc3bcacfdf8cea4da3837522b8bff5675a732ac04bec84905d09eb7e519f207fd20d72893f6299cdaffffffff0174be1300000000001976a9146af9d4719dbaed66a164325abe7a1b6db65617ea88ac0000000001000000025947b3b66be0c45300b39acf14af7025cd18340a6910e9586384c42ad7de0781010000006c493046022100b39b66139906089dc1a4fb49aaded039982f0c893c10d2a025a08db9ae37c0da022100eb4179eb57cb7b5fc7d39462d1fdc484262743514807ba9e1cd37dfc485b8493012102b789891a23a8de0661acad50624e6e3a5314b000577380f5d5ff5edd2522d539ffffffff6ade298009d733860c652b3840540a3ee8a2c205e4b0b1c993218902eb7895d3020000006b483045022032b236023b52a0fc261dc0767948df8353c12c2fa75fca5e43082436514d6e86022100a6caf7fe36e17c704adc839450c2f67a54272af36fdfd6232def1e751301eaad012102a50a033b80aa01b6c16ac800cf1b4e03dd3a46e3a959a012e448a39208060a8dffffffff02a0860100000000001976a914e114fb9450ebe9038a9cec050153658ee3e29cab88acc6620100000000001976a91434eae7ac67373d3905b8f1abd159296ef26e226a88ac0000000001000000021a3137d7d9054588e2d67d3edc4d600c5bc37c877a71467f4cd03a17dcc7188a010000006b48304502207bf7d38f7f53e9a256634fa9d938c0e0853b71d2431bd34c1c7eb45e6b31465d02210091855589296a8f2813bdaf58aa8a100c6d59a8b152fc59279b884f8e515aa3aa01210326068aa063bb790ca797aedc32f43ece8c5588a73a1305ff20a482cbee4e3a14ffffffff0d83615355af80421ad4c8162625f5fd381369f8458f610b37d856f92972581e020000006b48304502203d73b2bf889473891d727992dbc525ffadf57440d6a287b4af73ae3b39662df1022100bc8a062f9f551f8b5ac0b5a8d5025e6b3b60fd61a0c779ac5ade876d4116cef60121038655e8043898e5bbae44f1278b17b341feba7218adc38fac030fba60cdb6358cffffffff02a0860100000000001976a91403d8ef00d00bbfa82ff626c8e6af138c705427a988aca6140100000000001976a914708ba668f692ac73f15c0c1734fba66182e47be588ac0000000001000000018a3f9428030026477dfdadb750972ed82529db564302a96bcdc512ec6d5262e8020000006b483045022100b2cbc57df97e6475c459aabe40ea1c463dbe91434369b7582c7b87a7ce4c832b02204bea2c5b4eb7ecb9d1466c5c2b8e1cc72bc74973570e0d6d67d8ad9a465fde01012102850a43a38842d86dc50d4f39c9e7a7dffcf6b718b2bb6f750a0e39fd5c19a048ffffffff0442180000000000001976a914fbb6b2921838002eb814cc6c2e18523d92f1721388acd4170000000000001976a9148e957d54c8bae87d142300e8986f012591a23f1e88ac263b0000000000001976a9148bd11463c7ba02f6db23168eeff16c0a5338500d88ac1ab67d02000000001976a91499a41aa79409d33659cd5358b911d986eda1af7588ac000000000100000002f6dfb10cf8c9b69b32fab43baac1d7e424fd084c104794d01e5e87dadaa7a1f4f60000008b483045022100b798c4a046465ea9ad4c360021f83f5d3fd5630aa3aa1335c034208be1a3114d02201c54e1e30eab1e040708dfc14f890911211f0a3623b7cd22484143eaa0119c8501410420e4e2aef02306e37260cdac1325978a229aa465652a5231c8e906e97c73b2d5303980a7181129044b12d37f288ce5d3d22df314383674b1b78d3e0b4632e9fdffffffffc95e6aa046359353b03bde2e09b17b2b1632c8d52f1d94180a11836ed5b6b0f7020000006a473044022020fcb3dbcfebb2f493c23ad51bd5d49a3bc4671b9999aae7533479994e1f966b0220197860e87aa60bb5f54bbfbc226edf7ffa29d58f10d846e50d16b9b2cba748ad01210386c14ccc47de096a807a20a0df9b0f8c995957351c571f7c36a9a7cdad0c5aaaffffffff0210270000000000001976a914d93e05069aa9afa0a814a9565a1f8696e2d04b7e88ac86c60000000000001976a9140aa91889346e17d2c0d45851f1e0490608fcfe7388ac000000000100000001e47f6bfc50d96edaeb5acd6db4eb08b543a702f909f2e276584b629bdcbd358200000000db00483045022100bc18b609c8979390ba1f111ce54e537c375eb5c22e469e95f8f171c0d4ea59bb022040952b09ababa2bb5816a9e92f7a40bdaa68ecca07c800a81d010efeaa94898101483045022100cafcafdc258dc9a19116cc0106248e23f7904ab1f4197c30cc85a194a61a586f02203727c8bd1f4f5da5e58074cd197b34c112eefba1b37162334d95ae75a510c48c0147522102c65bbf3337d3efdb65bd9a85d848fa1a1b236643a3d18cda669f7f116983d7f92102661b085665768560effe2b1db80ad5084921c0ea2302b509676fb4e9a158afce52aeffffffff0180380100000000001976a914a6bc1a7327cc28126d5e466e10c840399ecb90f688ac000000000100000001a9a767bd57763eee57711b9c5e54bdd8c959ce62d2b6300ec8c2953173045fce000000006b483045022100a0a225429054416e5d19498588e3bafb34e221e3a1623e256e2fc273a7b735d60220759884ff416e165f7b675429054ce914d479b2abc1067c49f3772e88f2fd19a6012103e6a5de49eca7eeec9be818ada1c3c626e5545980bd50b9404ef330514eaaf9e2ffffffff056e055000000000001976a914b46d1b1e3af916966c0f45fe34ca590d6c14d3ed88ac705d1e00000000001976a914ffc9681e51871224ee19ea5874bd15d9095af34788ac56830300000000001976a914989ace22eb7388602a3604d92a367dd26991fb9088accbf22300000000001976a914ab5997673bb1be55088b1b987eb29a0625e3641c88ac71960200000000001976a91474fd1e583cdaa9dec2a60d8ced1d814af57d245088ac000000000100000002a5dd0be69757f1d9abea82a18e0eb45d8dcb441aba0138a17fa9cccf9a9e180fa30100006a47304402204b03c45e342f1bd7e61a0bcccf5ca2b6393e2a2c6b3c112853173c08265c86dc02206de8e374501cab42de1d44f97d8d10a1084c28b4d044d0e8ebfedad1a3958b4f01210320978cbfcccf1d33171b4d19a8c202a045291991e2222c4b52bcfcfddfba26f7ffffffffe34e5377be6c836291255ed6748a32310ee9618339d94a4d351fbe3d46a9b8a7240000006a47304402207869711ec81d0eefe323712a1476b1b4693c7d9a8b461e13a3aaf79103d9c863022070ec86da57388c58db58fac1232631a430c89874c2e6ac6002066dfe28d0497d01210320978cbfcccf1d33171b4d19a8c202a045291991e2222c4b52bcfcfddfba26f7ffffffff01ea460000000000001976a9145aac80abff85a2302e23b5e628462632610cc3d988ac000000000100000002bd08f232639c69327bd52e57157cf4d20dc79259f88a19436a849b930e673a34000000006a47304402206e66a604091a8f95fab67b90280b853f1713a1636cfe9c112c3b040749a75c1e02203a6d2f92f6b53143f2af3993dc27a0ddb1e2b19d97ea20a93f3f991bd616dcc70121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffffe5588461e1ba296ea74342d47439d85c59a4fa0592154b73d97fa5552d5cd337000000006b483045022100c0d835302ddffcaff990cd898a95236099a70297f7f462dab053f9a84169664c02205d88a50f8736af0262704db67c066352c26352663d79178530ff1a1144195c40012102e356f1652142ae4df9cc29b7d4016db02af34b93e455c334e103a904c63a8467ffffffff01f0292502000000001976a91438860090779c6df12ea41cbe472359b62957527188ac0000000001000000020afdc709516ff038a4447555b8af227c77fe44628470ace25cd16bdea0d60f50010000006a47304402202c1ecf1d4d11d8ea117e8f47801488dc5de01c05293b279f3ce3194ba9ce81ae022027de83f9d3b9c02525158bc4f1e65b013d0fa5c5f116392d4fa2b4f9870df8e3012102235535cb00b18c233f241d5a0a6cb4deeb087f02576e221c53a217d8010ea97fffffffff987ea93417c0ebf535d5e480ccd3cb3c0a6eca0d017d459b25ed07fee646e960010000006b4830450221009756cb3972dd8d6d33533cf827d502d673ba8f99cde70cfaf3610cfcbdf0005102203aef8baf2ff0a09e01c63ec489f2a9e539d80ad3b47c430c5c1263277383b03b012102235535cb00b18c233f241d5a0a6cb4deeb087f02576e221c53a217d8010ea97fffffffff01d0be8b03000000001976a9140ea72fefe95f5474aa6d43205933795a2f79af7f88ac00000000010000000289922ae032065dc92995e660d1f5dc1af6b8642ed6551f904593a019eb3d11e8010000006b483045022100f60330abcaf984d54a7d0c5940ee473c829d594eb04889fd52729a36060b57ad02202eea09a906b324e87ea8d4d50b157c5a44dbf5775f27b0014124e5fc0f4610fe0121031b96c5a33ae4c2290567acfbb469c2e38aa3a507e022b0ce131d741d09df22a5ffffffff57bbbe36e1d7f2a732fab127f301fe88e612bd2f43d97a331da8934044225400de0000006b483045022100f49947fdb502027befea1fb7991cd78962d11ff98d1449f75d3f0c50d90c4aa0022002008170bf0c4d7930f7427d72ef9ed4040dd93c6c216adf240f19bafca3d15e0121031b96c5a33ae4c2290567acfbb469c2e38aa3a507e022b0ce131d741d09df22a5ffffffff01c4d80000000000001976a914bbeed08fe2fe55824799e41e6e5a7ffa0d98426d88ac00000000010000000222505cadf7b0a12bcd84e95bdf3777d810a9b89fe38e46e347d664a515694e2e010000006b4830450220719fece6d4d3d4646ca03d3f63430892701c3d11e88d0ab0a27379ad4fae36de022100fa91f3237b10f1ab3eade0447cdbafeb4832b15db21499506f9d9f58d7741513012103a77939530e843c87bcceb6b608a4c7c0a558e937a2314495f96cb8455defc54affffffffd05b32e2dc3637e96da536a3486c2ceb83c7d363abec21c667b3faf19eec1847020000006c493046022100911f64abd7fd115e62123641ac9f3a2b2b925d341b43d9c5ec3dbcf87cdf9d5b02210085bbf80c569f5b999987dd9b25db756725a6e0f5ba921320bb9e6755e2613da5012102abf9fde715d4a2c83287493bd8d808729e1f77287839cdb40a305041fb2b61cdffffffff02a0860100000000001976a914829e03ccb7954c79587ba0434ace2e61323e889188ac96ed0000000000001976a91405d6ebc3a496d89057d0be98c3d11d97a8dd415188ac0000000001000000013d951d254ba757ab945f21db507b26e7a43a877e296c71dcbfc90214da1856f901000000fc0047304402202b41b4478fe1f38657468fe969c0b2aebb12c8fcf41f69ea5e3393c66266f3f8022065c3c2cd9b9a375fb386d1271a010f4d5cce424ce1879fb6b5800fbf43a20a9f01473044022041ab844b1e92ab2a041e5500e7db748edbfdb2603d9675ec70bc03676416529502200be7d9bfca6e7dc8d8aeda6aaa1c811444f61d77b36ddd3891df0e5b018eb2dd014c695221028c1bfe6b1779f9e043658dc3ef94b47ce10c9c43ae8ffc6dd292995b9f21e7f621035119cc8b661d8f13f24781790a6eec7aa7896067f94586b4fd5b072f1e702f7a2103b7f64fe1a246f77042a171a853981b17c1c22c6f25964cd6b9e8c8dcb4c40f9853aeffffffff0280b2e60e000000001976a914f12f309f1d1ab37279230b1db249f2a073666fe888acb0ef61030000000017a914f6283121c52db1bb66f6381be58d28e6100ef286870000000001000000024631f3efb79df631a513996adfffd0c34fb7666fa83f30b76b1740869bd48d79000000006b483045022100a66c749a6bea70574ab3db5b28d97842e0b91227b5be3986a682b1c83b46c0600220449a917b95568f6c831e307250f3833b74bf4d2ca3f32343448ed248b50912340121031b74bd84c16c86ced1b103f4ae1e1023b3709499c6bbbfb7acff3836a5665632fffffffffde7b880ed7d3f7fa952f2b5d48824892ee693374144b59fd0e02e700b9c6f13010000006a4730440220432507729a0b5e2af354fe240bca298b17cedb21cadb4044e6e5f0b59717a7fd02207954ad4d568b3f80599cb573518378c5f53ed33fac1bd90fb43b2e9ea16a61c90121025475829222b5cd426277b01198aee63f19ae0439e2bb303f752354d5d5652729ffffffff0210d830740100000017a91458d3420652b3720ae27303dce44706ebe3dd25b88798921716000000001976a914cce77bd089a3289860e9817c187a7ac9cd80005f88ac000000000100000002489a809f96724f9286b07f6b0b4ea9232eca8fa58b2283cd44f2807d623249ac010000006b4830450220743420fd9fb0e5ff0265a6dfe9e274bb690437cb4be2484c718465ed21bda34b022100afc04b82d5addd799a0cab232ab68955b04e5979678cac924ef7f65c792a4ce2012102666b6dacac68a56b273ec31c7c3fa857aea722fad37cb2ce0e5637ca141b3f7affffffffff1588af29301db29574d1d5f2bdb971c790b90ac435afc1f33f72d40e700984020000006c493046022100f2f8fb7c6baabd98129022443748033a45f7322c48facfa1f70e49fe0352e03c022100b51b50d684faaf8b504ef0fac95a7d1a9bae97a60e3325642c274984c4ea8a9d012103f5d02db24dbc4a2ce2c255c0fa3bebd32dcc7fbb5336a85d0522a692b1532e22ffffffff02e6e9a900000000001976a9149528c07a318ad273d20ffcf705eed7303c83923888ac769f0000000000001976a9144e2013d48eadfdbeb2a791904b828591c04258a588ac00000000010000000208a56e9be90b64b77621aa1c4e2bb0f271f3946cad545bc8a36830ceb8b98af8000000006a4730440220032219f59b9a8c78617acb123f2e239ed0f9b3271f97f33b661084aef32a082002203e2e4556ae18b2b4755396e2576028c252385388d2e3a371c21a4aaca1827feb0121034f26f542b29fa004d08cb1ea2f8ea98a0b582109890275ecb40d22c5b8a2d199ffffffffaa24cf56435160fc4e390cd6919b4490a8dd703db2dae6cbd56a9ba223ac113e010000006a4730440220490fba9edfad3ac78209f5429fda119eab9db939ae64bc078c74c80a0247453b022027444516a1a116f5b2394e20ff262df0076ee4353547d5523cdf0a525f6a9c7b012103f4fc9295bd72824a72d0f8d51a44a0e3cc04292b835c6457e408fd8511ce0864ffffffff0234800700000000001976a914d390a4f6393b4b176b89c02ebfe2ccb4805ab19588ac53291000000000001976a9141ba4320e2b1baa190b5761ab47a0b3d2fd1e0e2988ac000000000100000002f4a75777085a23edd592a10daf63d58b754400462354b191b558bda6019bb48e290000006a473044022048c238e0e59b70b8f960f0fc7ad76206022686c38f18165704dd4af537aac497022034e942bb06f5fa6d908d11a91f916371cc7995404b7e9dede1f5c42603f97227012102951cf786f0db0eceb979fc5789c7c54495d375c6e0e1d9c0bf8e6ae6cc47d231ffffffffee023bdae2d56662505af8b07d5ceae93dc83a34e0ec4589119da10930784e1b010000006a47304402202fca6154229fff0903f2aa2b48f2f798e4cf3c06cbfef76bf2cc7ebae571c488022055a457d245453a084c604ccf984e81d6ff6087692339bd6aece05a38f89d3bee012103edf00c2a29c28eb371ac6f8167534123fc6a86c3f4102ca71983b4584a1f65c3ffffffff02404b4c00000000001976a914a7158ae172d699b5371a94fb8e0abce2edb526e888ac8eeb0a00000000001976a914bc42e27fc16681080bf5af3740d28b7c654f8c8388ac00000000010000000290fbbbf11d7b4060e284f372c0466e5e864f88d94f0bcb32d472e876e65b89b0000000006a47304402206cd4db6a62644271f8640d3552f38c12719871973f699567ac61d08641d75ab1022024a305f5234436fe3adc13fedbe1520d9bbd1898f9189ea75c9e2a508f6dbf10012103639b8126560f13b8da35398ccbd55acdc24d1fb87117f93d42d7b85bfb2d563cffffffff2ec3bcb3ad3959732467d09484d539879c022c819579b82b352ed745eb1cc288010000006a473044022021549792134a8fff5a8c09ccade3438ac886448228842c926c477e55e243af25022050c4a696322ddf585b31035f57b6dbce4d1de7f71874df90445d07eb9963da340121031d6af92bbfc36faa0c952b1005096195b1d3a0c7b6397cd5c8c037c5d3d0cc40ffffffff020741ff03000000001976a914d0b58c0e87e788d353a552cd187094df10c3e63d88ac142a9c01000000001976a9140385408b7cb3adac53978a672acfa2072c0f8a9388ac00000000010000000200d408d2b11c3e1caf274292d694cd5b662bfdb13a7e6a0ac9e945ad935738a8030000006a47304402202a544dceb60a23a85d628227ebf5be3b19441c3c191c4595872774c911b9ac4202203de707d553536f9b1b7c319e797a4e7bce8ad11c8c9d6ada96d781929f9992660121025f7c9ec13572b539352461678c4991763bd5b4754ff8449fd5ce6e5f1dc2fb88ffffffffbf0e16744a314d1916be7a6befcf7024c020f7a8850e83478b611f4f6ff2c692010000006a4730440220104f2814bd61208be32edeedada23ca94740ac394b325892afd86407c4f978c702203b25efb7e95861e1edde129fa4406f72800c46027e690819255cb96dc9da2007012103088398729490255637f591f97b6b91f7b547bd45e63fda780f892a21b4cb3417ffffffff02a0816a00000000001976a91485de29739a33321d8ff0f6eec6c9b30757265a8888aca0430305000000001976a914a5dfca68bbd4fd74ed9924a7453b1d6ff911882c88ac0000000001000000027ebb43e0aa15227e479b0a5d54eea697abd121083c636f4cc962d61eb92c61b3010000006a47304402203ac8fc5b0d72d33e3d1e1714a7cba03ade031d3a098a6cabbf7ac6a8cac370a40220578f556b148ca3f057791f75616c64cee20bf54aeb1ccfdcff3908ccd85839e30121027d48000a57d26f4e621da01dbbe7ce5a6629d1cf0f96970529110ef910b1dac6ffffffff3989d117ebc2a322e7ab68973a879b4ea2510a59be6d10a85985b0832b2358bb000000006a47304402206308feca2d139b85cab359b7e2d5a4700de320dbcccb2d1b913a2b24113a26a002203a47c037a1339595efb03d401d538158107fd824c344a10477efcb0ac41e9ff5012103caf3f19af08da1a9d94c7b307b06c63c6aa275534800fa38c86d6136d1e242e3ffffffff02404a1600000000001976a9149a9eb69cb72d1c95f9cbbfd838d2b3f76e9a3ab288ac30269f00000000001976a91438860090779c6df12ea41cbe472359b62957527188ac0000000001000000026d31d5e7cbe5acda85cd701654d1d2a3aa30a2713dca6557d83c7950ae98c481010000006a47304402202f93e93bf3120c824131d35742c87b4677faae6450ee70da56871342c4ac763002200888fa3f30a9c59a92945acc6fdc511321c8c555f344f9bb58c389014539a491012103e4df69393ca79a2ceba9500445b4d9860db79da899dd3ae703700048a1a13ea8fffffffff0d4d4a17d352c6a493cdef378fb75f614bf5a51282a9964c4ffd0f7815affbd010000006a4730440220527aa56d31729b4aa1c466fcec333e59c71f3e401d33569120c18d9cf27bb644022070d9a0fba7f8159c9755e8fd87111c564d0aec92be08d578c82952ad94f9d5bc012103e4df69393ca79a2ceba9500445b4d9860db79da899dd3ae703700048a1a13ea8ffffffff025cc92000000000001976a9140f8aa8dce27556bfbd1a1e5572cf7bb0657a6f0688ac2a160c00000000001976a914bbd06bfd2978564e890411801b39b5de7186c7d988ac000000000100000002b24759369fb552e01e5076903ec8026b269fa57673157118d19ecf568ca774c1000000006a47304402203351ea83d1b236148987cb2292d6a3c416d58efcde81cf4835a26a1d8d28b6cc02201c4f1542fdca71e9d2cdbeca7ca86bd1721f27d4233a854dc733a7824473eb850121024181a8fa7c766d99736e3008e4aa470600ce4525226ebff294e16d908c73306bffffffff2d2bdb7eb198934401e6f318725fa29cb74fcdb9b0e5e0a7c495f177d3f026cc000000006a47304402206daac33e5a846b9a8498d1941722f49fc018c8c50dd595ffdab85f3cfbf41f2302204fce78c73f1236c11ef75925e2144786b195784b99832d2111c24bf8b7370569012102aff6c2e9136f2fc2791136f91585cb43fb2f96aa455860386fab889c0bb78972ffffffff02c0ca1000000000001976a9142f2060ea8db4d560130f62bf83402e27a3f7c9b688ac90940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac00000000010000000296698c9f06b619f94088b486d8f35942e029eceee6107d0f513dd7b3bd57d1bb000000006a47304402202b85df2d5b0ef50ab9129bde72be90cb315a4e8b0d1b5e6eb6f798a2cb7ed001022008966ab8afdee05611dd7be0bc402f7fbe14651fcad5f3b4cca7adebcd422aee0121039fa9957e14aedd82d02d21adf17ef522fc748dd11a45c4558e7df491b31a6bcdffffffffe08b59012caaba42a7087f6866bab135121185c97222c610b355a0c23bc06b6d000000006a4730440220048b2d68e78c543b3683cec1c87a20ee9073ff6a50c3d857111635b0744a8bf102205d41105f11c75fb892a251db34c04c1e4ba8f862ed579c7cbfc521f08cd2a9370121035950ed2e52d1085c1f6b9cf1cfd13371d74e901b5bb7b8560c18e511cac5bc09ffffffff0238981000000000001976a914d0544a6427f839bb4b42fd180afd28ea567ffb2f88ac0d180000000000001976a91420b171f0d7f967e9a72a6c32ebb51df2fc45f00788ac000000000100000002d13320947a66e316d81f15639bab21cc9d797972466796cd331230f5999e713b010000006a4730440220446645355022bc878e165b821ae0f01199351543bc496a5e6d2d27cbbcec3aac0220283e0bd177ac458b68a127191d2cb1af911edef5ceb5aa155af83055fceec5e4012102b9fca07337c837fdf3e900271977c381f185ae9aae62629795a3a7291280d42affffffff3e3e80e5da402e01c5d465befffa928cc58a1a70b712aa8ccf2dc9405b401d58010000006a47304402202a99bf5ecf91d31cef6f7dbea58043d5716b72a0c535a3a405b5f9ceeadecbf202203cc37fec809eedef5e97ebec5397dd55cb76c72142e99f2b9b8754abfb71c421012102b9fca07337c837fdf3e900271977c381f185ae9aae62629795a3a7291280d42affffffff0220a10700000000001976a914b4902236a624916556f8b8aceaa1caaddc998f4088acd0fb0100000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac0000000001000000021ab6e95e6a1658e51626cf2d4cbcb16f7df5a1dba50c5ac5c0b4065c9abee5b7010000006b48304502210085109ff73bae0ce8f3a2be6bc8992c9b6d559cbbc874a83a816a3a9ec562510502202a1899ade00dd6d7ab8b398e2de06966c4a323c6982705be05aa4c535ba6765b0121029022c68dde6664ac8f62a20dbe069d8aae3df03747f7d741ea707b48aec52ffcffffffff364091daa03ce94a4826d05aaad417daa23e4459c7b2f96d051b5d309fbc702c020000006a473044022011010d1d6f13f555e48bbccc20000c99cb2a524cf74d132c45deee0630509edc02201b2e88a2e97220548828fd20ae8560bbb20fdebf88041126df87f7bd9baa9c2d012103d12b1ac47406c8fed02142bbc917749cc9a07d6696f557dd84c1bc86e0922a11ffffffff02a0860100000000001976a914ffea4609d672600057d53c594e205f42c7bad3cb88ac769f0000000000001976a91456d3c8d2d631fca0ddc9a7632b8cb856d967459188ac000000000100000001eb28ae30c5d3f8e0820b7af855b0788a4c5e0d67578073e2293441b687fdb42601000000fdfe000047304402203732a3b0cf66f11ea45e6c9c782be3ed256e4ab5e9c412f6c6648824977e652a022061566450bf04075a33effb56b8090e7ca384e1680a67623a5dc3132a362241af01493046022100c5b057da5191b5e58209c7a03449dd2f10c38b4b13810bebc73055f79e0e19b0022100dc35efeeb294c0fe4778d6c4061b2609a6486372ec2a259238e184d2a25eb4fd014c69522102a6d927876e8e045054ff9d69014de5c350463ab5335299244a74814ec19f85cc21037d8ae2373cea0a4093c00b16d6788dea4616140bf6198402c1a1c21ea77537c52103348ef123f0ddc55db1416780fdf7653db685b24dad28cd9baaa5ad5ed70e2cd053aeffffffff029eb50100000000001976a9145241b4b88c21c3d1e0b2d11462ab5f6a2fce697688ac82078f260100000017a91453943fab41e0c272fc20dd5fc9ae05f08dd5e48787000000000100000002637cbe1e202b0635e450116264be9139b3f7077e2cbcd398413cb3ae746e9416010000006b4830450221009d02a4c8cc99e765a67a7ac9f075f00d1e7240c244138544c773195be12ae348022069a230786289fc89ba17c31cef8730b8f7263d005346e08ffc0907b85671d008012102a60b79d1af03076b056d8ff81f597b811890b24729eef9825615c9d087590a27ffffffff895acc69dc1c74e5d780397ecd233e7b7216955c2511214afbb40048158cf2f2000000006a473044022024a11bb637b4353b14a691767154e311a51dfa9e91b96f1626e198a03119e6c202207986bdb2624dc16eddfe8694e71f640e741c58e3f63f3c052c04b476f9f11a6d0121024181a8fa7c766d99736e3008e4aa470600ce4525226ebff294e16d908c73306bffffffff0290f73b00000000001976a9149c1a709ce2cb75befae335201e42fab6345c12da88ac607d8605000000001976a91438860090779c6df12ea41cbe472359b62957527188ac000000000100000002604f5211c6d9b73f9836e6f36b97f40d4e35c05866e4ff4eba0e43373b72dad9000000006b483045022100ee0a4adc8489e387fac04ed6d0b2c9dd4933f0714ec96913947c68563d34fd6c02203e8c37d835dacfbde9ec5b2be65d5fb2d981b1f8d65d49441bfb8c908aac56b40121025dcd75054f6fd7924430a1ac2aabf221680d84d2c9ed106bd256755b763742c2ffffffff43c255b5b256ca32b881cca5995568d9ee5f49b982533c01fa838b34c3f57970010000006a4730440220232746e1a57cdb50a3ad047464b1a8aa0dca3a1da74762fdc0e6cd1986fbd242022000896d77dac2c645832b84b219cb99f4b3812536fed6091b5b0e4db5e89688060121025dcd75054f6fd7924430a1ac2aabf221680d84d2c9ed106bd256755b763742c2ffffffff0270de4700000000001976a914d5a1708c5ac5aeecddbdf733629ae8051c1dd22588ac605e2904000000001976a9147aefb9b659e52564d4a1952b8c19cade45c11ef988ac00000000010000000207ad7f5112dab5756d77a10500dbac92c24cb1e3dbbc7a4b21997833d18d6c0c000000006a47304402201dacc46ce8be71ea9f05d2ae0750ac002cde84fd268bf1f44e545f84e7cde4a8022057ff9c6fcceadae2c06e1937791945946ca48401120bb0b85833b301f27b6fa401210268520284167fd9cbec6418bfeaa69a6b95263ab6caf50de90bf66233531d065fffffffff1479b5550e244ed919e744422523d5a9c0c22617eccbf098431e7083f4ee67df010000006b483045022100bfa5e22048082957c0047f8b5cb54cc2c7b4a7628b3b787c3b26fc518fc77d0e02205ab51b87dc05d94570bd25bf80642ecd38b79b9444e7d5c8f1a2284b90f818ff0121024e7bed30964a816cc009240f419b452f2fa607f7817b0348ebf7839985d08adcffffffff02903c6f00000000001976a9146cfe792c3a0a0c98efd61f7b434e376faccc364f88acc034e516000000001976a914865cc3bd72f03ffe627e9afe34975f930cedc64188ac000000000100000002d733ef83497065f78e9e4be34e35712af59b3abfc0ab4b02a930290e246d99cb000000006a4730440220573df34812e951f576d181404668f9e51484f8429911ce2e4dbb9b3e01deafc6022024ee33c19718047fad973a5fc7fea69f31df876a0968c7d7aad5f86abf45243b012103ae10b9d6b42375e41d2a46a96024a8fbb06426ba9eac74ad96a52d44b23fe030ffffffff118054709c07a6f1470f0a0dff5e9a3e5cd08bc52e3587c23d9b14d082e5f3c4010000006a47304402204c835b72f876a9f6da1e43edb9374eb8a3d35c61be57c8affa7d4be0bbeb683e02203580f6995722102615a6382bd54ae037b6687eb9414201c7475c7144b781e3510121021db1104763e993b67d631fd8a32972986c469de4bc93e79abbbd5f8385fb42fbffffffff02a0816a00000000001976a91488b3202b82ea6bb8a6ce4ab731044baa6106283a88acb00de516000000001976a9149040b2841c344df3ff623d0eaaf4e52e2ade4f1488ac0000000001000000020aa4255cc5eab10cf63f33448fc15df8d9255cbaacd3e6743ed9b2864eeefef4000000006a4730440220168f76f37c6064bea3632d2d8d9efaee37e8fa596625bddd5d21b45021d4ce5202202ac5b211ad435f7e57f3ed47f4cef0d469a6316608e6174c80bd4514915e667a012103b9d88c1ecb240d015a2ccfcda0d2014961bcdfe03c4baed97f8dd0cfb48d2c6dffffffff22b6ad6133eaef65e9a7ba1491103bd92d45536dfc6cbed40789ea081b05a813010000006a47304402204681205dbb4bbcec817e6de0592d924736c08a31f9fe129ef3c241cf8443a7a802200cc2bc386d5dd0456a21aa8ac5afbb232859f5f6f1ada92f8521b20e1fd4eb5d0121020b1e3c88e6f3d59bd1261b90a7ea4cc6f2a4d1745578ae5f4e89f438fa117365ffffffff02a0816a00000000001976a91417165c22935f0bada6eea263fc2947b65f455a1088aca0e6e416000000001976a914061ec210d7eba807380593791f612537cb04408c88ac0000000001000000020fdcef2f39ed39d6e504b3e76ab3ddf1cae5ef357fc953b34e447fae76ab3cde010000006b48304502210080b4c0833662ff57e079876972c44bf51fb48837b39f09ed558ddd6e1a239f910220792801ff71a42eb8f52e248ad4c5d122930fe2ab80b09ce420eaf09cfaba768e012103e9ed96cb0e760f741bb000694e0290ebecd0bc840c7f335d781661c7dcd2a531ffffffff0b8703942b0d3f00d5181916f975d7d6b5a7332b921178422aa8b80032926651000000006a4730440220350cffdbebf231ba8d782f588929fcea2cd29c5828a86120d8c285925114f87002207847c151ef0eb77de8de6f2883c15299723f02316eb1bc65a85968cd5d8117ab012103e9ed96cb0e760f741bb000694e0290ebecd0bc840c7f335d781661c7dcd2a531ffffffff02d9100e00000000001976a91447c91ffb08cd7b928d747bc562360d3896bd769e88ac89d61500000000001976a9142f27cce7583b5c71d868acb03ac73a4ed8d0499088ac00000000010000000275c5b1d893cb0966184544f8f78f4d049800ef3d51ba6fba4c9b5531b17d0d09010000006a4730440220194a8228db0005cbd9946a483be56773919ca3e68723e0f152c5872861fd0da502201a800ec1e3cb712fbf92c3954047070076a6326def11a012ce6cb3b4cd4fee3201210217b98fc6ca373b5044a68c67b14f403eae104d374615ae7164aca72b8f3d31ceffffffffc1adcfe198c4f7a3d5e2d27861c75cb03ea586f3e1014a2f091a3f80acad1528000000006b483045022100b029f35c727e428829dfbe03fb4048ca42ed32b20a10971a51459169e5f7f2af022038b04d249cbde59f980291e8ba525147cc6f388c77f6ff48209c8380be65d9aa01210217b98fc6ca373b5044a68c67b14f403eae104d374615ae7164aca72b8f3d31ceffffffff0240951600000000001976a914d603e99c11a792ccd42d1390a790860f244b8d4788acc4090000000000001976a9147f99d0aca72e6e6273bb0fb5c73a4fcce97e09b788ac0000000001000000025e6c78b8f667c245c64fb1d0474478e0ccc9248e058a49a065f07aeb1845f6cb000000006a47304402203b349a7cf8eacfd777028e24dcdf7f0532a3590450d6a7c6cc198fdd1f7479b502205a5dfc5a7b28b71f6bc3abd918f77b9b51dc06274b551c61ffcee5d97956d6d6012102f2d6427219459a7f3d80f0701327ed1d46cbac18b492c71191d2dc5a0c4852e3ffffffff968effa108251b148ecebe8cc04ee2ab4ca1bbd14eafb5167db64966aa79a7f8000000006b483045022100e08bcebc8593e2e18ee8c90a72d76ac87faefa240f76c012466186d4c0229115022042fadd9c42d9b47f6a570c91aec8f442edc1d71bca13fcb3f6d791f08909f2920121029b3b1928d93d6647910cede207862966d9cbf3e9202dd3be7f33193b96a62848ffffffff02fe523500000000001976a9148526c6ae31dad6a30a2baf08a719108edebda61288ac58b9b100000000001976a91481acdcaf941addbc6598e550510bac80f1595fa888ac00000000010000000200d408d2b11c3e1caf274292d694cd5b662bfdb13a7e6a0ac9e945ad935738a8020000006b483045022100a3a364dede88d9417eb8be28826837bba4f735c78cccf6c7bc07ca9f47ae48e40220011c08383ed535177c748b72220bb4bb87566292114b996740865c18b6a2a42d012102cd982182218cc8483e81a9b0b97c5b5536a14701933153c203f44385585e0864ffffffffef11c6489fde3c8f26e38f8f701a732b188e63f3c785bc4e94922228939784c8010000006a47304402201e743d809fdde4adfeea9bf58c60edc46477cfb897ffe4ce288a52af9ed8723d0220604b7ec70bb3638c7a5cee8e0364465e8ba82c0ec62b25b685942ecc29a8bb6f012103e61a738968e9bfdba1baa2f60df937f08bdd35648386176646a1b84e60cc27a8ffffffff02a437ff00000000001976a9141d056a8219412baef83f66761f7b5a731efb7db088ac3055f90a000000001976a914144087efc23b69e22f8567b68f97085407c5e65c88ac00000000010000000288f6595dd9f4c10e7081373170660a6b7eb92ffdbca19bd5b9044e6fdab903ac010000006a47304402202d4ef2154a92724b4d88d92ed00bfc80b8b3968a02823ae073205cb9656ec1b5022005682d3ba3617f0ffd618fbcaf88eb092341972c27f085d36fc95a984cb58e7d012103480afd63e1776625a34e6e3725374f2d02f907cefaeac49a99d1d52c0e88fadefffffffff5a3809c204b01f7e8d35c385c8e0fb6816eaac3a0c664b58678773c4bdf4ec0010000006b483045022100c6658f4be327f7063e36d27fb3abf1beda3ad29753cb1a1a985d24f0e7ecd4ab02203cb27100074d4204e215acaffe7fc57e200181e541ce4e65d3abfb269af980e1012103695cd4d4cda0ecffc1fb02d6ef30e938fc547fe6aaf03bb71498023deb189098ffffffff020fd73401000000001976a914815fc57b3d7c354ad62167184b4887e5b022ecff88ac207c0405000000001976a9144a85bbcc358084671e19235231f8613af17b5b5a88ac000000000100000002979a4650eee45fbf65378519f4818366e7bbf7b36708ec477005f0b1b1f4d84b000000006a47304402203721acc3a0f80429505a77f019b5de4cfa48c0ec759e12e84e1d82c8972572420220193f92fb6fb174274a626f9172a4afa09e8c747012d9c5c529936ec2c0f1c6ff012102ab2338236898ab69a5286e8fe5c3ca1a3cdc283fe7d584c38bdb4acd3ce6f807ffffffff5bab42c2d23a54011c2a5b176c928a9524f9d5cc2e928abd17f28b30a6ec41b4010000006b4830450221009998ebc0850bcb1a6f3bb1d1c0ef323bf65325725eb5c83986e0cba666e6c1560220055d005a99e2035682014153c2065ed2805419802589cb3b82256ef69aaa67230121033e3e6e1457fb491ef9caea05dc9a07186a18ff54cdba199cfa191263ab79fca7ffffffff02a0816a00000000001976a914386ef9c107bee1e89d0e65e64b43ce66d744a65988acd0b80305000000001976a914e7a044d4be95e77616cc886ff8421a1f1d72efd288ac0000000001000000027f508c366baf8d4f6659cef470a7d53d3935ebc37854e44f25ee13962943ae19010000006b48304502210086226e67d0fa4adbe7fff6d10abf8a2eca0441958987eb297a53bc95b9e2837202200ef802e4bfc760f9dac9a3fefb9f86ce91bec76e3c3c6dc768d3a97d02fb9e44012103e124716d7ae92d6fdce83c6a9e09fa856e4cf1031a7fbfc8dd8df944c04133d3ffffffff828079d5d035e89f34f21f34b24c91358bb0e5c9c6bf7992ee27e9c3e55ccf6e010000006a47304402204b3a1f66349edd45858b5b5492dfb994aee2c7f8da3b01247fea886af648e4a202204f8996089afbdc5a2627445ec9e523aba10d3bc8fdd1dbc55baf8ee3504b831e012102b36d4cc56a1b60ce6e83179a7d6ccf766a08905abae4b468552439d62c3b47efffffffff02a0816a00000000001976a914f010927111dc57c36e0bad15103ff902f201270888ac207c0405000000001976a91428b859d550b60f738f63cd7683e20e4fccbc238588ac0000000001000000024d8e075f01d385010fa29db044c4d076eb81cee9f3edfea95107f30733943b75000000006a47304402202dceccb2ca0b0c827beeb8ab9a8a6e11336bdc485f8285b0032267d176c5b06002206df2c6c513ff8bdc2f4c95560dbdc707af4bb3c0d4b12b968663b448a07428b201210272cf64a12745a5f667f0dc6b9683935d904b82a2b87ad30bba9d889af41e33b8ffffffff6c8d26dbc1df66c9e89bc2f1e693ef9357b1a2c1c8718ab3ed95b67e6fc8e487010000006b4830450221008c69fe277bde53d4c58454ce79988dda6ab84a5166e982293f82b01b82cb1aea0220613d28378cd0fca023273413bef399df6ba4494bf114e369f83d505932e58a20012102a355c0f9ca1c4bd85b311e7022ae3dec8778a996aa59cb84024c8676d1b27d9fffffffff024e420100000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88acb06a0305000000001976a914f837b82d64e980f2ee90aa4a396813f3f384701b88ac0000000001000000026e8856e41cb25a7f83d9f0e80e9647eafff5734271a6f33034ffe582e7e9d67b000000006a47304402202ce7ab548ed6fd311f97e077ca5040bafb76613dcae65a0e7b4eb20ae78fd39b022015f3e1f02e76e2705945f1eccc3bc786d8e7767dabbd7984003373acf1b409eb0121038f699ad28531a2f289a047109887e7ca54eaf2a1145807691d3865f19149afebffffffffff780999a6c037a53b11036014f11413e47a121311e6d1b708e41b25046d941d010000006a4730440220178edaffdece00939f2ef53770b22ada9a80b6a85c3db70a06fdd30375821ffa02202c588b53297652c2977947760a18fb093edfd30f839f67c0a40890da08bdfc7a012102bcbeb1bd8ecf16341c125dc8cef22ce279cb2f7aa3a6962d3317bcab0df415d3ffffffff02a0816a00000000001976a914f1b982d0edbf0fe2800984b4072dbfa7ba1e456688aca0430305000000001976a914cc2a6c4456efa8a406b31f8fb176767f5008010288ac0000000001000000021999caae7cff20a3999d239c2ac37b33c691fe388093b486cfe60cbcdf2c14bf010000006a47304402200228be2c367747e4d10542951ddff0107a63eb75a4bfdde11ff1cd4187f43a4002203702c888fcd43092133c4251bef8217070431a2000547d0b2c29697468bf6cfa012103a7b1cfc17047b784204cebdad75a74830afbb93d7c93fea710b570f7b7700d1affffffff504896177154a66d9b0f14953e9723eb5de6243af2b04c302b80f1c15fe71a64010000006b483045022100ece38b3847607489b46b130939ffff67316e1df0746ceb217be1d880fc96c43b022039bf5bb9c97e31c994e3415fcee405a1a7e2897c1c3dd10d00a42485b05e067f012102006401aee16b4deead58f198578bd4362400781aa1373410fc3ae2814e698a70ffffffff02e85b1b00000000001976a91439d5fb440dcadbd39a8067d9143b1869491f182988ac40e72e00000000001976a914477971fc8627c655129474bf6a92f0de6dedc0c388ac0000000001000000026b7b73021876fa16c092979df237c2ec45d2661e29d9e864a39df89127f99828000000006b483045022100f2d64cf66df56887c66d17ddcb8e7aacbc99254d51bb4450c5874d666bf628b4022009650c243a6d9ed5aba09ad4ca68b3a61e8b2d7cc3f12e7180c3d115c3d57ea30121024181a8fa7c766d99736e3008e4aa470600ce4525226ebff294e16d908c73306bffffffff7dc4f21e738303c1c6bbf25e6fc07d554ade3c6fbcfee00111168553636a7459010000006a47304402206f486f7208afd1709a459eb5126491bf278d61a673bcfeda8eb8a87fa33075ab02206d91ad84b46e7ba8c256681d16fcaab20e9b229973dc0df6b0c5a7df7e9790800121031f775a457c3c420076a89a5bd58cf366d5f3078fc644356a46556ed707c5506effffffff0290940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ace0c81000000000001976a914070ce73eb5b4238e7b3b75209e8903e2939973de88ac00000000010000000215988968ca5719bf744b642e8c524e0a3a4f128d2bf714a3ce69625b3d297e91000000006b483045022100c7d36e911e058977d4be5cf015194552b4ba0ce9b863d1bea755e250f760f2d402207ad8b1764fec18f4a0607904d565d6eff4743486768acad8eff31803d48d22df01210257f88cb0517870c1e55fcc3fa3e838867b1993b05c709b77813e856e3bb2181dfffffffff7613a242d4438cde80f0572337f058d89f9183df8bdc836081fc0e860b58e35010000006a4730440220428d125e9aac377530f332076c3505d548d8bad5cbb2d3300860002914c36e0402200de8b7172bb8dcbd64d896b706acdb75590d807b8a426c907ad45d447294d09b0121036ebc66d5aff1bfe99d9d03f1ca6ebc3e11189ba59033864172f7164041be7146ffffffff02a0816a00000000001976a91499c25bd194f0af99428fe390efd75a70dc38d7a588ac901c0305000000001976a914cb1219ed2c9f0c9a11b6709464a7ff32cac341e888ac000000000100000002b8509867370121d55ffd736c50ceaa4c19d12e95c007eed3db780ed06e1f75f7000000006a47304402204c5b48803b31edeeb5a2e89ffae3d49181ff5bc73da8f1ae315f98d00b4e259c02205e883051380c2185a6aa6f924f78bf271cf601a48e835a64b6036fcb7ea4f7d00121025b85c48f26ac5a19106c39d42e5979ecc66b31f102c48164ef3b84f7c3705d0dffffffff5080e1c8984e0208ca230a2c988b55512a899716178e34476b2e46774a9168d2010000006b483045022100dbc83beb38dac4d38b17abdb0080e741c160f0c6fd160840e4a887ac48a8f4d3022032200ee96c3538ec7343c16b098dcf24b622b0ce9838abb713d1b7d3967a11cc0121025ca57721b3498c782a8e10fe710d1bae2363cd4f802517eaae7316287335ba75ffffffff02a0816a00000000001976a914b41a83642bc3e0867722845009e045c0dad348a388ac202ef90a000000001976a91408bdfa92a6b7bcac61aaa43dbc49b76ef2be6e9f88ac000000000100000002b2f9560c47088f7174e0b94109a8646eb081886c1891ee4a5da1651029db759e000000006a47304402207d90047769423320a9a9595fedbc393f228aeb6147bdc12e8d0039fc96975ce502202af9bd606390b348afb757353cf3d293990b40e65f06f505c88e8d2e7f412490012102808f90269d17ecf4b9f44ab9306b1e594313abc75acc140725a32efba68ff979ffffffff7b5051cf1a7d59cd01e62e87a58c36b61319d2561565a68c211e18da2ad5a28c010000006b483045022100ee9bbc8372ee3f9e8576c455e447cd9564d2812e72595fba27300e388597d16e022032a779876485b2bf7a7d6ba149f80a8969bc6e4889c2425fdb8bedde844f1f3901210377c79f19e84e55475478f64bfe44fe849a16f71068d48536623281193f6501a7ffffffff02a0816a00000000001976a9140911f01392b31961af6dac6512a4a05447c547a888ac10550405000000001976a914148e47bf8fc40f7edf7a0f0a44f7e1a0b12e4f1888ac0000000001000000024271213ff55fd77d67f7ee0c7f9f975faa1d16c0b58df83dcd57a9db119a799b000000006a47304402200d8282ce1530b784f1260e859571a76828a6af7372f0b30ba7acc317d3b6564302202db4f4cfa4c47d0a013b8806c6663ee0375763f77dfe6e5c4d513c1cfc98520a012103866c2e2eddd89b9aeceb4cfce10b88b7a84799e1d65201e93383b4f3efdec5dcffffffff1f00ca1a8c6f2dc6510d63caac6bfffa661b165c1930b90ea5f998a7e493fa0f010000006b4830450220621d408c90b76618125924633dcfc4dc1668b7212fb43c6f2576f48f2e4a829b022100aa1872ad30f3aec0a8f0351f23ec4b07f6be8d92e44433f2c8d9ff54e8f97ddc0121027a577398f02f9f81cd79da218558570345fdaca3e0074eb5e1b6b45cb5188ea6ffffffff02a0860100000000001976a9145d652c3bbca3eddb6c023553ce0fc26036bd536088aca6140100000000001976a914e2c0a3998b12953bdf922f542ff4f43c7c9e0fb588ac000000000100000002c786075c5f31d7dd157defab97c577e5fcac791f2df79559d5dd13c9e851d3fe000000006a47304402200e1a652c53f1d8ab61f49efdeee94e2822e86dec02185afa5118397c99e09c50022070f21249760941cdc8e31ed48e5cd9a42b256f501bc6c410f74f0273e09da4e801210395b1e41d8fa1b78df22731b1f0f3fc471039584c0319c10cd5465f1d680bd4adffffffffe7dec6f027c5e60367b60c3dfc33dbc99ab31c0f08ba81db440b8f33f7ff5909020000006b48304502202fe70686fcee4e678d044b50ead1a58bc337551f6759bdd8ddba7744c621dd4702210099905778f2170084f6009a7324d016ec018b33a0db0c642464f03a8526b816ae012103e717b57f5fcd4a29dac75ce9d145e18da81b9b35794a554e4c4dcd8003d2cdb4ffffffff02a0860100000000001976a9145d652c3bbca3eddb6c023553ce0fc26036bd536088ac96ed0000000000001976a914344b23758ec64f844f02d3297d0514367d5a153888ac0000000001000000021a20714c27a7080858c0c5b5278a319235c42f4a383e95e363c2d902c7c4fbed000000006a4730440220611e4183e76dac7c4739e0a7cc68de7cb10bb4a3fb78f660886d4c3ba8c9b33802205efa15378cb3b9acd7ce2bc9dc7c1e90b2add78a3dde5b328346de9406c1116e012102ef3227458812b2bd2dd7f246f692be260ebd9ff2e5ad9f53cb79275aa5909910ffffffff05cd21215c05383cc01a3815b0988accb0b8d2cbcdb28561195c52fb98044aed020000006b483045022100f967f1758f3e4818d440467aa69cc37689c0579f9dc91b7f8b5ca01623edc8ac02204e727e700afd846258ca527f8f58898933c7caa9a81cfe98c8282fb18f5b976301210237e44cddcebe1a2eec07da0c4347bff5b0e418d172c1bb32f2a7f9d097da0209ffffffff02a0860100000000001976a9145d652c3bbca3eddb6c023553ce0fc26036bd536088ac83c60000000000001976a9149f4fbf3e3470e2fec2aa0ce6a1dee99440e3c41888ac000000000100000002d5cfa6db371dd89d41a07121d3abee951ebf6ed82800176cbf8d38d30d54f9bf000000006a4730440220413588ad17f2a1845d8ab29969f58015900edfdc087b556391ba84884e770da6022069f0a17cabad9ced0e0475085f95c8be78ff802a811387beab40fa3f0f0dd9d80121036964a9afc936bbd8d8ec62aa2f73ac111081e16e4c3aedcc124f814dbe5ba416ffffffffa9b0d8bc1234251f9289098566ee8c4b1f4bc0db80e606328e255ecb4f7c27fc010000006b483045022100d3cc6e4a31517497eab1e7d95d7a66869756e64c42d8648ee8de8d70ebf7fd0902205234226cd13824e40e8f7b58e4d9f6bc58ba638a548a57a5344c0b4a48b06597012103991b102b99ddf9c35ae1c15e9ef6f5764a616b544aafa8bd3d2f11f7e48449a2ffffffff02e0930400000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88ac10550405000000001976a9148137e8e362940fd5f0710a68018f96928ba8f6de88ac000000000100000002f46b732f4e448e6a19542ed0989d0772af8d72e8152e890b41a26ae1b0768a9e000000006a47304402203a2ab1246963313096df21d67564b9314d966ebdca7cf378b9f1c267c2254b65022023405fcf93530461af685e254783af5a9c47865c583616122085eb1c283cb8b8012102fea54ebe4aa11752f8ce702935bbeb94fc996624f9943b3bc97c99b5499fe5c1ffffffff03f6dafec083f45ae24c61d6b2b3349011a2b3ba7cd497fd408fcb29f44eafe0010000006b483045022100ec97d31ab3e71a785e0a424d2c91f7dc3415a8dce7b4b90cb78dff41884ee0910220329521b70398d1237a680c842c4db020dc4881c6b38ef9841eab4765abdd5cb301210322a797a52a8434dac1e0b400d3f29f21eec6bcbfe412baee2b39e3376d6c60f5ffffffff0280f0fa02000000001976a9145e973386efc0d41c2c14bae325f9e9b886ef465288ac002e0405000000001976a91406bd0618011c3ef1ec53fe3705579a134d4f717288ac000000000100000002c11b26274cd760b83f078755e1244b018edb4cdf07a484aec1ab07b2969ce39d000000006a47304402206c2ca65f6119ede86e24248e5d8198c4a74438affbcf9b7ad70c89333687ddce02203099f65e40684dad3a19576678b699afd0f87160c3a13b78fcc45f96ede38fcf0121029954ff4f448fad13b12b0ad579777849bdde42c2c9d1aa499f49da758b6b42d3ffffffff931e2dcc39c17027bd1dd8df5696df286f0845a01a1a7a74a98a34d73597c080010000006b4830450221008fbb32d4b16d18484ad20dde26ac310b0fb17d346463d58dfc4427b627d8eb3a02202b6ee992dc071bf9f335e6bdf736eefa25157a6d36d1834b8f883ffba7f67947012103d63a701ad1713a661966b434b17beca4f3c36f71744ce7bc2c585d39f60f506fffffffff024d94f002000000001976a9141a7be74c540d63af1cfa80ce51cf6793f00f625988ac1007f90a000000001976a91495303a5fbe53d9cc04c652fa05e62ac63707281388ac0000000001000000023085d1889da0651ff783e9e3ab4f85b72428c44ce599412d37d607707860bf41000000006b483045022100825e098d80742ef274047684f8b19fa6a41ef01d2c60635747060a34f90b0c7d02203bce2f02ddf6cf395b4cfc91ef27cfb4e5ccf80c8ba997543e5eccd9a925dd3e012103bad7d82b3b363dfa1f67d87b985bc6075698fe153e418265535acf7a7af28d22ffffffffe2138af8e35b213719076b01080dae538edd67e0171647f45aac25f8ec8591db010000006b483045022100a057c10d003d3e967fbda3094d008675a56882659c16d429d7fff649b947345a02206655261a08ee60f73fdaff9230028bedfcb07c0617e067fc4bde0ffe6829d9430121029c35ae2c0bb79c9da6261fd7548dbcc3d6144c10bea220cd14615adc868a0a2affffffff02a0816a00000000001976a914002ceeb17ee0df36623388087e681927fe70d9d188acc0910305000000001976a914c7547fa4574ef283c6d6f76298ae7f3e57e286cc88ac0000000001000000021e8357e879c792b2aaa13a45ac57415108cd81324c8c80e7b6f534775973eee2000000006a473044022053a162a420d30dc306b83e86b269f54f78a0439813ead2905c8eeeaf9600b2d2022050277e466d0bcca7e48f455cc1f23fb2722d108e67c47d4fdd6a2c1ec6a5aa5801210349a65d62102fb61e3a09e4d276e7f92144248a98eada25dd7bf3fa16bd05460cffffffff3a46056158443ee52b73ae3d84fecc3c1c8e64f9dfee5afeb3d42f9455afed83010000006a4730440220102900046fc27d1f57039674e6ed19d40c0ef6cc084cf699419bac07437cb6f7022073bed864c3a1e60b8acc8c1b4839d3e1f6d55a27ea9d01083058f45574b16680012103743e51e12e68bb309137ecee2a08506b7e404b42081ff0a4ba13a34a3f5cb6a0ffffffff0253957100000000001976a9143587d3d05411cd98d1786ce378331f58f97a7f7d88acb06a0305000000001976a914a7ba90f8826c8d6435773e42e0803e5820d046ea88ac000000000100000002c482a3f7e2d7f11d1c4aeb42ee682b174e68c94be6c39a19c8ab559f6a4a91d7010000006b483045022100ba3b33077db92a48f2fbfa90fde65eef5ac53dcfd741f6c5b3a2e37159e02d72022004edb88cc6a29e3a085a208aa26cfe2658d87ad0daa6b41f4d7a96aa8d38eda40121035847609306643963d2e2d844f5cfc0f9b76cb69fb9ffe5b4339d73bed2cedff1ffffffff2629c89243ed386ff1cf72db5f0338c6bafc9cd1d70b7c9d53ed46b227dc7cfb010000006b48304502210082abda1148da80864d5094c7dbdc35310765fba74f02b27b1887888411a9be59022077409db3cecf065570534e85e2d38f8dc7b35db27220c9f752175efd722cbe1c012103dbf00eaba88e27f17d9189a8e14052f3429b9761fc5d957330d202d97025057fffffffff0241fc1500000000001976a914f0d429e6d8d8d36c0165673d33b67e4e2f913f4c88ac749b8100000000001976a914df3fbd4149c7b6afeb53a67c7a90f162c6ca7c1888ac000000000100000002e3c3506f3e67cc88f93b58ea46c2fbb0edd096a8de6db87e44eb028c23036104010000006b483045022100ea6c8d0c8e3621b6b30395f81932e5af1542a3226491452e6f5f622cdacc60a60220728dd86f9e8516a97dc07cce71aa2f7acbe8d1f8a4b81b370c624b81138fcf390121024215b3589e7480ccd8629d5c713f283625b47e5aea4c6c841deea8d6e6df40ccffffffffd91d4ee8d48e1c30c31d83b0ab3cfd0f6e00548a225331eeb9092a359c996c08010000006b48304502210091d0e2339949706ecd24fc4b808349840456231463b5d5b13ad23891aa96ab4a02200d744f8de39e6428f729f1836c7b829f24eefa1634b9207ab3bd3a785a9f1be5012103681fc5f02e66cab042fb435cdfec50161bd8515face56daaefd17f2da2c11e71ffffffff02ba5e1400000000001976a91409aa254bb4657e3b21ec7d69f9fa247fa4cda6d788ac08305900000000001976a91419fa36dc4b0acbe1748b49f107a59381d3a978ca88ac0000000001000000027914a7327070ab80e4110e07f60e5d5e66956e720af978c93d1af3f9f82e591f010000006b483045022100bfc1a7e7691dcd7cce99629a5fab4545b74905f448208cfa0e5759f427ee8bc702207ffb0c5db35677a09a0e1017963a9d7494deee271f956fdbfdfed4540dcce54b01210385196dd616ca2f58f560a8bb45af8ce1e1bbecc208210d276ba4d7a8b52d6e8cffffffff6d3ad0129eb6b24cbf5da6a99096bdd8ebbe74b6f76869d80e571543430d405e010000006b483045022100c837d1c1ca9ffb8dfd0dd3fb0702d32049c9823a9ab4b16bc6da30036959f6d40220378ba55837e0c5dc61f21c904228696cdf00f8833faed12bc0a6e9f03c5de4ec01210385196dd616ca2f58f560a8bb45af8ce1e1bbecc208210d276ba4d7a8b52d6e8cffffffff02400d0300000000001976a914a8da469a68ea3583d96096477f64c39708faf98188ac916d1300000000001976a914f0c52aadbfa7f5762fa25cc52cfb51e85e93aa3788ac000000000100000002d1bd66fed81d7ab4cd76f7e78018e0a49858740a7de0082e3360b3bf8056527e010000006b483045022100c04d07e3a1fefbaf109b3d2623339c2ecabde6339343e417f2f2bc861e5bea8c022071f3a9bdec10f0d4198f3d55fa6ded000894f0eff5a880abb63cb731b0059df5012102e486b0256ecea008d8a08f12ca3bc4ec4405bbf094928996c06b23f8f6f22f7bffffffffb887239742339607f1545452bdfd77831dac89f28301578f63047ddfc2613118010000006b483045022100b0119f80160be6146de4248b5b8e84fff06a3f2ee2f0ffa7a342224938235a3d02207be2b03bc292fafa44b7a23a6635be7a32a63ce7c010d93df8652dd2bf88241c0121023eed42e6dcdc67c3fd705f550e52b46b3c3a28996070b32810d89b5ccdd2c825ffffffff02a0816a00000000001976a914d34efeae030a6205ca0ac732265135cb2e81276088ac80f50205000000001976a91464e1ac56c528361df4311a3a8b5a85435af76d8588ac000000000100000002bc56cccc848fb8d36da5137c0651dc76344524238105168203c4c77c451e348a000000006b48304502206fb16f4d7120b21b91fd5e764eeadb111dc38ec7679445b101190f231ea585ec022100f8f7708734757d7061420fe44fe817b00444047cb374e8841b9cbc3679362e330121023ebbee01e320256f627472e0ced6eb286c81b91d8d04c85946d7d94ef129c944ffffffff46c00e2c125416f55a3f80970e4c25ed1cacc38c962e7d47f30313917d3cf54b010000006c493046022100d80a9f80adde5743df3c434bf942c9398239618789afb4a441b0bae966fdb1dc02210081715bdc4e9281e745655792cd2c0df92b7fa3634ed7abfca60000e8527e6a040121031afefdb3aea29c87aea6715db312ec24e121c25869db8a63e73fc101f9618ae8ffffffff02a0860100000000001976a9145d652c3bbca3eddb6c023553ce0fc26036bd536088aca6140100000000001976a914d430b47b98608a0fd19b464141b3af901d2b12a388ac000000000100000001f8b80894ba7af99d6b17f16e34db171dcf84581da6b063376f9f6f54f0cdab24000000008b483045022100b93832b4c2d5e7d1262b21f850e76cef0866da3198d640d00a98334f671627e5022027fd034f97df2a81a61d80a9cf0853d11266ba3a4696604b482cd825919d98bf0141049e49d2bfecd21605de70bc503564344ca1ee45afc8adfb28656cd4e3325ae5b960a8241946734287de5215c62db9c3a4bbcffca3c7dae450a292142c119839c4ffffffff06ac840100000000001976a91412f4419859dcddb5d4d62d5f923ad6bda4c9db9f88ac6b040100000000001976a91415f3df88eaeba96ef97dd032645eafce0fefddf688acf0490200000000001976a9149c6bf207cd1ee30d1563b3b92d7523047c9ea32b88acc4fed403000000001976a91462686d5293c035838bb66dc0e04d380986e50c4d88ac15160500000000001976a9146fbc4ddbc9ae0d03465d9080785a029c74f93a2788acc0e1e400000000001976a914634b70f3c673e77a0febdf225ed1b0dfdfdc922188ac00000000010000000289a0948a1159e49be2991810a3181c0e76f104e991a2ba8c169cdce977410819010000006b4830450220152d2229317d63df460dd75a3b57962ae4448c48c1f912ca6833cc23a4df888a022100c1e4d403c743855b52d66f934ac6e0c096fafddb118d02f4dee160b07e8c91010121036fa2b565e6e89ae7be49c13a262c78090ce175e34c83137e5406acccd3fa55ddffffffff2685e93c245e6f9d01395241a09649da17edd20fc6c57895cefa03366db954df020000006a473044022059eeff76a500422300d4f72d9344f620fb9146f0d7929e166e60fadab849195602201fd1fbae2bd93b431f7b5b98c279a399f31f9d878427c1b32073e6d1ca5204960121035f936caf2cbd4621258c91648eb6670456039dcae2a63af9b6b074c0b259d301ffffffff0330ea8901000000001976a9145eae8b4267bb430c9ba061ff057c64ec041a707488aceebb2600000000001976a91494a0509f4e6d51c188e272acdeb792a5005f007788ac8bed0000000000001976a914ce8b25fae65ab92e27f2c4241e1d347398fabdcc88ac0000000001000000022d23d6a723e3265bd9d29237a2b3dd5614b4a047c298559f5b86603896cae947000000006b483045022100d7fbf5a9b6aa624a016e1ec3a97ab0f049d59128375a7255a6f65cc135608ce60220599bea73688398b6d8c19bcd28b7caa355fdad1d63c0ddb84d53c10c948446fc012103be40978a2d67087a9661fbddb819710e9eb9ed9fdf8755dcadbf96ec9c378d78ffffffff83c4107f884b5c6caeb2aa68d6e3ff77a664229ada5522908d9e14039a8959fc010000006a473044021f4d0c8a634d4d2002c372d00eb8752016a353aeed989da810a0fa0b75d04b01022100cc26aeee7821e7c61d4be101dd42731154e14abded80d34ce760675e4ab2c286012103b8c7ba97104cb235a36a128f6af372ab10b7ebab8dd9ee2c6286ef18275a2ea8ffffffff0230ea8901000000001976a914b74f3f01b5de6ac1f936191cc8d671dc0a8676c888ac8c3b0100000000001976a9142744ef1ac889dd840155b6eec2e3bf7974b1053288ac000000000100000002182c844d3f7aefa3f82e1d45971d707355b2c4e5f4c08939cc049bd792996cc6000000006a47304402206535935bd34578bc65ece5c3a73d0e345eae633b194f5c60dc0b3226e7309cae022045877a292a3f8ceb3152004cc5fd38df8646d011d8d8546c9b6a62c68d386198012102ce098a635247d8defff83a9e9979d33e142be12f16b3f3a582f76b0a67b6fe15ffffffff552478ed8a603ed609950e8a9ac513f153fb98b941732807e5583fcf1defe686020000006b483045022100af56fc68bea0514216f32507de5374f2ab1af386799b642044036007f295d3e602204a5ce213ee36499b62682282c20907f2b11d8dd0a5dcb328952e9aa34061258b012103a594e622dccdac09d20809d8d948c4110edbdd93ea640c3ff49a0bf5ad77c094ffffffff0390d4a900000000001976a914a04d2bd01bbb08b85b832ab10b6221e1b62eeb8388ac56150000000000001976a91495fa0f5cf5e377281a8e3909f0065abb33db77f988acc6620100000000001976a9143c8e7d9e535dfb641ae29f8647936b42ad03f2c688ac00000000010000000541312cb01869e8eee96368c1125b7d91535e17bb06798ad98f34a3e386e0f220950000006b483045022100c4c1b7c729500d73ab248632ca9b4819251d14386dd55ef1f61751103e158d5102206b09d5782e820aac90ee919fba9c17c2e9092581eb264d74b71d9a86ab274c090121028f652e4a54313088e7e7f4fb73d7728bb82a108d2e446cbf65283023b2055773ffffffff5d0232ab5d44235c6efb2d9ae6394f4a49ced3ab40cf097d4a372dacde0ac00c0d0000006a473044022079beea33f9b1fb4e64eca165942cc4c323ab0356813a70a61ff4228d7d3ec974022047cd16c6655fe09cf3bd2ef680aadef6a1ffa9a32e0a48fcbc4764382f8cf0a30121028f652e4a54313088e7e7f4fb73d7728bb82a108d2e446cbf65283023b2055773ffffffff6883c7480f7b8f160c362af655d21aa5c3b05da17db3ee50e2c45ead64b487586a0100006b483045022100a9cb3791411f06ef1db4dfff71575c4c67bbd4c896de608be61d731cf7289dd6022048a074e209192190e8343aa712457ef2cd7095888ed7a566b8e8a6e1d66ea9b60121028f652e4a54313088e7e7f4fb73d7728bb82a108d2e446cbf65283023b2055773ffffffff38aebb7fe315aafa5998c30ec4c87adc3cb7f5ed9914f28329a69f5868acf7fe140000006a4730440220209d45e2c5af58540ce3b3da6c78153009b305b045663a155fd57edc39d0553e022052f92b778f2f5b5effe156b6283ac2518fc1ec566a4035bc15a45f9294579a200121028f652e4a54313088e7e7f4fb73d7728bb82a108d2e446cbf65283023b2055773ffffffff78778be44551b3a9c75a7f34e09c2835e20b18b7482d1746eb192a1fc957205ddb0000006a47304402207fc9bc2725f54dbd085d88e61d5922576a4ac6c2095ef53178d5a0b4e2ce715e02202e6ac78aea942ed9c21e14046f44397c38e8e0c103531cd080fd481b6146006d0121028f652e4a54313088e7e7f4fb73d7728bb82a108d2e446cbf65283023b2055773ffffffff0250c30000000000001976a914e3e823e34f1abd9338dcc023f79fc830355b500388ac50470000000000001976a914b9f7064fc7bd10524f315e71956e0f99e5fa090588ac000000000100000002ed1dfdfc257a05eee55d7833522ff33b6afb3335f84ecda989ccf4e9e8cf10b7000000006a4730440220023f200081863df828758661b23750057954f8314f82315bf47e974412c3aa170220171df25777edfb4901ac766b2e8d7b249fa5ba7fea7d77ee5e87391ff6a57b940121037e90215017d835bbf982db3ec66e374b15524b5bc6bab254f36be25a9326fd3dffffffff0391cdb7a8718230ecdd8ada5b1138b65c29e0d64d1284a4eb1fe1c2a22f6a0b010000006c493046022100a354dc0132a6fbead889d9215c4c562791f6a733ea30c843b2c044506ab20ad8022100b51d8a757747be847f63baa551f0b3aa040dfddebf933f949faedf3efa23e32f0121022783ed97ace50a02111e2d687867c806bc723c22e5eb03b9c161b4fab3f9a863ffffffff0300c2eb0b000000001976a9143e6b6a70acd10259138599f7472f8fc97977899888ac95d43706000000001976a9143e54344264265a455002cbe159b0787cea39ac2188acb63b0100000000001976a914c6485a95e9f650fafa3111e412aa7f9a6ff76cb588ac0000000001000000022e25734283e4d31883f6568d4759ad8b59584869bcb84c755738a81e323a6667000000006b483045022100b33fb32e83d7e617d54ea2651ffc8b9009369daed5f09e676fc94dd4f55f77a80220141ed28bc68bcf41458dd166658137b6c9fa8b0cd8d1972b9d4bae124fcf5ff70121039f2a6031c9424202f7cef8b7b12988dc2c56b38f6daac9fcf780c97b619ea3e3ffffffffb13723bbf42ae5561cf3f466bcb4c0df37dccc32e672c7f86a8840017d009a1e010000006b483045022013e112f87bf5fc5445fe79b7f3bfdaf38a383bedd98f9bd56b4df984b71310e8022100b5133b073a783a9276cb3a896e4538bb38b1a82dfc6e141f4227d76c5039f48e012103ef5b44ef71910d7d33fa65e10a064190d79131d3a7526fa2fb18d370266e6c44ffffffff03f8b35d05000000001976a914e2950025e72cd9ff7a739daf8c63fa3c077e4eed88ac082d9800000000001976a914c905ed076ab36f9222d98f1293a9b5710554f0d388ac8bed0000000000001976a9141772488b619b5d385f559c160085f666da76d64288ac000000000100000002c93112ecb46b1b6edd7e7c21c1068a613027914337e434d3db9999dabd4eac16000000006a47304402203c6fe4d398bef623766173066a0dad9e32c43074c70d23f95974619c42789e0d0220355b4d9f94501f08827c6d34ebe1d7afadd55f7c12dc9112ed8eab395495898d0121027626b22d756246bc29cdecd6ec403b7bc05da3e428240e73101c1b1fd7f21056ffffffffbc518d87579634c9f199a6f3c9b052292e81cb9e2202b77938a518851f482c81020000006a47304402206e6d278d280580ce09e2c23c935d78fead2196bb5e5c3c0f4b2b7c22d00057c0022040c304d64bef92012bbd26c1981c03f5107d58c24e4b10a3bdb36501133efc460121026b177e551d34e63cbc7475f445ceb2734d3f608c9587e95862080c1931a98613ffffffff02f8b35d05000000001976a9142889eb319b1fbe0ec4827e4011a9bfecc89775eb88ac432a0000000000001976a914d8db6fc311acfdf22cb92a92a4b968f93d44571d88ac000000000100000002b732ab5d0ea01c1b58ed88fdb61b256ceeba317c073a74adfb58c21b91c06c02010000006b48304502203fd1b5563646d4a89241754a2ab181f982cf66019fbb5477d726424ea80a390a022100d9340ddc563e5882ea42d8816022afeb62caa59f3850a996d698d21de20e50b90121031a8eeff4fe549081d5381028ea9f2531e968932c730df9398527d9b8d1ddc26bffffffff13e16b0440de0e61f5b152f309a6f55b8639abc052020ef4fd9d3397b659d1b5020000006c493046022100e438f42104ff6d659c74de1a53e06eb63d6dc45bc0dad5ebcd8004f414c90e7e022100cca046e3de284a12f94431fb05c74b221043696627e1aaf8a16e087f3d03b29a012103b901443996926e27e51250587739796217b17b48cda392719a058c51e6dfde74ffffffff03ce9e5d01000000001976a91467a8ad6e235f23dedcf6cbaa465e817199e8d1ef88ac1aad0d00000000001976a9141ee89acb1fcf1a9f3363eab6d9624182da5b275c88ac1b4d0200000000001976a91473fb74c6e86395a5a4ad8cd1d257e36b7764e69788ac00000000010000000279d499e9fd2a66b61011031bd603897c8fae13ed3bfc65e86b53ced1e5f80ceb000000006b4830450220412846d13ac134ec893861c3eb454addefc5ed5e966544e47fb527d01ab3d34a022100c09bf4a7bfccb52b5b8551a4971b9b0774fac34523e590a5a70667942c539ae30121025f525f29817a6dd70a81994a34994a4d520cbf4007da8b14bb9a92a6f406a67bffffffff9a52481194ef1c2543ceb1d67cf490a29950b6663b110a5fcc8b0cdc7cf3cfad010000006b4830450220715b7fede9cf2c4d01cf5f3eae17a749200774706340df0fe8ffd169cd5566cd022100a2a8dff19c862d49f9a2626b8722b5fc10bcda792f64bd6e92db579af0fbabe701210340a6adb52fb0954c2bdebc47e3abbc857a83c7764c2b3faa557d9fcaa8957f1cffffffff03cc665801000000001976a914ff4b571a127127f8f544b7fda7caeec36aa78a4e88ac02380500000000001976a91499a32ce2a252df40f33914f3f7864b0aaa0814c688aca6140100000000001976a914ee922dd6e8b1d2d8a574dfbb489ca5b5b9982f1888ac000000000100000002c388b60d014270443e0a494c1877fdb61a75cb1e7376e03de8dd5418314640c4010000006c493046022100e6cc7e6298315f5cc86038c6c898bee65dab860d040b4dc7b2b0949781084f8f022100dace8e79689b2dc6965792f6a46a8cc91a7835e7ed438675e20a33cbfa7598f70121037fdeca29d7c527a18592af21ab5359290d4a808cc7e1ee31d7ec44949a4a2077ffffffffa68f29883331b94eb04cc601f7790e1fb4672333496cf750cd120494708b4459020000006a47304402200e6846a95544618e4d586efc9759589a7191ecaaeb66fc02d3178337bea6df9e022022a054431e43409698f9e1bf262cef80f59ec4c164d0b93e448f9fe91b3b4b520121032eb22df3cb89640b05afc6c480c6fabde5075fa7769ebf703258082d604afb7affffffff03886b0200000000001976a914ff4b571a127127f8f544b7fda7caeec36aa78a4e88ac7acc0200000000001976a91499ac65489e64a3f34e1057310be80856ad7d8ae588ac769f0000000000001976a914faca4ebcceaac4cfd42241d1858a2d80dce2b03a88ac000000000100000002c54d185ad1537b5f762acb43d0603b884aae69b99b884fa60c3da61f4f119343010000006c493046022100ddef0735487298b2976ef6b46b12fd658f61e378a45b7a2514610f9a026b93e10221009315e2b254cba47b4848d61d9cf34a4f623811bac6f637e73a8e1bb60cc21315012102e16b6bb2b9eaabc707918a5196e6a4fee5cc8ff71886c68e45de67e5ba2d062effffffff3c84944cca1481c0a2f707df70e402a12700f15baa6eff71b8dd757270e429b7010000006b483045022100ba90e20a78f9262587930e586eec1cfec6944d6754d1442645081feca5ed67e802204b942722f773d7bc6bfb552b03a6a709b3e0a469a2b32e4afa0acf40c6f8c9460121035eed887a2bd672f9c366e6f8b0b2f6193dc071f1a54d19b558da1bde2917073fffffffff0320a10700000000001976a9149c6a61169c66570f84bf1158ab25d1c3973d831b88ac74a81000000000001976a91469fa4c102148983da4c6e2edb95df8b5183b37dd88acb63b0100000000001976a91442fdcc754031590d4ee0d0641c5533af44fb07d788ac000000000100000002a47a706bc98ca88ca0028299e0fce33b7c81ac35b6dc7245be65e11cd004ae87000000008a473044022016db594c313dbeb1a0325fa8fe5093b9e6d23e1da227d6925c1e4661ed531935022063d7d7d738409da527c58e1c42461938a90ca8ce85c9f53c56fb249e84b2af2d014104f3e5ff8ede92ddfb66a0551624533d483617c54620eb3c34099d6cf34ca900d6e53b591adf84d3cd03491ed6102e960decb897fefb10e4f2dda3bcdd5ea8a3aaffffffff8d1cef0b8201973a09a4ac2af7080d804c2fbf45dbe05d64e655b116c96c6f7b010000008b483045022100e2b518a467153d3da730c34fafaa14322860cfa01f96a6d69cad6d61307285d902202f6400f04589aac6d031f30fb1c52fb62fe0ca50f2f14658c00479e5ad6aeffe014104104abb084087992bdea1607869e025713d3a6d0e3fb3df18a644cb65962f42a770ba3fd78103e1ae95daef4a316fca53ddbf32cd3fe25dbeda1746ab5219d7a7ffffffff02c0d8a700000000001976a914a081c3442ee3ea6308bc63e09a2e0035cf674a5e88ac8d259400000000001976a91412c83b0b7e8c4c0e29083c75051f17cace3e4dcc88ac0000000001000000024df7caa06951c89acf1eec8ba4d341db54317f332fc69bed968031d46edf9a80010000008b483045022100bb88f9a03e3773a1d77426cf034232a04a2c9585307a8a9ac6b9607a9e5c39f402202129924ea267e7a1835f04917fe24aea3045f2366cd65202247e6ddd32ca3e7501410403a90d2402ae72ca6054e35867909be4d819585d1643440b19f0244f3168513cdf3965397de743c4e5d522ffbdd83715f3741a8261f26a83c9574aadc36ead5bffffffffe00a39ef50d6d125850161a6c9e4da6f9a9a8bad8499ffea3da8e4a6da2972c0000000008a47304402200a9cab29dd338232390f1ccbb8ef4596f125bfc04cc3f6655c50e92608963ac0022072f167e796c76ab83df88de4ba42df4931b2f50d5bdd52e4383dbfa14593650d01410403a90d2402ae72ca6054e35867909be4d819585d1643440b19f0244f3168513cdf3965397de743c4e5d522ffbdd83715f3741a8261f26a83c9574aadc36ead5bffffffff0200a24a04000000001976a91450ef40a87ad99ea74722d88994dcac51f2ec26ed88acc4c80800000000001976a91436e71badefc6a8be535d4edbc452e884a431c3c688ac0000000001000000026af5b7e13e61c964a1a591ce415ae8e1b5456d9b8b8d1aab7ca70de94ea0be14010000008a47304402201e3bb5670f7cb52e783fe9fb3776353596ce875fef0a7df386477aba37bad0b80220129ae0a003375eb2995e3c1a155af199186017b0b0e858c0c6558914096bd3f90141042e173326aa9b7c4213256b6872a00bfb73de07691b7df66b368e52ed770168da2d02f6aff2ee18d9ff981308e207d45b40aa361d61328e2a074a78eedc734043ffffffff0915901c15946ce6a7feb1aa2bf733e768ab478c203cd93b8b0d7788122326ee010000008b483045022100f1f0b11f96a0e11f43cdc756bec353f3287e56c76a8ccc4c105224e6fc41a34e02204e8d20e5381f1f330e67f6a4e6b1e4595239bae32cb63dfb097885c795fedb200141042e173326aa9b7c4213256b6872a00bfb73de07691b7df66b368e52ed770168da2d02f6aff2ee18d9ff981308e207d45b40aa361d61328e2a074a78eedc734043ffffffff0230300b00000000001976a9148fef7e2d9c96c18533a3d2a86dbde87fed28272388ac88210700000000001976a914dfe4eb687a1c6e608faf810c76e63766640eb51188ac0000000001000000022c67382f2c18b7e34d504ba1af4e297a700b1f133f56251d0ace9900bcceecff010000008b483045022100dfcb00149cc1a5129ec85843df14b88754a40f0074a46344bafd6722cd33b68a022040f0d75c62d9c54fd95febc368b93b904bd123b3820c842b0804b780ccf67e2101410456f93e174a31f1057aba0d55dcc048a27379d4fbd340bc11e1f068f06dca0b515ae1816eeb1b5356ec865d6ff128eb1fc894ad9ef3e19ac7f6dc8bb0ac850800ffffffffcee4fbe04086954b39c47b10e859c586f6d56136bbd97bfb3b45d531ee0f5ba4010000008b48304502200d63d542e7f5678428ad6470a5c5d2a383edca12cd24c26cc0dc9d122cd5f9b20221009908750817c40d0483fb80548f51420849b0312a950a8b69ebe2772bccccd19c01410439bc6f1ce847b4372a9a542db9f9b750d1d98dcfd34bbfa8cb55370142d2c6433cf1742a66a1e3eee630a3f38a01e2acaf35e672acacf5dac147860becfc50e3ffffffff0200e1f505000000001976a91403dc89d6b8ba0d84bd68454367d0e6a71236141688ac04dde61e000000001976a914d8e14814f57c99df2a4b628164e88f67dbee8b4888ac00000000010000000277199154804960888e8d0745d43d50a937c82a1ae5e52ef70ec675fbdabe4856010000008b483045022100d709923a67c0ef12c61b70f02d3742367359d6ed1fdaaf9d134c4d6383a0793f02205b18fa9906e34b8a8f6374782b81b8614ef4e39d131551dba13c591702968363014104d2ba077618648729173247b68aaa2b6c7522eff5c7d012c1281a3405555d1cb7e0d15295c4b1c690e685ebe7a8bc4a1a1f0abe435a3e15f6136d241ff901ecb1ffffffff0e98d330867b214019556062ace520160707b8835e5b45620d2f447f6ebd78e8000000008b4830450221009571e578dc1e28217731a943e6becc3ed1c907f0cd21b3966978605c06127783022000d8835f8e8f1ed6750acf4d3fe5aee5e97ab915af9649ebf7bdb4cea0892679014104d2ba077618648729173247b68aaa2b6c7522eff5c7d012c1281a3405555d1cb7e0d15295c4b1c690e685ebe7a8bc4a1a1f0abe435a3e15f6136d241ff901ecb1ffffffff0248c54100000000001976a91405f3f88de8ec806b630f616744782b4a556ca30188acb32b0000000000001976a91438ce5195fc77c5f5eca8d8d7968c4d1da01c8b4288ac000000000100000002acaa643ce3062f048dfd839746485db87d32e1e7c804fd985692237a5d030170010000008b483045022100893c99955c92f890dcc8385db3679b9b0871e79530abc66c933b0efdf3a7737a02200da09a1163431589ae7d40c0c8a5250b6d57a6e233688242a6e47b116264c4200141044203a4ef6caa1d5aae410c11ca406a3a18acf331327ac6f3a606b64c77c7c8b8d406660da0bbd1265b1eda02deb55910df5d65f9f46bb28bbca8692e7f3e8192ffffffffd9035b8d84b5ceb2130066d4ebdeda0b280ce38e83069cbf5c04c2b248f4dc1d000000008c493046022100c40f81219ac0f9de2be602e0a3bd6892ae53d0696720765b0144d0056947af6202210083face63ed17861540dbf4030b56f4d900d604d24eb0015585e37e855b0f5f0a0141044203a4ef6caa1d5aae410c11ca406a3a18acf331327ac6f3a606b64c77c7c8b8d406660da0bbd1265b1eda02deb55910df5d65f9f46bb28bbca8692e7f3e8192ffffffff0219d82a05000000001976a914bf745065a9a0d079436846960b8cf63ae7fc8beb88ac327f0100000000001976a9143a08ee7ae37b004e305a60fad7b2125afca3568d88ac000000000100000002ac91491a902c0a1a0dee54f16cbc6a757c5bcf458a92d0f41ad7d3daa73671a2000000006a47304402203070471f2db07ac6013acf38a2227eeed5c360f1a5cc80b8aec5fc102e303c5202203586ef14b54d57fb4f4d823237382daba3ba7dc16cb807a082fbca85b1a74126012103aacbad6bba5541978ae6762f9f35bec99b7069252da2cb83e39ea869d1e7baf3ffffffff96b1bbb7818961ba558e102ae105ba242cc0685b53c7260808f5baefd21c42b6010000006a47304402207148afe56b6fe514e53a1e52f71b98df072b805b7589848f8e9058c90fd462fc0220750712d55b346370fedc740f012237506dca6af02e2b7e5d3fedc4c0a903e2cd01210217f2de125f68abf4c168633925bf4d599e080e944cc03fe905016911b39c5550ffffffff0219d82a05000000001976a91483505b3621e64bf2f68984c64ed2a263daf2455b88ac30a30405000000001976a9141b5ededc1e4da4a5ef8a9a1a9652680e4f77fca788ac000000000100000002bb70d71ca81c490dcebd3e2ba78f6ea60e0fca361785389550c1814cc9f91ee5010000006b483045022100d23f26b30eee4c6ebfcbf9cc1f73d85f799b2ec737bbbee3b6133284ec51f4e202206c2a7e0991a7af5d9d4b1fbb5f50501f0aeb7dbdc38a333a18d712e679ba65d501210316d8155b51902f2a243a23eaeafaca1f879ebfd965d80e720bf469b798a2cc51ffffffff7c51a9bcda17c518c84a037c2e2bbebf08ea27188b8208216acc89f9fb6ca1fe010000006b483045022100f5d77555277ce7edcf7135f2240c77e1797d3967899dc93d7fc4416aecf7bb7c02205e619acfae53f2c24b5d16bdbd3810df2ce04e4811e323426712d8f903ec0db50121027c4bfcfc08e84364f54b3233bd6f33a824b0e526e4dc06bec3d52636658d4909ffffffff02705d1e00000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88ac207c0405000000001976a914d54f583f742ae3f4665fbdcd343861ecc389ad4f88ac00000000010000000236eeee31d64e20665dcf7c1e5b8dc3dd009f93118eebfb61fd6d6cfe20084c94010000008b48304502210096cf1bc0e5900b9812eef425679ea848a89a2e86f0bd71fe7c34ada6b211b9e90220129288c4b262eec85d82dcc714c9222724eb76ddc07eb884fbec3b8b12c833910141044b000a8af1c4a99aecc87965e3ae299b55e036b012f1bbfc380f90d57d82d3a9d367ecf5357660f43dcd601617ffbf2fb8c313087c93a33900811ffdfc8bbb7bffffffff83b9e69214e8e0940c771f7eb1998f05d7bc51b7aee75e38c3453a9410c3f275010000008c493046022100cbd9478c0584c10dbb9246e8d81f1c3d5f05131f9707dbda5912457693d9dad3022100b996bb5ebdcd5654e7b1d9680e256bf62ed99afdae382ec5bb7f7ff7e387bbb60141044b000a8af1c4a99aecc87965e3ae299b55e036b012f1bbfc380f90d57d82d3a9d367ecf5357660f43dcd601617ffbf2fb8c313087c93a33900811ffdfc8bbb7bffffffff0210150701000000001976a914a73e3b8e8256278f2d8849663c82fb571effc6af88ac18b40200000000001976a9145103443c6b76d35b66504057b7ae71cebaa4bd7e88ac000000000100000002a81ba12bf435b8cbc67e5629269c894c0659cbb29f49aa7fd4027bef6e6b1202000000008b4830450221009992fe21779b49f357b3cac97d39fd530e296f131bc6cb93235f1f421ad4989c022045b3f00a979f846c7c8db129a979f0178a4086e167e2bfceb94b829814f4c809014104e4e089924d649c94b25c415b2a288bd9b5abeff856cf8462737a7226756479c78f790b28612567b1f9526079a8cb0a6ff1b6e4a6a205b48238c667ac7fa35405ffffffffd662930550d92a37b1264266c9cea93358a3170431817b47d9810834e61de7ec010000006c493046022100e1ab448ebae82e8b72f4cde8d1b5ff4a97c34df1d2e5c0dd7b4ea866f5a834ff022100e58a0a797456a0fb8ac5d7af5502a8b75af866ba1640460ebe143bc10737dcb90121038176eacd904c105210653546803131ae128921f9ba1a33f0b6756a630b0284dbffffffff038c3c0000000000001976a914ff1c46e1a76a389b44be4eb1d08c000579e728a288ac283c0000000000001976a914175cf0809e205420f2bc59cd682d94a0a1bc03e988ac56c20200000000001976a9141fd5f14f0f756d55ceb13be1a44085215e27aaf588ac000000000100000003b29dee04333b67229c0730193aa3f6986dda63f746c8279cb30acc089c843ca3010000006a473044022077225ce0ad0329759b64aa73685703d9c2c53aa3c54f9bfe9ab3283fd8848e8602200237202672a7ea33dfcf93bc706c4dbfa38532e89c1a2e4e2b8a84281f68225e012102d10cc4a5effd1aa9bf4cac4fa57497fbe93b1c64586074ee56e638eba392d4d6ffffffff4d5e6749ca3c442f9f6ecbbf7d1bef0136716635d5d150fb1828556c0de5d4b10a0000006a473044022069123f16f674d9a6f7d1757985ec74a1d8ac333e1c363d4eab5bd6d0d09cf511022019df6b5702c3e6f15a548dbcfaf3a8ca81f0bde3e1563a94aaee71fec31b62dc012103201dd5c598880b4b45b7c005c742ffa3ec57649c75b34c96d39de1d0c3233c58ffffffffb29dee04333b67229c0730193aa3f6986dda63f746c8279cb30acc089c843ca3000000006a473044022019ff9c54b810c609438be4c52dfe936a44b818cdb34cda41fed5b865e49190d70220527efe1f261c23ef43a00864c6e77fadd5124c4a9dc2a0f6854547e5e6ffe096012102d10cc4a5effd1aa9bf4cac4fa57497fbe93b1c64586074ee56e638eba392d4d6ffffffff0180969800000000001976a9149d1a13901e7d967b3f8c77a40ac2f6a1db595d3d88ac000000000100000006a99a07a35701952744a8583f663c0d55e96650aa2109a32f7bc573d62255b9a3010000006b483045022100a0c4a1a2d5104c91a6b674cb68bbe09fca0595186c7ca32af8d759cb2e75d029022005ae1c955fa981ebe0b465591166e37a1ccfa444dc34c613f73a4b5f4415366c0121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffff5bf9ef1d5e584d69616277d4ea37e1fbe7b8f8f373a85ee00e75d9068a2454ca340000006a4730440220209398d7fb0b095fc54dcd774170ea34ed87957f4897ade5511c1fa1bea8e48c02202d50f6d113e18171f516fb400478078e3ec4325a6145149e6cd5ae8e1a0a66c90121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffffa4524c5a1a27594262b0de5d44d13c34e3ad1c5c3a68e9f5fa18e29bf00818bc000000006b483045022100a95c50704d459acc37e28410b5536aa6da1bc82caf1c0f14105bafd82a649ad402200cc2c0dfcb4b24797084c4133fafbb60580f66ee3fb12e0ccfc74b14b024ea940121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffffd4f85f26b98234a99c2242833269b5808eebe4ba1b237d15b1986a0d82396684c30000006b483045022100da4be6a3afa6de3f105247deb4249250001578e722e0fd46f05ddfd88b5bac3c022072683ef1f199c4f784caffaec29c1d13ea115a35de5c8706c32538bc9d2eed600121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffff6785ef6efa54daa712defd19cd5d39a4e57af4fe7354ea0edf20a3e100faaad9000000006a4730440220629e9b29a3713e63ec2abaa9a2f350a75ab402865df60c4508dfee766ab956090220557ca5cb0bb4573a27b228ac2769ab141993e4aa20d0cb985ae7ec9bfa1df74b0121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffff1d519546b9c39ca8f41b5d6f8f0b8f2a79bda7149563d082dd3be69153f39e0c000000006b483045022100cb0db43d5366fd0418a5f53604d70f7def70d062416d6bd3a0f8f54fb3ab045e02206a27d82e0ab0bfa885390a3ea8c54e0971888f517fce5439238dcde1da60462e0121036728a719f71f8940b2bb8399d1ff0f00a323b9eca50266b8d9ec581047581db3ffffffff01af170b00000000001976a9149587412cd6911f96a12865f1a4396b0b62cb37f288ac00000000010000000663b16748841f9ef7b86598199150d5ac79cda90226f6c2dfdaea5e1b37cc3b00000000006a47304402202939591bf677eeca1b0ae63322e77337446c6d0e02f054b6bdf4b26e320442a802204999f98aed007d1b01ca57bdfb9d5ceb174c16507fcb9d4465a94f8ee74e7edf0121023540aaa8026fa0f7db76ca1ac015b5fa97f2a933fe9d540ab46ac9036c54f5f8ffffffffb550c94e07aeae5646260a221bafe2fbd904260d0e193525bbd128d6a8d0d61d000000006b483045022100f117fdbe47c4a0f9e01a43f13971b57afcdc9735b46e3c2c0198ba760a05365502205872ec7682f8f108e75f212b21f79ceb01525b7abbfda0d40d56d1085e14f2b5012102bba8c28be56fad0b5fb7c9f3b66d3a8a3619d77b3896828a33a1175a479f1d2dffffffffdb598fc5c0a7b7301f186390670bc083a7efc5fa63ef738fe9386143bee41379010000006a47304402203dab5224d352de4a7afa0beb5299be6a9cfb77838743eded85f15cd9e02a23890220662e9e7d38a4d05c08a60552930425cc452cf7c3d5a61040b560948a532b37f801210396db7fc8829c256bd13aa646cddf3461bb79be25c52fbe67aa5d621cc1cb4326ffffffff5ee4346a40cc81387b37b3dab0e3ac7b73ed6f1be4d727451999681def9de5d3000000006a4730440220349f5fe9c032ab83ff17ec1cf198265411c948fd4b87f004d5b9185abe4cf9db02202babf60dc764aeb325aa04363bb5aee5d760693861a664338100433ddd09817001210281f473477d4b68e275166585aa74d201b84e398df5b2d2c5f169916a97cb771affffffff7413aaf36abbfc6ee9fe0e1073280d59f553af654320cb5ef61dbf24c0aa034b000000006b483045022100a50a03b753b72d2e1ddac9ce706465664120e6c49bdfe7d1eb21e365d371b8b2022067ce749580d51fc7987e40a09a20b1a83e2d10a258f092219ebf3b5e36ce0782012102365120c36c776b272b804fc44c70f2ccfca798109826d441d4ba2efe8da86ed4ffffffffcf7c43f22ed1de5d18d007c8f3a97a174c123f100616ebee1497517192c9a8ac010000006b483045022100833f808782de884c23134f4972f95d16c1c3359a58c241a5d5099badd4d87ff50220631f990cac53db8ed36e0b07bef80ed70685a104f9c50e7407ca1f47d497d35101210365660e62b048addb7aaddf3eaf487325f861ce1d51f793e46f7562bddf0d1635ffffffff02c8ebf000000000001976a91432d2725907fcf628c50868be1c911af2f7b0ca4488ac30322000000000001976a91472eacecd72014b53974227675ab6aecbdc821af388ac0000000001000000039c26d06d8ee95c66d59933a0d1eac8e0d98133ee37a07ca67247ae50097cd3ce010000006a473044022022eba58401cac10a4346321920a61e42ba53e980c282e5a9f460855e969fb71c022076cdeae244327ddb9d758879bf033ba9edc18afd60d611f5dc5a551c095d63690121020bd9e909f2f57062be729adab091e3f86699a84408e54a46f68b0008036f04b9ffffffff391c1955f30330c9ee0a7706d7c7a26f8ecca6d0c735caee17639eb0ff07c3d9000000006b483045022100d1bb384fa2c6d94a440b366c99fd3f9786fff40ef11bdec5b9be15884f78294a022064532a11a6eef165d7f1ca06f6a1d04c34934f5d103160d712b9986f81d94d4e0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffffbf2985938d3e69a41629107bc065d7929f70b7d0a073a66070f592fc75e5246d000000006a473044022060223dd5520b2bcf09373d64b919eb7c223761272502207c0ba1309d8a87f35d0220696de16125e07bc6fe234354df72237d7e24ea29126636dc0df80ed18cead5de0121024b4bac1049d3f0d887c08497ac6eb5bc17c3229b86b1381e2ad575b748a7a1b6ffffffff0170c73600000000001976a91438860090779c6df12ea41cbe472359b62957527188ac000000000100000005a22c8cb1f11503fd8799b800522f743523740b948e823cc6c789cbe962890903010000008a473044022013d9564b5a4a159f5898829128694e963fa402b204f598ca9e188b21dd8b99fd0220627935a445894b7d918087d7ba8ea154770cada4e6993f20ef3f51a8bba7a67101410415fb122fe2d91ea3f88672f29d9cc6a0ff812ecc0fe41a02fa10f9f5871c33297b71306b1c8fb19838e49e9ed834e37c09fec2fefc22ac0c6da31a8a684ab4affffffffff179ba6e1e2c43272ff0f47aa5d5d3714ef1362322a27d319ca56e8268145827010000008a47304402201d4e83e0072eac84a1e9749d52cbd6d0ac58249bba2e1d3a7bed43dc4daaa4fc02207516be9f58ff0b2834898aa43edd5700e0a66b22bf1a7ccfdf22d3433ba0b5b601410415fb122fe2d91ea3f88672f29d9cc6a0ff812ecc0fe41a02fa10f9f5871c33297b71306b1c8fb19838e49e9ed834e37c09fec2fefc22ac0c6da31a8a684ab4afffffffff4a11da012eaadaf2f5d65e04678add7f9e08093ad444d50eab674368a427b451000000008a4730440220572b06f069a56cab4429110a6437627df3f8ea6218cd2b2b5ca179843521007c02205dd2d04a02c92d478d56bc3d6eb1be4d4d99cad1e0e5eb4013b126b3ec45bc0601410415fb122fe2d91ea3f88672f29d9cc6a0ff812ecc0fe41a02fa10f9f5871c33297b71306b1c8fb19838e49e9ed834e37c09fec2fefc22ac0c6da31a8a684ab4afffffffff6622cd902f4779046dc4994ea0afaaf219e34e10f1a2e16b00421780288100c8010000008b4830450221009e60eb5388ce0ea8d20058bccbff7a158687d8cc5a9953f7b20d8026700d95ac022041db0edf480de6be92ec727fd954d9fb18cefddd9f0aeeea6618eec9373dd35c01410415fb122fe2d91ea3f88672f29d9cc6a0ff812ecc0fe41a02fa10f9f5871c33297b71306b1c8fb19838e49e9ed834e37c09fec2fefc22ac0c6da31a8a684ab4afffffffff235679db494fe7e8297838820c8e04ba9f12c5a9958860557752a52b72245573000000008a473044022024cb7a5660654bd422ce2b343bf085e501f4d2b51e8653d4ca1657dc883ef9eb0220117befde0ab3a20e2352accf99acde63204be51d1c70eac0aeb871b4f99fb0f101410415fb122fe2d91ea3f88672f29d9cc6a0ff812ecc0fe41a02fa10f9f5871c33297b71306b1c8fb19838e49e9ed834e37c09fec2fefc22ac0c6da31a8a684ab4afffffffff0280f0fa02000000001976a9144b0c84aa7192c91a247fb42aad33ed1e49651ede88ac14b71000000000001976a914a1691fe52de67c74b80b8844880311626fd9661f88ac0000000001000000036d4f3472421e15e7d4b7d5a115bd1bb8bc7824fd2052faa2e0f353c07fe2425b000000006b483045022100c628b1bd9bfce037e1602d491fe7daddda5d861bb36c20074069468f1cfe26fd022076a364b4ce5d1d342214e169477f3f5e992a31b37a29c3881c6a4c6d346141aa0121024181a8fa7c766d99736e3008e4aa470600ce4525226ebff294e16d908c73306bffffffffe5effde11753ef6985ee79fd39fecd350ed4d8ae3615b9c248624cf70c0bb8a6000000006b483045022100c62baeebe98330a4440f3cdde01fc671bc1d0593753023eb6e179ff306a1f79602205122bcc4772eac50cde34c9c113519ddce4795391e4546af8175ba8eef6c60dd0121024181a8fa7c766d99736e3008e4aa470600ce4525226ebff294e16d908c73306bffffffffb26f95c807c66aa3aa12a893ad9fdcc3bbc49a241c6b593a5a4db51130f180ca000000006a47304402204fcb3f31b3bd448fad68c2adde9387f7d64ae718ea3c730037371d26a78d618f02203f8a270f1c7732582270519057bed7c8762bb65e4d7b5af98b9f64ca2f0feb100121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff0190940d00000000001976a9141047de99fb080679cd3471f25255b3b6ab56cad388ac000000000100000003480f9580767106b10593c5c926a562b4b25d421c17c26fd0dd4a7ac0b00a2efb030000006a473044022004803c784d93137a1af11c471495773df13b4338b1de2831a0c0b088e2a0be2802206b0af739445eb8b67ef6c059fc89c4201fcc7d69372f75ff66f45f447c0bbaeb012102ee99ba735c181f6e89048c1e5e71827c9d0ad1c5fe4cd12dffc58040be4a3cdcffffffff2d7b4e4be44ffd952fe9b6c27ef75232cd0c183d42b80b963689f6f7a6d315d6000000006a4730440220422e528721789726034ff4804139460530782868df8ce686a965e0852dc4b72f0220429ee182cc59dba72198aa8ff8f5ad55f2cc910e43a89be1de37125f2c7cad74012102de3009e749c52ece318d6a42800bb256009cc85c779f4391c5b8c302b5289ec8ffffffff7f927998c5bac3f22dd9e9cf1ff60e4e9251d9ece0ed9615c9b5ee45bc724fa0010000006a47304402205f8c5b4f4db53d9f217dfcfdbb560f28581474dcf3ad81dd3ffe9bb3b33186d00220490135e47b5c2b94aaa038cf8efd37fbfed23a07c5bf102d80eee111a0a3f0b8012102dd0a67c2bcc4aa524c3d16c60a445165bb648de7f46a3b4fbbdacdb2b219a0faffffffff02906a0203000000001976a914dbd819f454012f9827139d5e6351a724c1e34e5388ac67362400000000001976a914ef85d20dd64d07ad3c9b40f8e7568c433ad37ae288ac0000000001000000031fed4f6f004b01aa4eeef2054d6632e86c3dfa0df05e409e80daccd0cdcc28fd000000006a473044022064ea02e9b6bb7489da4b6523910f5791eabb47701e34ca7dad20c61a0d93093c02207b54431c6c38dd5b7433f12779b942bbb553d31e43f0a10d4061a7f7f1550cf20121021fd10f89dc34565c18f2607b1565806092e483a829650960c9b69b00f2bd349dffffffff1ae4decc82ac597a2585bcb2ced28b2ea928bcfb6dbcd67739cb4ae7b633bc6f010000006a473044022029551e0856d72f28a8d2991361b935ba636f3466e0430e52215325d78f479b80022078f8704ef47b0c1e487def5d8b09a8914db39ac71fd384811e677f9319ebdf4e0121039390f8c35481e981ba3a35b55798632246a0bf140761f1a35d2c133a13ec1a34ffffffffb7fd2f52710f8f1d8e484ac0d72b7385730aef8a25365035fa5e61d29482a41d000000006a4730440220678c06f2170d3f18850270eabf6c410b318e3162494e39df9fabdecfcebd65a402200936bbc8649f0a6ab30e007eefdca143c5b37593dc7671161c7e0b12c40bf357012102af041cd4a6aafbe45282b620ada2a7a839a7344ee6d031f7845fc71facb61fbcffffffff02135bf300000000001976a91439787b312215d9ecc0cde51d60b81be51d372ef288ac577a1700000000001976a9147ea20ecec4742638782db565d48dcf7d55aa08aa88ac00000000010000000313b5efff1f4bf814094b6303870dce81bfd9468f03190cfa4ecd1219247f9c44010000006a47304402205b40da0b0e9cc61f0a1b1b48f660b2836d2962296222d60b87d97b4975af2c6202205ebaf2e77178fea6366669bccca73b79ba8acb8279c2d93e494dc44f6f1046c30121034f05cf7723cbcf3156eb297fa67a960322d4a2b3feda496c419c383b6df8206ffffffffff87aaf665d01c21633fb9d44902793bc84ec7434c3dfaa71fd438c139d766ffd000000006b483045022100cd16d6fa1039f56ccc547bbd3479bad948fb8e1664d865ef504da410f44bde9d02204cf17d312af69d62bac696595981ef2009ae011139bbce3f638002a77385989b012103507ae1bbbb5ec41ce9de7193419f296a01300237a41211eca23717cc02cc2779fffffffff87aaf665d01c21633fb9d44902793bc84ec7434c3dfaa71fd438c139d766ffd010000006a47304402203a3a357ad9007d2c1f1aa08d91900cf6b1154ba0d68e44a1731590b6278b8cd50220407c7c99cc5e5e39de1204c3d65d408936bde817e6f657fbcbcbb1b943290887012103502c85b05b25e0a79a689b65cde8aea35987b6e52a45c03619a1563a4909ee28ffffffff0210508b00000000001976a91470d71a3bf5bd2712ee5353cecf474dea5a7102f888ac6c07cf03000000001976a914619235f0cbc6dd6f770f5d76dc0f9a87bc5dcaf988ac0000000001000000037ea53eda6fc6f67399c1497da23f90e3f8c3998d576199a74c885e5367fef906000000006a473044022048746b724dcbd94308cf78dbdc520913af40741309f90fbf49620aa42a944ca202201b45c0589cf9ec320d0d54ccae85f1629422a7fd2c3d7ac5cbda6364979b6894012103f67aac6a5e05d86ff2f8818d170b19198d5755d14e7533bcdb6bc6955ef1a486ffffffff0167efc2fe2f4391b532b967be73d5a48f122a8a146c10ae582b64ddbb503ff6000000006a473044022031675371ade0681540e605e9cf6ec46f0dce12e94b2c10951ef3a28d0264e71b02205f427a75ee9b2303ec4d5b3edde305a28d3626f45b95280da68536b6e27277210121029e48abbc9546bbc1d121bdcf9b4584c3d762a2d7e46f1f462f1a437436648bddffffffff07eb618b4182ac91e7353205798488b22a2e4baab153c73973adbd207ebba5b9000000006b483045022100c2e9e62255830f521c44894f970276ae571eb3e441dcc194135b00a5c3a2153f022028001128702a347d51e3ef18b45f9d31922ad1e8ec35073134e2cca1b33f8b4a0121020d935423da23c95e8e790f821f5a6d55d77e6b1cf31a2f80465341dc2ef16a96ffffffff0298690f00000000001976a914d0bd0400bcdc79be736e058939fc6bcf733ec10b88acbe140300000000001976a914f4dd33b30c9019ef8453e107a176b08c370d187388ac000000000100000005c162b294758c73086eb0a8f28fd3cedb25f2bd6d8755a44b507353cd47e7893b00000000fd9d0447304402206e26153aeb854f53493b5103254cb8f5b51b14da752b65e57d670abed3d2791502206a8fdaafe4b4f58a0603895d750678ad3c525873426bdb04e0e4d780ddcb9009024dfa01002020202020202020202020202020202020202020002d2d2d2d2d424547494e20504750205349474e4544204d4553534147452d2d2d2d2d00486173683a2053484132353620202020202020200020202020202020202020202020202020202020200054686973206973206d79207374616e6461726420636f6e73756c74696e672061677265656d656e742c20647261667465642062792041646469736f6e2043616d65726f6e2d48756666003c61646469736f6e4063616d65726f6e687566662e636f6d3e204665656c206672656520746f207573652f64697374726962757465207468697320617320796f7520736565206669742e00202020202020202020202020202020202020202000202020202020202020202020202020202020202000436f6e73756c74696e672041677265656d656e74003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d002020202020202020202020202020202020202020005061727469657320202020202020202020202020003d3d3d3d3d3d3d2020202020202020202020202000202020202020202020202020202020202020202000546865207061727469657320746f20746869732061677265656d656e7420617265203c4649584d453e2028e2809c436c69656e74e2809d2920616e64203c4649584d453e0028e2809c436f6e74726163746f72e2809d292e20004dfd01002020202020202020202020202020202020202020002020202020202020202020202020202020202020005365727669636573202020202020202020202020003d3d3d3d3d3d3d3d20202020202020202020202000202020202020202020202020202020202020202000436f6e74726163746f722077696c6c2070726f76696465207468652073657276696365732064657363726962656420696e205363686564756c65203120287469746c656420e2809c536572766963657300746f2062652050726f7669646564e2809d292e20002020202020202020202020202020202020202020002020202020202020202020202020202020202020005061796d656e7420202020202020202020202020003d3d3d3d3d3d3d2020202020202020202020202000202020202020202020202020202020202020202000436f6e74726163746f722077696c6c2062652070616964206163636f7264696e6720746f205363686564756c65203220287469746c656420e2809c436f6d70656e736174696f6ee2809d292e002020202020202020202020202020202020202020002020202020202020202020202020202020202020004c6963656e73652026204f776e657273686970206f6620576f726b003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d002020202020202020202020202020202020202020004c56a914718a00c73b3a1f6c268a337970005a053c68880688a9147c42474686e1dda1f88fdf59b30fd6faab1c9e018821034c59815a38f4ac081b64532336475bef9606c772718979d816f0a4158d1493e9ad0075740087ffffffffc162b294758c73086eb0a8f28fd3cedb25f2bd6d8755a44b507353cd47e7893b04000000fd9004473044022072de0b15a31fb1f48288e5b96e6f3ddd088f564a09cce34a8347cabcee835d2202201193def75abcee8098a070132f8727d272069d658db5493865ba20d15c9e71f3024de60100436c69656e7420697320686572656279206772616e7465642061206e6f6e2d6578636c75736976652c20776f726c6477696465206c6963656e736520746f207573652c20646973747269627574652c00726570726f6475636520616e64206d6f646966792074686520636f70797269676874656420776f726b732070726f6475636564207075727375616e7420746f207468697320636f6e74726163742e0054686973206c6963656e7365206d61792062652061737369676e6564206f72207375622d6c6963656e73656420627920436c69656e742e00202020202020202020202020202020202020202000436c69656e7420616772656573207468617420436f6e74726163746f722077696c6c206f776e20616c6c206f662074686520696e74656c6c65637475616c2070726f7065727479202876697a2e00636f7079726967687429206372656174656420696e207468652070726f63657373206f66206361727279696e67206f757420746869732061677265656d656e742e002020202020202020202020202020202020202020002020202020202020202020202020202020202020004e6f20436f6e666964656e7469616c6974792020003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d2020002020202020202020202020202020202020202020004d040200436c69656e7420616772656573207468617420436f6e74726163746f722028616e642069747320656d706c6f796565732c206f6666696365727320616e64206469726563746f7273292068617665006e6f206f626c69676174696f6e7320726567617264696e672074686520636f6e666964656e7469616c697479206f6620696e666f726d6174696f6e20646973636c6f7365642062792c206f7200776f726b20646f6e6520666f722c20436c69656e742e002020202020202020202020202020202020202020002020202020202020202020202020202020202020004e6f20506174656e7420436f76656e616e742020003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d202000202020202020202020202020202020202020202000436f6e74726163746f72207374726f6e676c792062656c6965766573207468617420736f6674776172652073686f756c64206e6f7420746f20626520706174656e7465642e20436c69656e7400616772656573206e6f7420746f20706174656e7420616e7920696e76656e74696f6e207468617420696e636c7564657320776f726b206f7220696465617320737570706c69656420627900436f6e74726163746f722e20436c69656e7420667572746865722061677265657320746f20706179202432352c303030206966206974206272656163686573207468697320636f76656e616e742e004c56a91431f24aff099ddcc9a66d4f3569e69d7b544284c488a9148c047e59f93890e9be3945ce2652453bcbdbc38a8821034c59815a38f4ac081b64532336475bef9606c772718979d816f0a4158d1493e9ad5175740087ffffffffc162b294758c73086eb0a8f28fd3cedb25f2bd6d8755a44b507353cd47e7893b03000000fd69044830450221008ed4fce6cc5ffe978433b88328f01842f62bf20df59c7f816c35847549df5e9e02207425d2c00c76eaa8258540161a196cc3b7b0fd52a24637c0541c2ce52a0db8cc024d00020053696d696c61726c792c20436f6e74726163746f7220616772656573206e6f7420746f207365656b20706174656e742070726f74656374696f6e20666f7220616e7920696e76656e74696f6e73007468617420656d616e6174652066726f6d207468697320636f6e74726163742e002020202020202020202020202020202020202020002020202020202020202020202020202020202020004c696d69746174696f6e206f66204c696162696c697479003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d00202020202020202020202020202020202020202000436f6e74726163746f72e2809973206c696162696c69747920666f7220616e7920616374206f72206f6d697373696f6e2072656c6174656420746f20746869732061677265656d656e74207368616c6c006265206c696d6974656420746f20746865206c6573736572206f66202435303030206f722074686520616d6f756e742062696c6c656420627920436f6e74726163746f7220696e2074686520736978006d6f6e746820706572696f6420707265636564696e6720746865206e6f74696365206f6620636c61696d2e00202020202020202020202020202020202020202000202020202020202020202020202020202020202000496e64656d6e6974792020202020202020202020003d3d3d3d3d3d3d3d3d2020202020202020202020004dc20100202020202020202020202020202020202020202000436c69656e742061677265657320746f20696e64656d6e69667920436f6e74726163746f722028616e642069747320656d706c6f796565732c206469726563746f727320616e64006f666669636572732920616761696e737420616e7920746869726420706172747920616374696f6e7320746861742072656c61746520746f20746869732061677265656d656e742028616e6400776f726b20706572666f726d6564207075727375616e7420746f2069742920616e6420636f76657220616e79206c6567616c206665657320696e63757272656420646566656e64696e6700616761696e7374207375636820616374696f6e732e002020202020202020202020202020202020202020002020202020202020202020202020202020202020005465726d696e6174696f6e202620537572766976616c003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d002020202020202020202020202020202020202020005468697320636f6e7472616374206d6179206265207465726d696e61746564206279206569746865722070617274792075706f6e2031352064617973206e6f746963652e20546865004c56a914522ae24fc4f0c34fb602e354a976fe1f6de98c0988a914fc8cf080f742a8bfede168005c55195520be50108821034c59815a38f4ac081b64532336475bef9606c772718979d816f0a4158d1493e9ad5275740087ffffffffc162b294758c73086eb0a8f28fd3cedb25f2bd6d8755a44b507353cd47e7893b02000000fd8d04483045022100991c46c63c05d74a7231dbdb7232e8ceb47a3fdeba8bbbda6ec7f7acfc53e5b50220400a43b0094272e01d5976c4ef08e735a5c3f903ef7c05eda22dc3342e55e487024deb0100636c6175736573207469746c656420e2809c4e6f20436f6e666964656e7469616c697479e2809d2c20e2809c4e6f20506174656e7420436f76656e616e74e2809d2c20e2809c4c696d69746174696f6e206f66004c696162696c697479e2809d20616e6420e2809c496e64656d6e697479e2809d2061726520696e74656e64656420746f20737572766976652073756368207465726d696e6174696f6e2e002020202020202020202020202020202020202020002020202020202020202020202020202020202020005761697665722020202020202020202020202020003d3d3d3d3d3d202020202020202020202020202000202020202020202020202020202020202020202000416e7920707572706f7274656420776169766572207368616c6c206f6e6c792062652065666665637469766520696620696e2077726974696e6720616e64207369676e656420627920626f746800706172746965732e2020202020202020202020200020202020202020202020202020202020202020200020202020202020202020202020202020202020200043686f696365206f6620466f72756d202620476f7665726e696e67204c6177003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d002020202020202020202020202020202020202020004dfb0100436c69656e742061677265657320746861742074686520666f72756d20666f7220616e792064697370757465207368616c6c20626520656974686572204d69737369737361756761206f7200546f726f6e746f20284f6e746172696f2c2043616e616461292e205468652070617274696573206167726565207468617420746865206c617773206f66204f6e746172696f2c2043616e616461007368616c6c206265207573656420746f207265736f6c766520616e7920646973707574652e00202020202020202020202020202020202020202000202020202020202020202020202020202020202000456e746972652041677265656d656e7420202020003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d2020202000202020202020202020202020202020202020202000546869732061677265656d656e742069732074686520656e746972652061677265656d656e74206265747765656e2074686520706172746965732077697468207265737065637420746f2074686500736572766963657320746f2062652072656e64657265642062792074686520436f6e74726163746f7220616e64207375706572736564657320616e79206f7468657200756e6465727374616e64696e67732e2020202020002020202020202020202020202020202020202020002020202020202020202020202020202020202020004c56a9148bcf4b78d0400c6367c82122b9ab3714695195ae88a91429fd392f74766b0079e4bc94153473c53e80124d8821034c59815a38f4ac081b64532336475bef9606c772718979d816f0a4158d1493e9ad5375740087ffffffffc162b294758c73086eb0a8f28fd3cedb25f2bd6d8755a44b507353cd47e7893b05000000fda10547304402204c73c5fd27e000141df68e07a638d7787595581db61880aa1055bd65b261d40802202ecdc75f67947b34e9e20e366231bfb9dc8b0aad1287d32f6da234a94a77dd10024de901005369676e61747572657320202020202020202020003d3d3d3d3d3d3d3d3d3d2020202020202020202000202020202020202020202020202020202020202000546869732061677265656d656e74206d6179206265207369676e656420656c656374726f6e6963616c6c792e002020202020202020202020202020202020202020002020202020202020202020202020202020202020005363686564756c6520313a20536572766963657320746f2062652050726f7669646564003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d00202020202020202020202020202020202020202000436f6e74726163746f72207368616c6c2070726f7669646520636f6d70757465722070726f6772616d6d696e6720616e6420616e616c797369732073657276696365732e002020202020202020202020202020202020202020002020202020202020202020202020202020202020005363686564756c6520323a20436f6d70656e736174696f6e003d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d00202020202020202020202020202020202020202000436f6e74726163746f72207368616c6c206265207061696420244649584d452070657220686f75722e002020202020202020202020202020202020202020004dee01005061796d656e74206973206475652075706f6e20696e766f6963696e672e002020202020202020202020202020202020202020002d2d2d2d2d424547494e20504750205349474e41545552452d2d2d2d2d0020202020202020202020202020202020202020200069514772424145424341435642514a565271385858685341414141414142554151474a7362324e726147467a614542696158526a62326c754c6d39795a7a4177004d4441774d4441774d4441774d4441774d4441775a5463354f44426859574935597a41354e6d4d304e6d55335a6a4d30597a517a595459324d574d3159324979005a5745334d5455794e575669596a68685a6a6376464941414141414146514152634774684c57466b5a484a6c63334e415a3235316347637562334a6e63475630005a5542775a58526c636e52765a433576636d634143676b5177495879484f6630756479716851662f566b50586241715163386f4b42416e69683636374f61467100555a485662665456687a517a67766f46704c522b3377732f4d492b562f4f376c6b53324272754a75387138472b75644c546c324a324579583979324d2b59457000332f6b71616c66545579497356545a4c75474650536150524e52574d4159435534794e637363784739377875694a634e4c47344130554e496e322f696c474441004d0a0100793648335632502f34332b65446c79537a4d6d6247695078765a622b3073566561384c7563754b316c64764539385232646e64747331776467464d474e4f332f006f573471502f333477633631476673786f4672774138576437563942666d4f6f63684b796c4f62305178494b4b4d53624741764e682f417a776b66396852557a0047586e32374b397556377558626e32724d394f774a507557637172487243752f30567144392f2f70352f614d77332b7237685966534a2f30524f795967513d3d003d79566a66202020202020202020202020202020002d2d2d2d2d454e4420504750205349474e41545552452d2d2d2d2d002020202020202020202020202020202020202020004c6da914eedc07cdb32f755b5e696becaa148dbe2ca6620488a914e54ab11c7ae71772cbb72562871415147173c10f88a9143e8b1fae20e81def8b2c9261f20e01c6c765ed8d8821034c59815a38f4ac081b64532336475bef9606c772718979d816f0a4158d1493e9ad5475740087ffffffff01580200000000000017a91492a04bc86e23f169691bd6926d11853cc61e185287000000000100000007b5b1cbf32900be294db355096411105d0e1aaf6efb971a5b76e88c25f605518b050000006a47304402200ce58e5322b5c648c43a9138a66b4635a2ff11d6ee1ac14be502eaa2b4121a2c02202da6979c0920d2e1708e59efe85736e9054d68d68161e13ee2f012556afa8e9c0121024efc0404fa65339ef61c3a00701d02533f6b7256ce2897fae9c6ee16b74abc55ffffffffdd7139e8604d13a5b09787feef3e91bba6898c685c2f0e9b5ae949cabeb6b9e8120000006b483045022100de75e20caf5c16a46f75ca4e9f2c5635a10948097fcf0259f1147076307acd2e0220486742a379f40a45a6afdb30de3066d1cd991f92525998fc44e2a625d80aeb0301210251d7934af2658d0fcb89127ca187e1689a88d042c2690052b9490e0816e41046ffffffffa458174a9364e52b1774c8807ec89d269532abf935d81c684cd75c0dd11cd4f0070000006a4730440220727d65aee66d0471b66cb7c8247346942742f8a0cf573974c8a1a635c6c63fde02202b1320a0d65606044bf9592d8f9ca4dba9875201d68d2840e2536e283498d6b80121021eaccb8e2b73b9157f0e5eb63ebb02a514b1ba92a9d78d6cfeab171a1200f14affffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca2080d0000006a4730440220039774b92b0cd4e619e5fd486322baeee5db0a038e61cc0a348b5d1acf6288f102201776789db07000556f3fc466db36b49e9d6f9627d3ab14a3cade3d5d59c0d7700121020f6d08c3f950736cc861bc1c69e2002114055af3d915a15ab81bb738381bbde9ffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208100000006b483045022100b817c339af5bf24599ad2ff80cc169d97281cf64d21a7a85cde1693859cae7fd02205eb534104411ab3d3607535dde1aa037ae93f832e0cd5564a843bac50d7c0161012102a0b69be867857efa76e9397d6bfd27e8e02c2292fbede9e68c0ae47d8f35dc29ffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208110000006b483045022100d74923de574e4ae945357572b4ee68dfa81faffc5cbe4ab9701ae1bfdde5f1400220599584f41cbfcb80bce42ed683aae21dc1d3a8c2750875f837e3c4cff7c30c01012103fc32046a7c1f15d9ea1e382124780ee87bb6e4d3168a3ac2f5a92ad56c572dc4ffffffff3954c64d9e1984231962fb009faa6ef2eb70eee67c1e58579d904eb2415209de010000006b48304502210090b2474ed32792c5ee2061259237a4d910e21c3468e8d0668215ebc3d77071540220487538464fe334052a95bfdfebd7d3943601f06b533feabfdf5472f558f55bbd012103648a769f6830e65d76a251491e9ad5e069d81680c8b00b84b939d26a535c2b5fffffffff0200199222000000001976a914c0d16bd11bfb9494330102680a8b2c91ac8327c188ac00b5e60d000000001976a914078b3a6fec6f9ef9fce8351d55c5236b7d3885a488ac000000000100000003d9529bf62c1dc819a5cda32fec38692ee55ffd5e82a9377803198818298ec0c2010000006a47304402206a95f121058b1d20e16ae32f63a5780cacc8f129e87b14c1333c90171cced50802205d4b27c541580c6f8b5bc886a00738cb11643d8547805c0595e7d7396661268e012103cc8e6abdab3a6977115ff2aa9274632c29d58554f34f9959662cd3e0198d4731ffffffff66b2840ff7ea26d398ccbc852bc5423e5dde868603a86ad0268a1d0762ea90f8000000006b483045022100afef8abdf6c3b1a4b68d5c3e2fbd4bf58902752c7a4339374565dd194cd7e17d02206bda9723c738301abd0692bcfec7dcd15c4de855646372f0dcf2cbe9c3ae4da901210258681365e701d0d8a6f58cfc40d1adb7dca89e928708134631728850032161aaffffffff271adf8900251fb0c8d87c763ca5aa947053da90390311a755d3ae7449910fa8020000006c493046022100831f6cbcd74073725580911208fd7114b9153e156cb60e34f86844da7e6f991c022100ac09948def2e923c0b67660dccbb0d7890390b838218ab629a207e8a65b206b4012102a3b1052e6dae6c683240e13d47f8f9949192c0cf4e8df90f3487c8961b347a2cffffffff0300c2eb0b000000001976a914571f2391d85d2b7b7e5933b9f72359413c92c7a188acc42b0b00000000001976a914c17c7208c4a1672163959f47eb409149c6f343b488ac66780000000000001976a9144c6bd90537bddb79545f3a6657b7e0086349db5e88ac000000000100000006a60b72c5ba619dc04c46564050179c898df80137e696e0760e1dc482fe8f24832f0300008b4830450221009212620754803048486f486a84061ea6b1fcddbc2e1800136f780278f91b2f0c022028cbd928b226d1610d5db835613dc61980a08b954963122c344e5a7838a8d1cb014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9ffffffffffec031f2dce18945a4099eca56db0bba4ea1bb35f0f13c8aa05ea8eac759c70000000008b483045022100869ce088fd35341a39109ff10f1c14853b2cda68cffac898889d985fdf0b5594022074955afb9757aaf2205e4837036c573f52dcc5647c6fffe6791a9f5d9b8f34c4014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9ffffffffc4a1e6a87213cbba608214a8fe93171d7cf35d5d0803b801f17918852b2afa21000000008a4730440220193c616e7bd61b858a9eef497b17ce23aba39b715507bcfa6f24117fca6c2a38022062b12a5ba58e8def33ccab924644deab99eb1c6e3d10f1f77911db8c4cd9c502014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9ffffffff1989729a465d8e6935d3f81fd9eea74f551c3e74381d7437ee591c16489de379000000008b483045022100b84cdfd300a6023908bb6b5fa8a658583815199afff4eab95587a83b6066774702205d74a9d04c1a56440acdc4c6722f9bbd9049f22ef3b53dde1d01dfb9fdda884d014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9ffffffff94879440f59a23bd1ebb7f2a520d3e776b2ea834a3c28ec9208c37ea7e36e55d000000008a4730440220349c2a2021dc0658533d48aee864c7c7e714d665e49bde78b2753fdcc1461b56022010d92d73f8a3a33dd26de79c1ae3e8beecb237f8ce356ba60249d2ea4ca158fb014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9fffffffff0b6a05b5ed1c631a1a158234946e347f1a25a5d0079a07ad908265ae35cab70010000008b4830450221009c2c8ea7a23c400b456b4b497aac9867beca32fd1d4e9195bca0132d585805dc022017f7d68dff73f32bbf223e5965bdc0864f2933e21cfacdd7bad20a0c723d077d014104fc1cc9ad78243f47dcbb731f4f7140fe8f2995c5ed5e910159cb67f0f8cf98923833b5a7215839790b8ba74220d4cdb9c12fbe1cb3454c14a1fbc593bb83f0c9ffffffff0109f21f00000000001976a9141980502c78e8531c104c87353dcc82be07c0718588ac000000000100000006860da7c7d926eb9c735a7defdd689e3d98845e7bd6bffc439ec12ec374eccd32000000008b48304502210081f58f8ba3ba634946c7e28652736008d877ff90a629cea2208799fa2610eee8022070587ccc7fec40d9134a581a6a508ba2205b6ddd80c055d2b66f61651be46006014104f16e78a14b71c4995c36bdbd1a2be43e403a234e52874b0bc0813829866cfbeaf046b8669f8d0edd6555925e2d7ada37825d40fe57d3a537e261af57752a169fffffffff7d05334943bec488e842875172d516e27d6b095009559981ed0aede0a7a0d7c0010000008c493046022100bff2bbb56e756c8e0686115bd168a0d4f24f7ae9d7b465c48f988a5b3ac2c5e4022100f002d64ab94f5020964e3584b72ac9cc0161fd369a6a27f7d0c4ec624a5563e10141045d20352b47e7d91bf999e74ab9529cf5ca8385ee873355aaf87388cac6ac735fed75c8b9c947346a8cd43789c8e9cac4c5a2480c744f3c4f5e2e66e51832aa87ffffffff5e5c9f229f30a7604dd695b43529c18b5d1166cc69b60a961d4bce2c2f5977fa010000008c493046022100c7ad9617447585bd44f1370bbfa3e64e89e61731eaf1bc002ccdebc1d3151cb8022100b5fcbd1b95b38a802ed6ed277bda87843d92893070025b69f58e16f1d4adfd01014104f16e78a14b71c4995c36bdbd1a2be43e403a234e52874b0bc0813829866cfbeaf046b8669f8d0edd6555925e2d7ada37825d40fe57d3a537e261af57752a169fffffffff334d4de2a37da92b9758d2dc3aa22e3134523288b88f9aad798bb9d69b01068a010000008b4830450221008b145ae3a15ab6d7a8d860526370563501a57f63217c5e1bb13076ad41a48b0e022065b998b2f203b477bbe92e43559b18335ab6368c64cbfda9ea9cd7e195f3d1a30141048b6a00dba1a492db5035d9b801e706cecb6377076e17f8a57f28acb56c26401d6cca08ad4341ff93ea0f74e6dedc205b33cf1dbd5537f87436994fdbad482062fffffffff1ac394465ba5312cf97ffb70f467c345a44111444989a1ebcc7c6a962a9abb9010000008c493046022100c98cde5f315d964b1a106be00e75b7c16ba0ec0c4722677b55ba640b56bf61840221008646a722858ca5460742611db2a4de4f7c17a7a3c083355d2a69227aa638ab5f0141045d20352b47e7d91bf999e74ab9529cf5ca8385ee873355aaf87388cac6ac735fed75c8b9c947346a8cd43789c8e9cac4c5a2480c744f3c4f5e2e66e51832aa87ffffffff2e6fd288f4912f5a440a923d1d0d9aeba335b7197533f69fdc24f60773fa61b8010000008a473044022063ad90e01b52062bea1a0fba40c5f513ac94cb237c329b7a115be485eda035b702207dc36be9ccd2c34991a29fb245fba5111f631293bba29d4c74126c2de08f90f70141045d20352b47e7d91bf999e74ab9529cf5ca8385ee873355aaf87388cac6ac735fed75c8b9c947346a8cd43789c8e9cac4c5a2480c744f3c4f5e2e66e51832aa87ffffffff02c0448403000000001976a914b29ecadf735743ea23a01a6790d29c0189e0500788acd8960900000000001976a9142998e8a9049867b923fa5f496399096fda0d9eb088ac0000000001000000156af95cd11ab5d3350138d40a648f09b4149a518c4cdf8ec840005de0adddbba2000000006b483045022100e314784fd1a5498192968a3c6a6f9d1e3472d72185bd0be73154edaf33ab6c9502204823de1ed2101cd49edb937b5b7411575ed5840b74a9314228ccf89040ddbd5e01210238b5afd035d5435468014cc3731d3d1ec128c201650b7614036fd57b1c7f92fdffffffffa17f1c953b371b196f14faf73404bb8a02166a803f3e229eb6d04da40d7da46e0f0000006a47304402201cd361c2b7b8a7fc883e2cbc6796fafffbfa814c53a97e9df6c533ae473011240220345db857fa58c52ec4d8e80faed06a846cb7385203c08c6cdbf4855be1fafba1012103ff5d8c9b0adea5e08d0b9dae8559c5b91d807c834b5018639eb1b98affe0f36dffffffff49a663e78cdb672ef346f2019e674174ca28b864ff7d2bfa05defebd2b5084a3000000006b4830450221009d55a0214334a3a59f1bf3c87d49e9422911b6dac2045455fa9e85b680974d6a02205c24c2d9f943d54bdfd0af50501edc328a4a7bf8441470b8daa2d6ff42265de3012102a35c3171ae31a762209d6d628350c3d28e7124da414cf1d44e15d2f615280bf0ffffffffa17f1c953b371b196f14faf73404bb8a02166a803f3e229eb6d04da40d7da46e190000006b483045022100d4f3cc2cf8e36f9286135e67f401486f6a4680b8cb3055fab7c9557a8e424eca022026277ab8b47647c8d9916305ad1b08e8615ae451170d470703d97a56dd51d84b012103fea9280369228824ccf30dff697a70280d91035cdc0a271faa0683cf0b8776aeffffffffc2be9e4ca9438e9a995bbe90cada7dbe0d7aabfd681fe7a760e860a037abcf5a000000006b483045022100a6311b5347814a7d6707ffbfced261b1e93dea471eaa1b80c1847e77f12c72c90220468b9dcd03c46b4c158d300d68ed13598e8cdcbde5899a8602ae752b1e30e3ba0121030cce664e0c7a4b416a02b9fe8ff76a68214e958cbc1af661ae42c0d7364e5091ffffffffa17f1c953b371b196f14faf73404bb8a02166a803f3e229eb6d04da40d7da46e3d0000006a473044022027ecd9c0087bf313fd43fb0590994efc8a90b600c63768ae98fe4dc7f17bbb9902200aa2847a21667a8c559959c1959657512c63a18e8eb10ca84eb0a5345e68cb3b01210350adefc65a86e370fd4fdd0151a7ecbbc2a8dcdfc084cc075e83d197e4014a3effffffff45c46d6a6720124705c25ab9777ac5dfc7c53c6a6c4c387f6edd2110393524be090000006b483045022100876f0a162e66be4209413c27e0b08680e76573af7b2f5767bbf60d997cb231720220105a5c4b8ba943cfe987632b786f4fa9fc03b9b9ee8c7758c37067d550196a7e012102cced0d0ffddbcf0f9194ed107b03b919f0f3074c41b53e7376c753f562e21647ffffffff36a71464956b3f64be91833460cd327af020013bf91d921618115849fc18d4d2000000006a473044022017af06393be23f12a4c9716ed56ccc84df8495fdc51669cecb3aa11e0e73f5d9022036832eba8448f577630234f47f4842e1712605a234d6d5eadd90ae4ab563c98e012103e6f7f28ac5db1f0bcbf18c6f21ebe4b66134d57f437643f795e44d0876305dc5ffffffff8e796a2be4b0813b35b6b3def8c1f6b23b1e6bc489f73a6af0d868a3117ea39a100000006a47304402201c705d82c63689ddb3d0555582d6577c652c6e0eadc7d6caba42af6e0a94328302203139cf082ea8615e60e958dca478aa7ba51750baedad9b1f7cf2e4997f9fc09e01210344aeaa967c6932c397a21cfe46560981638adfe95985818bc1b92195ee00b93cffffffff45c46d6a6720124705c25ab9777ac5dfc7c53c6a6c4c387f6edd2110393524be0b0000006b4830450221009f831750452301cf2123d01ad490904a3a4583664577632df2fad18231bf179502204c245e238846019388c6a5789969a8a5834dcc6464f715f178545d1884ea6b8801210321e1e777b76571abc953f9138b4ebfe4d378a59bdc9b88f393546ea0a65d09ffffffffffd41087f77c0ff528b6131f1c96ad766829c0975ce55ef6e13bf82ff096aa3cee000000006b483045022100fdb3b6d0b3184439d0058aafc13f2463b69f7694e253c74cb515de78d2e2732b02206069f42cd8597aa32b82e1f245e2b8f0ec35374083a305f8fda6c91c17b1933a012102a35c3171ae31a762209d6d628350c3d28e7124da414cf1d44e15d2f615280bf0fffffffff1e3424b51cd6caac82571686f9f0df2a405ca9f45e9933f8efbcdc20da2569c060000006a473044022042568266070d02d014cb87d639521410d1b5e22f5709f32a41391327188dd2e402200550094be1358440b88e13ec5b868871958c3e6ad8adc238a51852db74d77f79012102a35c3171ae31a762209d6d628350c3d28e7124da414cf1d44e15d2f615280bf0ffffffff71dedaaa720485b6fd2886ec321fb60470312fd76fe41fcb25d2e8c32b5ff3d0000000006b483045022100a745f36bdf8baaf2118dcb0407d187cf4192f6bad13a37caf11e4a3eef382faf02204681f42a4ea5cd80144c10b7011dd4f343b79324a7222e62dc98bc4183e41a8801210345e2010b62d56cf5e79282d74deac6f9c2f1d9cf6746a1e960ca0cb18fb79f8dffffffffac3777e88e55e9cb150af0dfbea3f0f4ae11d7b39bad41fbdb47ed4a9c891948000000006b483045022100d5dd247e08cd72cfac6c3aa76995138465d9246225681c6045057ed4941933cb0220609502ccde406ef54241ecdf0edb49cee2272d6fc68f9957d5bd3d87d960e2df0121021a97caab63debfdb156e4ed5f6c68219c3f1eb95de3032b1f57ad1f123c1d858ffffffff9c9dd4b1906f8db5735fe94f2dbfec65fb2551951b3b448a6f38a24742c41de6000000006b483045022100a14979aa9be076fac6e448252f9895984d02e554cafbe8c89d10e1cd3bb805a1022034fcd2c77eff453ec3804ae410803841990a0c4119e1835e60c5296ef137080d01210345e2010b62d56cf5e79282d74deac6f9c2f1d9cf6746a1e960ca0cb18fb79f8dffffffffe5e4216f0619f1d8fbb94aad7f23dc091adf2e8afbf00b67744861cd1d4d0a15000000006a47304402207442a698da8ea7ee3f7808eb2dbd32196430d36ea319346e543e7e7fa600169f02207513c917c998f731435d80ccde038c6fafa89b17f4ad1af382cfdbeb8d7f6f78012103682a1ee1ee449924f96199b3b7d6bc5887a36af073014f69c6d09b7ceea09e04ffffffff3ac1fbabb025810b3d2d1a71138b6f8ac8717336e586c9e6468e9c16fe4c20d0010000006b48304502210089e7591fe30bb8531698f86b6686c14757115ca94549704ef63bf3898a5f164e02205acb550842243013fe211d2481a587965ec6e15871a8de167b74d90b883440270121022110aca8e9a8d8073613f2bb6679e1adb27f30bd8b4478233ac2bc3209e3ce55ffffffffc638e55a19331f8056658aaf80710876bd989d15edbe6dd506daff3a8b319555010000006a473044022019ee7ffebe9aa9051ec341e174004969b37f68e9445ff0163b2d40d1f105f24a022063bcfdb705266930b59b58780b77184c7a460affb065fd5da3bbfb4f914db6ac0121022110aca8e9a8d8073613f2bb6679e1adb27f30bd8b4478233ac2bc3209e3ce55ffffffff4b93253465059f3e3d071b82b5a804f193cf53e9c57bffb94c7fea061745206d000000006b483045022100e4aa6b909a1b570f65de2ffedb43d5f9605347e24439ef30daefb1516d1a49f002203fa103a695a0318a49163c32a69d047e3f5cbf3c8bd8d630fb446209042a03d901210235598827e3268015e559e00679829021014342335233fbc5719f7d7ebc0b2344ffffffffa3c12d507bbd3ba48918034ed31ca6205937c9cf260f4d7622103d744798b79c000000006a473044022056d26108c3b18a4d0bda657c06954c2a88cd51862bc006541ed494f11d9b7c5d022000d2b50fec1f342d862ebd7691f4860127947a4458d9083e06e901e0006a43ff01210224bb22b33b20d8cbbb2a0522d8f9c6d0e78965006e443ce843c305ec9ddab0eaffffffff346e1b8a8e10e1734fdc461b6ce153c0200ca2ecb6dc9b0ffe97c4c0e384e94f000000006a473044022005336469496a9c2d03499518470486ed9ea83bdee636cb1d8b6c258679644ba5022013bdc19bfe4fef05884c9ff947d149730b207bb365552e13dcdeb30c66ec260001210224bb22b33b20d8cbbb2a0522d8f9c6d0e78965006e443ce843c305ec9ddab0eaffffffff01cd55f102000000001976a914c7fe9f2b47bac34feac4442a91176b6707aa48b088ac00000000010000000385dc4f9bd841629c2549cb798c74b2fbd2135aa81cd178b74b4bd7beec4d990b010000008b483045022100c027692a70392a9c050ac7419f9d83a4310706b96e3f385b1fc10d2e225bce7c022003c81c085c37912236b31380f6b2b81fc73dd51d6a1742c381ee7923b8fdb671014104fa98199bbb646800133c89bf55756d1074b176869efbcdc1920dddcc67a4a37e571aa4bc6e47cd1de23b6c31f5c4881023a92fb9451236144996f74be03da328ffffffff6b6202ec1180d19c2fefc33c99d1f15ba5eb49d0190501bd32f7bf8834d93960000000008a473044022025199a900727c424bf5356820823907e39b649b3622cadf4eb889ef9f98690ec022055ca1d5a82f7911fbc78e82a9e208b554c76fcf2d664f94f183fdf5a550680b8014104fa98199bbb646800133c89bf55756d1074b176869efbcdc1920dddcc67a4a37e571aa4bc6e47cd1de23b6c31f5c4881023a92fb9451236144996f74be03da328ffffffff197953fd522666bd49d7a24d57dff1631f495877639ec2d3e78f2f8f49d8ae5e000000008a473044022023ae134a9243751aa229cb8c8071ae29dec5f1d895e17806886cacfcb5f55fcc0220751a2d0a05bf544381cbbbdd55acba79f593e714dc36b08629310ce199bad8e2014104fa98199bbb646800133c89bf55756d1074b176869efbcdc1920dddcc67a4a37e571aa4bc6e47cd1de23b6c31f5c4881023a92fb9451236144996f74be03da328ffffffff022dd04100000000001976a914c18ec0550cafcd1661b88e958d14031ecb4d0b5b88ac8f841700000000001976a914d20942f56282a083959b82ffa4c50f10a63962a088ac00000000010000000307440005094baffd6474d24fa7fb48199495f0acee6fa0ed3ef92709a7574cad010000008b483045022100a19620e7a1ac74fce8eef44c62d84efecaecfadda8b34872cdfd32b26f9904070220590c588c670bbff128e2dca9d4dcd6065f90c4c1f0c15c778fff1483d88278ec0141043eac9a482884575fe2e1134ffa08d2e0cefaf66cc69522a73b95ae97c118f39b1cc6ed985c16cbc87f255bcafa39f56e612c775ba08085b157533711988f62e5ffffffffd77b0a669cbb463a132bffa0d049778c440207602c1462a23e055baa83c92f7f000000008b483045022100eb06c4c624e3714836a93aea91791d0a1af9e01cd008fd478524566d2d0f1b49022029643a7fb1df2e81c72c4a6a14e0827eefe6f8d35b000ff50607623e0355c1ab0141043eac9a482884575fe2e1134ffa08d2e0cefaf66cc69522a73b95ae97c118f39b1cc6ed985c16cbc87f255bcafa39f56e612c775ba08085b157533711988f62e5ffffffff54cd089d6f8e6c2da46157228f60381144214039daaafcb7e60fe8c5f93db656010000008a473044022069fdedb0962f635a1e5d54d7a2234031ab849949b7d4738755fe0992be58f89f0220757dfe6e93edd3ca5710d78bd351023adcf4089ddbc7a8ff2abc60d93dd442920141043eac9a482884575fe2e1134ffa08d2e0cefaf66cc69522a73b95ae97c118f39b1cc6ed985c16cbc87f255bcafa39f56e612c775ba08085b157533711988f62e5ffffffff02b5400701000000001976a91497beda08251d956d1980fe405a279efceede7fd788ac58eb0100000000001976a914ba6a7f681e57d26f1552f70db941e24b8f1ab8b188ac0000000001000000150eedd54621891ad92feaee4c468687bf67d7193c9d811207285d3b7460808921010000006a47304402207b88c2d304048943bea1312de0839bbfa143256993b3aedee941eda03a9f64e30220769016ee38f38742c68341cdcb24d215420bfdfbace3cfee18c7b758e9431b5401210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff02afbb3a433b9d188a22f52f480cdc45c77f255672c554dcaa831c8ceb4ac3ba000000006a47304402202dff316b95f35609f95589739fe228037700c6e836fc9f9f99f5da8eeca9c8fe02204789cdcb64e945ac4931c5b2d983530791b5d96ea5b8bec87c0d022ffab150b401210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff7b5b7fd0925ac938f1392bb7713720dda0e6b7157102c0aa5ede80c27223f0e7000000006a47304402202c47a78f7b8884593e1639a8179d8dd5e752f8f4edf39484a5d01782ac5ea50c022041fa721de6c0c6ab76de8b00906fed2585473152cf141bcd7f8e8697bbc23c8d01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffffcfe9cdc298dd823043bdeae08b2a77dde165e7a1029ea59697c26d6670694c03010000006a4730440220225a95dcb69a5be677246464266f3400a2ffef4247ef835ad4f901acacb1e5d8022042556522af5ac96cf824c56d5961c289a6036bf99466835ef37e868b7bf569aa01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297ffffffffff75d01e9762648cfdb7f0260bc1121e1231194bc27394cafb2cc9b8e448fefcd000000006a4730440220088cf2d9d37c0fa86ed25b3149508b3897a8be8ed3ed734a8f3903a132ca5618022041daea99c62b965a8c4a9db436c5e9c4dfc3fea2b0f39b5f1f0b96b34d7761bb01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff797e2f85ceacd5f3977c81a74517b2182644b73e1b7464a9436c782b3f9b4bbf000000006a47304402206c392031f451252e477e179470b34ff79c6d48cf15e4f1fe92b83d877bbc5abf0220541b0b9898925c9fdf7f2ea99d8561f9aa87e79f3493c92e8ec4a3f7f09f513e01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffffd84fbddeb99ff93cf060bbe4af957a64e2e04727e24bcb70160ab8a3ac83675e010000006b4830450221009a39f1e1bcb9ab5287b72edaf03a6036565f51f1b825f01bdac34558a5fdb69502206c4521a1aa007fcec81967f1d02900269f924080e29812a99095de720c111b9201210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffffb7885dfbd3f500f70bf97ade65a99bd1c4b10b6472e8c4854dfa3f2ed3ed7eca010000006a47304402203feb717ebbc9a5cf34a3916c859d29642f192dabc3a807921fb20a43b951d2740220170b8a2a59aaee95ed2ce827639e1951d7d04b9d68631003393d8ce5bbbeb7c901210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff33c7bfc2a09acd285ffc99b2c1c538da6ed91fbb23dd0ba7c1c0cc175ef8500e000000006a473044022042bdec211b828b4fb35ab1e963f3c75f800fe5bace1124e9a3b79c347f85ffb6022058759a71b31c7e535a7cd2a5eacbdc54d1a7dc06d89a29d524c155688d07327501210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff37eeadbb03b8ca49ea492ae875dee9a3404b4ee228efc659dc8f650a5b2f1a7b010000006b483045022100d8fe0e0d8e720822c606fde1a7bedee01630152e8ba5129a55e347e57afb4a4802201cac9c33715ae981192b40e499437a41832dfcb4027d301e27290690e8d56b2001210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff083f33a77c8c0b09f991fd388e3c1aa3fdc02720c0fc48d7e9b05453f1c6f21b000000006a473044022042ace20a648f25e079d0cf1ecdf9ad74e562a7018bc7ff53b94bba4f8cae9e850220192e04b9c43d27153faa5fca60b1e06fc3cddfcd76855642e928e8a6f664ec8301210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff5a8725e516a928f28bdfa797f9b5b4a91c5e4a4508a3df7b3464974b28d1305f000000006a4730440220559a4d1f3954f6b4fff71309430465e763f5e6d6ceb08e5a8ace8c0748b011f5022073456ef435d190262bacf6ac9457ce62128c457aa24b1f5aca2ab6f1b361a06901210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff3e423119b68bad2292d499c961635be354e6034c2a6153cbc9a1485b739afa87000000006b483045022100d7c4117dee84e7e76f676c4498365bd375629289894043cd610086aa374ae21e022052aded807dd2ccd92e177caa5d08db7958d5f0b52a55e03d36caeebbc9c82cc701210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff941f1736686e63d810ce0252f1331346493376336b03704d2ddac3ead9afe863000000006a47304402206d4f16732e9ead1a3a89c43b44c24200273e989a428547d3322f9c8b844aec6e0220197b836473145bb8c1f7ab957522f6497c9be7a7fd250aecca8f736562772c1001210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff42ed61bdb2892be9b71023ae7cbd3d90b0e44813a040f2a60a0e99ad23d3d566000000006b483045022100f154cd7a6ed77ee70e1b8cf3bfa2c66ad874a5b0410427f720c2b64035f3d27102200529948c63c3ed4535e76ac57eeee5d5abd4999e406b6ed899624d9c9b8cb2db01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffffff0bea498798c3d19ab17df6df9668b3aeee2e7dab6fed11e71781ae101e3658010000006b483045022100d749f1b9cf784ad11b5bb671eb944ab80301f0ff06a9f1b97b3251d953790fb002203b0d633b6e67c74cf055c395d96746bcbd9d8f303d8db91a24b02150dac29cca01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffffce51322b39beb0f2cf12e48116f0f71c1995d955f7d71a79f6a601d6086bdf40010000006b483045022100cfeb04a2e44f6cc6537e7f494b529cbef1ade4f962a6a1bd91b8a2b7def03ed9022075c21a8f6809580c638aeaa28f518464f72e706cce327d627c56c89c3a24403e01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff7470bc83cf4651168def54f7e0caed83deb07ebc9799d1b34b10783983d65ed4000000006b483045022100bb8164b1ee21ab3dab377a357c87182e97eb093ed85142f7f144b09a884f3ae002204272632ecae7c02381ab2d338ec0eaf175a2c5a8d96588424f2f49581a341ec501210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff82884510e0f02eb232b590f0787f5847c893a8defc86b26af5e3cd921b9a1844000000006b483045022100bb66b2f7783c2013d603906ae09daba23d35c30986418fcaed1c3a16026868b40220285e53dc57ddfff8b493446519f6b559ac08dc36925434f0ca6868e61293776401210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff9f086f236860ac3222d043070c5a91a518be797f36429a9e79fb911e62521ff9010000006b483045022100ab794c98373b7b244d4321457b7674039d309fedfefa8a4659c8cd6b8195879e02206d8a6e913db5f7cab8372b81fb9d0c12068ac0bd08763ba390f31d424c1c66ef01210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff83950d4f7573ca6888f2fb28b84c33affa02873c4681ea410735bfcd2edc2b38010000006a4730440220716a57a77ca12743b5d7b9623de2ea8014e5c528bd5adbb713ec5260f168cc4702206b58bb0599c80ae059b6e66352e40b9dd20ecf4c175e58eabf28e8f1495924f801210279c10b608c0115a074494e2d3004aeca33addade2665f0ac0792bff07414297fffffffff0240420f00000000001976a914aa6d73b74d2308700d1706d374b1c781eaa0eb2688ac2f8c0600000000001976a914397052deb932aee90755dd067d8bda82f6c5653888ac000000000100000008819eefc91324f7c59824140102d16cab155074d3c0e6c30799aad00b7b015d0b010000006b483045022100a8b51bdd1c041fb88fee8957ac9d31d41de594676269b298ae5a70652b8215ed02203050b1568f2f21aec6c1a48bbcc71fda0979a426a7d03d7b212666b9473d8fc10121038a67981e039f40b34b6293102a508a5591ee119e1b66ac37dc9e4a0399138081ffffffff987ea93417c0ebf535d5e480ccd3cb3c0a6eca0d017d459b25ed07fee646e960000000006a47304402203603dd25abe3af32c228158158cc9a721bef053da3a41a65fab8d6787003384d02203dc49c4ccb2a0bb7897ef8c4bf354cd0bedfe09e2c4f0ce98a78150ce522a726012103176e1a4f9910e4a76bf4a472e2383fc2709f7e0d3bd788320dc5971a91224120ffffffff0afdc709516ff038a4447555b8af227c77fe44628470ace25cd16bdea0d60f50000000006a473044022059d131f21d082791c3e6a8ca3dbe1f72c7c843b170293e463eed11451db42dfb022026e72d4755e3e2138f472cd311574139eb1e4401d8457e4667cd5200ad170b4501210237e1e8eb9d04ba5e6607d8b2d252dc9bb6cfe4b2e63972bdb456853a597faaeeffffffff91fbfa5aa15c2d73967f15996c12679a182b6b3d41a78ca7c51c4efacce8be62000000006a473044022075a867cae15103357adc16737fa35b7b6b0e48754dd9688cf1a47ec69e1a2755022030fa16e42fe268a983302786504efcc7d930e6d22b8825145118436c70c889600121021d27865370d508559487fe37a9769852a8f13ddcc991b45c4d60df94e2b2ecbdffffffff9d3f91bdf173a66bf08409a3d6776b33d0aeee3222fda32e2800bca08efd93f5350000006b4830450221009ff69b9ea160997d978ac8cba7aef5c42d1004d9f295ec72fcc873d061a27882022008ae5242175a2d781dac8eb68b3657ea025231beb8ea9ed5d827e2e6d685e156012103630d5d09a52aafade1a0d67ef94d1ec8fe036866c9a82cf1a2f71161a1721be4ffffffff9d3f91bdf173a66bf08409a3d6776b33d0aeee3222fda32e2800bca08efd93f5780000006b483045022100ba72b7c49f41d76b96087e6842ebec0f741d0b5e2c6638deae6b4b0854ffae84022056ad077a81045366d8a5624277b30e65ad4a58e2944e20ac5e381a9b67747c90012103b69a2b64ddf7df334dfe4f682d646d27db6f85392e002c3014334e2e75cb447bffffffffbd3e33cf249fa8b9155c9ec2e92fc27abf9a0f9167e3975d466a4a6b4bce803a010000006a4730440220013c9cd0fa7ec8129b55dd083ef3ae5897bb22929259354ed4757195a061521e02202d51f2d1b23ab92037139818d3704db268c5e1f512511e89dea770e6172a0634012102203d41c4ef66496d4cc2116e63dc5d1652c52793c15d69fb03d4e4df80dfb330ffffffff0991589b0f4ef4cafe6eff660bf245059c997dd97c1b08f76520a3d50b298f2e010000006b483045022100b6e571b595ba04dd47035ad43c8d1849eea92bda67112ad92c392feec5574a37022012de75047eefa4de5f0136e33fed8c3d000f4489b2ff6f9b5b51af1db2bad080012102490b994a22bbb1e4cfdc374ffc89a482a1ee327483e9ba674617471b9e3f5cdaffffffff0311620f00000000001976a91498b68ac8c1b4f6be5ed097094ebd99df8b73989988acc09ee605000000001976a9143ea27cb55ca64e3672cb0bfc5500cf881a4fe85d88acc0d45407000000001976a914f87e8dff7e529699bff8e621acb7738b15ef0bd388ac0000000001000000024ce5339ba62ac895696f36436d97bf4e014d425121107e159429d806c436432601000000fc0047304402202ed540b1a1de820ee3a9bd5c51b864c3e80fe1db0169ac7c25efc3daf8e1b47c0220508dd345d5582bcf00a862463c502aea752dabfa41254487633c3dcde03f5ea301473044022037edee8fa4447e5b036a2a0480dbf8d1d5e622406ccc59fa7e357b973eb9220c02206f96603ed379bbaaf1550569653464cd92ba6ebbfd9ef5a4a2c42ca1e22827ea014c695221029e4109cc1472143ac35d17d08d6f23fe95c24b5a9c360b16063b23ecf6e7f7242102bbf21f7d822c684224fc2b86ab9564be7288a3e28e473a5a63bac2dedb29e1fa210358ad8427e4a13647f0b97341a005b936333247de7f5740216c5578f1e3e5e7ba53aeffffffff88611fc3c1368c2b8c42992ac6b17d8bff53ffe371ebc48f895534b46b791a3803000000fc00473044022038d5cb150f634d53516f660c89053a0ca37da9b956afcf815bf167375a0b7a100220392d823fcc331f783aa934ff173b9b3fdca16c17726686dabf86518299a44e6b014730440220046f01c9ebdda922b12900b0060a1dd1a4392cb68f046ac011d7dbd59a897ae802200797854853844761b9ece265904efdc805f97db7ed42f23f7e42f22bcbed23f9014c69522102a995fb65c2cf5fbf92064447b9d1c215fc92f05355e30f7b52ebd91e15bcadbe21028fa5722254d3e8917ba54710c0cc427d8a1bbe4e89e399e555fa633c65cbaa85210286aa0a6003d61f7040799f08b30f089b2049081de19af7cc6861cd8eb977ff8f53aeffffffff02dfd695000000000017a9143ad3245fa0d8c4a9314a65f325356f7a60dd85978764d24100000000001976a914857acf0e97e5c52b370fdabe2a3872e188d2955088ac000000000100000004a9808d72e1fb42366be1dd5a9a849438b4a3d35435c484e79e2c6001d767a6d3010000006a473044022017d281968d4da62840e5c4efb2734752fc1b78296272abbfe97ab76cc2af03b0022038697aedb4b5a81b19ea05e17ae678e3035728f4e53adf762bd712efd35977de012103360baebd37277e4879282f1f1445145d7238eb7da0ad6cdee36f7b22f69b76acffffffffa9808d72e1fb42366be1dd5a9a849438b4a3d35435c484e79e2c6001d767a6d3020000006a47304402207237b7946d79f65ab032fee607be84be3b992b4ca8b4907cbfe0f30b85f942130220446f740dffa39156d9456beac476f825d56cb0868df6350446fcaa77f9cfe225012102992c388ddeaf6764013956c6ec5f33bb431307657033fecf332495a7fb32dd76ffffffff6eb389b5739d777abd643047ac6b950f70cb45f76be05c75180d7b0e390e5504000000006a4730440220357eb3025a9a0837c8fe303c75833ea49c357b20cca0d67e081f6d9e094d53b202200fd16e60d8fd2ebed24e7db7719f74cef80e380b14d2c5e87f27486a3dde3d85012102456b9254fe15ba0bf29261cfbe2b00841e4d7c5fb62aa35f01d3f74c4f3200d2ffffffff6eb389b5739d777abd643047ac6b950f70cb45f76be05c75180d7b0e390e5504010000006a47304402202b1e82c6aa5005038db66bf95b17bb3c82f3c560395e942a0bb677e2c28ffdd40220354658cc698727e7d3e3047b6dbc1b10f480ec8902f7e7f9a134106cc201e77e01210291950e0069791a1f322d6e6473b10a86f725e89c18e155b3160fcbf3b733134affffffff0200374105000000001976a91406966b3f4bce3e79188f97c6cb3a84612535624d88ac4025c309000000001976a9148b147bd57edd9ba2c9e8e232550357292707507c88ac0000000001000000042f69d910e0a58b18ebd7563c4cad735b154354b216a84670e4650d1097f9058c010000006a473044022026b54d47527544ef8470cfc09fe335d5de83b939ea14a1a543abafe5897d865902202ec5eed1d3c3ee8685077500988b591c90e5ead92a257d8fd83fdfe97625c7fb012103921c3e7f6d8a26271aa669c9241ffed0431fecba2009b225a05345bd4b922802ffffffffc1474b48ce5362b74a05475263e200f7f14f57938caa7c81bce5fb1fbfcefefa010000006b48304502210090c270be6b78f1de566f9a44daebc9d4167d1fcc25f30c66d4519b48bc252472022073eefdb9a758ae4f285976261582dce6dbbf6baf6bc739d2602076e12974c73a012103d42441bb555ca6e389ac2623c291ee3f2980d9ef365b5531011bc955c46e2e28ffffffff2f69d910e0a58b18ebd7563c4cad735b154354b216a84670e4650d1097f9058c000000006a473044022015dc0ee31f5664058620fe1ed142549947d16ecdd3548727b472387a332f43f1022075ff617cdc0e75ffa9a8a88638e0c6417ea15dd428fa16a41f0e4172bc05296e012103667504a3bc7405cb4089d11284e99aa2d6c85b95cbd2bc7b45839241309790e3ffffffff21584474d6b0b4bc8c53c9cc4b09534265fcc103e9d27a4a8f89c2e39d41b310010000006a473044022016ac7f38d01eb11cc0111c06cb4b1033b2c709fa895391921c61dc0f957a058f02206611b4a1aa8422c9444c2b16bd669f8db9c823969dd9d32be405fb05f6cc169b01210225326486858039f7de923689da08567de6b59220b5c94c75fa7806ab7ae16d02ffffffff02e87ee30f000000001976a9141cfe17bcc5282df694a3adbad05b33e86cd04ac288ac58ea9112000000001976a914c3f482774ab14e68fbbcc9b9b6005e7412aa5dab88ac000000000100000004d86d31a392e340db1849f153f4ead374dd69a98d280a21cf413ea31dd2507e22010000006b483045022100fad3eed203cf675e387c13070f12a62985d195dd0e98ff14663192c37f69f5dc02206a7d4b7251e4cc0edddeb8f527a981fde93868ece07eff6781d2e44716e7035f0121024040f6ba07fffc5690eb30ac31ee613d78c9747677443731e173b5f9b2c0b4ceffffffff4aac8cdeab369a8bf5ca943709aa1f5d0a0d1796c80c0840e775c19fcd956283000000006b4830450221009d28de08114d2863032c1b8485618b296bc353fe82610e18fe0bc47c2817741a02203eca8b045a772baaab987253e7c12ce9ffc1b4afb6b3c00dd945f2aa10297da70121024040f6ba07fffc5690eb30ac31ee613d78c9747677443731e173b5f9b2c0b4ceffffffff5a4acd796bfc7ae82a621d423944763de029b621d6c64bff2332ff265a293675010000006a47304402204f874e721b0642d46406d4d542dd42550f7976f763edea22be776857674091e8022016985b0c857aed4b51d9089a8a9d19bd0b37b5ca85ce77545899a049eb9ea4770121024040f6ba07fffc5690eb30ac31ee613d78c9747677443731e173b5f9b2c0b4cefffffffff44b23bc15d7e2d7360f75d0c6055a1054d5eaafa80bbbb8e41c7ff72314e459010000006a4730440220526d0c617a3eee31d7073768e921c10d45b1404f9d0353d36f25bcbd8fae829402200f9998d6013731e6ac9b4a72c207e0f7ca662cc7b2ed2a8e1019358eca3c9d530121024040f6ba07fffc5690eb30ac31ee613d78c9747677443731e173b5f9b2c0b4ceffffffff02002f6859000000001976a914872166765f45d3125a6e7b464c6adb42b44b80ed88ac76671511000000001976a914187381f0dc68434d35a2acf06b763ae25bb658b588ac0000000001000000046f86122af2abc36cd18b9017f5e218d0aeb0d48cd8d678ded1f3b7220a416fa3000000006b483045022100cfa0f801e12e7f9e2996fd57c51b3e0964cc2ec77cc871b2b20669af6027fd7e02201596d6e2cc05c85c1f1b15e3cc233bb1212ac6a1f578e8e37ba522399e9c1691012102e17409d4791004d9a3b385f38488f4b23733b25786512cd93a8010cc9a2aa9ecffffffff04581122477ae8acebbd7478151f823889d65df1ba47f1da0121cca34da0d36d010000006a473044022079e1496a985d36b491a422b172c24f5759411972b23f576b1413c6616890f16102203cd56961761bd5195e0800a3e6533cd88ba7077e849756ed1cc170105b6bc8f9012103fc048737cb94121174f58a314ea6c1a0005916fef76caddf0dfdafee83d17c2affffffff8f353e7d36e3fb1c11fc9f7e3b2dd50e86609646c0bc01f729946dec6687db33000000006b4830450221009c656ef4c7adecc1e10ed57f0ec7a6e9239bc7be2b09eb947396da37646e08790220142a96f0b572b72f91feb6fececb876eacfc3214c0b953b790db3fdbaf4a38be012103247e0e71ee443bb9b1de408b97d87649fe5754d80a3242175720c1b3092221c8ffffffff49f6541e700d9a821791dada89ad66e5b5e214486ba4d60caa30b2428370b9e1000000006a473044022020369771d94f1a424c67c4bbaab02bb4b23d36e25963ef32876b1b5d6ffce60d0220486ef8e02ae9e7bd2a07510aea84c9ffa517cc33cd85421683359959af9d046d012103b2bfd7dd05d860c989b3e2036a13d7ded1ef9ea7371e6c0ba9a49919d3bc718dffffffff023c481900000000001976a914df9dc0d20149390c51d0db0be76c24d1cdbac56388ac85d71b00000000001976a9149132e50950edf4e22b0913e20cf268dc328c484288ac000000000100000004c091f9d6b044a1fd252868ec88a925f68c97e3890aed180c3624fffeb62e6bb0000000006b483045022100af59c0874ecdf4c86306d7b4290ecb2efa7aab34df95f11a62ce9e1e5be38748022078df0c8dd9a39d44afddc9cabf4a7b649c6e2cc729584fc28a1153d89ac4429c012103b215067780dc087cf64bf86e3bef6458a4702e24d8a1a64786912ed6a8f04cb2ffffffff09b0aa0461429865d6bd65788ea7c3ca723877bd45826d7ac3c9aeb681b04f5c070000006b483045022100a760218c4c33cf40e8be1eb8e642a976e6f46b2fa0fc136a74a9b237711426a002200cb66f03fa88897f825f788e4a78ccf5f993f788bf0c912b5e4213802ff92879012102ec7e292405b2d9650af62312ce38f3d224a735ede955a7b62a67f0a487dc20e6ffffffffd45f83dfd49dcadf02ac6716c39d5d7b79cf2915466e2bb2347d14d353a2b49d050000006b483045022100858917399df867452d179347950d966b5964ddfa136cda7f51bf0002bf908e9e02203b07ecac7ae839da535e3113a7a792c71fffca257a1576f651838330587378ab0121030d842fdef76774c27c0219b891fd7aa0648ca647f009853caead84b2c822d2fbffffffff04eada01f1cf34f211ac22a7323629043b9852a6e3c157fef26a2df9229d206c000000006a4730440220280f97135e20900536bc6ec1809ab907efb81c1c5f2cbd741cf2b0051a5378f90220699754cf3eed6da597ea4b4cd964522f42ad39f0319a95a5dea0e0a53aa74e9b012102e36500ea9b9af4cf1f7b70461614bc427a72443190ecf032ccb53ae19f0e53c0ffffffff025d450f00000000001976a9143704bb5562051db89b7ffaf94ace4d49ad5b11c488ac01199404000000001976a91473f4cfee8d7f66ca82f82baca6c54fe8603c8c0488ac000000000100000004a76b969761615a5671cedba45a67f8051faa3be672aa0e2ab765d3e1e9406669000000006b483045022100e36e9a28711c767300434f3be36e98b7fe248e146091b1469e50f6b48959a02d022018b8e9f724853c59ba686b887d01488c22e11c84986a25fc09defd51ff7fd0310121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffffe6cfaac578c5caebda5aee698466583532b262bcc5d3c51e5da93054dca6111c000000006b48304502210094b8d219a82efe1be7a9d842859dd23ce195e7aad99bca186bf9539a7eb8da610220784353a960e29bd8d0d51d8d1887f968a4b5abd53ef2d70442aa97a45fcc866f0121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff53ec47319ef2c9daf1f34164d5174fa9f1b5104544598e3e2de1b2bbcc2eda44000000006b483045022100dd4533718b05d90121fbc6d1115d1932b325ce9936f8f667359af3d180c0aa4c02206f2d9fc7dc8b2b5e98134755baaa8637782eea74f9f32d5a4c12974f552256f90121031d696aa1ce74877b8c64a2332e701a09a5d87664dc7e8e8b4163d5ebcf77adaaffffffff5ce0040a695fcb46a324f93ebdc0bc171c3820e082e42aa09976ab4ee561737a010000006a473044022072977b3c4c552ef0f59b516f755006615513ce68fd0a43f6820a9cec9835cb9602201e7f77d450981e2646de2e382af3847bc597cda3a5add10310b727404717804c012102715cb8c7ebeb081b2126092171aaad613a0ecf61cfb6b454e1a9f3a4d1e25022ffffffff02a0261100000000001976a914004a0481479b06d262a066121ec8d1423a04f3e988ac70d23703000000001976a91438860090779c6df12ea41cbe472359b62957527188ac00000000010000000b81bc3de513c67613d87cb7a9f2a1724fae68d31398f3a14816d695311e4c45bd000000006b483045022100ac4fd58a8fbd2313e5ac0e43309ba7f5094d1589a241ab83e945f3962065befd02202c6bccf44c87ce7ed94844c0157a4e75e2663388e7fa6c26843043c14d0153ac01210370bda3953f887ea377fcaedbbe70b1fb3bb8f1706e33890fc19762191ae975f0ffffffff81bc3de513c67613d87cb7a9f2a1724fae68d31398f3a14816d695311e4c45bd030000006a47304402206b1f047b474de8f6019292930e0a83e24249fce870c9d82f7560cf7dd5ac496a022044366d8e639f0d5704e5aaff6c2f2a90fb45ddc3567f8c1df62d2f70757e4fef0121037306a3293f071ff9f2bf11cd6cee6f8ae1fb37e1b2f40397eb403e2e6c0afb38ffffffff81bc3de513c67613d87cb7a9f2a1724fae68d31398f3a14816d695311e4c45bd070000006b483045022100b47d46a53028b8958be5533d2ecc992adf47576071e823e3bc72dcf0f0542c1602206e928913281dc8ec19931ffa50f5451363a0ab9e719664173a67215517e8d0a50121024a512e398d4809589bf61bc9d883f5a7b261d16d3f7ac0b51f345a090c53a372ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4000000006b483045022100eb88e519991237c788d25251031cde1660177031bd7256e900f9ef81578c437d022071abad8e8339346471acd4e7afbb2f9fd673d81b962484dd0e6789bdc4a51d25012103ced4017b04a849c4ce47340953c50d4d8e98420db4f7ec5a0299c3b331456517ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4020000006a473044022028d7cacf11e28566264a33f11dce836cdee5f25792a5c18817eec64f4eeea049022006a61c77e5e91ce6c0e84dd38fa8948b3076c9a6b2f197fd57c12146e3c873ab0121032725d4e881be5db8a2e4b409b2b541d4a3c2831434277be38958ecf46a720074ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4040000006b483045022100d12e475e9bb6600d7c0fa72196b2965302b03684141bc6468d11c4a423bf44f4022075ca23aaf7d00882d6d952629428ad7d42a1d78d8cdb116f71b6735b0e5f4b040121033b20a6374c5c9b28c286037e482c06a6987994606dc6cd0f8600522ddcdb8857ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4050000006a47304402203a2202058f683d5030499ef64f84dcb699d4bc271fc9c066faf20113a4458a4f022045326903e2249910abfe1fb6172cf6255c8bff7edd4893f36a8e694b20f5e89d0121031c6c03f8be7fa1d02a5c08a6917ab587fe575c76bf1ef9e18978def130bb57d5ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4060000006b4830450221008eb76c20bc8cec96c2ea68d2cb6d41579b7f2832ae8af062a97df207af5ad1fa02205622b0c7f6a8cbe82e7b28e749b306af3ea272e4b63c6f3a891e7d2e79c67b63012102e143780bc5aacf49eb2f6a7dee340d7e36fd392558dc6b485e66da6ec8e61e5affffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4080000006a4730440220169d51188e8bcedd2f8117724324450d27cfec90e4a9142ad62ccffd83a51418022016b46a2a7fe1270dfb729da7d6b21c2f4efcaa0e9a033fd3a914f01c4cc9564c0121034d5b5b22be51662a7bf43194e8a818e7a6338775dd4ec9f70c9133982f71f3a9ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e4090000006b483045022100fe880738419f23d538debd15e9a6f2bc54f8adb66e6016097eaed63aa1f5c0e1022019237739ea8932041f4cea6c0a7d66ece41197b4edb3a1a8d4288276595be5ff012102dade633be2b53b6bb33d1216fcd839f37079af8c0d27b37dad1d23da2a724534ffffffff45860c1e6813ce5c8d9b6b7d1ef198ef1b6e442283cabb5a065f3003d442f3e40a0000006b483045022100a443e547efd6ca3bfed49af73ba1da0b1dfcf573df61c4b4bc2b743c3bcfeb1902201927fef3938aa0ba247baadf065eabf46624965ed705819c9c30131b4297f77a0121022d4aef0b943ff10a5db9cee175d6b677a0279bf740b85a3bffb38956b95fc9d0ffffffff0b00e1f505000000001976a9144f34965f7cf7468b1c5cb931ec0dac228450c7ba88ac00e1f505000000001976a914d0b0b7b3bc6e40cea4244ed4cfd98792e06731b088aca7a91000000000001976a914fb5621da951819e6c8e197dbeccd39dcc12034a388ac00e1f505000000001976a9146ed40a32dbea9cdb31a53ed36dfdbbde073adbaa88ac00e1f505000000001976a914dd8fb366dc97c7d61dc387d1cc5b31403dac35b088ac00e1f505000000001976a914b0c89352d5a4e9d55d4630b927b759addae6587988ac00e1f505000000001976a914d8bd8f30b4afa83d35d51ad07d7bfdfce5f3421088ac00e1f505000000001976a9143377aefeb352fbefc7ff051e33b417806fd5772788ac00e1f505000000001976a9142383aefb128b96b8fa51388017531d852de839c588ac00e1f505000000001976a914a3081442f2531f62d4dd7c2ce3b04cb63a15874e88ac00e1f505000000001976a914af5f1ff37d57c8c6031cb8a3c3a0e8e69b72bb9788ac0000000001000000043048434b55617a71edbc0aad8fb45486c69043e4df6c920ccc8e3d834dca046c450000006a473044022054a9c5d67f961ec7af89680e72ab3343c9d3de734e824c69b4fa77956e10f8610220217a0b1bb8f9ac186a6859df1925ef682675da504657b4beeb6f89ca34e2791101210229b0a6c102bf5c905d4bcf7b6724221fd978ab4ad42dc50d6b7a4e29e4abf168ffffffff43d6b66beb75fab0b69bc0e9eba35bc83ec51cde13fc0e93400241324f695e9bff0000006c493046022100cb228150748d3b22354c004961e7c4adc8dc84b1df48017f866664c20ca52e9f022100d76507a0865d54b4ef85d7dba59d02a5162e5ba2de1871962e37b96f142a71a801210229b0a6c102bf5c905d4bcf7b6724221fd978ab4ad42dc50d6b7a4e29e4abf168ffffffff65e8ab5e443bd8fb64f149d726113cb638dd18e5d9eebaee321d61d05f4e56f11b0000006c493046022100af628ae05abd1a15796dcc70e6f3f5d18f2f47542425811e1ebd28d4cd70fed7022100b50c02835fa510ae42a1769458c67e8b7a3a7c16c3b3552c061670681306f87701210229b0a6c102bf5c905d4bcf7b6724221fd978ab4ad42dc50d6b7a4e29e4abf168ffffffff023b06deeb2a5ab76b49efb698a6595de7f4924a6cb286601e0907e4e4d955a9020000006a473044022049c0677bae6785795e4e73c036a8051e5973c6b161623cee67aa7165d71f221402204d5172511f479dc80f8f89b069c1b6c6c92eff4f78f7ff3a315279506f5d48c301210261106ecb8cf50532bd50c9189f1ee971e4869fcda56e2f1193e7d4def7eed785ffffffff02b3bc0100000000001976a914e2b94a36ed7c4abee24f8ac390940cf1645882cb88ac6ced0000000000001976a9144f45d231b5f69d9cbfdf4124a864ac0d8ad64d4188ac000000000100000002eddec1fc14de1645a7b534ae4b8123e5cf48c252382a16665b32dc72d9ff9323000000006b483045022100ca44dfa913702060b34f62f334f89cd582e3e6d4e7d28c2fd74fa531a04a974a022079f51032183f800bfb42693f1264852eff33b74ddd4589385b01aa576b18d79601210314f9b7d67d523a169e179faf44aa1ec37f80ca767573f742b7bd1f8046eeae60ffffffff4fe25062aac5f1784d173aabba656ce8f0542dfe6fae4e603dfb38eece1e493b010000006b483045022100f8ca99a3270f16366ba150ff3d67b8cde689e48d6af9d14a4263e34462157488022020c9469553fc50866484a639ec6550f44b666f7bf47d5891e0732f08b6b750b50121024239c436650505a685179c4465c43480b2dcf5ccf09cf8e5c9b987f83bf016c2ffffffff02b3bc0100000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88acc0910305000000001976a914abdab17d18308bfeb8470a846f9916514f96ed6988ac00000000010000000e1eccbdb45c491935639c9b66b72bf16d8c5576e17bb65d8efe5b1d3b2b2b2b3a000000006b4830450221008944db7ca3b10067425b511372322e8c00a62fbb86648215b1ce550ba19cfe7d0220761b2e6eb8b368eca17965df25b6962eda141434b6b875c5e5779f0c06826f09012102f5c481ef4d22a7e34821c8895713c7767a0d488b762073af1e9149e133616c70ffffffff832f06b1e87d12646afa819ac8d9726d7922e7b77f9a118090604c5ef84749d9000000006a47304402206427c7770555138d853f0a80dec5aa2a3e1af2a7bfff121624eab92ad86738da02204d6715086e2abc3ed1d9c01992f9cc1bab995ccaf241c28048603c5a7f7486f3012102512e8f9d11e85db35c25cebef218b145823401b1f1953d7b735671179c1996c5ffffffffcda6e2b0b4bbb3e2d7b1aaae693c638ab79ebfd9eb320724e2ec942c2c712530000000006a473044022035bb82942bec739e7053bf027d9a131d9ff4e418575b8664483f8a2c1d83ba4b02207cbc9ceeff08261da12867f61943cf1bda5ca68740e71b9dca8a6fa4d4e53b1d012103bc1ad40a3dff2ef9b20463e77f1f21fe84274ee72b032ca51fa96b7e572d2011ffffffff37c1202665c58da251423c09919ebf8846d25a729e5ad6f6e0189d6fe703ee66000000006b483045022100e60258b2ede8aff281f74bd61faecb34a700dfa1c365e7f28d13b070078e1833022052826be3a2754cb48febcdcdb30cea20421a4b0e2316456472c0ede41718886d01210322294cbfc1e382a5b679448d7f955c986a2563087fecebd456eb1d0a8e3fc39effffffffe42550ad7f4dcd3091efaf87b590be523c0f789acad0e8e455a211086173d40b010000006a473044022011fc06c473a9b01bb50026913f3ec993f4e113d97dacba2d8919bebe19968eb902204b5989c935c2cde6291dc9434f44380d1943a7d20ed5f11c716906b091f492e2012103198553c2ed54d3c000cec7c48fe330ffc81cd74166ee6d14d818f7d31d7da607ffffffff17903c7e53fdc3bb3a887a44449cb8f84d4e8192a23e0d68c3e2b3c40faecf41040000006a47304402205135b64bd95574ce423ef65d492f342f4f0b89974df1f80c8fa8e2ec734b303302201cbf925be716f2fbb4ca9373093caf751a8052c958579811bd6a70e59f4dd9c601210353597b12daf4531de465ced64d9e66f5659ab81507d6072d26758274f6d3bf17ffffffff256a0d2cf29b1e14b2e0cac4dcc34fc00989c1df6256da96921267ad19406178000000006b4830450221008c8096e7d8bfe717a6e5ade9f6ee80de545b4ea150a3eef7163bfb43af8213010220415dbffe504bf47a52f0ebca4a8273467aa1c726f193a57d6bbdc5a94a5d8023012102fa223797977099b1d2fe22fcff8fe0f22b8e3f0a31545fff8f6b15ad64ef1e92ffffffff0f493c25fada0542ef3678339f9efd24c318945e87e97667b165df02e90cc4d6000000006a47304402200cf194e8e45a11360a4fde3d7e5f8e8c145d87419a69c67f11a62ff8ed650031022046a6528f085db791a9d5681d3e73e8e737855c522f0ff83ee82ca6b19c23e172012102a210cf6f57f17cf4cfd379aa649f5977515472ba77d5fc23517d8746c8c6c48dffffffff9a6779c9e474b79c2c34133d114eb061d05b14304e5105e1f414d808c5f880ee000000006a47304402207b81d12d834f77b22353d68c6a7b300e6a5a8d9e5428c37f28d0e9f597e6d02302201d512bbefb2350ce0701400f308f3016eb5d70f2d3e7b8dbd39b9b2e776caddc012103e611396508c8648cfc348ac1167a227dcb08e2067448236b6288806558e2a9f4ffffffffceb2ff8d229274cabf76baf43d685ac4de2cf560e2adfcb99826cdcdbeefb66d000000006b483045022100dd151c8327b5c385f4ee572f5149383900118c099a19c2b1ed83263089b50d2e02207e58e74ba95fcf57618d3aebc109f46bac5f46d6005b234831c4c2c684d081b9012103bb7e4e7f87f3ec1e69d47042636bd60cc8fde3e2cfddc70ab5a58ea9902ecebfffffffff6941a70b4b3898d9ee26c15069a741b61d807978093af79eb809e9b4831d35e5020000006b4830450221009c066cf80849f8b4a0a3dce862c4647bdd5c0aba87ffe3c86fa3777f06457d8a022022dd2948a53402c8ee9148346b897281509e14594b3621820d6092d2567d739e012102a62b9da8d00a065563c4875b20c8d8626274fc9a0e098e7441aa9f30e3f07be6ffffffff741df0ace0c9848d676c21014fb7a64bc972dc5c1b9d09882e2dd05be0713a76000000006b483045022100fa07ce177cf69430978f858c248356f9f338a61e92e0b44cc7ad2ffd757621c3022063dd40b3d6a10ed7fd8424d589d3dde8b32ddc7b1f0285e4b21c80b3160ce938012103198553c2ed54d3c000cec7c48fe330ffc81cd74166ee6d14d818f7d31d7da607ffffffffdb65bbe6477accd63f09c9eae81dd849561f53f8d5347cb1cca63fbc54462918010000006b483045022100c307d054758453bb0d00d7351a3339fb0ddfaf9530e3e57d2325154002574757022009cd09bb5607c48b64453f1b1f1e548792c49c10d7df87566cf2ab154b06f0080121029c5139c0bd06ba5cd961d60bdfe0295735d45d0f261d2dc128577d94247d1892ffffffff91a1361ce520453c78aaed3edeebd7af223c67f99dfd7e4a75ecaf9bbcba3fc7000000006a4730440220370e0dfd3241f2aa1b0e6422cdb997e7cd5a0a18daa3fa5405f2835483538456022069608fde2084135ed7764fe3a775df9f79b4781c6475f822d6012522a7941cce0121025c94a0fa16542482cfad7cdefe74e2781be72b43a12ec543cbbba2a6a23627a8ffffffff020358f660000000001976a91421d9a838ced609f2f42528a2af4391854ee764c188acc4800f00000000001976a9143a2e1595324d2dbd05287d72a0f4cf0014b0f18388ac0000000001000000072e1539e1086947ea5fa180cb1b768acb9798033038c0c7e1f85abfeeee9524ac000000006a473044022040eaad587504e3dc05399500554fc7523617301ef4029090bee0be0c3429a22902202fca55961740c7c2227c774a6aef1e4ade5334788616d7ca3444db504d94411a01210233823b7b56598284786ba6d8cfd9ed418e09a87574be33059887c54e78f15449ffffffff93c715685f2aa2ac0deedd01d514c6f2cff438bfcaaad42f6590d5245115b861000000006b48304502210084db57a857b5130ea477d3dcf65b85a8b1f4d118edd27c257ddc1934bed0c788022051204153c48fda2998d35e88957d4c7f696e018d5f9e81095a3fea80fccdbf90012102667b9161b3a987d1ae75d08bd3caeb037bc05859ce4080c799b920e7de34152fffffffff59f28de28df36e4a65c1afe2d008824536332bd4156ef9a722391bb8dc93e6093f0000006a47304402202985d68865c240f401f1a5206293354df79016989370368ecd9d6bd6ad67437002205f55a7f97ceb235640cf677aa4bca049c2728e3896915317f7c15ae7f1f3139501210285a3bedbe36f3c54516684fb3ffad1421356654240d5a6ddf5b20ab971863762ffffffffead3e0d9e44369ffce58cd281c49d5ad8f39c49cb65fee366461a2f5c982cf4a000000006b4830450221008037a38815035343b71b44ee691bb026e087baefcaf8495c9762994b0a57c7a902207544797040e8bcf73a7328f53a77e823a482e2a8c902e3cfb9f73c0dff1fde6f0121038b6540428c0796c6a5328f114ea7edcf360e38ed893d14041de1bd57d917d19affffffffa76b5e0b1c7d5fbc43e2f698ba995d56865198e8439e7227b7bd0672091cf6e2000000006a47304402204eddf8d81b97845ca655bd7ae1a6e29275f17b4b1c301a20db0d420e3f9395980220527b2563153cfe48dfbd2671c294ca0af86a4a1083f6f4810fdf1499f1221cac012102f70467569a29375dae92d35c007d496de6733e930ea38ea29d47299793f2bc81ffffffff1dfa5428ad8c6047ca78d63f2f04a129059cde969076d65b38e47ca9e0e4cc88010000006a473044022010ebacba7832aeaa70b0874b61051de864f26e83630722fc8100e259953af149022052b707fdf8ce506690c0d0029afabc41fcff292b805966b25ca8e679289ddb7d01210282b42dc8fc746b376c1641f33cf7c64d222a703aff32455afe75e9176713d0a1ffffffff2948a2530101a4ed00167fec66d3b477d8348c421873f65d6f7507bc77055ede010000006b483045022100e007623f44b6a33322438aae23e4de3f256db3e69f3511e30f48bc644143c81c02202edf2d8401af6585d56ac30c7a83efd88a443834f7fa36c1f524a97c60652663012103c8487b70c2340b52542918815ffcaaa2623bd1b4d83ca0e3ade700e4dc9a6944ffffffff02f718601b000000001976a9146704f88d046d59c86d9deb2e29d237b9cc7e8ccf88acf1440f00000000001976a914260cfbf537d5401e5fe60c6ef9fa72348100d6c488ac0000000001000000196123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df0a0000006b4830450221008525ee1d88c93e9b2e0d4997a0a5e986aed404def89984f7650e27d8cf07e5790220359777703be7bf01ffbadb124a5728863641746c7da6cb5c3b5bbab2f8930c04012103e4ee7b5391ef723aca40ab8240f4d9b58cb0f6936c84a450368b8b1baae29a0dffffffffc8947469b161a17896486b273642576aca192b61b8c65fc10f7d400166f3eae7120000006b483045022100b77485adad1a5c364b48558f71425ae7a9a9e82fca0ad8faeac3967e26ce335d02205f362010c8c73e95a8d5e2e31e36b699ec67ea1e8659b4266b15384f73136d7a01210393e146a26868c645ee396844e37de0f935e1424123f5c0f56219b67cd7452fd3ffffffff11b2347e7261132e65c45a5a7b13536e8a64e7045bb3806846056ecdd3b97258110000006a47304402200d65120d022fc8d01e67014adeed2c7be47ef48c84606d04f58de1894505cc78022023ba7e93bccce8952c12c9168679ff9b0f3fbbce87180ccf025d45ef6c0372f10121035b987d0b0680a2dc3a6df57d4ab197b4f2346063f5056a866074b1547c90ca22ffffffff2547aecb2059ec30030e576e24505973f603b082b9f4613ee307ce0d45475fa9010000006b483045022100b8f8eacc70ed3e59d9dcfeb4b9752f2cf4649aca6096e14e954da4b84996b0d002202070968f771031476348fe7a0ebb07c9a334d95b3316953f00a887043afab4940121036f6cd5857ed89ebe2dfc5bcbda078f7cb586499acbbab4e310ddd1ad0dc8273effffffff800b9d1efefcbd90c435e63deaad265211c412877caeb786ced3c4f8f9d8a53f130000006b483045022100aff9cd832df2b974a8b06dc80455ca1f59557e3f23e22f1293e1bf0753b9a3d5022004155ab666c1b25502c793e1a66945d583364771c0ce15d2e366867ce6c2964c0121023fc53cb8fa5b23ccf95a8a8d16766cd754a256623820778b49d3bd808814c8d7ffffffff4c285e9e25b6799c9e19a65d5afd90e5a85a339ac29d1250c8d31535503049de0f0000006b483045022100db6779bfd8c15a29d5cc2d878b6cddcd71ee2cc5c6084f6e5db884d78e94d70502206f66be54472e08bf32b96333492938c089dbd7f8e6a1f441feda20d868dae59901210358afad1e50576f953d83c0a672dbf62623fef593cac3173eae5677e3451b090affffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208140000006a4730440220295be96d97a453e202805097a455ad0503b3fb62061cbe60ebe8e08f319834d402203bad741829ee78d9a858329f229118572f3c174ba37b3e9926018dd98d224475012102cbe176d942189550647429e6c092b135e7d257a45c32ea06686f158803c3d3edffffffff6b07d42eb24afac92e9f07f8937ae84e081394c110803dc8fa8f94e761aae3cd080000006b483045022100e2bf09bc5b67b1064dddfea96c56115b6a3a578e388fb6d9439abeb7f87228620220382e5794469975f626b09cc25520ddf0182e7cb0a58ab6804617273ac47b69e5012103c1b32a9d55335c7b5147c5bb80d1565845fea48c066583c912f60ea440c49b52fffffffff103049e0f0c7733038df7ac3cc3ee0ff18dae2e189283e0054f4b6611e3f6b9000000006b4830450221008f5d11da1b3ef7a0ac5e86e05ca503fddd8c4b2d86fa5e7416e569c7285a2a720220601af3499931e59a003e8069f2e04a01e8fbf8dc492fd5b5eda0b3d2f07c71d101210340f7a7827df5cdac10dc173d2f103a806a17496dbccd8a001e52d76f03050c80ffffffff6b07d42eb24afac92e9f07f8937ae84e081394c110803dc8fa8f94e761aae3cd0b0000006b483045022100f1156c6847ab6bc1a05b97c8b6d7e11c237c20e52155ca72632acdeeb19371a20220441d0a6fbabf83e0eda37e05b3b0a529f0d6235940b213ce6dcd60a576e3ed7c0121032c6c3eba03ac9b09130388468f07f4c03b2736cb73e8f8e870f8562f09350c0bffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208130000006b483045022100b9a5641cd8438395d311571d80eca4c16b9bc2cbda733f1e3dc83002325456e802205987bfc3c8c88c559ad07c568732ff899f93754f43a1291e2aa1cb83ef4502b4012103cdec1777bb145b9345df1875f15403070f408b9f69e40e4df4e9a7812a7a1374ffffffff8645c70310ba0f150c831ba92431cdba992b32348331b29f4b4e42151d674821110000006a473044022039c5649e2040b08134ebd78498fbe05c9dd5a3b7d9788fa84485a96f50533b40022021b96c3991d95b47585816c5914249d8e76f7237d0944c20586c35042ef1d9bb012102e0019fbdabc94eaa2323509f10feb15ef48a24a512b421fc0d27f74ff777a7f4ffffffff33de68e5fdf1302b3ecfc6e79b4da0f50810d4d98dcfec43e58913698555ea70090000006b483045022100f4cdb6558c11abb0da8ae21f6a7516f82a4b36c1af71fe8e93f41036d3d57e510220646477acbefbe10e679d0c8eba8a479bec25873a16f1d4022e34eb3922a4d2940121037f756d9be788b7d1d37472c890f2b9b6e7c73a897de7e2c4eebcd171b5d1b244ffffffff0652e525b82637a1838e85b889abb62d30c895b5642755147066f2a3e81af979040000006b48304502210085024477c17dad2e22fb55d2dace00dd2f2f028e14a38b47cc71e1ce0be018550220705dbd7e8b64baf8388d69a4cf0b516ff924d57dc8f9dad4d8b8e485f102d751012103da22982eface5c52469fab0b15ae7850369f892ff030e0223e4a90a4e296fa68ffffffff1f2ebf44f950419ff2498c15ee0c7e1be2c15374a2c8422d7476414852d56480010000006b4830450221009b07a4b6963fcc66c2118463225b52a75bec9fdf3863c4774ca836a5a5564eec0220239327d0df97b7e56d1cb2d401b12bf3185293c3dd10ea637410d21bf60b267b012103b0cdde22301f2a0ef9f23f435a52e989a244306440eb15c712d5e373a809fa8bffffffffc8947469b161a17896486b273642576aca192b61b8c65fc10f7d400166f3eae70e0000006a4730440220339e2bca1ecd2250b0657d8f6b8b2d353d35343f56abc231357dd44f6bb0839e022071b9a535803569e9ac5a490b6aca3f9492354892dcd0090bfbf98c3d58e8c049012103a02544af63026bcded0b7cb4195372cb5821ac34a55bebc3de5c83e8c2b930aaffffffff1646b1d8fe71e508a0a85b82858195a82176ec104b2b6505304de91bbd8faf93010000006a47304402203ab05e63ed3c88bd1157f6727b928c7f3ff0779dd16d87d37b840a310996db3102205f69015dca42744841cdd10878049a79d71759137f0a344bfce6a844ec48f8d1012103068056870eee1c8b00579edd794a2279282e8cafcd3b174ac0c593d0b80e86ffffffffffc8947469b161a17896486b273642576aca192b61b8c65fc10f7d400166f3eae70f0000006b483045022100afeea65ca40aeadb0adeaba2c959319d4ef6b2dc138629ebbb65b9908800ab16022077b98c4ed7de26c12c1262c89233a217979a8f878c7a42377ac4dbee253f0c660121030d93148f664dc156bb8b63152d319d5b4efbc77e3b843651d2208e4a488fa9abffffffff6123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df0c0000006b483045022100f5ac603c8795ca69bbb54d51f17b7123ccaed647245ed82b1392fa16d0741cb1022017cc07628f3442ade369442ed5152727ccb7bf506382c87afc5547d3ae8dec5301210384eaec7cc1826b5d8d6b5e44d2e72811813e87a34ff4ce4bb8b8fe3aef9b2ff6ffffffff4b641e8ebc9112552ddade99cf5c4b8816fc702be843eeb4a74b45c0fbd5f38a010000006b483045022100d0822f15f80058943608f832bbad476cfe74e836c7dc348ba0a9b38b37720f66022053dd5d7d14ae4171453a52e3966964cad0bde8912a28296145786356a856dde1012103eeaf93693efb47aaff34cc68976deef62e72561a86854ae18716619f66f29eedffffffff4b641e8ebc9112552ddade99cf5c4b8816fc702be843eeb4a74b45c0fbd5f38a000000006b483045022100a823704d9a2b4f0c51c21418cc111e739a3b90f011b6416d7dac4fb6c9097efa02205d860b0efd53518f62b85d284b550f4c422179a8d219f085d467305b5678d295012102c3f644ad5286b43c6a09b42c5435e87d760d4acf1ca2b1da9e0ce6daa08680f4ffffffffc8947469b161a17896486b273642576aca192b61b8c65fc10f7d400166f3eae7000000006a47304402204059941c017d85f8b47cfdc80021b1c23840065269c635c368390812e66bd5ee022057903722d7b25a3b69e13dda6c7aa04bb13b68b21499cb1279325489151df61e0121020cfd19b00cea2d696cd2602dbd8af999b997180ada23cb529103950426d31911ffffffff4dae1e41262cb398aa5fc8ec9aef959717a6630ff9ec4136c41f17882e22b8ea000000006a473044022016d06fa7ac16419210fa2bf31c208f7fda12a0d0dadc400b656f33f8189ba0ce02200831908cac90e133232ebf4794374a45a24ca6ca8b8acf9c16074bd784802a9f0121033ddf9500db250a5fcee739dec8a400d8b9b1c12ee89db3ebadfac4d9ca2224bcffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208090000006a47304402201f3db7a9bd47d98b402a4fd13e71bf9c9bec523d46c40dfe559399c9b61773a2022067c20c6de6e08b1d91cc867609983b537a05b081b9747760a2080036966e91c60121022e7b8f0cbaef47ab2c4718ef64608e61a842dfa0a8d81d3ad09db1ade341c03effffffff480cff04343adf2cb53f8eb28cd1fdf66ccdee8f1d0c856d7e248aace0cf1eba040000006b4830450221008930e7d678df725dc0af6e1f93713ea6f47250cfdd94a144f28ee8a10f4e102f02207c824df7bbb00c70007c4c40c70be7b79b92388ffeeef7decd4f1276d6e606950121021e46410e1f9aec2d74a6c41ed052820892c97962c918a306be72e1bfcfe3cdb9ffffffff1360566c00000000001976a9144ce1d946f1363e56cad54c08892cc9813a71785188aceeac0a00000000001976a914b3960cbeb5b40d62b92c90d8b8595df75ca6f32588ac90a38cda000000001976a9145f1708b2309af60159093043612e712c7187f6b388acc09a5e00000000001976a9149f12cbdf26ada0ec436edfb6aaaafd57f7a3989788acf0771195000000001976a914619975a78c21d3861c5ed1c0ce07653734aba4fa88ace03b6600000000001976a914016279a75b692e2894e2f526c955333695c2c7dd88ac00e6e849000000001976a914cd98fdd77ed0a1d2135291ac70920e35054ae56088ac40b56400000000001976a91486211625adfc6701c5af9143e0a0ac6d63916fdf88ac18ca0700000000001976a914d61c32ded3cdd773f06e109afb501ba4e6b18c7688ac50bc1600000000001976a914cd4a396eab9e4bc08829c94bda8466541682431388ac10270000000000001976a914b41bc220da5ecf631e50acbfdffdcf87fe493a9488ac10270000000000001976a914c0d16bd11bfb9494330102680a8b2c91ac8327c188acc0b6f394000000001976a914af647292f4c4d2e72e85a247450ad178db0c704688ac20f1ca00000000001976a914d380fd4164562b1be77cd9537f52c37f41e7f50388acb02e052a010000001976a91403d1cd2e83d105b05afca9e994072f54bc810c6688acb0481ce0000000001976a9143f32c0c9c9acb07a1476f0facf0b3cb38fc1c61588ac208b784f000000001976a914f65d9def92b48dc39df611f6dcdcebcbcad709bb88ac6e5c0100000000001976a9147e2a6256be6e638678577eea4621da469f02b83888acfed30a00000000001976a914cb1672c8495b4ece3a9de72d1def0ea2471eaa0688ac000000000100000011159fcc9cd142529d7e2460e835563ac6b801e07a16e18041ee8cc216fb323b35010000006a47304402207213ff7c207a465802e89f71b0b245d32702b16c03680a705183ac8809c648b802202dfc1850d5c7b0005482bd7b824dbf41c169d5830842f37b2991dc8bb831ace6012103ef3aa7c1538d0a3632ba9463af6c080129cadf4f6819117d962fc0e2b3fd2a33fffffffff511bfc106d4b4b6606d1f7e4c9aaa107073283b5f526fdf42cb10fb3ae67b38000000006b483045022100a3126f15b8c8e239c8537e2ff9327001cb56e6e742f40aaddb8ce4c1abc4d5dd0220510f953c1373daa6626daad1c51bf3d507e410ea85ce24361d6da1385c86f0be01210261d83898b6610809fbc2d5897dcd645acf86704e61a1acddeb5fe4b98dc4aa35ffffffffab864c168689d5fb2ccf5dc242573950f34e988ea89352c6563cc8153fde8a95020000006a4730440220292175f6371216e9bfb50fa8d0bf15cf2bd0be920fdf4cc2f25c01fb89ab90ba02202311fdef458a1fd2bbd9a3bebb86391d105e9e2d7f662bb64a32eecb6ab0b0160121039e177e244afca3dbbc5f4b60d7c16aa2ddbd7b68db94848a83c5eb809c4f64b8ffffffffaf638db891c1e05bd132981ee829ad71a73f3f0dd62e65b95d50d365acc865af010000006a47304402200992df12208525a173ba7c1a82e20874c38e1c575f80a330fd6ad0edc8bf4a4602204618fc927948d6f63b5fb9d069466be2c32761d8dc318e99e1c15c19a9739c5401210343863977b70823235cdbcc671c47a0a5472050e716b6b3571b4af1d28a204ba7ffffffffaf638db891c1e05bd132981ee829ad71a73f3f0dd62e65b95d50d365acc865af000000006b483045022100c701b4b5f9d63423d7ba4dd0dd29ffdc45ee76a351e79603acbcbc4bcbb756d30220746316af1b4474ab1f81652f1b8dbf5b18d79b5b3b2c01b40fc17333033dc3060121037590a1fc8f5f24bdb772aec49046f0d83e9a428b1d919189334114251c6c15fdffffffffdd7139e8604d13a5b09787feef3e91bba6898c685c2f0e9b5ae949cabeb6b9e8060000006b483045022100e6ad6cf7732a1785d12b3c5702f18cc0efca1568b909cf4ec1e6256655ad6729022005d85ef35540a9a91f2e0550f57c110efe0f10aee1465990f8d3fe0048fe5c3101210336568f57547fa9f47a7cb75f0c167546e5f87f0bf3f749c4ff43b487d6ce38c5fffffffffbd78550e1c457c6f0326981ce521da3dd8fddb73661945d82bd2c0a76e85c47000000006a473044022031fde10873a191e5c31952b5d871ad9be7f1764f2cae14cde2df85e5297e22df022038b9f6ccae01e0956cd0eab2ec30208e4c0d857b1b3a156b7856495d7cb59efd01210261d83898b6610809fbc2d5897dcd645acf86704e61a1acddeb5fe4b98dc4aa35ffffffff0173d0c9738b32500bf14042e397825aed73d2ee3efc32142a00820d2f3748b5000000008b483045022100b186a7af6046364e753085532f867d1f7cd0d9f06561eec99b8c2847629b5c6d02202d1de5c096b1717090f9d1c62a9ff8220303fc9bf62d9e419836c0bb02dcaec50141040739d353e3a1aa48c1bf99147ba24b05d6007e36af91480837db45d8614c993169a8a763919cb73cf98a46baad0c8828e95b11f5a433baa84113c52df576365affffffffb7402b75a9b8ac0d486ce49d8a1cd9c5434ada499d261035c56bd93ed29b01cc080000006b483045022100ada6870f2b7825b138ebbfb97d80bece1c945d50be48d02ddd9c6bcd88094f9302200b7d4ece236cca2f8c92f7fea7ed187e456a3b3093bc578cba57efb3e2b62733012102359edfb963073a606c50b6985e486895744595d90377c147a50f7e063759084effffffff6fd4e89c8fdbf8d056b596f26f96ae5c6d22a14c13d5364f8514636974e4d3bc000000006b483045022100c8ce1e4a696b8284aa2e446007533bfb66fe6b6c4508055e0294089fb3152229022026d3555980816100088a0cbf2e2ef05a71d80cb2bad3a5f18076206a94a35dda01210261d83898b6610809fbc2d5897dcd645acf86704e61a1acddeb5fe4b98dc4aa35ffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c5560f0000006a47304402203edb601dd4b39abf32e2f36b5463345516114c258a7dfd774d3eeab7ae3e81c9022036cbae6b6813b337d61338b8b97bc06e6ea6ce6782c484bac028fa5d882347a5012103aa1c2538031f06639873d817ab23fd9dbc1223894608c3c13254a71e4c5510aaffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208040000006b483045022100bd53ffbd35bd144fbfb7965c6f8656611ca588033872020265462cbcd8a3503d02205d1f1b7a388956af5d7cc8e0de801ef697fd3bd1abcd6c24a98e8190b534a2c901210303f59916f0be19488d3ac301bcfa744ddce0812347d29dcc47902f43d8450c82ffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556100000006b483045022100870e70389c9a63bd99121620234bd0d68c637c68d0a5419a261416af4d8c34960220713183add423b4cea9e6a94b4a588267d304b4c8f571e7b44b3a254c7e3f42310121038dcf7ec05cb0fe0b91e5617204639e764cdcab308ed15e8a6a03db3bb445046fffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556060000006b48304502210087af1dbe1db5161b520f8414cb1319045d747cc4a60f9046432e5c8816dfd4bc0220042f9f631f200bfe80f99a6e2d209a96e11bac5a861d3cf4645fd79fa5c68bab0121033f8c96493d58cedba0c1838728f979444026646f945fb5cb7750d1488a756d2fffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556020000006b483045022100b5b61010e05a69ac54c2a2a82ac4b503d952c4f1f84dffdaa6b064b8204ae87b0220070035871d0ca364d093cea20473199b24beb0220fa2347f99508901da3a39a60121021606f24625933fc17f25d3e24b87dddbe4c39cb1034a2d0ef98a825075a1346fffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca2080c0000006b483045022100b7fa2509a3083a5f78ac64073773b8c350071f4c1a21577a0197036c017af731022014867803d154b64d12a3685b6bfe07cc4567d389bd6ad45b3fb89ba828256999012102fdb27b100ce472ad2b2ef5e7cb7207c1aa5949248de526b147521ec8e1c6f2c6fffffffff40075ca48b9cfd9ff4dce9061c276bfc0851827e30c2688bd91154859dff9ac000000006b483045022100847f2cea2af12f96d813b35f66758e28d8e348e81ae8782867d7737f3f5a237f0220225541c76d8dfffa4e486b6698fe673a1cd7ecc1f6cc6f2fef7d503c03b90ec5012102d041c9b36e325edee8b5f2e8ccc2434b5c06cca9d5ff57f4247eaa185c60996fffffffff15a0d0c415000000001976a914be591e385dc9f5eea2fbc5fa898cc78d2398bff588acbaa3aeba000000001976a91460922d3958fe3d511e342df6ba4f20e703393afc88aca05be01e000000001976a91451786aef809e61cd5fd7c6eec677042e98f4534388ac006cdc02000000001976a914977dca296be32635c286dca23145dd54de7abbf188acc0fb6e0c000000001976a914e3bfd71e5b3c3f96b9a252987119a2ed1d66719d88ac0a2dd0c4000000001976a914e30066fb1c581d782831443d931b8fe7ed22a66c88ac8096240b000000001976a914bd443ab8fa36b8c1971217cdd329faee33bfb6fc88acf887c6c4000000001976a914a4cb7ab932995ce96d95820ee2e4573c96608f3e88ac808e0488000000001976a91477f71e0fc266998e4fd3fb202f6bc1773238d90988ac12a50900000000001976a9141232fb0ee6be3ba74eb4de6a8c8c96dd16f23d7d88ac3abadd53010000001976a9149017b9d8f59fbce9681622844a8987a7fe2cb2ec88ac10270000000000001976a91461b4701eb5c9ae7f1cc18041ad766fa74085d18688aca0a34300000000001976a91442952a77acb97e1f6a3945826cf49d6667c114a688ace0c9fa14000000001976a91407c25af50e249708f991413c0e8b216530919b5488ac400e426f000000001976a914a8284f3e648d13806b4d9a5597dc00590c642c5c88ac1e290000000000001976a914bd7e1e8d8dc505d9e5986ac3d922fce3c7b1d4bb88ac00d9b57f000000001976a914a35920f11d17efa28aa4d3d3afaa40f2e3312a7588acaee8ce11000000001976a914c2cc8c71c9afda85f3f0a46de108d89846f2959d88ac80406a11000000001976a9144195947a8d3de0f6479e8f099fe3720c7fa1276b88ace0dba237000000001976a9141bd2d025f0ba34be5c7dc140c2f862364b70ab9588ac5089210a000000001976a914e3ed8f3da0a1349db32a5b903de080aeb3f443d188ac000000000100000001196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb6020a0000006b483045022100d528c6703f778821cee367954b598f59f6c0dd7afed0d69af38498e522c8e2df02201d153b00319ede8c490a39ff48a3c82fd8f1ff7bbc8cc14e0302ba19e06470360121024674d01fd4f992437a4c3b25b70b5d30f718c2e9b2d2d7fa7de15accb80b1b7dffffffff028010b7c1000000001976a91412ebbb91991f7cf074644b7facbdf3a3f258497788acaa822692000000001976a9146e0a608f332ea137fdfe196909d71a5db3575e4388ac00000000010000000261d3b58d2f72ac91dbc4cf130e7d006546cb5424e629ea3a5a66bf4465bfbdad070000006b48304502210090c513a153e1732f824ea6591c3776d2610dae1f226d9fa97f4c82b0cb87273f02200a59ea54836e83ebc214a9c05778b2278be2b2edd93e27ede5e122dd09f27dfd01210318f9bbae99cdafafacd43a1fb7053905d86fa0d9331785b2644c239be32a513effffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb6020f0000006a47304402204b18245af5eeaf73cbc9debecd005c34a1d61360c321df82797e6f16140213e8022022baf5f7959854c2b40eba3cfc704ce4a59212bd30397d16a577c855c50704b301210228d6fbe6eb9ee532657f26d7d4886fc8b1464c4a278ad0787861f9c5b2daafd8ffffffff02401e6e06000000001976a914f42ec64c30075fdb6d28a0c34bb23c0172d0fd0188accef57512000000001976a914275dc816f05859350316dd11bd9bf06b38b051e188ac00000000010000000453f6f8495dd2d734c6856266fd06418191ff932d9bed41fc5c9debe2957d77a3010000006b483045022100be33eae64aa4735ce3fe3290c9d18deb0924ce5a89fc7330f5a15ba004830d71022069e53dbfad425b50cdf99b97f3d466feac8bef8ca37dc03b0dede9797ee0c4770121033b4266a54404d639d92949ef264192c1c7906c16119dd64012e599c7187345cbffffffffb3cfec85a3d2881481fa2a80054572c5da7dbbf895c1538dd50b771d85daff070f0000006b483045022100e3e4a09081661260222f5e399adc3f18601a976f6325b75122d7bcb28bb0fc0102200d4af4843c7267276d685695c1d65501f2880ae26187c1f29baa14ad1081cd850121033b4266a54404d639d92949ef264192c1c7906c16119dd64012e599c7187345cbffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c5560a0000006a473044022046b0b1b5590459eab1677aeb7696d49bc8e6508e81579975d7d466edbb24dafd022038ad02e7fb4e667435d9843534253383291b553d3e23fc20551ce7f99deec3150121030bb2a4448d624c5771d96cc9d0c2ee999ab627cae68305fab4c08c89ed5a631effffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556110000006a4730440220263ca3494b2af85ca670cf548706e316c4f2f65cb7b1ea3c202ea9a3d7bd8a01022051fc5a7c630bb4a0d8440348117290d1fdf122659d9c1cef8ba08a83f5c8e5c401210325236271e33936ac53e9ffbbe5936fb72c2aeaf2d7040c8b28c441216a1be651ffffffff02c0b8ca02000000001976a914a9586e1c4c45829520e5a27dbeb60b51583738e788acdbbb9e07000000001976a91481e2a8e9af62b241a44f17dfe98c193958577aa388ac0000000001000000042bb47ebd6b506484636a5357187ac605516fcacf5e7b6dbf0d507921e53a2e18000000006b483045022100f74f94e31670a6116a572fc31a88e8b51ba3a9169cbcf7afe6f897b9be2bf00a02207238d89ebf3b3f3e19dd8b3cd467b5fbc384e9ad331763688a96f35b8896f6eb0121028afea3428f046a9629145509aab0be079575b0e6df42af608cf64f389cc9552bffffffff511537ef31ac0c52a7ba90c9b06a817cc43deec5c0533d15fa38f1ace51319f4080000006b48304502210081adbdc31df598742d0cb14b851300fd534a05b55df5824b4c76e1bc614ef35202204486e4a27cd64960c05f641f4633dce85cd9ee244497b136e7044f71ea70b1ac012102c33652cc18460c06898033a799ac2a7cdefd586928b35e711eda1c89a9a7dbfbffffffff7744bf7f5baf9a77d223cb2b641b973b4f978d4e95e5bab7369b93786cc6c0f0000000006b483045022100fd5b6831792302921a4bc21d31f644076f10dcecfe3c3b1862376156a218fe1902204f28da53d2836dc0e27ca3d1b85b8575cf41f614ba8de36936a255d9a925385801210212632d26f7c14e8e4b76f56b97e96fd5c7885ee6ede953262cdd69b97ea6d141ffffffffd1c8536658e4c700506235e3120a1232922a5d4fcbee31d4fdd3bb58d977769f030000006b483045022100aae7dc2ab378ce8382c8def8f0192c5a99cbeb41c0824c3f2812496e9129d5b502205030c26396bd32ed4ef255b85ac093ec82475a6e8fb029427792af10f36fadf30121023b5e03659088648cfa6b5a86377b7f97fd9e9eb2bdaf10fcab2adb23ef0a1bfeffffffff04a22d0101000000001976a9144469cc59b6d244a84cf028cd5e84222dd5a1c4de88ac1db61501000000001976a91498143ade2f196f84c17cd53baac81de70a0c930f88acd6080901000000001976a91459540cf29593397272588224062065f1b61a269988ac5c961800000000001976a9149f5389b6b68fe426bd75b80b405afe075d91a3dd88ac000000000100000010a42d47160add4e5180e30a492ae63495b545350ef53e8f7a6f263e3d88145965010000008b483045022100bbaec976ab11a836eb3222c2ae969b837d3a233582519ef160a2d7c3dd3dd61102206cb2c61263d989b2950a29613227fb83d8a8138ed3aa9e39c6321602e3ed029801410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffffc369ed547521e6c9e6dedb8035016ba96131e5e3978135d7c749feefa68c0e34840600008b4830450220277fc9a3f5762d90154ab4d3af14fb73720f2a505ea6cd73e86f09b2ac1240fb022100ad1fb225af50e04eae91232d855c1613658f6c76e0f5f7aef8ed367f10ef09c001410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff85a86ba9739fce0f1ba95c89c636172374ed15d3425585da84fcb06f0cb7419bb70300008b483045022038c5129e7856d664604d4f2087d74d0112c592e45b148253d2e4f1c28f5dbad00221008bc1920a86b282ee349fe518a0a4a5dc19c0bde79818d68a7ba9a50cc269d1db01410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff7b487a69e552a2d0d29fb8ee80b3dfee1b8ad9972e605342d81e623ab6735bd8920100008b483045022100dfcdae4b798566aa48cf0920013c2eb4b42531c1e3a6fad07da5bac85f03739002206b6b5207005e327d670462adf94886030be441bc7449836ce143f33298e84cd301410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff08fc0ac6732ce3dcb5dcc8784c8a4c7a4d2fa16b45de34fdbe34a068d1a99dcd2f0100008b48304502205c749ec9b1f8c7b81e1957681168a709ca74a71613006f41c5cc58eae50a2a80022100ee1a0f72b012d8398f11205bc8d446a947cd7c0ad621d1a7100a742e3e95e45201410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff3b44fcd72757c7453f154d1ef8c99d502e85a139ce05384c763ebd5279fbd9d8f40400008b483045022100a9b8674960b9cfb4e6aa576770e069bd3a0a2ada4015aa523bb38ed38be2701d022007b8a143e3aa1db3d9137a94224348c85c2005c5ff2dce1624516c08143333de01410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824fffffffffe1021e1d9fa4d5b1da75792dda91bd66bc082265cc8dd8ec12748f2bb48001dfd0600008a47304402201c57b44cf1ad6e60dcb1bbde0fff9c070fdabd71ff0759f5799b34a67c80b5d10220570748c630f60a6273f04ac9422224c2c11debfc5884b3769c34a5a372f3abad01410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff2e1097d43f83789a11d90b5084f0e8b5dfe3fbd0e745288051e67859958dc20b470600008c493046022100ef948770e2f4d2ff979473d6b3d740b4299ccb83abeaeaaed5ddd20ee18098ee022100fc48e8c64dcdf6e7634dbe8a708ef7b5f8ea402509e0373af4f8d8f746b30c1b01410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff81e4563040aafdcba8ac842f4a7f4f4b2d478e6b691e33b9675ef909f11c57084c0400008a473044022042585b74fecc3d94bdc0525b64b8ef4094cd816b8843a9af62841ecdc046254b022007eff2f74e46853ec050ac797975718e488034db5954495e6060f620e8a14b2501410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff138910ddc7c84ff22d827b186659f4f9d4f121a8f82959c32b5e7b301e16829fc30600008b4830450220290cf13a19df2d9891edd8bae9028491db307691db4789353c753d39f533051e0221009896e8920a41c5073ffaa2ae07fb65705622c0395f7e516933609a7672209f0801410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824fffffffff74b0c51664c0bb93fa25d96a0877b4767cea1b001301d8e415392bbb41f44880c0700008b48304502200db653502756f9283ac5d8619a50795381b001a1c2b569afc722fb2a07f109f0022100be6d044cb142fd253005754274249879d7cada9796ac8ece60629b461ffab1c601410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffffdb7243c0b91485d5fb45408b7398cca2f5d028f47aa7a60d311360bccb437ffa860600008a47304402205deba9a6c9aed1cdeee86c7f9a1c3098d1e4da3d062983d95025fa8474a429c202207d118d05685b797767ebecc73a8483970d5fa28508fb26144afa9895350ccdd501410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffffdfaf3b90b8c08586d857403af4cd02d19dfa55008fae329acedf3c7ea75bc9592a0600008b48304502200af54262d748efceb2cffe1d35937b3fbe41b5469a93690b3992d8148a6d77da022100fe25ec2f7c5a9e8b0e74f7fabcec589408c19e8146719776847e8fbf361805c301410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff3a9eb364ad691f850f5523caef4739678e88cdd517e9b42f3e57f51d452b24d9e00700008b48304502204d37efa7b14e962c5f640af48025122c989d14aa4fca230e277010ee33dbaca8022100b6464198588eddbbbbb9b495e96f88268b2119120c29e822df753a59a58f886301410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff983c484c85c726b0a2d35181f831a46f646fee746cb4825ae8681c7c353a94237e0500008b483045022100b3e5381f2e05b601790bc71c5f022ad96fca46428ec8d7a83a945ecdc365ea7902200b37fa13806d818c1d842dde6d24dfdc8cd2a8f90dd360e850d3ec3ef0324bd501410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffffe509bdb4964bd03131a06c5cf08520bd793b3b13af63357895c39f887d67abb6eb0200008a4730440220127387645bf44276e056688394034bc6b4a3a125d3f837a31ff8cc724b221e8e02201cf59e74b666583d41825f3db3cf2e312fb77815e9e28df0685324de1c1c4a6b01410420d96d93f67b5f542c55ac6fafc8624b40044ab15eb785df19a5dce5fb1afe845bb0c4847905f2873182cb495f38a72b81f7ce089726f29692a9f6820c503824ffffffff0274beea09000000001976a9149371ae178d4cd94ea8ac9fb7ee3da27e945e836c88ac27e90100000000001976a91403faeac00abed33f4e4b7f0e8e7e46363190da1588ac000000000100000015d5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556120000006a473044022055527222c3d03f7d31b0aa01f12d0a1560367a16c2957d605247313d6dcb5260022015b564e00a6e4fe0bb7aa30619c74c55caa3ade1b4236795bdf4e027400d8d22012102696d455a5d549e8eb04c9160cbe0ad192d081d62906ca0984a82e7d95fd110baffffffff61d3b58d2f72ac91dbc4cf130e7d006546cb5424e629ea3a5a66bf4465bfbdad080000006b483045022100f406a488d5f8a7fa43296ff348817f1a8eaaf8b1f8b9904edc876e119bab38a502203b13ba0de55be416b9a6999e51992820cdb3fbb938255540e93135832c8935df0121020706bf6d443b5b9ce106712c32252197708bd2aff10dbec0a64b517a6edc27fdffffffff3e675f53b4720d6b3434f5a664ed66e3b71bdab439dd56a4c99eb32ccf2f23f5010000006b483045022100e19f7ee9b6b46ec64492d8592247802c3f1808464c25e4b8be1692ca9451b23102206aee962bbeca8b7388cc2d5ae344311e4487804ba693f51211c0a14792fedeae01210200fbbbbd3661c9f621dd117bc62cecef2a6f07ac8cd9554802693bf972d7d70dfffffffff1b216386fe5995be32653b6255ef6ec1102196c73e2b596463460844127c2e3120000006a473044022025ad8f77e2b650a225aa516da4dc7fba167ff098c6ef680f2f6bba8baec583970220236abd17debf16466708fdeb14fd3f0c688832f3e32fbe674003486cf8dd8502012103082ab1c07f7a20efb7faeaefb8c74ce33f84d0e9b17dcdd7275a241cddcef1daffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c556040000006a47304402202012509a75015b807ff16cce877e8d669ce4e5ea7c0e5c5880ef20bcb175b80f022073333cd7bf17d58ac14f165499afaea1876ec2bfba84f5bd1d94ae0926bb4769012102f1f5ef25f20ab67d457cc2c939b7fa1988bfd1e70c05436cf07d6cfad2cefdeaffffffffb9323943cc113451f065def62bd723a5129743859fec8ddc644d2113432c62ab110000006b483045022100f5ba42fa52f3325c16e2ec9c0e877b32561cfcf095efb8f0ff3c4c8fc76ae3c00220689c70e76bafb1f4e401c457f01c3fcd8f6f57327534a59d8abcf39c912b989801210251e9bca2568e05b5615f54f1be129987c3cc941bf3e672043ad63a0f57503f45ffffffff3987423bb0a754a7d9008553dda307662c9e210b7128cc6bdeed9da98c90846e0a0000006a473044022007f5547c01af6865c708526ffb3cbe04f7f88bd450b00ffdbff82053784132d002200532cb72cbe992b8f57a7e3e72f92e8722105f668f673658bc5d3ec0e017830f01210270b514740d3754933ee16837c664ece8f964f9329e4c8fc4d538050b7a7404fdffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602120000006b483045022100f4379b9094a063955696f3980e68fb8a1cc0abfe49d411c5eeaa53dcb9a7d37a022013de51ee3f0d74b98ceeb7f80efe070f3d2e926307bcc88f7daf9cd562dded3d012102f86a7a2d4580c251ed840c0422663acbd329c394eee835e176a5e1fab1540fb3ffffffffd5eda52e20301fce6844f04b317cce48c410cbcd6648537c2dfc1092c284c5560c0000006b483045022100e7348632d08e00356f9b999327dad941beab204836ba48bba79f520d490f429e022008e3d6b84ae4080112cd1e3df265ef270758ddcaf323c9387e46fd040451773701210354133c35d16bce2b7cc755c78a5cf3134e26c417b6c43b5be72d5dc37b69e961ffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208000000006946304302200498407b92b9fe009a496879085f302ec00a5a7ad8d83931c29b953a348f5ed4021f5aea5801ac737cb112e679140a3f0defeeac91f7521f1c75befd704b5d5d930121023bf53ced02dd2b96c19a8919c71f49ea964318b2dfb8c31f3c940b46bd623d48ffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca2080f0000006b483045022100b364e98a8990a5ab253258397b9289b5e1de9e7e8b9ac9399985399c2f2e0600022061b68c56bd8a594f2c1aa8bc301a0c548e193a3e13633191a7b2099fbfa974050121026be3eaed514e069fa1dec551431eb4fe45bff8b5197787f3ba1210c0dd4a8478fffffffff1b216386fe5995be32653b6255ef6ec1102196c73e2b596463460844127c2e3110000006a4730440220767f4a43c86f4c67b07f143cca929696531ad08e4a541a15b2a925ffe666baa4022048ccf00356894d551b23b632fba94cd760e9caa77b8026ee17b9b2e944f535360121024abc39893dc9c91f5997575887f5780ec59ef69b20199907070054da82c3aa98ffffffff3d13a301b7ca19f195c7ad6b4fdd74df486ad51ca2a47707daf72da705fbf82f010000006b4830450221009c4852a09c8eae6835fd2545730719e79627d13579414ca5995a9049a5f5f75002202e1e4ce6521992f6f0cbf658c5bc28c89d238ba0243d1dc712b03744c35f3b0f012102c3d05cc6723c449e0541f5944dfa147e43cac660a711655bde25e6e1e48d851effffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208010000006a47304402200301abcd9da18372fc347db50d5b6950786a8d66a36cb066a6f495531d5bde6602205c70f3b0c8d15dba3c1a8e78de9824f0481de64831429d41678f67635d0cb8080121023884ad5407fcd6310bc4b7fc1b934ccdd7c07688580bf8b7f3f7984667b03d53ffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602100000006b483045022100970ea3f8e2a262b49964627c4e31c78a2f8f0566c68a79d003685afa6029a3b702207f1778c1aa11b2f9c87ac640d064d7c0586ff3d96a9a43d8c5fa22cd89d79f9e0121023ca6e7584d8fdf9776732f364f4a43d18886266cdddd7ca1880fe2008b604873ffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602000000006a47304402203204ecbf2ec2eb7fcba47a7c92e19ef609c7c7c6e1ff191d8a98ee7f0dd1a427022073682115c5698d5f6134eb751b0f31bf3dc6e88bb6578f0496ad9e9376d6013c0121028795f8b0a67a234e928da8fe2e738b85939f1ea31009a4e41355db54e14fc31dffffffff5487c26443f36492c9fcb740c917a70d5a978a457186382d52d93517b581b80c010000006a473044022062bf9c431e9a9774eaeb851ddabf71ee03552cc7ffb422c1873d0a1a4eb53cdc02205233c417ddf3d88b8f72f79c24f96d6119d284fb5b1b4c1e6e918c3b21750b920121033e070f6f281e381234477b5865377789ea442bf180b6b76d79fbc0357fcbb10effffffff6a5cb595037a940569804bc04f6d16a240c338152f6934dea8d5abe91b98abfd140000006a4730440220166b0a721753780f4751693afece8568beb11535ae93b233fc253d795fc7b02d0220330fd61224b22d05b9d60138d3b5aa6f7c22db58d237f843c6be5028ee18783601210210aacf8f2a034243784bd2e7f2e5b9295d508651c6a7555fa6a01e4b65e897abffffffff6123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df0e0000006b483045022100eb9164606afeed8a0b4a6a341a95ebc08d4cae9abc9014c5890e5ad4d3bd3ecc0220456aafb5e920c64f0501d53de835c1a34941a32ac2114cd0c00005fceb51cbd60121034ba7be1ceba4fd6f8839ea76ff3094c61b586287dfe7fd1992b690a73bce36b9ffffffffb9323943cc113451f065def62bd723a5129743859fec8ddc644d2113432c62ab080000006a4730440220077ed68fe2192a933927df527acafd1af4c14d634c9f34f72df20a253bed3a8e02207499149f3c1968cf62b4f4bb6d859f9fb540ce046f0f515261d16a3df049e46c0121027e2d446f8e1bf0b3a03fa50b4af747d6714064a8a6bf656f3689d50928262447ffffffff6123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df090000006b483045022100feabb57b36c3e6c541a620b8877a65bc8443e942e08bf560cf81bdcd522a837b02207cf277b4f433b3701a0f7e2ce43165abba5d1109d857497333314830df475a6b01210352ea39bad8cd7cef30a53049d60c366a4207e38ff8a3a4124fbf93c6dace85aeffffffff1556419da2000000001976a9143fcc1dcfbd3ae129deffbcf43b7d8b54027d627f88acb55d5600000000001976a914bb029d13dd17bd65787e88a9a12f07faa1270b6f88ac00daf89a000000001976a9146d3b6a80dbc5f918414e435cbb01c212cbfc5d0d88aca064ae6f000000001976a914e483d88548aff5069ca801bf2afff0fd5db0ff0388ac61410a00000000001976a9143836172bbb30d91db07a04a0ad4e62c57d5b0bbf88ac30cba059000000001976a91412d467cea7979ce5702394ec175395ec153e916a88acba814704000000001976a914ce4dd0989021d139aabc67e502c1d891ba870b1f88ac40ca2200000000001976a914e46151c672010e8f83f2056c785cc1eb086fe5a988ac19370000000000001976a914b4becba2cdf870d86ba464fdc16cae49fbc9587a88aced340000000000001976a91450430b77ba31f95b10d07f9a7b582f61b4a2ac6f88acd0300e00000000001976a9145ece69ca06ef02e6f111d04431aa6ee09a6542d788acb0fec526000000001976a91455769bb290f85c6cec681c16a4f5a09d0c766ae488ac00430738000000001976a91413c505de2c016067bc87ccc3d4e6f85e70ebe22188ac1080dd6e000000001976a9148267ce7be08c2f1fbab2e5011d645bdeaa9cbac688ac60c41e80000000001976a9149f7dcb4f09f9753a355ec8bc83a0cb1018463c9088ace0f7434d000000001976a91412d467cea7979ce5702394ec175395ec153e916a88ac705e3637000000001976a9142463099825b1a94f26cffcb1b7893a945f3be9dd88ac480a0a00000000001976a914be924a5ad4357d2c3a418936cab8c78ee0e71b0f88acfd676000000000001976a9149ee44d6b20b5e06fabae95c5d4a3fe8261d9aef588ac88260400000000001976a9143e86b64bc1fc0cd73728e10d0e516781a9db80da88ac10e9eb0b000000001976a91448365ca2314942de6755fa6a4fd04ab1a3a38b3688ac0000000001000000036a5cb595037a940569804bc04f6d16a240c338152f6934dea8d5abe91b98abfd070000006b483045022100b92188ccc613f9eeccc11eba2fed593f6de319f44cff7f64dbe1cdd92caa7b25022005afcf4948b3e417f1bf229009365c978f48da11213acd2d1274c8d70b3ce840012102fddabf9b7c31b0f0ea36ce87b5fd39f9cca9c1eebfad949ae15f3597a67d8476ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd090000006a47304402201bb1a024ca3526491d6b3ec1e36ea5d77c1a5633293f84c47fff43b1d2a07a6602203ed4f4828a6aa65b91d3398f8255e0ec10ac2d64e6977405599cc7c3dfa1fb4c0121032809bdf7a3f15310e00b9fd24b7be34837d015ed3cc80b5a5561431bd7849e3bffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd130000006b4830450221009cc8ac07fa6e79a40155b578b085ebdbb5adc8e3bd684486ce442e75661342fa0220024a38c68cb437514a6a409dd033af89ced7f22fe127ff6d745778b88fb68a2b012102fabd1e46d5d2914e756c5cb19a160b061b2bf3aa560223de5fe689b279165b27ffffffff02c0f7e606000000001976a914d23a2cf87ff6bd7a0ca40c10d2ab110b64f5b73a88ac82691d05000000001976a91487b8d4df1fdf28e513f4cff0f1aba8b181a31f3b88ac0000000001000000171cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca208030000006a4730440220182ed15b2c60770966e3b591595c5abdc6c1a02e4e05d0a4d9c35762f99d78f4022005cc0f71bacaa80b95f8380d2c6aa7bc618f4a14854a5780f6045a7eff6c85e801210203fda9e9fc2b5e757cabf5c28d5d93f73e49f478210dfc957b2d748d21a03bd7ffffffff35a7757973597042d66eee05991cabdabee55adc1183f2e89fbba83d9810ae65100000006b4830450221008a7309a6b2011810fd33b2009141cde1a8f28f07f8c8b8391a834d88ed448214022024c384fe0a8e0ad22d0420c0dca04a172bb4fde430bde57aaaa5306ca919ed1001210243d0b7d728a50462129f1a31a2fc5a192ed1d80ff1638ef2d36e1c635171e517ffffffffb9323943cc113451f065def62bd723a5129743859fec8ddc644d2113432c62ab050000006a473044022067641f19adb9e037a332991366c4ff34ebc9e162abfe1ce5a6f74666cae3f5ee0220313efce26ca919da3b3638db9d40faa48987e28ab913fd7147e9ee1f9e081fe5012103f056cfce34c8b3ce4656b2786822101f9a5694d3bec22cc5a04afdd6c51f1bcdffffffff6123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df050000006b483045022100e60e70379382b43251a29b1790ad95634fd1a5dc9e25091f32eac3b3c9aeca130220559e64017bcfc9198eaa2fafc0772ee7de0dcf87f2ae26e7637188ad90a40293012102e72e3b819ef681e4697997c9982285876052b4906d9912e45165026cd9319bfaffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd000000006a47304402203a42356a06791a6cb962c0105298f5e71a41f7e40eb76b687f64b726db9287a802204ec9dc91f045eb3cbc26e6dd791c2e1490380af478407190302ed0477faf593e012103d4246309fc4f0db7a8527a62f27c6e2ed033bd520d0efcf18104a8e8b578f163ffffffffa6a58b662a6b7481726f9839957e8418fa9d2e18cda74f10a6a6a743d08471d0010000006a473044022025bc554dc15d8b6d669bfe712b3a128d7f9505fb5d253a8e27c6d85bbfb9847e022053421243065cd4ccccbaf39e3bf4961ef547fa90a87e08ae9e5bda9cde93515b01210249a2868c9b12afb3d87eece548992c266f37649a867543eecfa83d41bf180c43ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd060000006a47304402205f968c81133b8702f1cf2619b1e6bd53adc3c3d6e995eb5235afb3374450769802200e056f6476ddc0080aa42316d684ee8956bb35e77ed46848601e9347b35819140121027d24279e61d59ec0efb17171e17d6787dd06c62bc68ff3ca7e8f7e0eaa5b453cffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb6020c0000006a47304402204da0b624703f3992428906ac7e0e764869c06a142ffcbc902068d7a77a76ff4b02202785f0bccb028ce169dc4a136d92f5b0cd20eb36597a2b8c25ee78b25f9beb5c0121039620fda21814b9bec58509ecf2e0671ef8e4e90edf361a027f01d50aef85f881ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd0d0000006b483045022100dce92f4a8f69ba2c989481c2bf33f85cf2f307efc038755d5fe9eeccb27e87be02203901e83c1a62b59814ea94d5edf16d145810ad8effe4a609fa8015a09c527523012103327d0fd0b9399bd4564dae81d01741f810ead31a168ce54b1264868b39e1ffdaffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602040000006b4830450221009431dc64514749a36b7b67e9fbf851f2e6160d3bd141fdde078952d21076b20e02205718be1ab1e3c5b35f3aaf6351de7991c72a38015ba060333b714b769a9ae2ea0121039d89fd34f339dad849035222a67c4d5961ba766fb3aebf05e0bc8b213ba0ae3cffffffff3a564554adf1793768e523aa57d4e9b4d3fb37864f5320a4f14df16f329dcfc1120000006a47304402200c1891117a641d2291c21ef306c60e9b747497fe67b7b27491479ed7a7be0e6902202266b5893d7b8291c470d096cb452080622f5495459ea838502bc6659fb1ebb6012102f80a7615ee49d42e9ce266cc3a16325aa93619f217b928ebccdd41ed87e5538bffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602080000006b483045022100b68bfa78ee84127a5929f604be85583b2f016407d994b3ff6a9db6989150738a02203ef0ccdc8781b828d8b940f1f50ab3fc329e20b2257413270c897344d030b37701210238450249b3fdf982d101124ee25d40718d3321024a8b3bd70465d6f594fd1ac3ffffffff9ef24927dc0b45471c13d95e35d140947a459d178d4e38e8a0f7c6f8f23318ca120000006a4730440220086526a21f7a86fa27bf8cbb6083c01b9daf8f6896a66671fd79e5da6a10bc01022078b3e5ae6174a849b0f7258b65361397daf2c3af879b9e47b736c56a3f2987f901210264d3bbe9047f260e3bafd6f7e769a63ae561d4be4278b059d94000144e24c34cffffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb602060000006a4730440220044deab5b46098ebf75887e59ba9345491b76508a27ea7d2eb65c2be2f10bb9402204f77b7760479fabb44db3b485ed4c4dfb7b5466bfc4bcdeb8a5a5181441a80b50121030cb211edf8301bc606c1640e1da8e40ea37412d0da6da3fc3d4b0d4531a73c84ffffffff1ca763343454481b2bc5cc77e88856b2b252dc07d76f6c970536a9738fac8dc30b0000006a47304402205a96e391d935fb7ea5cbbfac9114158f2c6a3989c15f2c10fdf8eabd9ecce395022010596e364a1b50b6445789739875919e54a561a2a0ff7f23a1e0928a0c9b860a0121023a4a866282519a6f6da167b1f2b0b3b80a9157a568159fdb981ac49f78110458ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd050000006b483045022100f218d987dd989b734624c78dae685fe7dc2daaa55db8779e049e0e6517010192022004c6d5f51f752b3c2a6bf0633cb80219d2480c0563b956f56e16668868c68b62012102cf98fe221e19da2643d92fe81c745ef15b824940309329691ca1a080d0ffb920ffffffffdbadb003e6588a84c2cafe8df3b6459bad2144f2a1f52620a64ad29376c68246010000006b4830450221009e323e2cd40e88f577eadd323cdd9f59eaa96ee0790c4bc51856da5ce7b370570220726897aa35eb4ae378c9a23e6fd1596aae76467cccf8cd3aa8f14fdecc43d2ad012102eb92f296d3bf0cb0827898c751be9095c2c3d5db500d85b90be9cb4fc606854affffffff196c05f4611402a414fd5426e53656a049b022a4731909cf7d54f92c166eb6020e0000006b483045022100862c47528784f3d41a0596585981efc88f1f91029db1c4384e8c58e6425df7ee02205fae4d97e2fee870e23430d1ca0df17f95b46c25d834fea043f43799dec4f9b3012102ecf996d191a23bf0c52257f8028a2d621d0fcd2a6f9d0f1b1fa07d0b031cf294ffffffff1cf8e54b5d1f42c4ddbb5d5979eeeb7b8bce5efee22253ed4292b6e58bdca2080e0000006a47304402201f59511cdf3f5e6565dc37db31d687e29dbe3d087bdc196fa74162e9640e0f5f022017448fbdc3191181ce661f29f93695152b251ac8cb223f32397921247cd3ec81012103c52ab347ef0ece04162229e289e921a5b56bfd6561d383bd472bcf9c5e10a75fffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd030000006b483045022100999b30cf0a7bd33c06b46b5a943ecd6a9f229e72328ac57887a0bc5d8ef864fb02200434b5f5cbbbf04b5f0c18892b6f25bb647312c9375363b3396b6c7af0590080012103fb2f9957eb14bea00bc39ddf21a1100103fb58581a631974ecbaf2b1dc8359f4ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd0f0000006b48304502210081ad51cab316bd6806880ebfe9d372689de04583daeee8571878ee6a5e4c4a3a0220094e21d4b90e52ad6b041d7e676a5d04190232b0062b0856f8915eac4ed99027012102cf98fe221e19da2643d92fe81c745ef15b824940309329691ca1a080d0ffb920ffffffff6123c4018ab778506726a2e0eea8d7cb94a1589560601dbd6e0df8d3d91a72df060000006b483045022100e9d7858635d653b26ec84f61b623f60881f2d5716055c160694e8c403aeebb370220722dd07b062480d383ff79aa880e165f7c67a9f480d38e97682a502dc0e5a708012103cb220107fa56482467c1e0bfcffd92a2ab81d68f9339271d5145e1ad0c32c694ffffffff88f8ca3ae27878065c01861fac3139990a4bf623ac45ba5fc9f8f457f73accdd0e0000006a47304402207208d061701a9fc0a27da57d106998b611374e16675decf24cb0e1e6876686e602207662a73e87480296b887262422a86eb82c3f7fa5dc6b37b941b9e55ef1f4851a01210326bae26746b04b59d4c2f368f2e2f9aca584135ffc70ddcd134cef283365b241ffffffff1570e5660c000000001976a91440bc6e1a8c783876fb3d5681ee558673cb144cc188ac00fbf266000000001976a914824bfea00b8e9a4fb8ba22007e620aea04486e2188ac90bb090a000000001976a914ff3c8edd6318bbdab3ce9c4d6888fa937e7a058e88ac308d0d8f000000001976a914c2efcb06863b9bda55f950f75d63918b7df9081b88ac103f0d8f000000001976a914bbda1df35de1f79ddac2120ac0ad00501f2e6df888acb0d03477000000001976a9144965470d6bb4ddd2f536bd65b10871ce9c91fa3e88ac52c6418f000000001976a914a554efd037d02f59397f55653b21fbd137e4e58588ac204e0000000000001976a91483682422c004420ac3092329b817fee37aca6df288ac00a1f13f000000001976a91415c233d56db6ffb15e2cd536f5ded14e688fa0f188ac60ea0000000000001976a91487f4a5d17b83f5976b5894519e8dda182db0c50288ac9896fc01000000001976a9149829c407361d459569e41a5ee43214290e6838d888ac22393400000000001976a9145c5a2175663072f3808672b11f473baa1e7b1bb588ac009ce4a6000000001976a914f941fbd07ed397a005a1c361628ffe4de5dbd65988ac0027b929000000001976a9144965470d6bb4ddd2f536bd65b10871ce9c91fa3e88ac3843c574000000001976a914e6f64e5fdc6b53426393c6c18e9d579827ed9e5b88ac3878da15000000001976a914ef97246ff380ad79ae38909f203da9379d99fd8d88ace05d4206010000001976a914fe67816b10fa61850e78faab1f047f86cbb9128288acd0a20c8f000000001976a91470c6be9b64b456af6342d7032df006ea6750017788ac6029700b000000001976a914dcc17a6e42f3992123dc814782b6fc23634bfa9e88ac00752b7d000000001976a9141417099b92d195f94cbe737de835a72497cbc9a988ac4053cd0d000000001976a914bb8f0bad61f57f95add4c751f279354105bc8cc188ac00000000010000000311b2347e7261132e65c45a5a7b13536e8a64e7045bb3806846056ecdd3b97258100000006a47304402201cecfe79d9b0cc374b0a24ec9791ce17548b138ebe60dce3b8d549f65d57eb2f02202d7acb1398c18758a37a6dbeb9c0f6669fb0042d2f2b7906cce3e4d48bd7eecd0121029dfe974cbd2aa008ca27ba75731c9b123cb4d700c77a3404a6c5e2c8e9b0144cffffffff2968a2c9bc7cb619ead292ad82849a4a8c4937204b4619a0ff4b80c24d49248a070000006b483045022100f6362087c730d5f60673fe95c549e4a8e45a6a65ab70f3ba9887cb5ccf88273d0220456b6a74721d19c8c3a83762167f29488de46d1edb0cc49dc0cd46f1ce1f8a3c0121039d40dbdaa76507b2708e9a8ce913db793a1ca3e940680f8a01b1a4311bf8f2b6ffffffff2968a2c9bc7cb619ead292ad82849a4a8c4937204b4619a0ff4b80c24d49248a090000006a473044022028522917d00d8258206e6802389ae294f085b910618a3292d10fece0ee60d41d0220262fee75950ae2f20990c2c8832b9b13fa5e12f46d64d657570884daa31c102d012102c05d260ec1d5352e9e1a8bbecb472875746c68b92ae7a81a47f2537961fb3408ffffffff0280539a05000000001976a91436167803060f96816e5b4801dd82c84afb7887ec88acd0162a03000000001976a914403c67cedfa93e96b129a44ec1ba294b7b7513aa88ac0000000001000000019d3f91bdf173a66bf08409a3d6776b33d0aeee3222fda32e2800bca08efd93f5590000006a47304402200b551118b1c49df27dcd1c311c6d2e7a15f6db8d6f5b7e2ddf7b9a33e2058c960220246d6c6b249162e3101a771dce401c37f58da9ee3d4f0ba90853cc4f964aed6901210220950a44f5914cf0f4b2d43319eb96746562631e2e37d9777d3a993a04876101ffffffff57ff4a0f00000000001976a914c5b908bf2a82ecaff706c6588d61cf38161f717c88ac68981000000000001976a91483c71fb414c4fe7fb4b2c60f2ca6da5e0d6dbdb188acced70f00000000001976a9147d5e20ef7c195f563d1c64a67d05f06042293f6888acb0e21100000000001976a91477fb74114ae32777d00c8996a91daacc532f91cd88acf12c1000000000001976a914cee365810cd648028db83879749a2f9659bbc4dc88ac75ed0f00000000001976a914dafe8e206bb0245609134f0af5cd91f4a8dd12c588ac0bb11000000000001976a914d6ca59283f3f75991bcd2999955f230403865e6788acfac70f00000000001976a914080da666a7dbe111800ae96b0363e36192bb2a9888aca06f1200000000001976a914ea0b0d92986786ec4f29d3aba16b9332389eeedf88ac76d90f00000000001976a9145a6b298a688d3f5161184b844b06a1c2890bf05e88ac81a40100000000001976a91438c0375abdb4a582a61ef118ee2f214d83d75e2e88ac38500800000000001976a914a87d1cc11088e265aa7f79d916070a4e7297d08e88ac7efc0f00000000001976a91457f0e34300102f853bac1026438ca0ae58d8ecf688ac784e1100000000001976a914009a8d0112472fc8f28e477b38b0f07fd842f69f88acf1c80f00000000001976a9149370d4104dba14039b200e35404608198acc643a88ace0851200000000001976a9145701e33aa1c99e01f7426db9c019d8ef0375c95688ac932f0600000000001976a914b6fca6329db8420dab864a6f6d0cd91c86d90e7f88ac8e441000000000001976a9143ffc0d1f05d70eeef246802356c96ca551fee96088ac71aa0f00000000001976a914e774e1d68e05c61381f4f32a031df02dbb0be90488ace7011200000000001976a914bb7a7a0a2d705fa4e1b1d4bf384488429fd3250788ac83b51000000000001976a9149296a3c11775574233a17e8573e4fa5b809564dc88ac08bd1100000000001976a9146e9701b919ce65399ae4a5f9d4486f63cb8f813f88ac55661000000000001976a9148c13682c8088bdbdcfb574a4fbf5aef991a7343388acf6510f00000000001976a914b25417729ebac02bac2c5d5a571b174a2ee4a91888ac2e761000000000001976a914355c50f7f0ac7fb7d03b4d2de550e47b93e2798488ac834b1000000000001976a914b1dd01301bf16e8193740b1023098672e6213b6888acf8600400000000001976a9145475e1e068a752fa593e582dea9b523a7d0830be88ac12060200000000001976a91495ff891da6a97890108e6351d6d51015745c572888acb27f1000000000001976a9149131197746a52a2644e3d435cb3e2b9233527f3b88acb1de0f00000000001976a91461ecde31b0e4b8d5d40eb750c4857ffa313544f488ac7a430f00000000001976a9145d62f3ab440fa05382ba6c2f8b41e5c581d59abd88ac15371100000000001976a914eb3acbe499a1b8dd677cab9b279980de7ec1af7188acac7a0f00000000001976a9140846706a5256647c7383835f8d0185bd100a644188ac46011000000000001976a9147133a0f8ed9e2f3ab1dd43bfb7b0fc6c9fbab3b788ac89071100000000001976a9141b724277cf253bd484d21e3762ed1369e6578beb88acca4f1000000000001976a9141002b3a4cc8ff543f56975807835bea13526773b88acb8760f00000000001976a914b2b4fe2e91bae0f1d25cd740121466aba92bef8c88ac3cf21000000000001976a9143a6b13ccc1b766dd328c8b2b21a4b1facc53324888acaf7c1000000000001976a914e802928f7deb0ecf14e136f2029f85dd37c47b3a88ac418e0100000000001976a9142e174ed3ce191fd677120a0f14954f87821c534488ac684f1000000000001976a9149df60a6a89ba26284bc6ceeaed91779ac0f5b73088ac9b4b0f00000000001976a91401e5108d31929536cd3e59aedca73e200dbde3f688ac8df00f00000000001976a914811d8e097532db812fbfeb55656570ed6934477a88aceb3f1000000000001976a9141b1033f49b5398fd4a272af587f01fe0c7fbe07d88ac80f90f00000000001976a914717e49778a282ef6f7ae1aa425b3235ef314937988ac1b9a0100000000001976a9149cb9289d2d84db42171192629573d7e11b04e88088acbe530500000000001976a914667195a90706ff1cf49db560c9328c0f7ee9a51f88ac38671000000000001976a914ed24323d37742f822bd868552e5457fda9eb16f588accc821000000000001976a914ad44ad6d308934c556624b04f2da1c6b17b3b3a688ace8c10400000000001976a9147cbfdc950f7665207739d6ee9a0c313567ece27188ac44191200000000001976a9142b788153d9c91906113556b82d900cd81bdcdf4d88ac4d6f1000000000001976a914162b08eafb95e52d4bc71950f8f89c87a7784b3788acb4441000000000001976a914972794904dee236a678290034372a9f44ca21d1488ac28201000000000001976a9145f11bd6e5f62767dcbb1990864aad76a3d784c0c88ac0f1c1200000000001976a914326e825f5543710e1821f96d58bd996f5e8d8f4488ac88da0f00000000001976a914263b3f8ce0ad4a94c53ce77fb9d21ded8d1888ca88ac6e121100000000001976a9143d0b76c0a34511ed7b0f4379f608a91b3cbf228188ace0e20f00000000001976a91412b47187fdd828786d5ddf4124a614f16cf73ac388ac17730f00000000001976a9149efa185002f574bb5b1937cc9e3eb33e5d6f2b2a88acfa231100000000001976a914ebbd2c93fb4e0b32905f6a568db5d7ee1d4971b788ac22f10f00000000001976a9145d11b003b644c089f3c50c0dc0fb418778a6063688ac04241000000000001976a914ce32ea2d498c5a50e27631cf9450fe87cd5a08a288ac35081000000000001976a914d3502d00f42effe23e657e2658f04b6b25392af988ac9ef7e20e000000001976a9145514abb9f4cc3efd544d5f173044d25097a2d55c88ac36570300000000001976a914312f8f38d306561b1a7256a365a3e8df7e57836288ac5d3c1000000000001976a914a79e020b93c1ccccb6c894cf4361231704e8d1e888ac77fc0f00000000001976a914ab82ee544de32dc687726a992e214dc75f93361b88ac23b90f00000000001976a9147e2ec5b862777b628398dce201bc3c87e7a2a02d88acb5641000000000001976a914915d8f0aa522c5920f952f8b2f22ddd4fd60deec88ac00e00f00000000001976a914007a43b3d3b29c2b969aa2e42dcc79b27ce5c24088ac5dc80f00000000001976a914c83075f09d11f6e394fba404f8611283a14277f788ac65711000000000001976a914f26568a062cbfa2906ec9b97c5108766c55b892488ac1e641000000000001976a914557c1757cdda933721b0ab81b69369bb325922bf88ace7361000000000001976a914f92d61409ad8ca5e091f316bbbd0be90deb42d4c88ac0cbe0100000000001976a914598e3a315ef75e202ae09fc73e6a136e6cce65e988acef9d1100000000001976a914778070286a15342220a3308ac2f82d9cbb0dd6a088ac35f81100000000001976a9145bac8321860e12b037dfc1ce087591e82a4295b288ac95db0f00000000001976a9145cd2e1b93aceff18bb4b9247497f8bccd05970d088acc1eb0100000000001976a9140df21fbcd42da47d3018c116b8e6b391264c854f88ac377d1100000000001976a914a96e24094aa4da3acd691f89ca3f9224e6065e4b88ac1c700100000000001976a9141320e82084d5eafd170f9576bb5990bb6c034ca588ac0eeb0f00000000001976a91420d380d2dca0e0affa20168e41b0f7edb1e97f8d88ac3bcf1100000000001976a91400a0867abd4d9c5e84c39201bf3332362ab8ab1e88acfa8e0200000000001976a91424a15128c2087af9d7bd7a37301e0a2dd3364dfd88ac8c990f00000000001976a914507a7bf03ea16ee39fafb6d3c81c01a540e86d7f88ac6e751000000000001976a914c71888a0686a338673aa1c47d16d0433afe63cc388acb6b509000000000017a914e50a8f125e38a5260cfb3f9819972fdca7e96ac387000000000100000002aaa48fff3517ac2c88360b083310ec729f825b151db86fdc1428af6809df600f1b0000006a4730440220111d5ebb0be209937173acd331d298e3600b09a15eab51c755ae993ef3badbc602200cc34f15462a82e70238dd958e093fa2a14320c6ce40cff1bfac6333693ac2a00121029a290b6fbfb9414bab29b007c8aad2eb1d7ca098a97a10f9586f6807af7dd008ffffffffdbb62663e81fc3fde6933d0f9d0dcfc08ce032f9f2de8cb22662075f078057a4010000006a473044022049b7823caa94ea4dd62f5e5dbecfeb6b79101f0c0c342325068b2dcc682e5d5e02201e2def50ccffa73758f9e51ed53d987340e67549703c648edf7433a4d53b71aa012102a9c8c1afb8da8e9ce9880ea1ed70462679555fe063f41730f38f8a2e1a8f3b1dffffffff0212060200000000001976a91422d73e3a4dc40e7e909c753b96e76e679526b0fa88acb06a0305000000001976a91499e78cd9b82e26d047b92805cb96d95c11587b7e88ac000000000100000002aaa48fff3517ac2c88360b083310ec729f825b151db86fdc1428af6809df600f210000006a47304402207363ff904c9842518b9da96a83ea873e450dd573753899c2abd44fe5a83227c102204de198c5c623c048ae3a61a7631d2dff1673a34cca5d9f4b540eea4afec9bbcf01210370c8fd1fa0f37ed6c1418c94eef2a69887dc6ab1e061a1ccd058e32dfb3cdf8cffffffffe440f7def507c98522f47ee2b47223009dbf5ad209ac7d0a277edfa5b74a3314010000006a47304402205700f2da6cba47a54e595d8befcde7d92be724e4c285f62c516a89796ca7ecd90220622bb6795bf31dd43aa6cb107da0dcf65d5c47ae9fd920b2ee5b8ad7a6681a52012102a8e1a6d3ab64d0103d20d051b76738300f794eaadb3b90399bdc02f04b2dcd96ffffffff0246011000000000001976a914bc3c30530853cbcec3999001088a8663fc116da288acf0060405000000001976a914066e7b9247218848c5d203e907f2e41cbd3c69de88ac000000000100000002aaa48fff3517ac2c88360b083310ec729f825b151db86fdc1428af6809df600f060000006a473044022059e9fd3120d800e66a9a9ac00e8d7eaf9be0328dcf3e42804bbe8f7cd2bda752022035ba1a10d7bc10ab45fe0b4771c78c2c4e51d36b055289a187ebbe6f1ccefcab01210202d6ba64ed62c421bba9836d169554f383cf23eba1daa8cd4ad02471a0cfb390ffffffffebfc2fe00dca265fd211846740acf1c63797dbbf9a7d823991c19536b21a7a13010000006b483045022100ea17b04b5db96f87b499274155d5fc083cc56904141046cd6b960f468f2f5e700220710399104c8c8114870cddbb6efc85bc388bdb638a3e8c90ff6f8589a4ed8fea012102eab0f911ccae4a076d5c0f16ec633868beba34564a6a7e9410fcad5943fae6b4ffffffff020bb11000000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88ac901c0305000000001976a914d933d5d611a97ef8d34e0220e60b937cea94f24888ac000000000100000002aaa48fff3517ac2c88360b083310ec729f825b151db86fdc1428af6809df600f510000006b48304502210098fb23e5d8112613e1f6143f53a5c988b645c7c28286181de2e89452b0bcef1602204eb8522cff6072538f18eb1ee5c6eb0717f8686e13bc96a4037f11ca06b6195901210368605aedcec34cf7e5aea3f6458ba21de9d819b1fcb409567bafb475b4d1d429ffffffffcd4be262d8ad5d0b8f49b2bad259cb9dbf6e0493992b2070454b1e430f42860f010000006b48304502210087e9d0bde6a96af3067f9fc243e7a0853263ff734d2f32f0a35779a40ea08d83022019fb8ec5bbb7e83e38dbff1953f8379548ce92c75d714a81f21e58e6bf67edd401210226ff151c3782c26cf2bd31995bb8f225476fa8f1e718be39d0072efa3faef52cffffffff020eeb0f00000000001976a914dfba28dc856c9a949fb67a55b234adb957416dfe88aca0430305000000001976a91498e005108ac83b88c57814828b81885ce770033f88ac00000000010000000563c52f2ae296e4a64fee3604b977cc7cdf9e56b9620a2f0fbac4415e7ae1ea3a010000006a47304402207120444ffd7e32a273ba1835bbc589f9e8ed4a90ee7ac19b040358e684a8c8d4022052c5c99d4e9be2ed07030d59d2fc3a4beec243a3917d6836c58d14e9cdddb8e80121020cad537a9923a96698dd84bba715bfaf57a04ff9f62f69a686928d2eb72e2202ffffffff00d887065ecc8e6db1059195e6cf0eeb674cfe916deee4bc675056b5588676ec000000006a473044022008213bb62d98f5bc20346b549d280eb60bf79fa0087cc47f4c1c000431e1014b022064dad16c1f598a859c50dda7429630ee4c8609b848fc3a79b35a7094d45d9570012103e6f979cac9a74ec369bf59b72f0ae4f82021eec9230c3275c7aae0f66834c5c2ffffffff057b18acaeacea1bda074703ad2042ef816e8c1836a104d2cba48d590505220a010000006b483045022100a5e0be71a8debe197a4c39edf2f4cbd20bf81c98342e71b0199c6a940c26719f022003a0e06035b695e61372930510961b0407139a23961aaa4576027e3c9046ed880121039db960f5446d22aba6ecec890103d321ba5df44a59f0fe5fa3277142c57bfc73ffffffff4d0d424837c04a1f3b77755d311e39c68814595f7243e8f67d585ce3cb720538010000006b483045022100a1499eac399283e757938ce653c203ca09c3886f4a5e7c1d9f8a59a92ec20f18022078557b7b254ea244075d874f215a12bf712969dbfa504899529cb06838967aa50121039edfe608de4cb9d8615bf15ab1e2c37bd778382048e06f5d048f1f80f9eb28f2ffffffff4a7b5c25f8967c0713dab7bc37e57e0e703f47389e7ca185c5bcf8b9941ae3b8010000006b483045022100e9d2d6983f55b6268d18a857d7bc47c70bfa6bb0aee203e25a11c623c0e18cdd02204604b79c39ac2ec2ab5482ca6c01c94fa1d2d5a4f135ffb2c224eaff49bfdc1e012103a735d0a91a643d5cf3d8b78f967ebce7c88a76408db2e91e6c7aa774114677ccffffffff028f450f00000000001976a914d0207df1a478b8132ac27e909bc8a94c05fd091388ac00093d00000000001976a914069532d8f9ea4e62c38badbbeb6ad322cc461c8088ac0000000001000000041836afc3bd897a5e9110ee2680877cc7bfe1ec49c7dbf7d24ae7c8dae881900e010000008a4730440220118085f424c6287a23305274af5363cc383ee13ee4714744853891f929a344db0220567f5f0f233706df1f3e8efffb6132461bd1052eb28315e5e8604825090c563e014104b0b15e43c301e02efe8b47b80fd73df20b59e358068f1b9147cce08102c411036fae6f3a91bd8cd4c55ebec209564e3b597d1df2a75aae96150268721ce8099fffffffffb26e3f19c15c5cfe62bcacd3f8bcc36dfa93f83c7ab16f743d28863fbfb773c9000000008b483045022100a79fa38ad490ef4c66b4909df46c6e3b2d5c5566d2f857a479ff6e3610ac8d26022070b0c1d6f49476b4de6c10d0873b20c78777f7c183b003909d8e6070f47ac7e4014104b0b15e43c301e02efe8b47b80fd73df20b59e358068f1b9147cce08102c411036fae6f3a91bd8cd4c55ebec209564e3b597d1df2a75aae96150268721ce8099fffffffff71da3cb3976ca72914dea699207f3ac0cedbdf85d8872961c8c6c688e00b1486000000008b483045022100f8661d875117f4c50a740c54f88b8e2645fe367a7c8613d3b2bf2c3ba786e87d02206af59e8b5b9edee9ff8f8a02a3f2d680791ae8853bbfc68eedee09fd39bad3860141041d9932917299896a4bf5b9a43fc32b6244f400e501c040e0cd2d70c54cd825e2be6a1cf05a207e2a6c24f775d52afadca19261a2d24f7547b8c836a8f17ea273ffffffff6fb8be31aa34f410fb774d44f91ef4343f8e1197e4876c413cc8a8b871558e2b000000008b483045022100ee847e8f78459be5b481ac4469a7dd9ce8b49b7cbe21bff226decf84d79993ad02203ae25c6fafbfefd1d5d9d8b885593fbb2d7aefe6087d882b262c2b7ec2b39910014104a7d5318cd8f19594b6dd73f92183d027690d33e493a84c83c810c9c12635c92ac4369483977e1b0f48388228a98c29b64ef12a9f82b8e301e386ede502cbf44bffffffff0228230000000000001976a9140fdb0d62928786f5da514606cfc6ab6591e9392388ac14e5e700000000001976a91406c06f6d928000ecbd88ea99bcde72a0d4f3f84488ac000000000100000005873a8d859656054744c2849c6c50d99af8918858ff20ab34f796171765817296000000006c493046022100d68e7cff4a4abd48f8522ababaa641508253f2a81d7a4d9146a59218a36fe8a402210081cf67880201d87993a5a29ca77cb81705d1325079fe2dfde29e945bc2e5170d01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffffc00497ea0f6f8cdf4cf4d32b645a9f46b5ef9c0203c356c9d595ba61d98a62d8000000006c493046022100a51360e426c349fc030440566b7a3b7e9d7b4e35639d01c938a51e00f7d485580221009b0c30355deb50b0aff712669125c76bbf590c12dfbaccd8bae3f7bdca46e75801210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff2ce93cf131c43ab3b3fff0061738a3b4408c42e8eda4d66ff7db3bf38a201e5e010000006c493046022100e608c5ff0400d5fa819f51a1a4c25b4c7552318c55c96d83a00c7b9e76e80f3a0221008b3506d761936395ea6ac056464cf2e7bb2827b7914978cb108655eb2d0ce6cc01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff5fffb1fd69558844613a293ec6cb11a1f596791384b240c10da64eea8e2fff47000000006b4830450221008e5432d1ab36164724d7843f0bec50a8849add49e6722c54790a5a681864f37b02202d4433cd44518504237039931241cd50ee03cc3115046719bc7022f23229b73401210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff5484a335a10546235aa49ddfc3b3f4aad96348b43971d4c31358be6e4611b987000000006a473044022035ef90c1f3877a9c1b73782fdae1c1d515b1fa93b946a6ee11810a16f5daa861022040a421d967895be33d9c2178f5c3c6f335d96efb7c60679cc5bdab460af9cc3101210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff0220a107000000000017a91456fd2018804b730294decb2c5b64db5e649631dc8750c30000000000001976a9144c213cee459ba9be77a63a6338fea991f08be96488ac000000000100000005a089e69367c2df1534fd17afe75a1251990f35d1ae1e2ead27f19e213b49d1f5000000006b483045022100debddb6630716323de8f628d51dc36e7308fb60a0d0506c9118b2bc0ad30b34102202501fb4454960a00d4dd2b51665f110b84da2c4e241e92ca8a9767d457cc31bf01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff1a6bbcd6050250b37bcf2227492a2d6e1407bfb8207227ea02ab7894bf826f5a000000006b48304502203d39f463850662a467434667f68334ab2ef130b054f3b948b47cd44a6c00c031022100dac823101bfd4cc1917b4d63f764b645033091f7175d1a4382eb086a8e0f60fe01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffffeff72ec61c005796befa6e068fedf6f838c5d84574c692725284582f822735ee000000006c4930460221009ba6735e7152039b85386460687923f60571a7dd11fd6099509a202a00e873a2022100c276f6c9988470344b0fb8c6085b0c67389da5200ab09e438c8050ffd132ed8c01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff74e6ae82dbad0c37363c7426e1436722d310e3e66af768117cee01f2f334009d000000006c493046022100ae3ac8a3face719e12a029a9b4e812b60ab4fdf7fc428248559571dfc8ad79ae022100bf4388b1592955c5bfa4f27c304f9a998bb399dbb0e9302210f69a94eaf0e50a01210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff8292084e5eea655c4a3b37b5a6e2ee36e6a53c613fad2ded1335dae61b405f0e000000006c493046022100a1f0a2eff1ede0316ca1f1512cd6806c5f887b51a4c6abed7c7d0f4dcc103cea022100bf21eee08790836793ae45fcc93c103e6e7cd3d75e1e976d89d3088f30fae6a001210287936d8fd333d67042550a525a1a598a3edbb90cb049941d30913f945cdd0bc0ffffffff0220a107000000000017a91456fd2018804b730294decb2c5b64db5e649631dc87409c0000000000001976a9144c213cee459ba9be77a63a6338fea991f08be96488ac000000000100000007e58a911331f08ae1cb927ea9c2d55b073df111a31fb6cf456b44a7c29a13d981000000006a473044022078aad7c89fd30cd64ff7e4ae9862f6aa77e8cc5dd54dc7c819136823d19ab0520220397e8d1d41373c751b340ae36e5c755e12b3cd68ca1a880baf5a2c50beb93d2701210364318b9ad30aa93993a384db556966d2031f6f43e4842f3844bd1f65cd93ea9affffffffd912d419a7be246de1561d60b706a7d48f4346c4bde68d2c5da29bac515a50da010000006b48304502210091239c56c1b9fa16230e8da619b95c1e470d8b123c5d83e093be0c092a271f34022027ce7534139e0ca79bf1c95c0bdb94108d25895c7613d505fff6c56e245f8c7101210309048983e59de145c997fdbd9f5e05178171f992461bc29b61c6afbbe1ea416fffffffff158165f24cadd51043e21359f651937367fcb2e272a318bf745a02e1f6eb0f6c010000006b483045022100c085c9c78f51a1aa5c740a144144facc000168eadb69095aa0cb3d7075f2967d022064f6ce76354b92c33673d1e9339d688b294c6288902cbee5c1224f34143f27ea0121020cb417901a74c8accbb4539e9fbc015d841033a642a471b471a14bebe887f61affffffffc49e44882b4080297f86029b9cec0c3f1780a8aa129e0f969499ef16ed5c8109000000006b483045022100c0c17e4f731b1a53bbff8db0b4434ca58d462a7454468a4af73a6b7ad11cbd34022003b1ae1195713498b35ec996dfa9066e2f9a5b97b2f7197a18f494bd45a23ce3012103d4d363f33a55d239c53fb6fc05595b447f824f81d43496583965a1f5caf62695ffffffffb2aea8e0e4bf56e8229ebbbe4c00b33cc7674b1377ce04b2ac609c9b092f9e6e000000006a473044022061a09de0675efea1cc30ad1934df41679137373bf7a03bea5214422e723f443802202429de8d117f281f7a45c952157ff240c84abb06e515a49fbd2d22a99f94211e0121022b7d7106aa8e4169257a0b2deeb30e2419e2ccfb47d549fdb8938100a692b4beffffffff6b848ee947b03a8b6b8e37a284d79f5f02676feb34e693908e94a5028b9c1e63000000006b483045022100f07781b77dc1981078c7079d9a2a1b572d7468eb638de086ab4629e05f4e3f920220744c472e67311caf0b34984021524c4aea7d35bcc78dda6c45dc56e357f1d941012103dbe1c3932db00f29bb2a9fead1d616c52cd98b22fe97b8781592353c4851d92affffffff8fb585d2cfa36e1c2bb7b8d81072523b486bd6f0e0cb0dae81eb7824180b9d0e000000006b483045022100cb07224583b986f28c2b9608b6dabeabd8be68ab66a1f5a3185e8bcc166c893c02201a097f691966d5cb2cc2298c4ffd9700493ba3862a73e78564f58dc0dc521dc4012103d90039f7c825894480c88e0ff25b159d57839288d1af7dc03a74e1a8e3da0daaffffffff0d8d4b7508000000001976a9145798b1c2d9ad862e3f13230c73f8d3a45ba5d47d88acd3de0100000000001976a91490c5bca58fc058ae95cecf9cec3857ec038cb47588acb8e6c300000000001976a91485433c070225a28134942c30bb9aaa729d45cbce88ac2b7df901000000001976a914c10e37a8cd55d9ae65567d832a8d85a56714093088ac1b97e100000000001976a914ac4f0f5d94c6fa68101dd5ba7af0bd30bdfa6c6388aca8394701000000001976a91432a9d57674772ca22e8df9437ef435a175289ead88ace2843e09000000001976a9149cfb1ea1359dc239c324e14ec92f53ec6f266a9388ac5b420f00000000001976a914e518b376cad97add0337b7694304c0895c4424c088ac20d7aa0d000000001976a9149343f22e38dd0748df30e0676bf7e8f5bfe3689588ac40d2df03000000001976a914670ba66102010a8dbb4b834d2a536484b91d4c7c88ac70048f01000000001976a914013cfd5b16b326295a8c60bd4d9ba2b75264696d88acc0687804000000001976a914653cf6f017b060cc46ab3796f411ffa0bb095c1888acb9b55d06000000001976a9144556b5c73621dc38edf5ae67e7e6c1add6e8244788ac000000000100000004a25919b2d9ba5834827dc6e52790c9cfcf6a637484008b611aa9ca3af38336ea000000006a4730440220496b1f109dc487301c3bae236ca6f8efe691d6e09c8eec3d8d5f97719760375b02201fa6cc5ad6baacd8ed34815c37b57a5564e1a7fc6e8e8353194184ba92b42a1f012102bf07874177e347f83c839c66c1c52a7254d091878922e646dc50ce37fd841487ffffffffd3485a41cf92dac3a6c6fede35a8f7e7ee030d4874d47fc18172bdf56715dcae000000006b483045022100fcb4ce877306181168540a2fa68e451cbf0c201912396b807b9995e97a31b23d02206b8eaf5fb58bf5e74e43b8301bee6e8c5d10082412778bfc62cc017d8c0d7088012103729edb8599da8f125923e9a8207e5e7cd2c7027ed9a0212775a64ce1d600f0aaffffffffde100c0b556a7dfd90575b1fbaf37a1578ea39385403d79c2700d0ef367e0525000000006a47304402204f439a89da1f48711ecb229b0d429aaf7f6a9e8292594e183e9abf8c9342f4d302200ac2691f836dbe91a1dedc92118eb497e4f0462d530919046b12b05f186cb0bf012102b8924f3067c38fed22445d5371dd4ec67cc5c038aa2824a5f3c6b787082b86b3ffffffff76fdc1bbcd8cee9da6ec41cd7fab35ee604e5f108d0a5724d32197fd430faca8000000006a473044022022cdd1980a09779852623a041b8500ea95a27aa3ba7772fa435c7a2a0f7f7d310220222167e6ce5ed1ff8c45eaaaf95931c24b404987f04c5233c8b29e1ab0d960d00121028dd4ad13065e7cfe7b706f733ee6067e879497be5f595b6c2eb28c4bed31db3fffffffff07ce122000000000001976a9142467e249b29cb00598b2d0425f8135fedc7ed2e588acacfd0100000000001976a914b46d1b1e3af916966c0f45fe34ca590d6c14d3ed88ac20394200000000001976a9140202fddbb2435f742e4230d604af24815d797be188ac60900f00000000001976a9140d8884a248b37ee8a2312ef14c14e0654fab7b8688ac26250200000000001976a9148716b034aef06ecc5d98ce391c869a70db303a9188ac20d61300000000001976a914680ea70e06b0169c9756bf38c7736d0adf191aa288ac084e0000000000001976a9147d490fb2b7d9edcafe5dceb95abdf63b8a255c7188ac0000000001000000087609408a14b30aa7fed7c91485edd9fb19a0ff0b8e7655674bc0923cded59a0728000000fdfe00004730440220702d110a384922ba8687a7447bbf91373627b30be4481a12ff7a01690fe3bdaa02204958f9ae0bdd9b0b03641646989afb1b3712c20a5bccd841e0cbdbce008df60001493046022100f1365246bbbdeb9616e3a1581702c26d6323b34048f9508eb7ef45505b9df804022100cec9322439432f3ae6b5e7bbcc474c4b4e5b2fe52b7e21c2d70f89b48219fad8014c69522102f097ad5490aee78ca0fb0286d59c94d2ad258607cd68a1d2257182dccc69a1bd21032f732aa3f330907065589cfef2cc40fe288050c31d8956271f2d827a5f3d365d2103e0cb6f950544c56be8664abe8e7c9d32f37b33496480180a4f696425e4516b4453aeffffffff465db37737567a3e32b67d71fddd204996a294f87f3f5ae17395790c0da68c2255000000fdfd0000473044022060e2a023fd886a816704c473e5f2377bab62787ccefae0e357dbe77afb9bdce702200888336da996eb3af0fdab56d77192899c7019ad4edb361af404b409960eb7b0014830450220113163876c77e4e08eb0194000f0487481463699fe8b7a2ae69869830d7d543e022100fb321053d245b801a8c6c266836a83be89f1c6de0e59a3f834a602512c6625fc014c6952210317ed21dd6e3ef90c3aa1a6385ac7eff20b8d2ea574e8caac8fc2d2b05c9a3c88210380d8387ff569a9fe2f97d0c3c300dcc001abf283acbad5120b615d313a0ad74821036164c92b13ad43a1b58bd0f12ddded8e1b6981d44594ef9250701927f7b29e9053aeffffffff8d1b077ed5cf09d127814e2aeed3d07239ae203b3bf7ea7800d550c6a0b2f89102000000fdfd0000473044022006107410b6bded858373116de669203ec066c382e23ff3763f060b90718efaf002201f61dc47d0df192bbd8f2e871ad4bca5983bb700c3b95301552e4d2edf0cc38701483045022100b2b592ee57979e602cc2367fd7f1abf0a042c56d10ae0afbde60004f753a10db022058ef20df40d8de780723f289541ec2b924317d541617dce4d23e7ad4bc9d1e48014c69522102e12b9e6609d9104fa65e7af8ee70b7512b660268c39f797a14cacb5bd25f804721034a472f1ba414665eecce4ecde2e340cdf8da2cadd92b9cf1a89ef3e4a032c8c7210206cc704a962679606f44ad9d80be136ab49ab796125f80fdf28ed1a38a9cb07453aeffffffff8d1b077ed5cf09d127814e2aeed3d07239ae203b3bf7ea7800d550c6a0b2f89152000000fdff0000483045022100ab320f61862eb78a5eb324a70e6abd01f21ca2b735b2a669d8b2f3b1d2badbd702206de7796daa82262e78e2d8a8bdb655d9670e944017d881d5d0caad43de34d48f014930460221008deebbd859fa8d540cd68177eb40864a03b98fb78396a3c0162bcdb0e506c3ce0221008ab2718f51fee27f0ddaf53f96a3f24c54f2dad350523005e68dde6b36d3dd67014c69522103482d14cb45b034286818848616a4fc4b1bbba4a3af12c630421b87382f8f22e721034242b5a5492b8e89cde074e4a2ed873429acf40071748654dd8c6f8ce3e7d13e21023ee1e8c8e0731340babc372c9b516ef3993594abc7e87364cd5c56536227b9d553aefffffffffc7db1d32f29e6ecab3c94e7cc018b93974921a50faf4b8f93c0e68caf4f281d01000000fdfd000047304402206f02ed2f5c6f712a2fea9a3c57492784386b2a9cc7118459edbc15d29aa5a45102203911ef850036c24684ba0cbe4bb3d83136ded6c59d42651904c9cd0e647f6b0d0148304502201a3c03558809a02bf44fd2789ee7dc6f17313614f3af62148c9c5f5654b9744e022100e5f96611a3de5f76bcdf33db833e8edfc83c4c287d923abe8fae8c53f9253914014c695221022c32817fb3a4e32d6bfade84ab4b485029f68678e3fc3a6b4b7126e5d44e844021033315ab2973621dfc637d86d1fe36245df50d0a271078c1e1b51f5e094eeaeb2e2103d1cca2a83edf5a7d0cb9e9422af530e9916d3bd2f293b75419dc7cfc8e9a20da53aeffffffffe192f2a83d78167fb3e79617abc7ef1c62e0308cdeaaebb111a490a9804bc91338000000fdfe0000483045022100b3d66a272ca6b77fbc4f59c046d8c68f77daa524f9800b198185096bf2610ac302207758ece29b70a60344f178a600955a8a3105bd3a53f9309ab15e8731945b16950148304502207bb172374e02fb68acaad2f1d8b15ded9d70c3e0d6cc91e9aff973fe2b03a965022100a888842a2306c323319695e0513f705a6c58546dff95bfc7a439a55c5eea59cf014c695221022e24e284889f6a962522f74a872048ab9a49f6a45b4df1be46922af3294000bf2102808c2976f2fc730f43f9adb1e22ebfd96bf9363236a945ed69eaa4c9f399eaf52103604e127ffc4630e490fe4bbedbe69f10eb5d51725ee5b68ad0013e2e0b8337c753aeffffffff465db37737567a3e32b67d71fddd204996a294f87f3f5ae17395790c0da68c2227000000fdfe000047304402202888e7de5436dde7957d846dd1ef365ef736dbcda72dd21033552a16ce1c9528022001e840b5752d077b6600fd8af51496ae78744acfc85a2bdcfa82836c1267df170149304602210099ddfdae142cb42a0bfc19c2ff78cdf0fadf774891e9e5de2cfa7635bc7edab0022100ee594c99c814f61b1a1d516bc90e0f0da1d7c1829c8c3ff4c9b5a67de8a0cb57014c695221020dc3d127c2eddb411ff6eb7071d6e9a8c11208e47c95f899d35367a0fc3610f7210378d81d7721a8a9498db4612a5a5736834e4cdecdda2767b93e02820f176a77762103e957ff4984dd3e4c750e71a4b150b92b218d58cf045f2073788aa2055184170953aeffffffff5e023dde4f10a46a67094f66c4fef8dc3236b7e8590ea18f8824fbb68cc6067901000000fdfd00004730440220175fa15bdf400c7d5a6b031073ac16f1f30435420279802fcad283e13c982a0b02203ddb5127ae8399f3abdbc60c407c47bd981b98463a45177b49d9596495d5b08f01483045022044066221aac5ef641fd2ee53a0a8cad2f470a0cd9b19c395abd463284c0bc7d10221009ec719628246c7fe0762dc3781d9925ac4ddc99c3e64de78a0c3bd9507c15fce014c69522102eb42161ad73027321bc3e0334d2f657b74682af68821d024d4daa8b0bf7502d321032e7823d9adc9eece9f6a8a7cd71f1c619fc76e984df0c8588001d22585644c2a2103d0698947f0b5e38c96b3c5a801035f09c8de463e9dbb3ca238de42c309c4c2e553aeffffffff0436506800000000001976a914b5de8d287e058ac2967e1823016101a7cc700cf388ac409c7102000000001976a914174efcb83831aea5de5e489a1473f617481e628788ac8fddc5020000000017a91437d153e81c48278b77a099c09411d38362751846871b488315000000001976a9144bdb0b7712726c2684461cd4e5b08934def0187c88ac0000000001000000013f980a803270dd6a6786edfe545baa6a02299d5a05a593f15cae49a083e6288201000000020151ffffffff01384a0000000000001976a9140659ea0f166aecb428e51a9414992bf28cc0c9eb88ac00000000010000000121badea07dede0c45c6aa69d2579ebe56387f91e354c36079a33251ce4a860cd450000006a473044022006b63c164063d59ff707186a2ed039c6d5185edd96f264fc43d4376b884fce5202207498575f55a87cb4ae2bfe56072bac74438a8f4b29e3d488bb007307d206fa90012103ad488d5ba48f949825bce6b92439d788027f9cbc787951f7198c170a4b681a94ffffffff17701c0000000000001976a9142956227d413b490b989b552a4ab69be35fbc451c88ac5b1b0000000000001976a9142bd6d10e6740b2c5ebc0b85450ff2c69dd4529f788ac301b0000000000001976a9148ba8418e16e35622f665c481956d821f340a111188ace01a0000000000001976a9143eecb7f092221721da151281b7ce2e720bcacac088acb31a0000000000001976a9142b2545d96815677cd040c4692b8857057be9872388ac901a0000000000001976a914db2ae9e13aa7320a4bb3846dbe96d021009bd3d088ac181a0000000000001976a914b3e73a8cbabe69e4a170c438dd9c0cddea3455ad88ace8190000000000001976a914f559f58817c8c0db2c10178eff2277de1353491d88ace0190000000000001976a914f84505347756776975caac6ef0cbb6c654fc8d0c88acd8190000000000001976a91458b007ee9bba66cf9a2d8f2ef11188c0f3e2f85388aca8190000000000001976a914118bd8c9b9e021128943a0fb737fbcc55176d65688ac70190000000000001976a914cb503359f07ac61b140394b3a3a73719b2716c7288ac60190000000000001976a9149a005e082df0dce421a6402d9df949d7d30ffac188ac701c0000000000001976a914b8bb935415182eb63a99822116de4269398a23eb88ac00190000000000001976a914c0d99470ea82e172492dc65b4ad4f70d1c6ba85a88acc6180000000000001976a914e2ca06d3717aede4a1758d6fd26623beb18c155a88ac91180000000000001976a914ae0e6a316462c96ed3d9357c6026860dad06ea2188ac10180000000000001976a914ac670f702c391ecff364bf5482493352eece69e688ace0170000000000001976a91471ae8a29a1fb1b2bd6e8db48de40f576c9c3bb4688acd8170000000000001976a914d2fc79d8e848f4c5e529bdbaf2985fd32654ef4f88acb9c02f00000000001976a91442bd8225289a7abadd9ae3ca03c7728cff703b6188acd6170000000000001976a914ab3e698fca2f209c5062714159703d741001a7a088ac90170000000000001976a914c2f3d984b27f54fb595c3d9360b7b086ecce22df88ac000000000100000001935bda72d8644e92e2d6450cf91bce89e3652955768605179d0a046e74b618ce000000006b483045022100edf973ea0e40be7dad3146ec5149210060891ba2f43085658918dd5df91fe9780220737960ee427a263be22d1d9ec2f6b5d083dbddb399ed96900068b3ca526be3190121029e327a887d04cf47cb5c3c0a98752bc14b91a868b0a7d7354ac2028ecae6cbd3ffffffff01a0b39705000000001976a9147af1bab2645028cd20a491b7929dec96f94d5efc88ac0000000001000000025372c4c57f01eff16fe31289c4efc1d099380a2b67dbad9f55da402495440fab010000006b48304502210094ff5b3023b9f9657408cafba21827ef7fee96f19508515e81dca142316622e102206f44491df30309df6bb38fb459026d0eb2dd3b966506f6d28189ac0fc283bd700121022e1d51adaecfbc0e017738d48235c085906618cba0fc9941f03fddf0d0badc4fffffffffd447c8af81eefb0c2756569872623d364a3c7eeaff53252dff56b982556f83c0000000006a47304402203f67ce31c855e1823f2dd1debca9e4a5f39613b49022926e19cb5457f70624ce0220791cf612ded8a39f3f273e30015d1e6512be8282422b665c4828afb39076b2d60121031f4450d4aa56dd24b29ab792e4e0c7500e2961f197bd2bee6adcd21c3e3389e0ffffffff02c0d0010e000000001976a9141fa4e93cee43ca9aec1daa47b45fd0688a41489c88ac93a8ae20000000001976a9147b9e4573be924d06881b8153d6e5ab7522b000e288ac000000000100000001892b2fb2bc30fc18cc074a694a6ad0f3c7a76b529b422eaba93179960d47a48c000000006b483045022100f2887c5790a946300eec692f25fe951b59043b5f130cbea4055497a136e3f0b602201cdc394f8dcb3dda960469981d77cffd8c3e9e2fdbe8c5b9e4b680c995ac5eb5012103b202980f3554ff2359cca72e34e3a33de23a141848236160bf97b6f69b26f45dffffffff02b8820100000000001976a9144893c1f022614617af0f0217df7fa45f7a498c9e88ac0000000000000000136a11626c6b434954452d756e646566696e6564000000000100000001c7d45151e476d3ef37b8944d9f65b95cf5f9e4438d083764a0f5352de8031673000000006b4830450221008225c2e34e135406d6b6ca68608891a445b7ee804343c72ff044c5d4634b5719022057b87a9686d18434555ebfba15576190f4e34551798a2f2a664e455d7ce5653e0121024be17673c8cffa66ab1ee3969b6f89e0e31db476647d3ae431acbd5d4447b240ffffffff02535101000000000017a914b9bdab29754755bf730da0262a8ec8fbecaa85a68794620100000000001976a91492228f5b257c8cccd31262fd24837a3bda521d0088ac00000000010000000140e3777ba2a8e94ba5bdcc21652532cae692f3cf626817c8d07e8ab7178d782e010000006a47304402207aa519e1a01415cb116d176ee200a6558083c27e2e01fc1833fba8800b35407a022076d6814b9c61a5dc18646633acbadb10ef56c31e2a60b4e534ccb93c4efa3cb0012102ab6efabf8449c9c3f163c26848682c100bebb17f8e0f9ae7074308945b1508edffffffff02c07c7a11000000001976a914112725d290646acce6c36cfd283cad60bd2b621188acf8b95007000000001976a9146e43e09d38b9ca4a1a095a8161842e4803ec7ce888ac000000000100000001e02bbdb6fc8634876bbbb507ba4474407d474d34bc294c935476517527c9d8db010000006a473044022008da34bc1b9255e65b5c232e3f12a15eb766e5706aac5bc571922b9e1ddbedff02204f370c9a614b8d5362e8134709c82d96cd714f631adb96e79c3ab7266f9e1a770121028727951f9e85defc362016f841e8daa97ee6bcc297ff7009714df0389213619fffffffff02205fee05000000001976a9140d938222ff45ab1aa54bcc7f7369d6424f33004e88ac704c0601000000001976a91467fcd2894dbbfb5ce5b85b252bf8a838c2d6a45788ac000000000100000001c61ccdd6da33e60a7090a4373082e97eac451dc227644a09efc8847cc81fd47b010000006a4730440220270762d0afe35bb6b7c79625f691fdbd99e82ff1d6c47a64bd6c8b9bdcf5409f0220721054e9718272c772e4700fbf0ec91f26480c15dcc820403cea33523b26f9230121026d0f25723c8eac6872a367b9b014270f09c077ed371250ac4fa57d5ad381ef43ffffffff02a0860100000000001976a91419fe2c57cc57ba070cbb3d5c69d29e06e6e5adb088aca77e1100000000001976a91460f0c24dd4859f65b504af0394e22eacdc5333c588ac000000000100000001902b3b7bb311a221091be40807205f53ded1599ac1da99a6cbb3289ad384efb6000000006b4830450221008a9cb6210e5d2e478853db30bc86fb7887db9b7cd8f4aebab71274291ee0ab9b02206731912cf306aeed7e4b18c2e45233d0d706c23f51ca14daf75e3596102f70d40121030a7b28ff87f8e0c327296c12fc3e5779daee706969bd029345e04ff38ab25813ffffffff029c8a0600000000001976a914ee3294b4823a5b804c8c316315a8eb00124baf6f88ac7065c500000000001976a914d20dc2429bfdab9b6239a450cb828480ead1047188ac000000000100000001c54acaacadda3b75e3e7183570a7c4a3febda1e962abe68aa5d1ad0052240d91000000006b483045022100f9aed4750c10a0d1e0bbec3755bfefd1c9d628cd4ca1e74652c29e5f22e046ca02204473630d5c959bd0b9898c1d19d367d73fb81790f84b1b3d5786f44915db90d0012103260085357d1f06c1149873a6372a291b144d03890b8761924bf7e9f0010ec628ffffffff02f352bd00000000001976a91457d364528698fcde6f8018a77fd62e90ec16571788ac85ee9600000000001976a9144b28b59197ed1cf8ae58ed8f051c1e72a5fa3de888ac0000000001000000018ea0adf0b93418ae9002dd83ace465d27f8a00d0eea5f2757c8e8652e022b6b9000000006a473044022041db21de2713733f8f4fe78655b7589a488b8e73349b9eaa494adc6a0838d03102200158a7676749591a51fdf5e29bc2cbe0c01db9144ea19e85f287e3d15dfb3436012103b202980f3554ff2359cca72e34e3a33de23a141848236160bf97b6f69b26f45dffffffff02d07e0100000000001976a9144893c1f022614617af0f0217df7fa45f7a498c9e88ac0000000000000000236a21626c6b434954452d6b6a646637363134716173646a66693931383479657279383100000000010000000193bfcae914db1279814dea6726cfc748b755bbcc4a93a273a9c620f2508a78ab030000006a47304402203abaa04cab72480d6a829b6ac1e297d17c0216ea64cce0bdf35f24fca2d2b56c022057b1fa4a6faddfc24e582f53630994df25f93dbd7b6ee887c17526145a58b37801210359ed9fe4b091a14a825283ea157184972e40ee7bf19907f8f55475a7e09b57e3ffffffff02e0834e02000000001976a914466de898febb92569e14fa08f86c4c90ab9d91fe88accc8b0000000000001976a914c670fd303d0eed54dfc1f5510cf65a8d35c4b90388ac0000000001000000023afb3543779eee68de215e33294df8829f50d040d694591c6ecb90289353ff4201000000db00483045022100c0ec3c6093d278fce86c302c5530fbd392053d286b057e50239c8a1c064d3b1502200acb0a998419e0f498ac20e1289edb88481d6b27d25fbbb1b0410221705924e001483045022100b80149d2516873b9a9e1ed907564bd8eef80c0b1920535fd84a3f5b78cf6375d0220522cebee4005c2ed5b5a07f35caf016b519f362d92d762b871a7dceb6ddf5e110147522103fe703028715e95bbdd7ea2b1b1d42b497f1f30cea7f02313060e802b676edbe32102aeb999f6601af13b0f9391f642611e32bf1bb7db593ec1630c9fc6f9bbd1c35c52aeffffffff14254bb015e1c9544d767273680b13fc95a564194a6aa739611f1ded4c31a33d5e010000d90047304402205aea8894da710b14f0661ad722e79b074b6c1384418bdbc400f25bb3b951765402205094028481b583fe34222e78319ce57df25d5fea43d6581266d71439ea6a4daf014730440220582a636c2e9301ed94ed2a693199b3d46498d247823c1afa6691ae2dc8f7713402203bd3ed6421b7eb99c6f11709d7231b3ce1de42ea9ef76b252a40feaf0b17ce2d0147522103fe703028715e95bbdd7ea2b1b1d42b497f1f30cea7f02313060e802b676edbe32102aeb999f6601af13b0f9391f642611e32bf1bb7db593ec1630c9fc6f9bbd1c35c52aeffffffff0210270000000000001976a9147e39d0c3c9f2dd1cb6efff02ea2b3e66f0fed57988ac6c0700000000000017a9148511da076b68f24fc8a506e4688b4c0bca0e81c8870000000001000000019b8630b859bdc779e56cd05445c56f9217d733031fd346cbb886c8cb1ac79932000000006b483045022100b6c292ac096841a29de61a0cf7b555d374d46708452642a67798cdb8f6b30277022009f67af8ed398c382f42c2bc96057ad1fb39e55857ebd649f1691f15d1acf754012103e229ea70ab5ea17031d89e7c1e24e9c77639c847378fb953753d73a5ccd5c4faffffffff01be850100000000001976a9149b95ca317d2d4c255ebd4036410d2ded65ca872988ac000000000100000005cb135d9ee2626ca15b7dfe4d7610d2fa9d22bec1f42927518dc957827d87c58d000000006b483045022100f717c831ad1577900bd4fbbfa35f079c9771757b97688a6a3c88532e5843d9c7022030e31a108bb4e06f79810ce5de828fcba5ad9a20cac8fbf02a9ddb6ac8c7c8a9012102c331723cc8ed4bc09fe3a1107c2ad8c516af3e3852060bc6b4a47a9a791fcf67ffffffff218cbb397655ee7aaf4ee7f232545800346a96449546db79a9f9d054d145d891000000006b48304502202e26268ebc8529e41874136c429a9a82a5a59bc41b983574a9d874af9fe54ef1022100cc3c02aeb0c63db3c3e5f8534b03d41f7a28b007ad1dd26c6dff04e887b23a6d012102c331723cc8ed4bc09fe3a1107c2ad8c516af3e3852060bc6b4a47a9a791fcf67ffffffffe96533968cd1cfc9a7a49fe56afb0496794f6989c711ed94431c0037ab92e0a4000000006b483045022100b75656bd4cb4119e95f7a74b687d9280d0a295fd7ddb8a06ce64923ae935c6a6022051b35243b48073d99a05862475774b57e59caf57320020e00eae61f411ae304d012102c331723cc8ed4bc09fe3a1107c2ad8c516af3e3852060bc6b4a47a9a791fcf67ffffffffd8000b57b08873fdb6bb7e15a0506708cd3c3398be3a5a7f59030615c949a6d1000000006b48304502200203dc41d55f69f64c957592663f015314e145564456906743602246ec7e48f7022100f4416318828ba33e1732af39cdf7d1d6e845b3ee7c5a6315bb5d26668969b921012102c331723cc8ed4bc09fe3a1107c2ad8c516af3e3852060bc6b4a47a9a791fcf67ffffffff29c23a479db487a4157b66fb3582c5e8d28e94cfcc34ec2b4454cbac5b5bfcda000000006a47304402207bb2972b1d007357e82f537d3a74de5dfecb404def5f6bd7a794fd93bb9ba87a02204d4452cafd8874eb521e67f215ca60087de9e85d8894b542394301fa77668de9012102c331723cc8ed4bc09fe3a1107c2ad8c516af3e3852060bc6b4a47a9a791fcf67ffffffff040e120100000000001976a914a35c87540e251d00bd7c25b8561fd13c8e20621388ac060a0000000000001976a914568e17467b6f1d7a98430f189c4c3d2246f5ddde88ace8030000000000001976a914ac9d08a94f54186101973113614965453044ec5388ac4c330400000000001976a914a6559089e22b9bbc8eb6bb0dd02d341766c820aa88ac000000000100000001a42006a28d5d9b21d08919897c1c20ec84a75df119eb78140547089cc26a760b000000006a4730440220424789281497268eb87b0d9e448e043cd5356059c5bfb0335b0047cbb17084d8022063100c678b0eabc2f42066821ec8dd1c6b6e4b563b8bebb8bf91ad02c079850401210366c2654259c544a8ef1dadeab869b94bcb8b6e4da09f4698dfdde2b0a882b0b9ffffffff0260ff39a1010000001976a91427c82c6e4ce54acb9c2c67f1ab843715d50a3b1688acb9193777000000001976a914459100c6f8143640d5ba2f6f21d95c5557b0987188ac000000000100000001bea0f6596f6547a4a9ce96944f581cda73fe68e3882846fccae1bd9855db04cb000000006a47304402203fcd10fb496241f41465435ac740008018af0a1b9c6becabe3621a269dbd3eb202205f7b4cb0fdecc39baf170b0f6ae2d74b6bfeef593bb9ed0ed4d9dffb3bf5fd2a0121035411432297cdc797ff8e36bd513352e59b21c0cb6dd3bcf13b6a7baf344bafe4ffffffff024a34821e000000001976a91469a81bd81731c19ac60a473113e2ced672c9cc6e88ac43535a46000000001976a914edddf3ac5084f4df1058ad55d72e7d92b0773f5088ac000000000100000001b95bc5738e9c764338ee9afbd78644ea02df709d1a74ff18adb877528347dead000000006a473044022046d9e32c186e0fdec6b3df555c7e726a0b07080ca39aba6cb7cc287c50a60a03022065042320781b2b9403c15e50d05404c63238ffe3664db1186c11531ef01044a901210297b1240283700504758315c27f1958e8649fa5f8fb067f266925352a3a5cee17ffffffff02001c1902000000001976a914dd125f8605acc2cd784cfee8b7d8bff9f65fcb7e88ac32b96802000000001976a9148ab0a5bfca9ea41780a7b83381cc2dcbfc6298b188ac000000000100000001bfa3b6f9e193186e520e6d1bcd2dd42eed0aa3764a330e3922f325f8b8ddbc99010000006b483045022100c7a05b76a91407cadf8eb146b4fe09b7504f2654314325c8d5637c61f613cb6802202281ddad11ed6690609ec6ebb0715cda26621ff0cf4f5b69e47c2e9b4b5550ad0121024b30a1a48f4935058ac79273660a6d79550dafc71650152f14469ab3a9c8aa0cffffffff0203556d0e000000001976a914b4019007cff80b6b987f68191c1433b8d1cf6d6388acc0687804000000001976a91471729c6c03714a4a510299aab5b9030b944dccb388ac000000000100000001d70690b606e7ef96e7ef2e33460718ec7e93e9d5a98025be162e2dce64749db6010000006b483045022100f6562c9d7d2877dbac9a31de1634b3c7cbed91bef26972c9e0249fc4fb56e67e022040483f1c3c81ff807f82593d105ad37b1a0c7ed927c8bdaa1d558a9b4d0676170121022a023d7d15923fd2d3351323fe743dff984a87507dab7694adc75a80e22b6fc0ffffffff0288a3a815000000001976a914d05b8837feb7b1c20ef13ec76d2e3660e03680ab88acd4247c02000000001976a91471207fa6371951b4f6f53ca34213f753b5b4394788ac000000000100000001f231873fd290c03c2d8b13818893cb2fa88a6d7dc7dbbec29647f4f08343460c000000006b483045022100bd677305b3afd3e921f13773f92f5bcbbe732ac95f430665d0ce38f2dd715d84022071f3daaf83461cc15af5d0d2ba8dca0a8614de3a201f504c131f7a14d591a54001210240e251cfc6450738d6368155469814889a1af198adf2b65e226415af3f4b2124ffffffff0241f5e20c000000001976a9141a3265d7d31c2691570d5cb592417324cbfcff3988ac65adc508000000001976a9142d6c51edeaa5c20653638952b95a1282d145d5ff88ac0000000001000000015edf447e00d5ad32259ed93c7dce2191fc6401255f6641dab4a7333f8e8fc316000000006b483045022100abf99da57e19cb3fe61b95225ac22b0cfcd58a77bb885e16d28644371a5b35a802204009685cdbf260860ea34374b63b0f6888990d02a7202f5f7e00f6c88d448946012102319e5ddbbae6d9da7aada698790758a7db0d5424f50ab717c6fae1ecafda614effffffff0276889004000000001976a914a1b0e8d492135c75a1a109e249a8190e1b69ea2988ace96b5208000000001976a91483158b1f9e33ef4657f4e562d0f1f880d08eef4988ac000000000100000001b080e9eb487aa93eaae6df4d1cfc0b6a586f0634445bb856aa7c5cf43d41bcf20000000069463043021f1f87b9fdcbaa0f208283dadcab63c547d3b1cac6d08406f802d42a9c445aa202203b572ad168c39faa8b2ee3ec1761afd7ef2d45cd68b6f7e40783797d2d2837d60121021091eca140c51666414a3bb9d4f077f10f109ebbae632034b408846180a63b81ffffffff02c5a5e902000000001976a91408a07dec5cbc859b0ce62586b13d10e4cd8cdb2388accfe1a601000000001976a9140aa5ac2f732c75058f584c26489489f4ef15e7e688ac00000000" diff --git a/benchmark/package.json b/benchmark/package.json deleted file mode 100644 index d9c9fec..0000000 --- a/benchmark/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "devDependencies": { - "bcoin": "0.15.0", - "bitcoinjs-lib": "^1.5.7", - "fullnode": "^0.9.0", - "benchmark": "^1.0.0" - } -} diff --git a/benchmark/script.js b/benchmark/script.js deleted file mode 100644 index f14e8eb..0000000 --- a/benchmark/script.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict'; - -var benchmark = require('benchmark'); -var bitcore = require('..'); -var async = require('async'); -var blockData = require('./block-357238.json'); - -var maxTime = 30; - -console.log('Benchmarking Script'); -console.log('---------------------------------------'); - -async.series([ - function(next) { - - var c = 0; - var scripts = []; - var block = bitcore.Block.fromString(blockData); - for (var i = 0; i < block.transactions.length; i++) { - var tx = block.transactions[i]; - for (var j = 0; j < tx.inputs.length; j++) { - var input = tx.inputs[j]; - if (input.script) { - scripts.push(input.script); - } - } - for (var k = 0; k < tx.outputs.length; k++) { - var output = tx.outputs[k]; - if (output.script) { - scripts.push(output.script); - } - } - } - - function isPublicKeyOut() { - if (c >= scripts.length) { - c = 0; - } - scripts[c].isPublicKeyOut(); - c++; - } - - function isPublicKeyHashIn() { - if (c >= scripts.length) { - c = 0; - } - scripts[c].isPublicKeyHashIn(); - c++; - } - - function toAddress() { - if (c >= scripts.length) { - c = 0; - } - scripts[c].toAddress(); - c++; - } - - function getAddressInfo() { - if (c >= scripts.length) { - c = 0; - } - scripts[c].getAddressInfo(); - c++; - } - - var suite = new benchmark.Suite(); - suite.add('isPublicKeyHashIn', isPublicKeyHashIn, {maxTime: maxTime}); - suite.add('isPublicKeyOut', isPublicKeyOut, {maxTime: maxTime}); - suite.add('toAddress', toAddress, {maxTime: maxTime}); - suite.add('getAddressInfo', getAddressInfo, {maxTime: maxTime}); - suite - .on('cycle', function(event) { - console.log(String(event.target)); - }) - .on('complete', function() { - console.log('Done'); - console.log('----------------------------------------------------------------------'); - next(); - }) - .run(); - } -], function(err) { - console.log('Finished'); -}); diff --git a/benchmark/serialization.js b/benchmark/serialization.js deleted file mode 100644 index ee948a6..0000000 --- a/benchmark/serialization.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -var benchmark = require('benchmark'); -var bitcore = require('..'); -var bitcoinjs = require('bitcoinjs-lib'); -var bcoin = require('bcoin'); -var async = require('async'); -var fullnode = require('fullnode'); -var blockData = require('./block-357238.json'); - -var maxTime = 20; - -console.log('Benchmarking Block/Transaction Serialization'); -console.log('---------------------------------------'); - -async.series([ - function(next) { - - var buffers = []; - var hashBuffers = []; - console.log('Generating Random Test Data...'); - for (var i = 0; i < 100; i++) { - - // uint64le - var br = new bitcore.encoding.BufferWriter(); - var num = Math.round(Math.random() * 10000000000000); - br.writeUInt64LEBN(new bitcore.crypto.BN(num)); - buffers.push(br.toBuffer()); - - // hashes - var data = bitcore.crypto.Hash.sha256sha256(new Buffer(32)); - hashBuffers.push(data); - } - - var c = 0; - var bn; - - function readUInt64LEBN() { - if (c >= buffers.length) { - c = 0; - } - var buf = buffers[c]; - var br = new bitcore.encoding.BufferReader(buf); - bn = br.readUInt64LEBN(); - c++; - } - - var reversed; - - function readReverse() { - if (c >= hashBuffers.length) { - c = 0; - } - var buf = hashBuffers[c]; - var br = new bitcore.encoding.BufferReader(buf); - reversed = br.readReverse(); - c++; - } - - console.log('Starting benchmark...'); - - var suite = new benchmark.Suite(); - suite.add('bufferReader.readUInt64LEBN()', readUInt64LEBN, {maxTime: maxTime}); - suite.add('bufferReader.readReverse()', readReverse, {maxTime: maxTime}); - suite - .on('cycle', function(event) { - console.log(String(event.target)); - }) - .on('complete', function() { - console.log('Done'); - console.log('----------------------------------------------------------------------'); - next(); - }) - .run(); - }, - function(next) { - - var block1; - var block2; - var block3; - - function bitcoreTest() { - block1 = bitcore.Block.fromString(blockData); - } - - function bitcoinJSTest() { - block2 = bitcoinjs.Block.fromHex(blockData); - } - - var parser = new bcoin.protocol.parser(); - - function bcoinTest() { - var raw = bcoin.utils.toArray(blockData, 'hex'); - var data = parser.parseBlock(raw); - block3 = new bcoin.block(data, 'block'); - } - - var blockDataMessage = '0000000000000000' + blockData; // add mock leading magic and size - - function fullnodeTest() { - fullnode.Block().fromHex(blockDataMessage); - } - - var suite = new benchmark.Suite(); - suite.add('bitcore', bitcoreTest, {maxTime: maxTime}); - suite.add('bitcoinjs', bitcoinJSTest, {maxTime: maxTime}); - suite.add('bcoin', bcoinTest, {maxTime: maxTime}); - suite.add('fullnode', fullnodeTest, {maxTime: maxTime}); - suite - .on('cycle', function(event) { - console.log(String(event.target)); - }) - .on('complete', function() { - console.log('Fastest is ' + this.filter('fastest').pluck('name')); - console.log('----------------------------------------------------------------------'); - next(); - }) - .run(); - } -], function(err) { - console.log('Finished'); -}); diff --git a/bower.json b/bower.json deleted file mode 100644 index bdfd3c4..0000000 --- a/bower.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "bitcore-lib", - "main": "./bitcore-lib.min.js", - "version": "5.0.0-beta.1", - "homepage": "http://bitcore.io", - "authors": ["BitPay, Inc."], - "description": "A pure, powerful core for your bitcoin project.", - "moduleType": ["globals"], - "keywords": ["bitcoin", "bitcore", "btc", "satoshi"], - "license": "MIT", - "ignore": [ - "**/.*", - "CONTRIBUTING.md", - "gulpfile.js", - "lib", - "index.js", - "karma.conf.js", - "npm-shrinkwrap.json", - "test" - ] -} diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js new file mode 100644 index 0000000..0695f9a --- /dev/null +++ b/dist/wicc-wallet-lib.js @@ -0,0 +1,46 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=147)}([function(e,t,r){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var i=r(149),n=r(150),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; +/** + * @license + * Lodash + * Copyright JS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,S=32,I=64,x=128,k=256,A=512,E=30,M="...",B=800,T=16,R=1,P=2,O=1/0,C=9007199254740991,N=1.7976931348623157e308,z=NaN,U=4294967295,j=U-1,D=U>>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";var i=r(13),n=r(1);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,o){if(o=o||"(unknown name)",n.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,o)}else if(typeof e!==t)throw new i.InvalidArgumentType(e,t,o)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,o)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(39),n=r(9),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(25),o=r(15),a=r(2);function s(e,t){if(e.length!==t.length)return!1;for(var r=e.length,i=0;i>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(9),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(25),a=r(269),s=(r(15),r(2)),f=r(7),u=r(13),c=r(136),h=r(137),d=r(8);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";var i=r(1),n=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"==typeof t},isHexa:n,isHexaString:n,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(13),a=r(52),s=r(36),f=r(5),u=r(15),c=r(29);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){var i;e.exports=(i=r(6),r(37),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(119),i.curve=r(62),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(156).version,i.utils=r(157),i.rand=r(158),i.curve=r(57),i.curves=r(164),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(133),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(153).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(42),o=r(8),a=r(12),s=r(9),f=r(25),u=r(16);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);for(let t of e.entries())this.writeString(t[0]),this.writeVarInt(8,t[1])}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1,//!< add operate +MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r + * @license MIT + */ +function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(38),o=r(5),a=r(15),s=r(36),f=r(1),u=r(2);function c(e,t){if(!(this instanceof c))return new c(e,t);if(u.checkArgument(e,"First argument is required, please include public key data."),e instanceof c)return e;t=t||{};var r=this._classifyArgs(e,t);return r.point.validate(),a.defineImmutable(this,{point:r.point,compressed:r.compressed,network:r.network||s.defaultNetwork}),this}c.prototype._classifyArgs=function(e,r){var i={compressed:f.isUndefined(r.compressed)||r.compressed};if(e instanceof n)i.point=e;else if(e.x&&e.y)i=c._transformObject(e);else if("string"==typeof e)i=c._transformDER(t.from(e,"hex"));else if(c._isBuffer(e))i=c._transformDER(e);else{if(!c._isPrivateKey(e))throw new TypeError("First argument is an unrecognized data format.");i=c._transformPrivateKey(e)}return i.network||(i.network=f.isUndefined(r.network)?void 0:s.get(r.network)),i},c._isPrivateKey=function(e){return e instanceof r(64)},c._isBuffer=function(e){return e instanceof t||e instanceof Uint8Array},c._transformPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");var t={};return t.point=n.getG().mul(e.bn),t.compressed=e.compressed,t.network=e.network,t},c._transformDER=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");var r,o,a,s,h={};if(t=!!f.isUndefined(t)||t,4!==e[0]&&(t||6!==e[0]&&7!==e[0]))if(3===e[0])a=e.slice(1),r=new i(a),(h=c._transformX(!0,r)).compressed=!0;else{if(2!==e[0])throw new TypeError("Invalid DER format public key");a=e.slice(1),r=new i(a),(h=c._transformX(!1,r)).compressed=!0}else{if(a=e.slice(1,33),s=e.slice(33,65),32!==a.length||32!==s.length||65!==e.length)throw new TypeError("Length of x and y must be 32 bytes");r=new i(a),o=new i(s),h.point=new n(r,o),h.compressed=!1}return h},c._transformX=function(e,t){u.checkArgument("boolean"==typeof e,"Must specify whether y is odd or not (true or false)");var r={};return r.point=n.fromX(e,t),r},c._transformObject=function(e){var t=new i(e.x,"hex"),r=new i(e.y,"hex");return new c(new n(t,r),{compressed:e.compressed})},c.fromPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");var t=c._transformPrivateKey(e);return new c(t.point,{compressed:t.compressed,network:t.network})},c.fromDER=c.fromBuffer=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");var r=c._transformDER(e,t);return new c(r.point,{compressed:r.compressed})},c.fromPoint=function(e,t){return u.checkArgument(e instanceof n,"First argument must be an instance of Point."),new c(e,{compressed:t})},c.fromString=function(e,r){var i=t.from(e,r||"hex"),n=c._transformDER(i);return new c(n.point,{compressed:n.compressed})},c.fromX=function(e,t){var r=c._transformX(e,t);return new c(r.point,{compressed:r.compressed})},c.getValidationError=function(e){var t;try{new c(e)}catch(e){t=e}return t},c.isValid=function(e){return!c.getValidationError(e)},c.prototype.toObject=c.prototype.toJSON=function(){return{x:this.point.getX().toString("hex",2),y:this.point.getY().toString("hex",2),compressed:this.compressed}},c.prototype.toBuffer=c.prototype.toDER=function(){var e,r=this.point.getX(),i=this.point.getY(),n=r.toBuffer({size:32}),o=i.toBuffer({size:32});return this.compressed?(e=o[o.length-1]%2?t.from([3]):t.from([2]),t.concat([e,n])):(e=t.from([4]),t.concat([e,n,o]))},c.prototype._getID=function(){return o.sha256ripemd160(this.toBuffer())},c.prototype.toAddress=function(e){return r(16).fromPublicKey(this,e||this.network)},c.prototype.toString=function(){return this.toDER().toString("hex")},c.prototype.inspect=function(){return""},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(9),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(71).Transform,o=r(75).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(11),o=r(22),a=r(31),s=r(30),f=r(8),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(84),m=r(85),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(27),n=r(34);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(42),a=r(9),s=r(15),f=r(29),u=r(13),c=r(11);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(39).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(26),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(160),i.short=r(161),i.mont=r(162),i.edwards=r(163)},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(70);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(79),s=r(108),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(16),o=r(52),a=r(7),s=r(15),f=r(36),u=r(38),c=r(29),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(132),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(84),e.exports.Input=r(85),e.exports.Output=r(31),e.exports.UnspentOutput=r(134),e.exports.Signature=r(54),e.exports.Sighash=r(33),e.exports.SighashWitness=r(86),e.exports.RegisterAccountTx=r(135),e.exports.CommonTx=r(138),e.exports.ContractTx=r(139),e.exports.DelegateTx=r(140)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(9),a=r(30),s=r(8),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(72).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(73),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(98)).Stream=t,t.Readable=t,t.Writable=r(74),t.Duplex=r(35),t.Transform=r(102),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(59);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(99),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(100);function m(){}function g(e,t){s=s||r(35),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(35),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(26),r(101).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(97),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(103),t.sha384=r(192),t.sha512=r(104)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(114);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(112),GCM:r(112)},n=r(114);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(14),n=r(40);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(28),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(9),a=r(15);function s(e){if(!(this instanceof s))return new s(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+typeof e+'" for Opcode');t=s.map[e]}return a.defineImmutable(this,{num:t}),this}for(var f in s.fromBuffer=function(e){return n.checkArgument(o.isBuffer(e)),new s(Number("0x"+e.toString("hex")))},s.fromNumber=function(e){return n.checkArgument(i.isNumber(e)),new s(e)},s.fromString=function(e){n.checkArgument(i.isString(e));var t=s.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new s(t)},s.prototype.toHex=function(){return this.num.toString(16)},s.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},s.prototype.toNumber=function(){return this.num},s.prototype.toString=function(){var e=s.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},s.smallInt=function(e){return n.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),n.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?s("OP_0"):new s(s.map.OP_1+e-1)},s.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},s.reverseMap=[],s.map)s.reverseMap[s.map[f]]=f;i.extend(s,s.map),s.isSmallIntOp=function(e){return e instanceof s&&(e=e.toNumber()),e===s.map.OP_0||e>=s.map.OP_1&&e<=s.map.OP_16},s.prototype.inspect=function(){return""},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(13),f=r(9),u=r(15),c=r(30),h=r(8),d=r(5),l=r(11),p=r(33),b=r(86),m=r(16),g=r(134),v=r(85),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(31),x=r(22),k=r(64),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(11),n=(r(22),r(31),r(30)),o=r(8),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(25),n=r(0),o=r(1),a=r(2),s=r(7),f=r(65),u=r(52),c=r(5),h=r(36),d=r(38),l=r(64),p=r(55),b=r(13),m=b.HDPrivateKey,g=r(9),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(142);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");s=s||d._mnemonic(n,r),Object.defineProperty(this,"wordlist",{configurable:!1,value:r}),Object.defineProperty(this,"phrase",{configurable:!1,value:s})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(45),o=r(94),a=r(34),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(59);e.exports=y;var o,a=r(91);y.ReadableState=v;r(72).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(99),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(100);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(35));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(75).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(35),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(35),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(32),a=r(4).Buffer,s=r(106),f=r(76),u=r(77),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(26))},function(e,t,r){var i=r(106),n=r(76),o=r(77),a=r(109),s=r(110),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(14),n=r(119);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(28).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(28),n=r(49),o=r(121),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==s.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+s(r).toString():n=n+" "+s(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},g.prototype.toASM=function(){for(var e="",t=0;t"},g.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==s.OP_DUP||this.chunks[1].opcodenum!==s.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==s.OP_EQUALVERIFY||this.chunks[4].opcodenum!==s.OP_CHECKSIG)},g.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},g.prototype.getPublicKey=function(){return h.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},g.prototype.getPublicKeyHash=function(){return h.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},g.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===s.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},g.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},g.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===s.OP_HASH160&&20===e[1]&&e[e.length-1]===s.OP_EQUAL},g.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},g.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},g.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===s.OP_0||t[0]>=s.OP_1&&t[0]<=s.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},g.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=g.fromBuffer(t)}catch(e){if(e instanceof l.Script.InvalidBuffer)return!1;throw e}return e.classify()!==g.types.UNKNOWN},g.prototype.isMultisigOut=function(){return this.chunks.length>3&&s.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&b.isBuffer(e.buf)})&&s.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===s.OP_CHECKMULTISIG},g.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&b.isBuffer(e.buf)&&u.isTxDER(e.buf)})},g.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===s.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=g.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},g.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return d.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},g.prototype.isPushOnly=function(){return d.every(this.chunks,function(e){return e.opcodenum<=s.OP_16})},(g.types={}).UNKNOWN="Unknown",g.types.PUBKEY_OUT="Pay to public key",g.types.PUBKEY_IN="Spend from public key",g.types.PUBKEYHASH_OUT="Pay to public key hash",g.types.PUBKEYHASH_IN="Spend from public key hash",g.types.SCRIPTHASH_OUT="Pay to script hash",g.types.SCRIPTHASH_IN="Spend from script hash",g.types.MULTISIG_OUT="Pay to multisig",g.types.MULTISIG_IN="Spend from multisig",g.types.DATA_OUT="Data push",g.OP_RETURN_STANDARD_SIZE=80,g.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=g.types.UNKNOWN?e:this.classifyInput()},(g.outputIdentifiers={}).PUBKEY_OUT=g.prototype.isPublicKeyOut,g.outputIdentifiers.PUBKEYHASH_OUT=g.prototype.isPublicKeyHashOut,g.outputIdentifiers.MULTISIG_OUT=g.prototype.isMultisigOut,g.outputIdentifiers.SCRIPTHASH_OUT=g.prototype.isScriptHashOut,g.outputIdentifiers.DATA_OUT=g.prototype.isDataOut,g.prototype.classifyOutput=function(){for(var e in g.outputIdentifiers)if(g.outputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},(g.inputIdentifiers={}).PUBKEY_IN=g.prototype.isPublicKeyIn,g.inputIdentifiers.PUBKEYHASH_IN=g.prototype.isPublicKeyHashIn,g.inputIdentifiers.MULTISIG_IN=g.prototype.isMultisigIn,g.inputIdentifiers.SCRIPTHASH_IN=g.prototype.isScriptHashIn,g.prototype.classifyInput=function(){for(var e in g.inputIdentifiers)if(g.inputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},g.prototype.isStandard=function(){return this.classify()!==g.types.UNKNOWN},g.prototype.prepend=function(e){return this._addByType(e,!0),this},g.prototype.equals=function(e){if(h.checkState(e instanceof g,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===s.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===s.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===s.OP_PUSHDATA1:!(r.length<=65535)||i===s.OP_PUSHDATA2)},g.prototype._decodeOP_N=function(e){if(e===s.OP_0)return 0;if(e>=s.OP_1&&e<=s.OP_16)return e-(s.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},g.prototype.getSignatureOperationsCount=function(e){e=!!d.isUndefined(e)||e;var t=this,r=0,i=s.OP_INVALIDOPCODE;return d.each(t.chunks,function(n){var o=n.opcodenum;o==s.OP_CHECKSIG||o==s.OP_CHECKSIGVERIFY?r++:o!=s.OP_CHECKMULTISIG&&o!=s.OP_CHECKMULTISIGVERIFY||(e&&i>=s.OP_1&&i<=s.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=g}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(16),f=r(87);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=r(16),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(12),r(5)),a=r(10),s=r(24),f=r(13),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=y.Hardened||t)throw new b.InvalidIndexCantDeriveHardened;if(e<0)throw new b.InvalidPath(e);var r,i=v.integerAsBuffer(e),n=v.concat([this.publicKey.toBuffer(),i]),a=f.sha512hmac(n,this._buffers.chainCode),s=o.fromBuffer(a.slice(0,32),{size:32}),u=a.slice(32,64);try{r=d.fromPoint(h.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new y({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},y.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new b.InvalidIndexCantDeriveHardened;if(!y.isValidPath(e))throw new b.InvalidPath(e);return u._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},y.isValidSerialized=function(e,t){return i.isNull(y.getSerializedError(e,t))},y.getSerializedError=function(e,t){if(!i.isString(e)&&!v.isBuffer(e))return new b.UnrecognizedArgument("expected buffer or string");if(!a.validCharacters(e))return new p.InvalidB58Char("(unknown)",e);try{e=s.decode(e)}catch(t){return new p.InvalidB58Checksum(e)}if(e.length!==y.DataSize)return new b.InvalidLength(e);if(!i.isUndefined(t)){var r=y._validateNetwork(e,t);if(r)return r}var n=v.integerFromBuffer(e.slice(0,4));return n===c.livenet.xprivkey||n===c.testnet.xprivkey?new b.ArgumentIsPrivateExtended:null},y._validateNetwork=function(e,t){var r=c.get(t);if(!r)return new p.InvalidNetworkArgument(t);var i=e.slice(y.VersionStart,y.VersionEnd);return v.integerFromBuffer(i)!==r.xpubkey?new p.InvalidNetwork(i):null},y.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=h.getG().mul(o.fromBuffer(t.privateKey));return t.publicKey=h.pointToCompressed(r),t.version=v.integerAsBuffer(c.get(v.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},y.prototype._buildFromObject=function(e){var t={version:e.network?v.integerAsBuffer(c.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?v.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?v.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?v.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?v.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?v.hexToBuffer(e.publicKey):v.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?v.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},y.prototype._buildFromSerialized=function(e){var t=s.decode(e),r={version:t.slice(y.VersionStart,y.VersionEnd),depth:t.slice(y.DepthStart,y.DepthEnd),parentFingerPrint:t.slice(y.ParentFingerPrintStart,y.ParentFingerPrintEnd),childIndex:t.slice(y.ChildIndexStart,y.ChildIndexEnd),chainCode:t.slice(y.ChainCodeStart,y.ChainCodeEnd),publicKey:t.slice(y.PublicKeyStart,y.PublicKeyEnd),checksum:t.slice(y.ChecksumStart,y.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),g.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=v.concat(r),n=s.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new p.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=c.get(v.integerFromBuffer(e.version));o=s.encode(v.concat(r)),e.xpubkey=t.from(o);var u=new d(e.publicKey,{network:a}),h=y.ParentFingerPrintSize,l=f.sha256ripemd160(u.toBuffer()).slice(0,h);return g.defineImmutable(this,{xpubkey:o,network:a,depth:v.integerFromSingleByteBuffer(e.depth),publicKey:u,fingerPrint:l}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(v.isBuffer(i),t+" argument is not a buffer, it's "+typeof i),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("publicKey",y.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.fromString=function(e){return n.checkArgument(i.isString(e),"No valid string was provided"),new y(e)},y.fromObject=function(e){return n.checkArgument(i.isObject(e),"No valid argument was provided"),new y(e)},y.prototype.toString=function(){return this.xpubkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:c.get(v.integerFromBuffer(this._buffers.version)).name,depth:v.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:v.integerFromBuffer(this.fingerPrint),parentFingerPrint:v.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:v.integerFromBuffer(this._buffers.childIndex),chainCode:v.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:v.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},y.fromBuffer=function(e){return new y(e)},y.prototype.toBuffer=function(){return v.copy(this._buffers.xpubkey)},y.Hardened=2147483648,y.RootElementAlias=["m","M"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PublicKeySize=33,y.CheckSumSize=4,y.DataSize=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PublicKeyStart=y.ChainCodeEnd,y.PublicKeyEnd=y.PublicKeyStart+y.PublicKeySize,y.ChecksumStart=y.PublicKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,m(y.PublicKeyEnd===y.DataSize),m(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(39),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(148);e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(92),a=r(16),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(144),l=r(88),p=r(9),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(135)},3:{txName:"COMMON_TX",txAction:r(138)},4:{txName:"CONTRACT_TX",txAction:r(139)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(140)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},16:{txName:"PRICE_FEED_TX",txAction:r(322)},21:{txName:"CDP_STAKE_TX",txAction:r(323)},22:{txName:"CDP_REDEEMP_TX",txAction:r(324)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(325)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(326)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(327)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(328)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(329)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(330)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e,t,r){"use strict";(function(t,i){var n=e.exports;n.version="v"+r(152).version,n.versionGuard=function(e){if(void 0!==e){throw new Error("More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.")}},n.versionGuard(t._bitcore),t._bitcore=n.version,n.crypto={},n.crypto.BN=r(7),n.crypto.ECDSA=r(10),n.crypto.Hash=r(5),n.crypto.Random=r(55),n.crypto.Point=r(38),n.crypto.Signature=r(11),n.encoding={},n.encoding.Base58=r(65),n.encoding.Base58Check=r(52),n.encoding.BufferReader=r(30),n.encoding.BufferWriter=r(8),n.encoding.Varint=r(270),n.util={},n.util.buffer=r(9),n.util.js=r(15),n.util.preconditions=r(2),n.util.util=r(12),n.util.BetItem=r(136),n.util.VoteFund=r(137),n.util.WriterHelper=r(24),n.errors=r(13),n.Address=r(16),n.Block=r(271),n.MerkleBlock=r(141),n.BlockHeader=r(67),n.HDPrivateKey=r(88),n.HDPublicKey=r(142),n.Networks=r(36),n.Opcode=r(83),n.PrivateKey=r(64),n.PublicKey=r(29),n.Script=r(22),n.Transaction=r(66),n.URI=r(273),n.Unit=r(87),n.deps={},n.deps.bnjs=r(23),n.deps.bs58=r(132),n.deps.Buffer=i,n.deps.elliptic=r(20),n.deps._=r(1),n.Transaction.sighash=r(33),n.Mnemonic=r(92)}).call(this,r(19),r(0).Buffer)},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT"}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(155);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},__npminstall_done:"Wed Oct 23 2019 20:43:02 GMT+0800 (GMT+08:00)",_from:"elliptic@6.4.0",_resolved:"https://registry.npm.taobao.org/elliptic/download/elliptic-6.4.0.tgz?cache=0&sync_timestamp=1567592249994&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felliptic%2Fdownload%2Felliptic-6.4.0.tgz"}},function(e,t,r){"use strict";var i=t,n=r(23),o=r(34),a=r(93);i.assert=o,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){for(var r=[],i=1<=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(58),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(58),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(69),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(95),t.sha384=r(168),t.sha512=r(96)},function(e,t,r){"use strict";var i=r(27),n=r(45),o=r(94),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(69),n=r(93),o=r(34);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(69),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(103),o=r(41),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(41),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(32),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(115),n=r(4).Buffer,o=r(80),a=r(116),s=r(32),f=r(60),u=r(61);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(117),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(14),n=new(r(118)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(117),h=r(40);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(14),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(62),n=r(14),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(62),n=r(18),o=r(14),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(82),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(122),t.sha384=r(230),t.sha512=r(123)},function(e,t,r){"use strict";var i=r(28),n=r(49),o=r(121),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(82),n=r(120),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(14),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(82),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(63),n=r(129),o=r(130),a=r(14),s=r(81),f=r(46),u=r(131),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(40),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(26))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(274),o=r(16),a=r(87),s=function(e,t){if(!(this instanceof s))return new s(e,t);if(this.extras={},this.knownParams=t||[],this.address=this.network=this.amount=this.message=null,"string"==typeof e){var r=s.parse(e);r.amount&&(r.amount=this._parseAmount(r.amount)),this._fromObject(r)}else{if("object"!=typeof e)throw new TypeError("Unrecognized data format.");this._fromObject(e)}};s.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new s(e)},s.fromObject=function(e){return new s(e)},s.isValid=function(e,t){try{new s(e,t)}catch(e){return!1}return!0},s.parse=function(e){var t=n.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},s.Members=["address","amount","message","label","r"],s.prototype._fromObject=function(e){if(!o.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new o(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(s.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},s.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return a.fromBTC(e).toSatoshis()},s.prototype.toObject=s.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=s},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(145),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(68),r(146),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), +/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=n.create([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]),f=n.create([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=n.create([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]),c=n.create([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]),h=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(89),r(90),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(17),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(12),r(5)),a=r(10),s=r(24),f=(r(13),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=(r(16),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=(r(12),r(5)),a=r(10),s=r(24),f=(r(13),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=r(5),s=r(10),f=r(8),u=r(9),c=r(24),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=r(24),c=(r(16),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.feedPriceData=r.feedPriceData,this.network=r.network,this});c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new errors.InvalidArgument("srcRegId","Invalid reg id");return c._checkFeedPriceData(e.feedPriceData),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,feedPriceData:e.feedPriceData}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var t=o.writeVarInt(4,this.nValidHeight);e.write(t);var r=o.splitRegID(this.srcRegId);if(i.isNull(r.height)||i.isUndefined(r.height))return!1;var n=new f,s=o.writeVarInt(4,r.height);n.write(s);var c=o.writeVarInt(2,r.index);n.write(c);var h=n.toBuffer();e.writeUInt8(h.length),e.write(h),e.writeFeedPriceData(this.feedPriceData);var d=e.toBuffer();return a.sha256sha256(d)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c._checkFeedPriceData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new errors.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;t - - - - - - - - - - - - - - - -``` - -## Building Custom Bundles -If you want to use a specific version of a module, instead of a release version (not recommended), you must run browserify yourself. You can get a minified browser bundle by running the following on the project root folder. - -```sh -browserify --require ./index.js:bitcore-lib | uglifyjs > bitcore-lib.min.js -``` - -```sh -browserify --require ./index.js:bitcore-mnemonic --external bitcore-lib | uglifyjs > bitcore-mnemonic.min.js -``` - -In many of the modules you can also run the command to build a browser bundle: -```sh -gulp browser -``` diff --git a/docs/crypto.md b/docs/crypto.md deleted file mode 100644 index 8dc4ecd..0000000 --- a/docs/crypto.md +++ /dev/null @@ -1,17 +0,0 @@ -# Bitcoin Crypto -The cryptographic primitives (ECDSA and HMAC) implementations in this package have been reviewed by the BitPay engineering team. More audits and reviews are welcomed. - -## Random -The `bitcore.crypto.Random` namespace contains a single function, named `getRandomBuffer(size)` that returns a `Buffer` instance with random bytes. It may not work depending on the engine that bitcore is running on (doesn't work with IE versions lesser than 11). - -## BN -The `bitcore.crypto.BN` class contains a wrapper around [bn.js](https://github.com/indutny/bn.js), the bignum library used internally in bitcore. - -## Point -The `bitcore.crypto.Point` class contains a wrapper around the class Point of [elliptic.js](https://github.com/indutny/elliptic), the elliptic curve library used internally in bitcore. - -## Hash -The `bitcore.crypto.Hash` namespace contains a set of hashes and utilities. These are either the native `crypto` hash functions from `node.js` or their respective browser shims as provided by the `browserify` library. - -## ECDSA -`bitcore.crypto.ECDSA` contains a pure JavaScript implementation of the elliptic curve DSA signature scheme based on [elliptic.js](https://github.com/indutny/elliptic). diff --git a/docs/encoding.md b/docs/encoding.md deleted file mode 100644 index b41d4bf..0000000 --- a/docs/encoding.md +++ /dev/null @@ -1,8 +0,0 @@ -# Encoding -The `bitcore.Encoding` namespace contains utilities for encoding information in common formats in the bitcoin ecosystem. - -## Base58 & Base58Check -Two classes are provided: `Base58` and `Base58Check`. The first one merely encodes/decodes a set of bytes in base58 format. The second one will also take the double `sha256` hash of the information and append the last 4 bytes of the hash as a checksum when encoding, and check this checksum when decoding. - -## BufferReader & BufferWriter -These classes are used internally to write information in buffers. diff --git a/docs/examples.md b/docs/examples.md deleted file mode 100644 index 82f4774..0000000 --- a/docs/examples.md +++ /dev/null @@ -1,113 +0,0 @@ -# Bitcore examples - -## Generate a random address -```javascript -var privateKey = new bitcore.PrivateKey(); - -var address = privateKey.toAddress(); -``` - -## Generate a address from a SHA256 hash -```javascript -var value = Buffer.from('correct horse battery staple'); -var hash = bitcore.crypto.Hash.sha256(value); -var bn = bitcore.crypto.BN.fromBuffer(hash); - -var address = new bitcore.PrivateKey(bn).toAddress(); -``` - -## Import an address via WIF -```javascript -var wif = 'Kxr9tQED9H44gCmp6HAdmemAzU3n84H3dGkuWTKvE23JgHMW8gct'; - -var address = new bitcore.PrivateKey(wif).toAddress(); -``` - -## Create a Transaction -```javascript -var privateKey = new bitcore.PrivateKey('L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy'); -var utxo = { - "txId" : "115e8f72f39fad874cfab0deed11a80f24f967a84079fb56ddf53ea02e308986", - "outputIndex" : 0, - "address" : "17XBj6iFEsf8kzDMGQk5ghZipxX49VXuaV", - "script" : "76a91447862fe165e6121af80d5dde1ecb478ed170565b88ac", - "satoshis" : 50000 -}; - -var transaction = new bitcore.Transaction() - .from(utxo) - .to('1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK', 15000) - .sign(privateKey); -``` - -## Sign a Bitcoin message -```javascript -var Message = require('bitcore-message'); - -var privateKey = new bitcore.PrivateKey('L23PpjkBQqpAF4vbMHNfTZAb3KFPBSawQ7KinFTzz7dxq6TZX8UA'); -var message = new Message('This is an example of a signed message.'); - -var signature = message.sign(privateKey); -``` - -## Verify a Bitcoin message -```javascript -var Message = require('bitcore-message'); - -var address = '13Js7D3q4KvfSqgKN8LpNq57gcahrVc5JZ'; -var signature = 'IBOvIfsAs/da1e36W8kw1cQOPqPVXCW5zJgNQ5kI8m57FycZXdeFmeyoIqJSREzE4W7vfDmdmPk0HokuJPvgPPE='; - -var verified = new Message('This is an example of a signed message.').verify(address, signature); - ``` - -## Create an OP RETURN transaction -```javascript -var privateKey = new bitcore.PrivateKey('L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy'); -var utxo = { - "txId" : "115e8f72f39fad874cfab0deed11a80f24f967a84079fb56ddf53ea02e308986", - "outputIndex" : 0, - "address" : "17XBj6iFEsf8kzDMGQk5ghZipxX49VXuaV", - "script" : "76a91447862fe165e6121af80d5dde1ecb478ed170565b88ac", - "satoshis" : 50000 -}; - -var transaction = new bitcore.Transaction() - .from(utxo) - .addData('bitcore rocks') // Add OP_RETURN data - .sign(privateKey); -``` - -## Create a 2-of-3 multisig P2SH address -```javascript -var publicKeys = [ - '026477115981fe981a6918a6297d9803c4dc04f328f22041bedff886bbc2962e01', - '02c96db2302d19b43d4c69368babace7854cc84eb9e061cde51cfa77ca4a22b8b9', - '03c6103b3b83e4a24a0e33a4df246ef11772f9992663db0c35759a5e2ebf68d8e9' -]; -var requiredSignatures = 2; - -var address = new bitcore.Address(publicKeys, requiredSignatures); -``` - -## Spend from a 2-of-2 multisig P2SH address -```javascript -var privateKeys = [ - new bitcore.PrivateKey('91avARGdfge8E4tZfYLoxeJ5sGBdNJQH4kvjJoQFacbgwmaKkrx'), - new bitcore.PrivateKey('91avARGdfge8E4tZfYLoxeJ5sGBdNJQH4kvjJoQFacbgww7vXtT') -]; -var publicKeys = privateKeys.map(bitcore.PublicKey); -var address = new bitcore.Address(publicKeys, 2); // 2 of 2 - -var utxo = { - "txId" : "153068cdd81b73ec9d8dcce27f2c77ddda12dee3db424bff5cafdbe9f01c1756", - "outputIndex" : 0, - "address" : address.toString(), - "script" : new bitcore.Script(address).toHex(), - "satoshis" : 20000 -}; - -var transaction = new bitcore.Transaction() - .from(utxo, publicKeys, 2) - .to('mtoKs9V381UAhUia3d7Vb9GNak8Qvmcsme', 20000) - .sign(privateKeys); -``` diff --git a/docs/hierarchical.md b/docs/hierarchical.md deleted file mode 100644 index 73972d4..0000000 --- a/docs/hierarchical.md +++ /dev/null @@ -1,52 +0,0 @@ -# HDKeys -Create and derive extended public and private keys according to the BIP32 standard for Hierarchical Deterministic (HD) keys. - -## Hierarchically Derived Keys -Bitcore provides full support for [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki), allowing for many key management schemas that benefit from this property. Please be sure to read and understand the basic concepts and the warnings on that BIP before using these classes. - -## HDPrivateKey -An instance of a [PrivateKey](privatekey.md) that also contains information required to derive child keys. - -Sample usage: - -```javascript -var bitcore = require('bitcore'); -var HDPrivateKey = bitcore.HDPrivateKey; - -var hdPrivateKey = new HDPrivateKey(); -var retrieved = new HDPrivateKey('xpriv...'); -var derived = hdPrivateKey.derive("m/0'"); // see deprecation warning for derive -var derivedByNumber = hdPrivateKey.derive(1).derive(2, true); -var derivedByArgument = hdPrivateKey.derive("m/1/2'"); -assert(derivedByNumber.xprivkey === derivedByArgument.xprivkey); - -var address = derived.privateKey.toAddress(); - -// obtain HDPublicKey -var hdPublicKey = hdPrivateKey.hdPublicKey; -``` - -## HDPublicKey -An instance of a PublicKey that can be derived to build extended public keys. Note that hardened paths are not available when deriving an HDPublicKey. - -```javascript -var hdPrivateKey = new HDPrivateKey(); -var hdPublicKey = hdPrivateKey.hdPublicKey; -try { - new HDPublicKey(); -} catch(e) { - console.log("Can't generate a public key without a private key"); -} - -var address = new Address(hdPublicKey.publicKey, Networks.livenet); -var derivedAddress = new Address(hdPublicKey.derive(100).publicKey, Networks.testnet); // see deprecation warning for derive -``` - -## Deprecation Warning for `HDPublicKey.derive()` and `HDPrivateKey.derive()` - - -There was a bug that was discovered with derivation that would incorrectly calculate the child key against the [BIP32 specification](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki). -The bug only affected hardened derivations using an extended private key, and did not affect public key derivation. It also did not affect every derivation and would happen 1 in 256 times where where the private key for the extended private key had a leading zero *(e.g. any private key less than or equal to '0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')*. The leading zero was not included in serialization before hashing to derive a child key, as it should have been. - -As a result, `HDPublicKey.derive()` and `HDPrivateKey.derive()` are now deprecated. These methods will throw an error in the next major release. -`HDPublicKey.deriveChild()`, `HDPrivateKey.deriveChild()`, and `HDPrivateKey.deriveNonCompliantChild()` have been implemented as alternatives. Note that these new methods will not be officially supported until v1.0.0. `deriveNonCompliantChild` will derive using the non-BIP32 derivation and is equivalent to the buggy version, `derive`. The `deriveNonCompliantChild` method should not be used unless you're upgrading and need to maintain compatibility with the old derivation. diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index fbadbd8..0000000 --- a/docs/index.md +++ /dev/null @@ -1,104 +0,0 @@ -# Bitcore v0.15.0 - -## Principles - -Bitcoin is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services. Bitcore provides a reliable API for JavaScript apps that need to interface with Bitcoin. - -To get started, just `npm install bitcore` or `bower install bitcore`. - -# Documentation Index - -## Addresses and Key Management - -* [Addresses](address.md) -* [Using Different Networks](networks.md) -* [Private Keys](privatekey.md) and [Public Keys](publickey.md) -* [Hierarchically-derived Private and Public Keys](hierarchical.md) - -## Payment Handling -* [Using Different Units](unit.md) -* [Acknowledging and Requesting Payments: Bitcoin URIs](uri.md) -* [The Transaction Class](transaction.md) - -## Bitcoin Internals -* [Scripts](script.md) -* [Block](block.md) - -## Extra -* [Crypto](crypto.md) -* [Encoding](encoding.md) - -## Module Development -* [Browser Builds](browser.md) - -## Modules - -Some functionality is implemented as a module that can be installed separately: - -* [Payment Protocol Support](https://github.com/bitpay/bitcore-payment-protocol) -* [Peer to Peer Networking](https://github.com/bitpay/bitcore-p2p) -* [Bitcoin Core JSON-RPC](https://github.com/bitpay/bitcoind-rpc) -* [Payment Channels](https://github.com/bitpay/bitcore-channel) -* [Mnemonics](https://github.com/bitpay/bitcore-mnemonic) -* [Elliptical Curve Integrated Encryption Scheme](https://github.com/bitpay/bitcore-ecies) -* [Blockchain Explorers](https://github.com/bitpay/bitcore-explorers) -* [Signed Messages](https://github.com/bitpay/bitcore-message) - -# Examples - -## Create and Save a Private Key - -```javascript -var privateKey = new bitcore.PrivateKey(); - -var exported = privateKey.toWIF(); -// e.g. L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m -var imported = bitcore.PrivateKey.fromWIF(exported); -var hexa = privateKey.toString(); -// e.g. 'b9de6e778fe92aa7edb69395556f843f1dce0448350112e14906efc2a80fa61a' -``` - -## Create an Address - -```javascript -var address = privateKey.toAddress(); -``` - -## Create a Multisig Address - -```javascript -// Build a 2-of-3 address from public keys -var p2shAddress = new bitcore.Address([publicKey1, publicKey2, publicKey3], 2); -``` - -## Request a Payment - -```javascript -var paymentInfo = { - address: '1DNtTk4PUCGAdiNETAzQFWZiy2fCHtGnPx', - amount: 120000 //satoshis -}; -var uri = new bitcore.URI(paymentInfo).toString(); -``` - -## Create a Transaction - -```javascript -var transaction = new Transaction() - .from(utxos) // Feed information about what unspent outputs one can use - .to(address, amount) // Add an output with the given amount of satoshis - .change(address) // Sets up a change address where the rest of the funds will go - .sign(privkeySet) // Signs all the inputs it can -``` - -## Connect to the Network - -```javascript -var peer = new Peer('5.9.85.34'); - -peer.on('inv', function(message) { - // new inventory -}); - -peer.connect(); -``` diff --git a/docs/networks.md b/docs/networks.md deleted file mode 100644 index e8a54e2..0000000 --- a/docs/networks.md +++ /dev/null @@ -1,55 +0,0 @@ -# Networks -Bitcore provides support for the main bitcoin network as well as for `testnet3`, the current test blockchain. We encourage the use of `Networks.livenet` and `Networks.testnet` as constants. Note that the library sometimes may check for equality against this object. Please avoid creating a deep copy of this object. - -The `Network` namespace has a function, `get(...)` that returns an instance of a `Network` or `undefined`. The only argument to this function is some kind of identifier of the network: either its name, a reference to a Network object, or a number used as a magic constant to identify the network (for example, the value `0` that gives bitcoin addresses the distinctive `'1'` at its beginning on livenet, is a `0x6F` for testnet). - -## Regtest - -The regtest network is useful for development as it's possible to programmatically and instantly generate blocks for testing. It's currently supported as a variation of testnet. Here is an example of how to use regtest with the Bitcore Library: - -```js -// Standard testnet -> bitcore.Networks.testnet.networkMagic; - -``` - -```js -// Enabling testnet to use the regtest port and magicNumber -> bitcore.Networks.enableRegtest(); -> bitcore.Networks.testnet.networkMagic; - -``` - -## Setting the Default Network -Most projects will only need to work with one of the networks. The value of `Networks.defaultNetwork` can be set to `Networks.testnet` if the project will need to only to work on testnet (the default is `Networks.livenet`). - -## Network constants -The functionality of testnet and livenet is mostly similar (except for some relaxed block validation rules on testnet). They differ in the constants being used for human representation of base58 encoded strings. These are sometimes referred to as "version" constants. - -Take a look at this modified snippet from [networks.js](https://github.com/bitpay/bitcore/blob/master/lib/networks.js) - -```javascript -var livenet = new Network(); -_.extend(livenet, { - name: 'livenet', - alias: 'mainnet', - pubkeyhash: 0x00, - privatekey: 0x80, - scripthash: 0x05, - xpubkey: 0x0488b21e, - xprivkey: 0x0488ade4, - port: 8333 -}); - -var testnet = new Network(); -_.extend(testnet, { - name: 'testnet', - alias: 'testnet', - pubkeyhash: 0x6f, - privatekey: 0xef, - scripthash: 0xc4, - xpubkey: 0x043587cf, - xprivkey: 0x04358394, - port: 18333 -}); -``` diff --git a/docs/privatekey.md b/docs/privatekey.md deleted file mode 100644 index f813345..0000000 --- a/docs/privatekey.md +++ /dev/null @@ -1,47 +0,0 @@ -# Private Key -Represents a bitcoin private key and is needed to be able to spend bitcoin and sign transactions. See the official [Bitcoin Wiki](https://en.bitcoin.it/wiki/Private_key) for more information about private keys. A PrivateKey in Bitcore is an immutable object that has methods to import and export into a variety of formats including [Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format). - -## Instantiate a Private Key -Here is how to create a new private key. It will generate a new random number using `window.crypto` or the Node.js `crypto` library. - -```javascript -var privateKey = new PrivateKey(); - -// Creates a private key from a hexa encoded number -var privateKey2 = new PrivateKey('b221d9dbb083a7f33428d7c2a3c3198ae925614d70210e28716ccaa7cd4ddb79'); -``` - -To export and import a private key, you can do the following: - -```javascript -// encode into wallet export format -var exported = privateKey.toWIF(); - -// instantiate from the exported (and saved) private key -var imported = PrivateKey.fromWIF('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); -``` - -Note: The WIF (Wallet Import Format) includes information about the network and if the associated public key is compressed or uncompressed (thus the same bitcoin address will be generated by using this format). - -To generate an Address or PublicKey from a PrivateKey: - -```javascript -var publicKey = privateKey.toPublicKey(); -var address = publicKey.toAddress(Networks.livenet); -``` - -## Validating a Private Key -The code to do these validations looks like this: - -```javascript -// validate an address -if (PrivateKey.isValid(input)){ - ... -} - -// get the specific validation error that can occurred -var error = PrivateKey.getValidationError(input, Networks.livenet); -if (error) { - // handle the error -} -``` diff --git a/docs/publickey.md b/docs/publickey.md deleted file mode 100644 index 9caf860..0000000 --- a/docs/publickey.md +++ /dev/null @@ -1,59 +0,0 @@ -# Public Key -Represents a bitcoin public key and is needed to be able to receive bitcoin, as is usually represented as a bitcoin [Address](address.md). See the official [Bitcoin Wiki](https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses). - -A PublicKey in Bitcore is an immutable object and can be instantiated from a [Point](crypto.md), string, [PrivateKey](privatekey.md), Buffer or a [BN](crypto.md). - -## Instantiate a Public Key -Here is how to instantiate a public key: - -```javascript - -var privateKey = new PrivateKey(); - -// from a private key -var publicKey = new PublicKey(privateKey); - -// from a der hex encoded string -var publicKey2 = new PublicKey('02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc'); -``` - -## Validating a Public Key -A public key point should be on the [secp256k1](https://en.bitcoin.it/wiki/Secp256k1) curve, instantiating a new PublicKey will validate this and will throw an error if it's invalid. To check that a public key is valid: - -```javascript -if (PublicKey.isValid('02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc')){ - // valid public key -} -``` - -## Compressed vs Uncompressed -It's important to note that there are two possible ways to represent a public key. The standard is _compressed_ and includes the X value and parity (as represented above in the documentation). There is also a longer version that is _uncompressed_ which includes both X and Y values. Using this encoding will generate a different bitcoin address, so be careful when selecting the encoding. Uncompressed public keys start with 0x04; compressed public keys begin with 0x03 or 0x02 depending on whether they're greater or less than the midpoint of the curve. These prefix bytes are all used in official secp256k1 documentation. - -Example: - -```javascript -> var bitcore = require('bitcore'); - -// compressed public key starting with 0x03 (greater than midpoint of curve) -> var compressedPK = bitcore.PublicKey('030589ee559348bd6a7325994f9c8eff12bd'+ - '5d73cc683142bd0dd1a17abc99b0dc'); -> compressedPK.compressed; -true -> compressedPK.toAddress().toString(); -'1KbUJ4x8epz6QqxkmZbTc4f79JbWWz6g37' -// compressed public key starting with 0x02 (smaller than midpoint of curve) -> var compressedPK2 = new bitcore.PublicKey('02a1633cafcc01ebfb6d78e39f687a1f'+ - '0995c62fc95f51ead10a02ee0be551b5dc'); -> compressedPK2.compressed; -true -> compressedPK.toAddress().toString(); -'1KbUJ4x8epz6QqxkmZbTc4f79JbWWz6g37' -// uncompressed public key, starting with 0x04. Contains both X and Y encoded -> var uncompressed = bitcore.PublicKey('0479BE667EF9DCBBAC55A06295CE870B07029'+ - 'BFCDB2DCE28D959F2815B16F81798483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68'+ - '554199C47D08FFB10D4B8'); -> uncompressed.compressed -false -> uncompressed.toAddress().toString() -'1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm' -``` diff --git a/docs/script.md b/docs/script.md deleted file mode 100644 index 7faa1ac..0000000 --- a/docs/script.md +++ /dev/null @@ -1,136 +0,0 @@ -# Script -All bitcoin transactions have scripts embedded into its inputs and outputs. The scripts use a very simple programming language, which is evaluated from left to right using a stack. The language is designed such that it guarantees all scripts will execute in a limited amount of time (it is not Turing-Complete). - -When a transaction is validated, the input scripts are concatenated with the output scripts and evaluated. To be valid, all transaction scripts must evaluate to true. A good analogy for how this works is that the output scripts are puzzles that specify in which conditions can those bitcoins be spent. The input scripts provide the correct data to make those output scripts evaluate to true. - -For more detailed information about the bitcoin scripting language, check the online reference [on bitcoin's wiki](https://en.bitcoin.it/wiki/Script). - -The `Script` object provides an interface to construct, parse, and identify bitcoin scripts. It also gives simple interfaces to create most common script types. This class is useful if you want to create custom input or output scripts. In other case, you should probably use `Transaction`. - -## Script creation -Here's how to use `Script` to create the five most common script types: - -### Pay to Public Key Hash (p2pkh) -This is the most commonly used transaction output script. It's used to pay to a bitcoin address (a bitcoin address is a public key hash encoded in base58check) - -```javascript -// create a new p2pkh paying to a specific address -var address = Address.fromString('1NaTVwXDDUJaXDQajoa9MqHhz4uTxtgK14'); -var script = Script.buildPublicKeyHashOut(address); -assert(script.toString() === 'OP_DUP OP_HASH160 20 0xecae7d092947b7ee4998e254aa48900d26d2ce1d OP_EQUALVERIFY OP_CHECKSIG'); -``` - -### Pay to Public Key (p2pk) -Pay to public key scripts are a simplified form of the p2pkh, but aren't commonly used in new transactions anymore, because p2pkh scripts are more secure (the public key is not revealed until the output is spent). - -```javascript -// create a new p2pk paying to a specific public key -var pubkey = new PublicKey('022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da'); -var script = Script.buildPublicKeyOut(pubkey); -assert(script.toString() === '33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da OP_CHECKSIG'); -``` - -### Pay to Multisig (p2ms) -Multisig outputs allow to share control of bitcoins between several keys. When creating the script, one specifies the public keys that control the funds, and how many of those keys are required to sign off spending transactions to be valid. An output with N public keys of which M are required is called an m-of-n output (For example, 2-of-3, 3-of-5, 4-of-4, etc.) - -Note that regular multisig outputs are rarely used nowadays. The best practice is to use a p2sh multisig output (See Script#toScriptHashOut()). - -```javascript -// create a new 2-of-3 multisig output from 3 given public keys -var pubkeys = [ - new PublicKey('022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da'), - new PublicKey('03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9'), - new PublicKey('021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18'), -]; -var threshold = 2; -var script = Script.buildMultisigOut(pubkeys, threshold); -assert(script.toString() === 'OP_2 33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da' - + ' 33 0x03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9' - + ' 33 0x021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18 OP_3 OP_CHECKMULTISIG'); -``` - -### Pay to Script Hash (p2sh) -Pay to script hash outputs are scripts that contain the hash of another script, called `redeemScript`. To spend bitcoins sent in a p2sh output, the spending transaction must provide a script matching the script hash and data which makes the script evaluate to true. This allows to defer revealing the spending conditions to the moment of spending. It also makes it possible for the receiver to set the conditions to spend those bitcoins. - -Most multisig transactions today use p2sh outputs where the `redeemScript` is a multisig output. - -```javascript -// create a p2sh multisig output -var pubkeys = [ - new PublicKey('022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da'), - new PublicKey('03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9'), - new PublicKey('021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18'), -]; -var redeemScript = Script.buildMultisigOut(pubkeys, 2); -var script = redeemScript.toScriptHashOut(); -assert(script.toString() === 'OP_HASH160 20 0x620a6eeaf538ec9eb89b6ae83f2ed8ef98566a03 OP_EQUAL'); -``` - -### Data output -Data outputs are used to push data into the blockchain. Up to 40 bytes can be pushed in a standard way, but more data can be used, if a miner decides to accept the transaction. - -```javascript -var data = 'hello world!!!'; -var script = Script.buildDataOut(data); -assert(script.toString() === 'OP_RETURN 14 0x68656c6c6f20776f726c64212121' -``` - -### Custom Scripts -To create a custom `Script` instance, you must rely on the lower-level methods `add` and `prepend`. Both methods accept the same parameter types, and insert an opcode or data at the beginning (`prepend`) or end (`add`) of the `Script`. - -``` -var script = Script() - .add('OP_IF') // add an opcode by name - .prepend(114) // add OP_2SWAP by code - .add(Opcode.OP_NOT) // add an opcode object - .add(new Buffer('bacacafe', 'hex')) // add a data buffer (will append the size of the push operation first) - -assert(script.toString() === 'OP_2SWAP OP_IF OP_NOT 4 0xbacacafe'); -``` - -## Script Parsing and Identification -`Script` has an easy interface to parse raw scripts from the network or bitcoind, and to extract useful information. An illustrative example (for more options check the API reference) - -```javascript -var raw_script = new Buffer('5221022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da2103e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e921021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc1853ae', 'hex'); -var s = new Script(raw_script); -console.log(s.toString()); -// 'OP_2 33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da 33 0x03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9 33 0x021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18 OP_3 OP_CHECKMULTISIG' - -s.isPublicKeyHashOut() // false -s.isScriptHashOut() // false -s.isMultisigOut() // true -``` - -## Script Interpreting and Validation -To validate a transaction, the bitcoin network validates all of its inputs and outputs. To validate an input, the input's script is concatenated with the referenced output script, and the result is executed. If at the end of execution the stack contains a 'true' value, then the transaction is valid. You can do this in `bitcore` by using the `Interpreter` class. The entry point (and probably the only interface you'll need for most applications) is the method `Interpreter#verify()`. - -You can use it like this: - -``` -var inputScript = Script('OP_1'); -var outputScript = Script('OP_15 OP_ADD OP_16 OP_EQUAL'); - -var verified = Interpreter().verify(inputScript, outputScript); -// verified will be true -``` - -Note that `verify` expects two scripts: one is the input script (scriptSig) and the other is the output script (scriptPubkey). This is because different conditions are checked for each. - -It also accepts some optional parameters, assuming defaults if not provided: - -``` -// first we create a transaction -var tx = new Transaction() - .from(utxo) - .to(toAddress, 100000) - .sign(privateKey); - -// we then extract the signature from the first input -var inputIndex = 0; -var signature = tx.getSignatures(privateKey)[inputIndex].signature; - -var scriptSig = Script.buildPublicKeyHashIn(publicKey, signature); -var flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_STRICTENC; -var verified = Interpreter().verify(scriptSig, scriptPubkey, tx, inputIndex, flags); -``` diff --git a/docs/transaction.md b/docs/transaction.md deleted file mode 100644 index 91c5db7..0000000 --- a/docs/transaction.md +++ /dev/null @@ -1,177 +0,0 @@ -# Transaction -Bitcore provides a very simple API for creating transactions. We expect this API to be accessible for developers without knowing the working internals of bitcoin in deep detail. What follows is a small introduction to transactions with some basic knowledge required to use this API. - -A Transaction contains a set of inputs and a set of outputs. Each input contains a reference to another transaction's output, and a signature that allows the value referenced in that output to be used in this transaction. - -Note also that an output can be used only once. That's why there's a concept of "change address" in the bitcoin ecosystem: if an output of 10 BTC is available for me to spend, but I only need to transmit 1 BTC, I'll create a transaction with two outputs, one with 1 BTC that I want to spend, and the other with 9 BTC to a change address, so I can spend this 9 BTC with another private key that I own. - -So, in order to transmit a valid transaction, you must know what other transactions on the network store outputs that have not been spent and that are available for you to spend (meaning that you have the set of keys that can validate you own those funds). The unspent outputs are usually referred to as "utxo"s. - -Let's take a look at some very simple transactions: - -```javascript -var transaction = new Transaction() - .from(utxos) // Feed information about what unspent outputs one can use - .to(address, amount) // Add an output with the given amount of satoshis - .change(address) // Sets up a change address where the rest of the funds will go - .sign(privkeySet) // Signs all the inputs it can -``` - -You can obtain the input and output total amounts of the transaction in satoshis by accessing the fields `inputAmount` and `outputAmount`. - -Now, this could just be serialized to hexadecimal ASCII values (`transaction.serialize()`) and sent over to the bitcoind reference client. - -```bash -bitcoin-cli sendrawtransaction -``` - -You can also override the fee estimation with another amount, specified in satoshis: - -```javascript -var transaction = new Transaction().fee(5430); // Minimum non-dust amount -var transaction = new Transaction().fee(1e8); // Generous fee of 1 BTC -``` - -## Multisig Transactions -To send a transaction to a multisig address, the API is the same as in the above example. To spend outputs that require multiple signatures, the process needs extra information: the public keys of the signers that can unlock that output. - -```javascript -var multiSigTx = new Transaction() - .from(utxo, publicKeys, threshold) - .change(address) - .sign(myKeys); - -var serialized = multiSigTx.toObject(); -``` - -This can be serialized and sent to another party, to complete with the needed signatures: - -```javascript -var multiSigTx = new Transaction(serialized) - .sign(anotherSetOfKeys); - -assert(multiSigTx.isFullySigned()); -``` - -Also, you can just send over the signature for your private key: - -```javascript -var multiSigTx = new Transaction() - .from(utxo, publicKeys, threshold) - .change(address); - -var signature = multiSigTx.getSignatures(privateKey)[0]; -console.log(JSON.stringify(signature)); -console.log(signature.toObject()); -console.log(signature.signature.toString()); // Outputs a DER signature -console.log(signature.sigtype); -``` - -Transfer that over the wire, and on the other side, apply it to a transaction: - -```javascript -assert(transaction.isValidSignature(receivedSig)); -transaction.applySignature(receivedSig); -``` - -## Adding inputs -Transaction inputs are instances of either [Input](https://github.com/bitpay/bitcore/tree/master/lib/transaction/input) or its subclasses. `Input` has some abstract methods, as there is no actual concept of a "signed input" in the bitcoin scripting system (just valid signatures for OP_CHECKSIG and similar opcodes). They are stored in the `input` property of `Transaction` instances. - -Bitcore contains two implementations of `Input`, one for spending _Pay to Public Key Hash_ outputs (called `PublicKeyHashInput`) and another to spend _Pay to Script Hash_ outputs for which the redeem script is a Multisig script (called `MultisigScriptHashInput`). - -All inputs have the following five properties: -- `prevTxId`: a `Buffer` with the id of the transaction with the output this input is spending -- `outputIndex`: a `number` the index of the output in the previous transaction -- `sequenceNumber`: a `number`, the sequence number, see [bitcoin's developer guide on nLockTime and the sequence number](https://bitcoin.org/en/developer-guide#locktime-and-sequence-number). -- `script`: the `Script` instance for this input. Usually called `scriptSig` in the bitcoin community. -- `output`: if available, a `Output` instance of the output associated with this input. - -Both `PublicKeyHashInput` and `MultisigScriptHashInput` cache the information about signatures, even though this information could somehow be encoded in the script. Both need to have the `output` property set in order to calculate the `sighash` so signatures can be created. - -Some methods related to adding inputs are: -- `from`: A high level interface to add an input from a UTXO. It has a series of variants: - - `from(utxo)`: add an input from an [Unspent Transaction Output](http://bitcore.io/guide/unspentoutput.html). Currently, only P2PKH outputs are supported. - - `from(utxos)`: same as above, but passing in an array of Unspent Outputs. - - `from(utxo, publicKeys, threshold)`: add an input that spends a UTXO with a P2SH output for a Multisig script. The `publicKeys` argument is an array of public keys, and `threshold` is the number of required signatures in the Multisig script. - -- `addInput`: Performs a series of checks on an input and appends it to the end of the `input` vector and updates the amount of incoming bitcoins of the transaction. -- `uncheckedAddInput`: adds an input to the end of the `input` vector and updates the `inputAmount` without performing any checks. - -### PublicKeyHashInput -This input uses the `script` property to mark the input as unsigned if the script is empty. - -### MultisigScriptHashInput -This input contains a set of signatures in a `signatures` property, and each time a signature is added, a potentially partial and/or invalid script is created. The `isFullySigned` method will only return true if all needed signatures are already added and valid. If `addSignature` is added after all need signatures are already set, an exception will be thrown. - -## Signing a Transaction -The following methods are used to manage signatures for a transaction: -- `getSignatures`: takes an array of `PrivateKey` or strings from which a `PrivateKey` can be instantiated; the transaction to be signed; the kind of [signature hash to use](https://bitcoin.org/en/developer-guide#signature-hash-types). Returns an array of objects with the following properties: - - `signature`: an instance of [Signature](https://github.com/bitpay/bitcore/blob/master/lib/crypto/signature.js) - - `prevTxId`: this input's `prevTxId`, - - `outputIndex`: this input's `outputIndex`, - - `inputIndex`: this input's index in the transaction - - `sigtype`: the "sighash", the type of transaction hash used to calculate the signature - - `publicKey`: a `PublicKey` of the `PrivateKey` used to create the signature - -- `addSignature`: takes an element outputed by `getSignatures` and applies the signature to this input (modifies the script to include the new signature). -- `clearSignatures`: removes all signatures for this input -- `isFullySigned`: returns true if the input is fully signed - -## Handling Outputs -Outputs can be added by: -- The `addOutput(output)` method, which pushes an `Output` to the end of the `outputs` property and updates the `outputAmount` field. It also clears signatures (as the hash of the transaction may have changed) and updates the change output. -- The `to(address, amount)` method, that adds an output with the script that corresponds to the given address. Builds an output and calls the `addOutput` method. -- Specifying a [change address](#Fee_calculation) - -To remove all outputs, you can use `clearOutputs()`, which preserves change output configuration. - -## Serialization -There are a series of methods used for serialization: -- `toObject`: Returns a plain JavaScript object with no methods and enough information to fully restore the state of this transaction. Using other serialization methods (except for `toJSON`) will cause a some information to be lost. -- `toJSON`: Will be called when using `JSON.stringify` to return JSON-encoded string using the output from `toObject`. -- `toString` or `uncheckedSerialize`: Returns an hexadecimal serialization of the transaction, in the [serialization format for bitcoin](https://bitcoin.org/en/developer-reference#raw-transaction-format). -- `serialize`: Does a series of checks before serializing the transaction -- `inspect`: Returns a string with some information about the transaction (currently a string formatted as ``, that only shows the serialized value of the transaction. -- `toBuffer`: Serializes the transaction for sending over the wire in the bitcoin network -- `toBufferWriter`: Uses an already existing BufferWriter to copy over the serialized transaction - -## Serialization Checks -When serializing, the bitcore library performs a series of checks. These can be disabled by providing an object to the `serialize` method with the checks that you'll like to skip. -- `disableLargeFees` avoids checking that the fee is no more than `Transaction.FEE_PER_KB * Transaction.FEE_SECURITY_MARGIN * size_in_kb`. -- `disableSmallFees` avoids checking that the fee is less than `Transaction.FEE_PER_KB * size_in_kb / Transaction.FEE_SECURITY_MARGIN`. -- `disableIsFullySigned` does not check if all inputs are fully signed -- `disableDustOutputs` does not check for dust outputs being generated -- `disableMoreOutputThanInput` avoids checking that the sum of the output amounts is less than or equal to the sum of the amounts for the outputs being spent in the transaction - -These are the current default values in the bitcore library involved on these checks: -- `Transaction.FEE_PER_KB`: `10000` (satoshis per kilobyte) -- `Transaction.FEE_SECURITY_MARGIN`: `15` -- `Transaction.DUST_AMOUNT`: `546` (satoshis) - -## Fee calculation -When outputs' value don't sum up to the same amount that inputs, the difference in bitcoins goes to the miner of the block that includes this transaction. The concept of a "change address" usually is associated with this: an output with an address that can be spent by the creator of the transaction. - -For this reason, some methods in the Transaction class are provided: -- `change(address)`: Set up the change address. This will set an internal `_changeScript` property that will store the change script associated with that address. -- `fee(amount)`: Sets up the exact amount of fee to pay. If no change address is provided, this will raise an exception. -- `getFee()`: returns the estimated fee amount to be paid, based on the size of the transaction, but disregarding the priority of the outputs. - -Internally, a `_changeIndex` property stores the index of the change output (so it can get updated when a new input or output is added). - -## Time-Locking transaction -All bitcoin transactions contain a locktime field. The locktime indicates the earliest time a transaction can be added to the blockchain. Locktime allows signers to create time-locked transactions which will only become valid in the future, giving the signers a chance to change their minds. Locktime can be set in the form of a bitcoin block height (the transaction can only be included in a block with a higher height than specified) or a linux timestamp (transaction can only be confirmed after that time). For more information see [bitcoin's development guide section on locktime](https://bitcoin.org/en/developer-guide#locktime-and-sequence-number). - -In bitcore, you can set a `Transaction`'s locktime by using the methods `Transaction#lockUntilDate` and `Transaction#lockUntilBlockHeight`. You can also get a friendly version of the locktime field via `Transaction#getLockTime`; - -For example: - -```javascript -var future = new Date(2025,10,30); // Sun Nov 30 2025 -var transaction = new Transaction() - .lockUntilDate(future); -console.log(transaction.getLockTime()); -// output similar to: Sun Nov 30 2025 00:00:00 GMT-0300 (ART) -``` - -## Upcoming changes -We're debating an API for Merge Avoidance, CoinJoin, Smart contracts, CoinSwap, and Stealth Addresses. We're expecting to have all of them by some time in 2015. Payment channel creation is available in the [bitcore-channel](https://github.com/bitpay/bitcore-channel) module. diff --git a/docs/unit.md b/docs/unit.md deleted file mode 100644 index 72017c4..0000000 --- a/docs/unit.md +++ /dev/null @@ -1,80 +0,0 @@ -# Unit -Unit is a utility for handling and converting bitcoin units. We strongly recommend to always use satoshis to represent amount inside your application and only convert them to other units in the front-end. - -To understand the need of using the `Unit` class when dealing with unit conversions, see this example: - -``` -> 81.99 * 100000 // wrong -8198999.999999999 -> var bitcore = require('bitcore'); -> var Unit = bitcore.Unit; -> Unit.fromMilis(81.99).toSatoshis() // correct -8199000 -``` - -## Supported units -The supported units are BTC, mBTC, bits (micro BTCs, uBTC) and satoshis. The codes for each unit can be found as members of the Unit class. - -```javascript -var btcCode = Unit.BTC; -var mbtcCode = Unit.mBTC; -var ubtcCode = Unit.uBTC; -var bitsCode = Unit.bits; -var satsCode = Unit.satoshis; -``` - -## Creating units -There are two ways for creating a unit instance. You can instantiate the class using a value and a unit code; alternatively if the unit it's fixed you could you some of the static methods. Check some examples below: - -```javascript -var unit; -var amount = 100; - -// using a unit code -var unitPreference = Unit.BTC; -unit = new Unit(amount, unitPreference); - -// using a known unit -unit = Unit.fromBTC(amount); -unit = Unit.fromMilis(amount); -unit = Unit.fromBits(amount); -unit = Unit.fromSatoshis(amount); -``` - -## Conversion -Once you have a unit instance, you can check its representation in all the available units. For your convenience the classes expose three ways to accomplish this. Using the `.to(unitCode)` method, using a fixed unit like `.toSatoshis()` or by using the accessors. - -```javascript -var unit; - -// using a unit code -var unitPreference = Unit.BTC; -value = Unit.fromSatoshis(amount).to(unitPreference); - -// using a known unit -value = Unit.fromBTC(amount).toBTC(); -value = Unit.fromBTC(amount).toMilis(); -value = Unit.fromBTC(amount).toBits(); -value = Unit.fromBTC(amount).toSatoshis(); - -// using accessors -value = Unit.fromBTC(amount).BTC; -value = Unit.fromBTC(amount).mBTC; -value = Unit.fromBTC(amount).bits; -value = Unit.fromBTC(amount).satoshis; -``` - -## Using a fiat currency -The unit class also provides a convenient alternative to create an instance from a fiat amount and the corresponding BTC/fiat exchange rate. Any unit instance can be converted to a fiat amount by providing the current exchange rate. Check the example below: - -```javascript -var unit, fiat; -var amount = 100; -var exchangeRate = 350; - -unit = new Unit(amount, exchangeRate); -unit = Unit.fromFiat(amount, exchangeRate); - -fiat = Unit.fromBits(amount).atRate(exchangeRate); -fiat = Unit.fromBits(amount).to(exchangeRate); -``` diff --git a/docs/unspentoutput.md b/docs/unspentoutput.md deleted file mode 100644 index 0aac09a..0000000 --- a/docs/unspentoutput.md +++ /dev/null @@ -1,32 +0,0 @@ -# UnspentOutput -`bitcore.Transaction.UnspentOutput` is a class with stateless instances that provides information about an unspent output: -- Transaction ID and output index -- The "scriptPubKey", the script included in the output -- Amount of satoshis associated -- Address, if available - -## Parameters -The constructor is quite permissive with the input arguments. It can take outputs straight out of bitcoind's getunspent RPC call. Some of the names are not very informative for new users, so the UnspentOutput constructor also understands these aliases: -- `scriptPubKey`: just `script` is also accepted -- `amount`: expected value in BTC. If the `satoshis` alias is used, make sure to use satoshis instead of BTC. -- `vout`: this is the index of the output in the transaction, renamed to `outputIndex` -- `txid`: `txId` - -## Example - -```javascript -var utxo = new UnspentOutput({ - "txid" : "a0a08e397203df68392ee95b3f08b0b3b3e2401410a38d46ae0874f74846f2e9", - "vout" : 0, - "address" : "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi", - "scriptPubKey" : "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac", - "amount" : 0.00070000 -}); -var utxo = new UnspentOutput({ - "txId" : "a0a08e397203df68392ee95b3f08b0b3b3e2401410a38d46ae0874f74846f2e9", - "outputIndex" : 0, - "address" : "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi", - "script" : "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac", - "satoshis" : 70000 -}); -``` diff --git a/docs/uri.md b/docs/uri.md deleted file mode 100644 index 9af6242..0000000 --- a/docs/uri.md +++ /dev/null @@ -1,41 +0,0 @@ -# Bitcoin URIs -Represents a bitcoin payment URI. Bitcoin URI strings became the most popular way to share payment request, sometimes as a bitcoin link and others using a QR code. - -URI Examples: - -``` -bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu -bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2 -bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2&message=Payment&label=Satoshi&extra=other-param -``` - -## URI Validation -The main use that we expect you'll have for the `URI` class in bitcore is validating and parsing bitcoin URIs. A `URI` instance exposes the address as a bitcore `Address` object and the amount in Satoshis, if present. - -The code for validating URIs looks like this: - -```javascript -var uriString = 'bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2'; -var valid = URI.isValid(uriString); -var uri = new URI(uriString); -console.log(uri.address.network, uri.amount); // 'livenet', 120000000 -``` - -## URI Parameters -All standard parameters can be found as members of the `URI` instance. However a bitcoin URI may contain other non-standard parameters, all those can be found under the `extra` namespace. - -See [the official BIP21 spec](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki) for more information. - -## Create URI -Another important use case for the `URI` class is creating a bitcoin URI for sharing a payment request. That can be accomplished by using a dictionary to create an instance of URI. - -The code for creating an URI from an Object looks like this: - -```javascript -var uriString = new URI({ - address: '12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu', - amount : 10000, // in satoshis - message: 'My payment request' -}); -var uriString = uri.toString(); -``` diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index a42397b..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,5 +0,0 @@ - - -var bitcoreTasks = require('bitcore-build'); - -bitcoreTasks('lib'); diff --git a/karma.conf.js b/karma.conf.js deleted file mode 100644 index dc5d597..0000000 --- a/karma.conf.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -// karma.conf.js -module.exports = function(config) { - - config.set({ - browsers: ['Firefox'], - frameworks: ['mocha', 'detectBrowsers'], - detectBrowsers: { - enabled: true, - usePhantomJS: false, - postDetection: function(availableBrowser) { - // modify to enable additional browsers if available - var runBrowsers = ['Firefox', 'Chrome']; - var browsers = []; - for(var i = 0; i < runBrowsers.length; i++) { - if(~availableBrowser.indexOf(runBrowsers[i])) { - browsers.push(runBrowsers[i]); - } - } - return browsers; - } - }, - singleRun: true, - files: [ - 'tests.js' - ], - plugins: [ - 'karma-mocha', - 'karma-chrome-launcher', - 'karma-firefox-launcher', - 'karma-detect-browsers' - ] - }); - -}; diff --git a/main.js b/main.js new file mode 100644 index 0000000..2244fd8 --- /dev/null +++ b/main.js @@ -0,0 +1,2 @@ +var WiccApi = require('./src/lib/wiccapi') +module.exports = WiccApi \ No newline at end of file diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 3417d8f..0000000 --- a/package-lock.json +++ /dev/null @@ -1,5090 +0,0 @@ -{ - "name": "wicc-wallet-lib", - "version": "1.0.3", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - }, - "@babel/core": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.2.2.tgz", - "integrity": "sha512-59vB0RWt09cAct5EIe58+NzGP4TFSD3Bz//2/ELy3ZeTeKF6VTD1AXlH8BGGbCX0PuobZBsIzO7IAI9PH67eKw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/generator": "^7.2.2", - "@babel/helpers": "^7.2.0", - "@babel/parser": "^7.2.2", - "@babel/template": "^7.2.2", - "@babel/traverse": "^7.2.2", - "@babel/types": "^7.2.2", - "convert-source-map": "^1.1.0", - "debug": "^4.1.0", - "json5": "^2.1.0", - "lodash": "^4.17.10", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/generator": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.3.0.tgz", - "integrity": "sha512-dZTwMvTgWfhmibq4V9X+LMf6Bgl7zAodRn9PvcPdhlzFMbvUutx74dbEv7Atz3ToeEpevYEJtAwfxq/bDCzHWg==", - "dev": true, - "requires": { - "@babel/types": "^7.3.0", - "jsesc": "^2.5.1", - "lodash": "^4.17.10", - "source-map": "^0.5.0", - "trim-right": "^1.0.1" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz", - "integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz", - "integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==", - "dev": true, - "requires": { - "@babel/helper-explode-assignable-expression": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-call-delegate": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.1.0.tgz", - "integrity": "sha512-YEtYZrw3GUK6emQHKthltKNZwszBcHK58Ygcis+gVUrF4/FmTVr5CCqQNSfmvg2y+YDEANyYoaLz/SHsnusCwQ==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.0.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-define-map": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.1.0.tgz", - "integrity": "sha512-yPPcW8dc3gZLN+U1mhYV91QU3n5uTbx7DUdf8NnPbjS0RMwBuHi9Xt2MUgppmNz7CJxTBWsGczTiEp1CSOTPRg==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/types": "^7.0.0", - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/helper-explode-assignable-expression": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz", - "integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==", - "dev": true, - "requires": { - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-function-name": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", - "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.0.0", - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", - "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0.tgz", - "integrity": "sha512-Ggv5sldXUeSKsuzLkddtyhyHe2YantsxWKNi7A+7LeD12ExRDWTRk29JCXpaHPAbMaIPZSil7n+lq78WY2VY7w==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz", - "integrity": "sha512-avo+lm/QmZlv27Zsi0xEor2fKcqWG56D5ae9dzklpIaY7cQMK5N8VSpaNVPPagiqmy7LrEjK1IWdGMOqPu5csg==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-module-imports": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", - "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-module-transforms": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.2.2.tgz", - "integrity": "sha512-YRD7I6Wsv+IHuTPkAmAS4HhY0dkPobgLftHp0cRGZSdrRvmZY8rFvae/GVu3bD00qscuvK3WPHB3YdNpBXUqrA==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.0.0", - "@babel/template": "^7.2.2", - "@babel/types": "^7.2.2", - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz", - "integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", - "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", - "dev": true - }, - "@babel/helper-regex": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0.tgz", - "integrity": "sha512-TR0/N0NDCcUIUEbqV6dCO+LptmmSQFQ7q70lfcEB4URsjD0E1HzicrwUH+ap6BAQ2jhCX9Q4UqZy4wilujWlkg==", - "dev": true, - "requires": { - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz", - "integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-wrap-function": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-replace-supers": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.2.3.tgz", - "integrity": "sha512-GyieIznGUfPXPWu0yLS6U55Mz67AZD9cUk0BfirOWlPrXlBcan9Gz+vHGz+cPfuoweZSnPzPIm67VtQM0OWZbA==", - "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.0.0", - "@babel/helper-optimise-call-expression": "^7.0.0", - "@babel/traverse": "^7.2.3", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-simple-access": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz", - "integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==", - "dev": true, - "requires": { - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz", - "integrity": "sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@babel/helper-wrap-function": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz", - "integrity": "sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.2.0" - } - }, - "@babel/helpers": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.3.0.tgz", - "integrity": "sha512-wRi/ZcWQ+BUwmWBAAzQUvQil8xb5U6faQfSkLwbNYn5y/OhLHghV4w/5/inZKEUbQMmOOdhoJy9KRXbGrJCklQ==", - "dev": true, - "requires": { - "@babel/template": "^7.1.2", - "@babel/traverse": "^7.1.5", - "@babel/types": "^7.3.0" - } - }, - "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.3.0.tgz", - "integrity": "sha512-8M30TzMpLHGmuthHZStm4F+az5wxyYeh8U+LWK7+b2qnlQ0anXBmOQ1I8DCMV1K981wPY3C3kWZ4SA1lR3Y3xQ==", - "dev": true - }, - "@babel/plugin-proposal-async-generator-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz", - "integrity": "sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0", - "@babel/plugin-syntax-async-generators": "^7.2.0" - } - }, - "@babel/plugin-proposal-json-strings": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz", - "integrity": "sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-json-strings": "^7.2.0" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.0.tgz", - "integrity": "sha512-KuSFLqkCkdXHJxhcfxWNxt8uVogH/bXXoKLUF/q7MehfHo0CRNjWLedB3iYjKssJ+D1gEmUB8h/E3g4/hFbQLg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-object-rest-spread": "^7.2.0" - } - }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz", - "integrity": "sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-optional-catch-binding": "^7.2.0" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.2.0.tgz", - "integrity": "sha512-LvRVYb7kikuOtIoUeWTkOxQEV1kYvL5B6U3iWEGCzPNRus1MzJweFqORTj+0jkxozkTSYNJozPOddxmqdqsRpw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.0.0", - "regexpu-core": "^4.2.0" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz", - "integrity": "sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz", - "integrity": "sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz", - "integrity": "sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz", - "integrity": "sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz", - "integrity": "sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.2.0.tgz", - "integrity": "sha512-CEHzg4g5UraReozI9D4fblBYABs7IM6UerAVG7EJVrTLC5keh00aEuLUT+O40+mJCEzaXkYfTCUKIyeDfMOFFQ==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz", - "integrity": "sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.2.0.tgz", - "integrity": "sha512-vDTgf19ZEV6mx35yiPJe4fS02mPQUUcBNwWQSZFXSzTSbsJFQvHt7DqyS3LK8oOWALFOsJ+8bbqBgkirZteD5Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/plugin-transform-classes": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.2.2.tgz", - "integrity": "sha512-gEZvgTy1VtcDOaQty1l10T3jQmJKlNVxLDCs+3rCVPr6nMkODLELxViq5X9l+rfxbie3XrfrMCYYY6eX3aOcOQ==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-define-map": "^7.1.0", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-optimise-call-expression": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.0.0", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz", - "integrity": "sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.2.0.tgz", - "integrity": "sha512-coVO2Ayv7g0qdDbrNiadE4bU7lvCd9H539m2gMknyVjjMdwF/iCOM7R+E8PkntoqLkltO0rk+3axhpp/0v68VQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.2.0.tgz", - "integrity": "sha512-sKxnyHfizweTgKZf7XsXu/CNupKhzijptfTM+bozonIuyVrLWVUvYjE2bhuSBML8VQeMxq4Mm63Q9qvcvUcciQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.0.0", - "regexpu-core": "^4.1.3" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.2.0.tgz", - "integrity": "sha512-q+yuxW4DsTjNceUiTzK0L+AfQ0zD9rWaTLiUqHA8p0gxx7lu1EylenfzjeIWNkPy6e/0VG/Wjw9uf9LueQwLOw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz", - "integrity": "sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==", - "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.2.0.tgz", - "integrity": "sha512-Kz7Mt0SsV2tQk6jG5bBv5phVbkd0gd27SgYD4hH1aLMJRchM0dzHaXvrWhVZ+WxAlDoAKZ7Uy3jVTW2mKXQ1WQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.2.0.tgz", - "integrity": "sha512-kWgksow9lHdvBC2Z4mxTsvc7YdY7w/V6B2vy9cTIPtLEE9NhwoWivaxdNM/S37elu5bqlLP/qOY906LukO9lkQ==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz", - "integrity": "sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.2.0.tgz", - "integrity": "sha512-mK2A8ucqz1qhrdqjS9VMIDfIvvT2thrEsIQzbaTdc5QFzhDjQv2CkJJ5f6BXIkgbmaoax3zBr2RyvV/8zeoUZw==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.2.0.tgz", - "integrity": "sha512-V6y0uaUQrQPXUrmj+hgnks8va2L0zcZymeU7TtWEgdRLNkceafKXEduv7QzgQAE4lT+suwooG9dC7LFhdRAbVQ==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.2.0.tgz", - "integrity": "sha512-aYJwpAhoK9a+1+O625WIjvMY11wkB/ok0WClVwmeo3mCjcNRjt+/8gHWrB5i+00mUju0gWsBkQnPpdvQ7PImmQ==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz", - "integrity": "sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.3.0.tgz", - "integrity": "sha512-NxIoNVhk9ZxS+9lSoAQ/LM0V2UEvARLttEHUrRDGKFaAxOYQcrkN/nLRE+BbbicCAvZPl7wMP0X60HsHE5DtQw==", - "dev": true, - "requires": { - "regexp-tree": "^0.1.0" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0.tgz", - "integrity": "sha512-yin069FYjah+LbqfGeTfzIBODex/e++Yfa0rH0fpfam9uTbuEeEOx5GLGr210ggOV77mVRNoeqSYqeuaqSzVSw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.2.0.tgz", - "integrity": "sha512-VMyhPYZISFZAqAPVkiYb7dUe2AsVi2/wCT5+wZdsNO31FojQJa9ns40hzZ6U9f50Jlq4w6qwzdBB2uwqZ00ebg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.1.0" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.2.0.tgz", - "integrity": "sha512-kB9+hhUidIgUoBQ0MsxMewhzr8i60nMa2KgeJKQWYrqQpqcBYtnpR+JgkadZVZoaEZ/eKu9mclFaVwhRpLNSzA==", - "dev": true, - "requires": { - "@babel/helper-call-delegate": "^7.1.0", - "@babel/helper-get-function-arity": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0.tgz", - "integrity": "sha512-sj2qzsEx8KDVv1QuJc/dEfilkg3RRPvPYx/VnKLtItVQRWt1Wqf5eVCOLZm29CiGFfYYsA3VPjfizTCV0S0Dlw==", - "dev": true, - "requires": { - "regenerator-transform": "^0.13.3" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz", - "integrity": "sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz", - "integrity": "sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz", - "integrity": "sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.0.0" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.2.0.tgz", - "integrity": "sha512-FkPix00J9A/XWXv4VoKJBMeSkyY9x/TqIh76wzcdfl57RJJcf8CehQ08uwfhCDNtRQYtHQKBTwKZDEyjE13Lwg==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz", - "integrity": "sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.2.0.tgz", - "integrity": "sha512-m48Y0lMhrbXEJnVUaYly29jRXbQ3ksxPrS1Tg8t+MHqzXhtBYAvI51euOBaoAlZLPHsieY9XPVMf80a5x0cPcA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.0.0", - "regexpu-core": "^4.1.3" - } - }, - "@babel/preset-env": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.3.0.tgz", - "integrity": "sha512-708gNL1KY2nSM683LYvL4iRBwa1+gkvtx7L53FNf2+LSsJJswf3T4Mn82C1ias/0cZUH+0LbwIYXUFdKM3sOsg==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-async-generator-functions": "^7.2.0", - "@babel/plugin-proposal-json-strings": "^7.2.0", - "@babel/plugin-proposal-object-rest-spread": "^7.3.0", - "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.2.0", - "@babel/plugin-syntax-async-generators": "^7.2.0", - "@babel/plugin-syntax-json-strings": "^7.2.0", - "@babel/plugin-syntax-object-rest-spread": "^7.2.0", - "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", - "@babel/plugin-transform-arrow-functions": "^7.2.0", - "@babel/plugin-transform-async-to-generator": "^7.2.0", - "@babel/plugin-transform-block-scoped-functions": "^7.2.0", - "@babel/plugin-transform-block-scoping": "^7.2.0", - "@babel/plugin-transform-classes": "^7.2.0", - "@babel/plugin-transform-computed-properties": "^7.2.0", - "@babel/plugin-transform-destructuring": "^7.2.0", - "@babel/plugin-transform-dotall-regex": "^7.2.0", - "@babel/plugin-transform-duplicate-keys": "^7.2.0", - "@babel/plugin-transform-exponentiation-operator": "^7.2.0", - "@babel/plugin-transform-for-of": "^7.2.0", - "@babel/plugin-transform-function-name": "^7.2.0", - "@babel/plugin-transform-literals": "^7.2.0", - "@babel/plugin-transform-modules-amd": "^7.2.0", - "@babel/plugin-transform-modules-commonjs": "^7.2.0", - "@babel/plugin-transform-modules-systemjs": "^7.2.0", - "@babel/plugin-transform-modules-umd": "^7.2.0", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.3.0", - "@babel/plugin-transform-new-target": "^7.0.0", - "@babel/plugin-transform-object-super": "^7.2.0", - "@babel/plugin-transform-parameters": "^7.2.0", - "@babel/plugin-transform-regenerator": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.2.0", - "@babel/plugin-transform-spread": "^7.2.0", - "@babel/plugin-transform-sticky-regex": "^7.2.0", - "@babel/plugin-transform-template-literals": "^7.2.0", - "@babel/plugin-transform-typeof-symbol": "^7.2.0", - "@babel/plugin-transform-unicode-regex": "^7.2.0", - "browserslist": "^4.3.4", - "invariant": "^2.2.2", - "js-levenshtein": "^1.1.3", - "semver": "^5.3.0" - } - }, - "@babel/template": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.2.2.tgz", - "integrity": "sha512-zRL0IMM02AUDwghf5LMSSDEz7sBCO2YnNmpg3uWTZj/v1rcG2BmQUvaGU8GhU8BvfMh1k2KIAYZ7Ji9KXPUg7g==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.2.2", - "@babel/types": "^7.2.2" - } - }, - "@babel/traverse": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.2.3.tgz", - "integrity": "sha512-Z31oUD/fJvEWVR0lNZtfgvVt512ForCTNKYcJBGbPb1QZfve4WGH8Wsy7+Mev33/45fhP/hwQtvgusNdcCMgSw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/generator": "^7.2.2", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.0.0", - "@babel/parser": "^7.2.3", - "@babel/types": "^7.2.2", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "@babel/types": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.3.0.tgz", - "integrity": "sha512-QkFPw68QqWU1/RVPyBe8SO7lXbPfjtqAxRYQKpFpaB8yMq7X2qAqfwK5LKoQufEkSmO5NQ70O6Kc3Afk03RwXw==", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.10", - "to-fast-properties": "^2.0.0" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } - } - }, - "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", - "dev": true - }, - "aes-js": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", - "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" - }, - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dev": true, - "requires": { - "ansi-wrap": "^0.1.0" - } - }, - "ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true - }, - "append-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz", - "integrity": "sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE=", - "dev": true, - "requires": { - "buffer-equal": "^1.0.0" - }, - "dependencies": { - "buffer-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", - "integrity": "sha1-WWFrSYME1Var1GaWayLu2j7KX74=", - "dev": true - } - } - }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", - "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", - "dev": true - }, - "array-slice": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", - "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", - "dev": true - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "base-x": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.5.tgz", - "integrity": "sha512-C3picSgzPSLE+jW3tcBzJoGwitOtazb5B+5YmAxZm2ybmTi9LNgAtDO/jjVEBZwHoXmDBZ9m/IELj3elJVRBcA==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "beeper": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", - "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", - "dev": true - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "brfs": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/brfs/-/brfs-1.6.1.tgz", - "integrity": "sha512-OfZpABRQQf+Xsmju8XE9bDjs+uU4vLREGolP7bDgcpsI17QREyZ4Bl+2KLxxx1kCgA0fAIhKQBaBYh+PEcCqYQ==", - "dev": true, - "requires": { - "quote-stream": "^1.0.1", - "resolve": "^1.1.5", - "static-module": "^2.2.0", - "through2": "^2.0.0" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" - }, - "browserslist": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.4.1.tgz", - "integrity": "sha512-pEBxEXg7JwaakBXjATYw/D1YZh4QUSCX/Mnd/wnqSRPPSi1U39iDhDoKGoBUcraKdxDlrYqJxSI5nNvD+dWP2A==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30000929", - "electron-to-chromium": "^1.3.103", - "node-releases": "^1.1.3" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "^3.0.2" - } - }, - "buffer-compare": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-compare/-/buffer-compare-1.1.1.tgz", - "integrity": "sha1-W+e+hTr4kZjR9N3AkNHWakiu9ZY=" - }, - "buffer-equal": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", - "integrity": "sha1-kbx0sR6kBbyRa8aqkI+q+ltKrEs=", - "dev": true - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30000929", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000929.tgz", - "integrity": "sha512-n2w1gPQSsYyorSVYqPMqbSaz1w7o9ZC8VhOEGI9T5MfGDzp7sbopQxG6GaQmYsaq13Xfx/mkxJUWC1Dz3oZfzw==", - "dev": true - }, - "chai": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-1.10.0.tgz", - "integrity": "sha1-5AMcyHZURhp1lD5aNatG6vOcHrk=", - "dev": true, - "requires": { - "assertion-error": "1.0.0", - "deep-eql": "0.1.3" - }, - "dependencies": { - "assertion-error": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.0.tgz", - "integrity": "sha1-x/hUOP3UZrx8oWq5DIFRN5el0js=", - "dev": true - } - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "cli-table3": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", - "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", - "dev": true, - "requires": { - "colors": "^1.1.2", - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - } - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", - "dev": true - }, - "clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", - "dev": true - }, - "cloneable-readable": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", - "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "dev": true - }, - "colors": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz", - "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==", - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "concat-with-sourcemaps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "crypto-js": { - "version": "3.1.9-1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz", - "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg=" - }, - "dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", - "dev": true - }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decimal": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/decimal/-/decimal-0.0.2.tgz", - "integrity": "sha1-GUPsUjaKD996NywsEM8fy8kbk+M=" - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "deep-eql": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", - "dev": true, - "requires": { - "type-detect": "0.1.1" - }, - "dependencies": { - "type-detect": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true - } - } - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", - "dev": true, - "requires": { - "clone": "^1.0.2" - } - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "deprecated": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", - "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", - "dev": true - }, - "detect-file": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", - "dev": true - }, - "duplexer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", - "dev": true - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "duplexify": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz", - "integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - }, - "dependencies": { - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - } - } - }, - "electron-to-chromium": { - "version": "1.3.103", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.103.tgz", - "integrity": "sha512-tObPqGmY9X8MUM8i3MEimYmbnLLf05/QV5gPlkR8MQ3Uj8G8B2govE1U4cQcBYtv3ymck9Y8cIOu4waoiykMZQ==", - "dev": true - }, - "elliptic": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", - "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, - "end-of-stream": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz", - "integrity": "sha1-jhdyBsPICDfYVjLouTWd/osvbq8=", - "dev": true, - "requires": { - "once": "~1.3.0" - }, - "dependencies": { - "once": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", - "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", - "dev": true, - "requires": { - "wrappy": "1" - } - } - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", - "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", - "dev": true, - "requires": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "event-stream": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-4.0.1.tgz", - "integrity": "sha512-qACXdu/9VHPBzcyhdOWR5/IahhGMf0roTeZJfzz077GwylcDd90yOHLouhmv7GJ5XzPi6ekaQWd8AvPP2nOvpA==", - "dev": true, - "requires": { - "duplexer": "^0.1.1", - "from": "^0.1.7", - "map-stream": "0.0.7", - "pause-stream": "^0.0.11", - "split": "^1.0.1", - "stream-combiner": "^0.2.2", - "through": "^2.3.8" - }, - "dependencies": { - "split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", - "dev": true, - "requires": { - "through": "2" - } - } - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.1" - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "falafel": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.1.0.tgz", - "integrity": "sha1-lrsXdh2rqU9G0AFzizzt86Z/4Gw=", - "dev": true, - "requires": { - "acorn": "^5.0.0", - "foreach": "^2.0.5", - "isarray": "0.0.1", - "object-keys": "^1.0.6" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - } - } - }, - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "find-index": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", - "integrity": "sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ=", - "dev": true - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "findup-sync": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-2.0.0.tgz", - "integrity": "sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=", - "dev": true, - "requires": { - "detect-file": "^1.0.0", - "is-glob": "^3.1.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" - } - }, - "fined": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/fined/-/fined-1.1.1.tgz", - "integrity": "sha512-jQp949ZmEbiYHk3gkbdtpJ0G1+kgtLQBNdP5edFP7Fh+WAYceLQz6yO1SBj72Xkg8GVyTB3bBzAYrHJVh5Xd5g==", - "dev": true, - "requires": { - "expand-tilde": "^2.0.2", - "is-plain-object": "^2.0.3", - "object.defaults": "^1.1.0", - "object.pick": "^1.2.0", - "parse-filepath": "^1.0.1" - } - }, - "first-chunk-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", - "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", - "dev": true - }, - "flagged-respawn": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", - "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", - "dev": true - }, - "flush-write-stream": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", - "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.4" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", - "dev": true - }, - "fork-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz", - "integrity": "sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA=", - "dev": true - }, - "formatio": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz", - "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", - "dev": true, - "requires": { - "samsam": "~1.1" - } - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, - "fs-mkdirp-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", - "integrity": "sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "through2": "^2.0.3" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - } - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "gaze": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", - "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", - "dev": true, - "requires": { - "globule": "~0.1.0" - } - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "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" - } - }, - "glob-stream": { - "version": "3.1.18", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz", - "integrity": "sha1-kXCl8St5Awb9/lmPMT+PeVT9FDs=", - "dev": true, - "requires": { - "glob": "^4.3.1", - "glob2base": "^0.0.12", - "minimatch": "^2.0.1", - "ordered-read-streams": "^0.1.0", - "through2": "^0.6.1", - "unique-stream": "^1.0.0" - }, - "dependencies": { - "glob": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", - "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^2.0.1", - "once": "^1.3.0" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", - "dev": true, - "requires": { - "brace-expansion": "^1.0.0" - } - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "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", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } - } - }, - "glob-watcher": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz", - "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", - "dev": true, - "requires": { - "gaze": "^0.5.1" - } - }, - "glob2base": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz", - "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", - "dev": true, - "requires": { - "find-index": "^0.1.1" - } - }, - "global-modules": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", - "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", - "dev": true, - "requires": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" - } - }, - "global-prefix": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" - } - }, - "globals": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.10.0.tgz", - "integrity": "sha512-0GZF1RiPKU97IHUO5TORo9w1PwrH/NBPl+fS7oMLdaTRiYmYbwK4NWoZWrAdd0/abG9R2BU+OiwyQpTpE6pdfQ==", - "dev": true - }, - "globule": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", - "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", - "dev": true, - "requires": { - "glob": "~3.1.21", - "lodash": "~1.0.1", - "minimatch": "~0.2.11" - }, - "dependencies": { - "glob": { - "version": "3.1.21", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", - "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", - "dev": true, - "requires": { - "graceful-fs": "~1.2.0", - "inherits": "1", - "minimatch": "~0.2.11" - } - }, - "graceful-fs": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", - "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", - "dev": true - }, - "inherits": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", - "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", - "dev": true - }, - "lodash": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", - "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", - "dev": true - }, - "lru-cache": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", - "dev": true - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - } - } - }, - "glogg": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", - "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "graceful-fs": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz", - "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=", - "dev": true, - "requires": { - "natives": "^1.1.0" - } - }, - "gulp": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz", - "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", - "dev": true, - "requires": { - "archy": "^1.0.0", - "chalk": "^1.0.0", - "deprecated": "^0.0.1", - "gulp-util": "^3.0.0", - "interpret": "^1.0.0", - "liftoff": "^2.1.0", - "minimist": "^1.1.0", - "orchestrator": "^0.3.0", - "pretty-hrtime": "^1.0.0", - "semver": "^4.1.0", - "tildify": "^1.0.0", - "v8flags": "^2.0.2", - "vinyl-fs": "^0.3.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "gulp-babel": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/gulp-babel/-/gulp-babel-8.0.0.tgz", - "integrity": "sha512-oomaIqDXxFkg7lbpBou/gnUkX51/Y/M2ZfSjL2hdqXTAlSWZcgZtd2o0cOH0r/eE8LWD0+Q/PsLsr2DKOoqToQ==", - "dev": true, - "requires": { - "plugin-error": "^1.0.1", - "replace-ext": "^1.0.0", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.0" - }, - "dependencies": { - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - } - } - }, - "gulp-concat": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz", - "integrity": "sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=", - "dev": true, - "requires": { - "concat-with-sourcemaps": "^1.0.0", - "through2": "^2.0.0", - "vinyl": "^2.0.0" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } - } - }, - "gulp-if": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/gulp-if/-/gulp-if-2.0.2.tgz", - "integrity": "sha1-pJe351cwBQQcqivIt92jyARE1ik=", - "dev": true, - "requires": { - "gulp-match": "^1.0.3", - "ternary-stream": "^2.0.1", - "through2": "^2.0.1" - } - }, - "gulp-match": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/gulp-match/-/gulp-match-1.0.3.tgz", - "integrity": "sha1-kcfA1/Kb7NZgbVfYCn+Hdqh6uo4=", - "dev": true, - "requires": { - "minimatch": "^3.0.3" - } - }, - "gulp-useref": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/gulp-useref/-/gulp-useref-3.1.6.tgz", - "integrity": "sha512-CMntxNp9LSk0F7itgOgqGqrO5pQL7eyQt6zhWi533VMFyMch8MNrSqjR7JyxEbPkts38s++W4ZmFVjx0NLMv8g==", - "dev": true, - "requires": { - "event-stream": "^4.0.1", - "extend": "^3.0.2", - "glob": "^7.1.3", - "gulp-concat": "^2.6.1", - "gulp-if": "^2.0.2", - "is-relative-url": "1.0.0", - "plugin-error": "^1.0.1", - "through2": "^2.0.3", - "useref": "^1.4.1", - "vinyl-fs": "^3.0.3" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz", - "integrity": "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "glob": "^7.1.1", - "glob-parent": "^3.1.0", - "is-negated-glob": "^1.0.0", - "ordered-read-streams": "^1.0.0", - "pumpify": "^1.3.5", - "readable-stream": "^2.1.5", - "remove-trailing-separator": "^1.0.1", - "to-absolute-glob": "^2.0.0", - "unique-stream": "^2.0.2" - } - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "lazystream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", - "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", - "dev": true, - "requires": { - "readable-stream": "^2.0.5" - } - }, - "ordered-read-streams": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", - "integrity": "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "unique-stream": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", - "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", - "dev": true, - "requires": { - "json-stable-stringify-without-jsonify": "^1.0.1", - "through2-filter": "^3.0.0" - } - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - }, - "vinyl-fs": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz", - "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", - "dev": true, - "requires": { - "fs-mkdirp-stream": "^1.0.0", - "glob-stream": "^6.1.0", - "graceful-fs": "^4.0.0", - "is-valid-glob": "^1.0.0", - "lazystream": "^1.0.0", - "lead": "^1.0.0", - "object.assign": "^4.0.4", - "pumpify": "^1.3.5", - "readable-stream": "^2.3.3", - "remove-bom-buffer": "^3.0.0", - "remove-bom-stream": "^1.2.0", - "resolve-options": "^1.1.0", - "through2": "^2.0.0", - "to-through": "^2.0.0", - "value-or-function": "^3.0.0", - "vinyl": "^2.0.0", - "vinyl-sourcemap": "^1.1.0" - } - } - } - }, - "gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", - "dev": true, - "requires": { - "array-differ": "^1.0.0", - "array-uniq": "^1.0.2", - "beeper": "^1.0.0", - "chalk": "^1.0.0", - "dateformat": "^2.0.0", - "fancy-log": "^1.1.0", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "lodash._reescape": "^3.0.0", - "lodash._reevaluate": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.template": "^3.0.0", - "minimist": "^1.1.0", - "multipipe": "^0.1.2", - "object-assign": "^3.0.0", - "replace-ext": "0.0.1", - "through2": "^2.0.0", - "vinyl": "^0.5.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "gulplog": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", - "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", - "dev": true, - "requires": { - "glogg": "^1.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - } - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-gulplog": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", - "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - } - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "homedir-polyfill": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", - "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", - "dev": true, - "requires": { - "parse-passwd": "^1.0.0" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true - }, - "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, - "is-absolute": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", - "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", - "dev": true, - "requires": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" - } - }, - "is-absolute-url": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-1.0.0.tgz", - "integrity": "sha1-LX7w/QuyqI2sfpIlPGgIoKziS/s=", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - }, - "is-negated-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz", - "integrity": "sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-relative": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", - "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", - "dev": true, - "requires": { - "is-unc-path": "^1.0.0" - } - }, - "is-relative-url": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-relative-url/-/is-relative-url-1.0.0.tgz", - "integrity": "sha1-h6nTXop4m0ngebTX1p1kYS6ODh8=", - "dev": true, - "requires": { - "is-absolute-url": "^1.0.0" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-unc-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", - "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", - "dev": true, - "requires": { - "unc-path-regex": "^0.1.2" - } - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-valid-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz", - "integrity": "sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json5": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.0.tgz", - "integrity": "sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "lead": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz", - "integrity": "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=", - "dev": true, - "requires": { - "flush-write-stream": "^1.0.2" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "liftoff": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.5.0.tgz", - "integrity": "sha1-IAkpG7Mc6oYbvxCnwVooyvdcMew=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "findup-sync": "^2.0.0", - "fined": "^1.0.1", - "flagged-respawn": "^1.0.0", - "is-plain-object": "^2.0.4", - "object.map": "^1.0.0", - "rechoir": "^0.6.2", - "resolve": "^1.1.7" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", - "dev": true - }, - "lodash._basetostring": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", - "dev": true - }, - "lodash._basevalues": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", - "dev": true - }, - "lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", - "dev": true - }, - "lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", - "dev": true - }, - "lodash._reescape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", - "dev": true - }, - "lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", - "dev": true - }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true - }, - "lodash._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", - "dev": true - }, - "lodash.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", - "dev": true, - "requires": { - "lodash._root": "^3.0.0" - } - }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", - "dev": true - }, - "lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", - "dev": true - }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", - "dev": true, - "requires": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - } - }, - "lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", - "dev": true - }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", - "dev": true, - "requires": { - "lodash._basecopy": "^3.0.0", - "lodash._basetostring": "^3.0.0", - "lodash._basevalues": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0", - "lodash.keys": "^3.0.0", - "lodash.restparam": "^3.0.0", - "lodash.templatesettings": "^3.0.0" - } - }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0" - } - }, - "lolex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", - "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=", - "dev": true - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "magic-string": { - "version": "0.22.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", - "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", - "dev": true, - "requires": { - "vlq": "^0.2.2" - } - }, - "make-iterator": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", - "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "merge-source-map": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.0.4.tgz", - "integrity": "sha1-pd5GU42uhNQRTMXqArR3KmNGcB8=", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - }, - "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - } - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", - "dev": true, - "requires": { - "duplexer2": "0.0.2" - }, - "dependencies": { - "duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", - "dev": true, - "requires": { - "readable-stream": "~1.1.9" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "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", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - } - }, - "natives": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.6.tgz", - "integrity": "sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==", - "dev": true - }, - "node-releases": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.3.tgz", - "integrity": "sha512-6VrvH7z6jqqNFY200kdB6HdzkgM96Oaj9v3dqGfgp6mF+cHmU4wyQKZ2/WPDRVoR0Jz9KqbamaBN0ZhdUaysUQ==", - "dev": true, - "requires": { - "semver": "^5.3.0" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "now-and-later": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.0.tgz", - "integrity": "sha1-vGHLtFbXnLMiB85HygUTb/Ln1u4=", - "dev": true, - "requires": { - "once": "^1.3.2" - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "object-inspect": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.4.1.tgz", - "integrity": "sha512-wqdhLpfCUbEsoEwl3FXwGyv8ief1k/1aUdIPCqVnupM6e8l63BEJdiF/0swtn04/8p05tG/T0FrpTlfwvljOdw==", - "dev": true - }, - "object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", - "dev": true - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "requires": { - "isobject": "^3.0.0" - } - }, - "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - } - }, - "object.defaults": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", - "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", - "dev": true, - "requires": { - "array-each": "^1.0.1", - "array-slice": "^1.0.0", - "for-own": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "object.map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", - "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", - "dev": true, - "requires": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - } - }, - "orchestrator": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", - "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", - "dev": true, - "requires": { - "end-of-stream": "~0.1.5", - "sequencify": "~0.0.7", - "stream-consume": "~0.1.0" - } - }, - "ordered-read-streams": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz", - "integrity": "sha1-/VZamvjrRHO6abbtijQ1LLVS8SY=", - "dev": true - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "parse-filepath": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", - "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", - "dev": true, - "requires": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - } - }, - "parse-node-version": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.0.tgz", - "integrity": "sha512-02GTVHD1u0nWc20n2G7WX/PgdhNFG04j5fi1OkaJzPWLTcf6vh6229Lta1wTmXG/7Dg42tCssgkccVt7qvd8Kg==", - "dev": true - }, - "parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", - "dev": true - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", - "dev": true, - "requires": { - "path-root-regex": "^0.1.0" - } - }, - "path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", - "dev": true - }, - "pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "~2.3" - } - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", - "dev": true - }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - }, - "dependencies": { - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - } - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "quote-stream": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-1.0.2.tgz", - "integrity": "sha1-hJY/jJwmuULhU/7rU6rnRlK34LI=", - "dev": true, - "requires": { - "buffer-equal": "0.0.1", - "minimist": "^1.1.3", - "through2": "^2.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "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" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, - "requires": { - "resolve": "^1.1.6" - } - }, - "regenerate": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", - "dev": true - }, - "regenerate-unicode-properties": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz", - "integrity": "sha512-s5NGghCE4itSlUS+0WUj88G6cfMVMmH8boTPNvABf8od+2dhT9WDlWu8n01raQAJZMOK8Ch6jSexaRO7swd6aw==", - "dev": true, - "requires": { - "regenerate": "^1.4.0" - } - }, - "regenerator-transform": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.3.tgz", - "integrity": "sha512-5ipTrZFSq5vU2YoGoww4uaRVAK4wyYC4TSICibbfEPOruUu8FFP7ErV0BjmbIOEpn3O/k9na9UEdYR/3m7N6uA==", - "dev": true, - "requires": { - "private": "^0.1.6" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexp-tree": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.0.tgz", - "integrity": "sha512-rHQv+tzu+0l3KS/ERabas1yK49ahNVxuH40WcPg53CzP5p8TgmmyBgHELLyJcvjhTD0e5ahSY6C76LbEVtr7cg==", - "dev": true, - "requires": { - "cli-table3": "^0.5.0", - "colors": "^1.1.2", - "yargs": "^10.0.3" - } - }, - "regexpu-core": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.4.0.tgz", - "integrity": "sha512-eDDWElbwwI3K0Lo6CqbQbA6FwgtCz4kYTarrri1okfkRLZAqstU+B3voZBCjg8Fl6iq0gXrJG6MvRgLthfvgOA==", - "dev": true, - "requires": { - "regenerate": "^1.4.0", - "regenerate-unicode-properties": "^7.0.0", - "regjsgen": "^0.5.0", - "regjsparser": "^0.6.0", - "unicode-match-property-ecmascript": "^1.0.4", - "unicode-match-property-value-ecmascript": "^1.0.2" - } - }, - "regjsgen": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz", - "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==", - "dev": true - }, - "regjsparser": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz", - "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "remove-bom-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", - "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5", - "is-utf8": "^0.2.1" - } - }, - "remove-bom-stream": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", - "integrity": "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=", - "dev": true, - "requires": { - "remove-bom-buffer": "^3.0.0", - "safe-buffer": "^5.1.0", - "through2": "^2.0.3" - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "resolve": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", - "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "resolve-dir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" - } - }, - "resolve-options": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz", - "integrity": "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=", - "dev": true, - "requires": { - "value-or-function": "^3.0.0" - } - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "samsam": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz", - "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=", - "dev": true - }, - "scrypt-js": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", - "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==" - }, - "scryptsy": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/scryptsy/-/scryptsy-2.0.0.tgz", - "integrity": "sha1-Jiw28CMc+nZU4jY/o5TNLexm83g=" - }, - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - }, - "sequencify": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz", - "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "shallow-copy": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", - "integrity": "sha1-QV9CcC1z2BAzApLMXuhurhoRoXA=", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "sigmund": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "sinon": { - "version": "1.17.7", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.7.tgz", - "integrity": "sha1-RUKk9JugxFwF6y6d2dID4rjv4L8=", - "dev": true, - "requires": { - "formatio": "1.1.1", - "lolex": "1.3.2", - "samsam": "1.1.2", - "util": ">=0.10.3 <1" - } - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "sparkles": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", - "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", - "dev": true - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "static-eval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.0.tgz", - "integrity": "sha512-6flshd3F1Gwm+Ksxq463LtFd1liC77N/PX1FVVc3OzL3hAmo2fwHFbuArkcfi7s9rTNsLEhcRmXGFZhlgy40uw==", - "dev": true, - "requires": { - "escodegen": "^1.8.1" - } - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "static-module": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/static-module/-/static-module-2.2.5.tgz", - "integrity": "sha512-D8vv82E/Kpmz3TXHKG8PPsCPg+RAX6cbCOyvjM6x04qZtQ47EtJFVwRsdov3n5d6/6ynrOY9XB4JkaZwB2xoRQ==", - "dev": true, - "requires": { - "concat-stream": "~1.6.0", - "convert-source-map": "^1.5.1", - "duplexer2": "~0.1.4", - "escodegen": "~1.9.0", - "falafel": "^2.1.0", - "has": "^1.0.1", - "magic-string": "^0.22.4", - "merge-source-map": "1.0.4", - "object-inspect": "~1.4.0", - "quote-stream": "~1.0.2", - "readable-stream": "~2.3.3", - "shallow-copy": "~0.0.1", - "static-eval": "^2.0.0", - "through2": "~2.0.3" - } - }, - "stream-combiner": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", - "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "through": "~2.3.4" - } - }, - "stream-consume": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.1.tgz", - "integrity": "sha512-tNa3hzgkjEP7XbCkbRXe1jpg+ievoa0O4SCFlMOYEscGSS4JJsckGL8swUyAa/ApGU3Ae4t6Honor4HhL+tRyg==", - "dev": true - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-bom": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz", - "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", - "dev": true, - "requires": { - "first-chunk-stream": "^1.0.0", - "is-utf8": "^0.2.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "ternary-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-2.0.1.tgz", - "integrity": "sha1-Bk5Im0tb9gumpre8fy9cJ07Pgmk=", - "dev": true, - "requires": { - "duplexify": "^3.5.0", - "fork-stream": "^0.0.4", - "merge-stream": "^1.0.0", - "through2": "^2.0.1" - } - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "through2-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", - "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", - "dev": true, - "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - }, - "tildify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", - "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0" - } - }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", - "dev": true - }, - "to-absolute-glob": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", - "integrity": "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=", - "dev": true, - "requires": { - "is-absolute": "^1.0.0", - "is-negated-glob": "^1.0.0" - } - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "to-through": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz", - "integrity": "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=", - "dev": true, - "requires": { - "through2": "^2.0.3" - } - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", - "dev": true - }, - "unicode-canonical-property-names-ecmascript": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", - "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", - "dev": true - }, - "unicode-match-property-ecmascript": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", - "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", - "dev": true, - "requires": { - "unicode-canonical-property-names-ecmascript": "^1.0.4", - "unicode-property-aliases-ecmascript": "^1.0.4" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz", - "integrity": "sha512-Rx7yODZC1L/T8XKo/2kNzVAQaRE88AaMvI1EF/Xnj3GW2wzN6fop9DDWuFAKUVFH7vozkz26DzP0qyWLKLIVPQ==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz", - "integrity": "sha512-2WSLa6OdYd2ng8oqiGIWnJqyFArvhn+5vgx5GTxMbUYjCYKUcuKS62YLFF0R/BDGlB1yzXjQOLtPAfHsgirEpg==", - "dev": true - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unique-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", - "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", - "dev": true - }, - "unorm": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz", - "integrity": "sha1-NkIA1fE2RsqLzURJAnEzVhR5IwA=" - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true - }, - "user-home": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", - "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", - "dev": true - }, - "useref": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/useref/-/useref-1.4.1.tgz", - "integrity": "sha1-Atq60QsahQJdlkJS/KMbgFkxrX0=", - "dev": true - }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", - "dev": true, - "requires": { - "user-home": "^1.1.1" - } - }, - "value-or-function": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz", - "integrity": "sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=", - "dev": true - }, - "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - }, - "vinyl-fs": { - "version": "0.3.14", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz", - "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", - "dev": true, - "requires": { - "defaults": "^1.0.0", - "glob-stream": "^3.1.5", - "glob-watcher": "^0.0.6", - "graceful-fs": "^3.0.0", - "mkdirp": "^0.5.0", - "strip-bom": "^1.0.0", - "through2": "^0.6.1", - "vinyl": "^0.4.0" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "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", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - } - } - }, - "vinyl-sourcemap": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", - "integrity": "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=", - "dev": true, - "requires": { - "append-buffer": "^1.0.2", - "convert-source-map": "^1.5.0", - "graceful-fs": "^4.1.6", - "normalize-path": "^2.1.1", - "now-and-later": "^2.0.0", - "remove-bom-buffer": "^3.0.0", - "vinyl": "^2.0.0" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } - } - }, - "vinyl-sourcemaps-apply": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", - "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=", - "dev": true, - "requires": { - "source-map": "^0.5.1" - } - }, - "vlq": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", - "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", - "dev": true - }, - "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", - "dev": true - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "yargs": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz", - "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^8.1.0" - } - }, - "yargs-parser": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz", - "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } -} diff --git a/package.json b/package.json index 1ec39ff..593ecf6 100644 --- a/package.json +++ b/package.json @@ -1,62 +1,50 @@ { - "name": "wicc-wallet-lib", - "version": "1.0.3", - "description": "A pure and powerful JavaScript Wicc Wallet library.", - "author": "coredev@waykichainhk.com", - "main": "index.js", - "scripts": { - "lint": "gulp lint", - "test": "gulp test", - "coverage": "gulp coverage", - "build": "gulp browser" - }, - "keywords": [ - "bitcoin", - "transaction", - "address", - "p2p", - "ecies", - "cryptocurrency", - "blockchain", - "payment", - "bip21", - "bip32", - "bip37", - "bip69", - "bip70", - "multisig" - ], - "repository": { - "type": "git", - "url": "https://github.com/bitpay/bitcore-lib.git" - }, - "browser": { - "request": "browser-request" - }, - "dependencies": { - "aes-js": "^3.1.1", - "bn.js": "=4.11.8", - "bs58": "=4.0.1", - "buffer-compare": "=1.1.1", - "crypto-js": "^3.1.9-1", - "decimal": "0.0.2", - "elliptic": "=6.4.0", - "inherits": "=2.0.1", - "lodash": "=4.17.5", - "scrypt-js": "^2.0.3", - "scryptsy": "^2.0.0", - "unorm": "^1.4.1" - }, - "devDependencies": { - "@babel/core": "^7.2.2", - "@babel/preset-env": "^7.2.3", - "bitcore-build": "https://github.com/WaykiChain/wicc-wallet-utils-js.git", - "brfs": "^1.2.0", - "chai": "^1.10.0", - "gulp": "^3.8.10", - "gulp-babel": "^8.0.0", - "gulp-useref": "^3.1.5", - "sinon": "^1.13.0" - }, - "license": "MIT" -} + "name": "wicc-wallet-lib", + "version": "1.0.5", + "description": "A pure and powerful JavaScript Wicc Wallet library.", + "author": "coredev@waykichainhk.com", + "main": "src/index.js", + "scripts": { + "build": "webpack" + }, + "keywords": [ + "bitcoin", + "transaction", + "address", + "p2p", + "ecies", + "cryptocurrency", + "blockchain", + "payment", + "bip21", + "bip32", + "bip37", + "bip69", + "bip70", + "multisig", + "wicc", + "wusd", + "wgrt", + "dex", + "cdp" + ], + "browser": { + "request": "browser-request" + }, + "dependencies": { + "aes-js": "^3.1.1", + "bn.js": "=4.11.8", + "bs58": "=4.0.1", + "buffer-compare": "=1.1.1", + "crypto-js": "^3.1.9-1", + "decimal": "0.0.2", + "elliptic": "=6.4.0", + "inherits": "=2.0.1", + "lodash": "=4.17.5", + "scrypt-js": "^2.0.3", + "scryptsy": "^2.0.0", + "unorm": "^1.4.1" + }, + "license": "MIT" + } + \ No newline at end of file diff --git a/index.js b/src/index.js similarity index 67% rename from index.js rename to src/index.js index a08bcd1..6f6dddf 100644 --- a/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ var bitcore = module.exports; // module information -bitcore.version = 'v' + require('./package.json').version; +bitcore.version = 'v' + require('../package.json').version; bitcore.versionGuard = function(version) { if (version !== undefined) { var message = 'More than one instance of bitcore-lib found. ' + @@ -71,21 +71,5 @@ bitcore.deps._ = require('lodash'); // Internal usage, exposed for testing/advanced tweaking bitcore.Transaction.sighash = require('./lib/transaction/sighash'); -// bitcore.Transaction.RegisterAccountTx = require('./lib/transaction/registeraccounttx') -// bitcore.Transaction.CommonTx = require('./lib/transaction/commontx') -// bitcore.Transaction.ContractTx = require('./lib/transaction/contracttx') -// bitcore.Transaction.DelegateTx = require('./lib/transaction/delegatetx') - -// bitcore.Transaction.CdpStakeTx = require('./lib/transaction/cdpstaketx') -// bitcore.Transaction.FeedPriceTx = require('./lib/transaction/cpricefeedtx') -// bitcore.Transaction.CdpLiquiDateTx = require('./lib/transaction/cdpliquidatetx') -// bitcore.Transaction.CFcoinStakeTx = require('./lib/transaction/cfcoinstaketx') -// bitcore.Transaction.CdpRedeemTx = require('./lib/transaction/cdpredeemtx') -// bitcore.Transaction.UCoinTransferTx = require('./lib/transaction/ucointransfertx') -// bitcore.Transaction.DexSellLimitOrderTx=require('./lib/transaction/dexselllimitordertx') -// bitcore.Transaction.DexBuyLimitOrderTx=require('./lib/transaction/dexbuylimitordertx') -// bitcore.Transaction.DexBuyMarketOrderTx=require('./lib/transaction/dexbuymarketordertx') -// bitcore.Transaction.DexSellMarketOrderTx=require('./lib/transaction/dexsellmarketordertx') -// bitcore.Transaction.DexCancelOrderTx=require('./lib/transaction/dexcancelordertx') bitcore.Mnemonic = require('./lib/mnemonic'); -bitcore.WiccApi = require('./lib/wiccapi') + diff --git a/lib/address.js b/src/lib/address.js similarity index 100% rename from lib/address.js rename to src/lib/address.js diff --git a/lib/aes-cbc.js b/src/lib/aes-cbc.js similarity index 100% rename from lib/aes-cbc.js rename to src/lib/aes-cbc.js diff --git a/lib/block/block.js b/src/lib/block/block.js similarity index 100% rename from lib/block/block.js rename to src/lib/block/block.js diff --git a/lib/block/blockheader.js b/src/lib/block/blockheader.js similarity index 100% rename from lib/block/blockheader.js rename to src/lib/block/blockheader.js diff --git a/lib/block/index.js b/src/lib/block/index.js similarity index 100% rename from lib/block/index.js rename to src/lib/block/index.js diff --git a/lib/block/merkleblock.js b/src/lib/block/merkleblock.js similarity index 100% rename from lib/block/merkleblock.js rename to src/lib/block/merkleblock.js diff --git a/lib/crypto/bn.js b/src/lib/crypto/bn.js similarity index 100% rename from lib/crypto/bn.js rename to src/lib/crypto/bn.js diff --git a/lib/crypto/ecdsa.js b/src/lib/crypto/ecdsa.js similarity index 100% rename from lib/crypto/ecdsa.js rename to src/lib/crypto/ecdsa.js diff --git a/lib/crypto/hash.js b/src/lib/crypto/hash.js similarity index 100% rename from lib/crypto/hash.js rename to src/lib/crypto/hash.js diff --git a/lib/crypto/point.js b/src/lib/crypto/point.js similarity index 100% rename from lib/crypto/point.js rename to src/lib/crypto/point.js diff --git a/lib/crypto/random.js b/src/lib/crypto/random.js similarity index 100% rename from lib/crypto/random.js rename to src/lib/crypto/random.js diff --git a/lib/crypto/signature.js b/src/lib/crypto/signature.js similarity index 100% rename from lib/crypto/signature.js rename to src/lib/crypto/signature.js diff --git a/lib/encoding/base58.js b/src/lib/encoding/base58.js similarity index 100% rename from lib/encoding/base58.js rename to src/lib/encoding/base58.js diff --git a/lib/encoding/base58check.js b/src/lib/encoding/base58check.js similarity index 100% rename from lib/encoding/base58check.js rename to src/lib/encoding/base58check.js diff --git a/lib/encoding/bufferreader.js b/src/lib/encoding/bufferreader.js similarity index 100% rename from lib/encoding/bufferreader.js rename to src/lib/encoding/bufferreader.js diff --git a/lib/encoding/bufferwriter.js b/src/lib/encoding/bufferwriter.js similarity index 100% rename from lib/encoding/bufferwriter.js rename to src/lib/encoding/bufferwriter.js diff --git a/lib/encoding/varint.js b/src/lib/encoding/varint.js similarity index 100% rename from lib/encoding/varint.js rename to src/lib/encoding/varint.js diff --git a/lib/errors.js b/src/lib/errors.js similarity index 100% rename from lib/errors.js rename to src/lib/errors.js diff --git a/lib/errors/index.js b/src/lib/errors/index.js similarity index 100% rename from lib/errors/index.js rename to src/lib/errors/index.js diff --git a/lib/errors/spec.js b/src/lib/errors/spec.js similarity index 100% rename from lib/errors/spec.js rename to src/lib/errors/spec.js diff --git a/lib/hdprivatekey.js b/src/lib/hdprivatekey.js similarity index 100% rename from lib/hdprivatekey.js rename to src/lib/hdprivatekey.js diff --git a/lib/hdpublickey.js b/src/lib/hdpublickey.js similarity index 100% rename from lib/hdpublickey.js rename to src/lib/hdpublickey.js diff --git a/lib/mnemonic.js b/src/lib/mnemonic.js similarity index 100% rename from lib/mnemonic.js rename to src/lib/mnemonic.js diff --git a/lib/networks.js b/src/lib/networks.js similarity index 100% rename from lib/networks.js rename to src/lib/networks.js diff --git a/lib/opcode.js b/src/lib/opcode.js similarity index 100% rename from lib/opcode.js rename to src/lib/opcode.js diff --git a/lib/pbkdf2.js b/src/lib/pbkdf2.js similarity index 100% rename from lib/pbkdf2.js rename to src/lib/pbkdf2.js diff --git a/lib/privatekey.js b/src/lib/privatekey.js similarity index 100% rename from lib/privatekey.js rename to src/lib/privatekey.js diff --git a/lib/publickey.js b/src/lib/publickey.js similarity index 100% rename from lib/publickey.js rename to src/lib/publickey.js diff --git a/lib/script/index.js b/src/lib/script/index.js similarity index 100% rename from lib/script/index.js rename to src/lib/script/index.js diff --git a/lib/script/interpreter.js b/src/lib/script/interpreter.js similarity index 100% rename from lib/script/interpreter.js rename to src/lib/script/interpreter.js diff --git a/lib/script/script.js b/src/lib/script/script.js similarity index 100% rename from lib/script/script.js rename to src/lib/script/script.js diff --git a/lib/transaction/assetcreatetx.js b/src/lib/transaction/assetcreatetx.js similarity index 100% rename from lib/transaction/assetcreatetx.js rename to src/lib/transaction/assetcreatetx.js diff --git a/lib/transaction/assetupdatetx.js b/src/lib/transaction/assetupdatetx.js similarity index 100% rename from lib/transaction/assetupdatetx.js rename to src/lib/transaction/assetupdatetx.js diff --git a/lib/transaction/cdpliquidatetx.js b/src/lib/transaction/cdpliquidatetx.js similarity index 100% rename from lib/transaction/cdpliquidatetx.js rename to src/lib/transaction/cdpliquidatetx.js diff --git a/lib/transaction/cdpredeemtx.js b/src/lib/transaction/cdpredeemtx.js similarity index 100% rename from lib/transaction/cdpredeemtx.js rename to src/lib/transaction/cdpredeemtx.js diff --git a/lib/transaction/cdpstaketx.js b/src/lib/transaction/cdpstaketx.js similarity index 100% rename from lib/transaction/cdpstaketx.js rename to src/lib/transaction/cdpstaketx.js diff --git a/lib/transaction/cfcoinstaketx.js b/src/lib/transaction/cfcoinstaketx.js similarity index 100% rename from lib/transaction/cfcoinstaketx.js rename to src/lib/transaction/cfcoinstaketx.js diff --git a/lib/transaction/commontx.js b/src/lib/transaction/commontx.js similarity index 100% rename from lib/transaction/commontx.js rename to src/lib/transaction/commontx.js diff --git a/lib/transaction/contracttx.js b/src/lib/transaction/contracttx.js similarity index 100% rename from lib/transaction/contracttx.js rename to src/lib/transaction/contracttx.js diff --git a/lib/transaction/cpricefeedtx.js b/src/lib/transaction/cpricefeedtx.js similarity index 100% rename from lib/transaction/cpricefeedtx.js rename to src/lib/transaction/cpricefeedtx.js diff --git a/lib/transaction/delegatetx.js b/src/lib/transaction/delegatetx.js similarity index 100% rename from lib/transaction/delegatetx.js rename to src/lib/transaction/delegatetx.js diff --git a/lib/transaction/dexbuylimitordertx.js b/src/lib/transaction/dexbuylimitordertx.js similarity index 100% rename from lib/transaction/dexbuylimitordertx.js rename to src/lib/transaction/dexbuylimitordertx.js diff --git a/lib/transaction/dexbuymarketordertx.js b/src/lib/transaction/dexbuymarketordertx.js similarity index 100% rename from lib/transaction/dexbuymarketordertx.js rename to src/lib/transaction/dexbuymarketordertx.js diff --git a/lib/transaction/dexcancelordertx.js b/src/lib/transaction/dexcancelordertx.js similarity index 100% rename from lib/transaction/dexcancelordertx.js rename to src/lib/transaction/dexcancelordertx.js diff --git a/lib/transaction/dexselllimitordertx.js b/src/lib/transaction/dexselllimitordertx.js similarity index 100% rename from lib/transaction/dexselllimitordertx.js rename to src/lib/transaction/dexselllimitordertx.js diff --git a/lib/transaction/dexsellmarketordertx.js b/src/lib/transaction/dexsellmarketordertx.js similarity index 100% rename from lib/transaction/dexsellmarketordertx.js rename to src/lib/transaction/dexsellmarketordertx.js diff --git a/lib/transaction/index.js b/src/lib/transaction/index.js similarity index 100% rename from lib/transaction/index.js rename to src/lib/transaction/index.js diff --git a/lib/transaction/input/index.js b/src/lib/transaction/input/index.js similarity index 100% rename from lib/transaction/input/index.js rename to src/lib/transaction/input/index.js diff --git a/lib/transaction/input/input.js b/src/lib/transaction/input/input.js similarity index 100% rename from lib/transaction/input/input.js rename to src/lib/transaction/input/input.js diff --git a/lib/transaction/input/multisig.js b/src/lib/transaction/input/multisig.js similarity index 100% rename from lib/transaction/input/multisig.js rename to src/lib/transaction/input/multisig.js diff --git a/lib/transaction/input/multisigscripthash.js b/src/lib/transaction/input/multisigscripthash.js similarity index 100% rename from lib/transaction/input/multisigscripthash.js rename to src/lib/transaction/input/multisigscripthash.js diff --git a/lib/transaction/input/publickey.js b/src/lib/transaction/input/publickey.js similarity index 100% rename from lib/transaction/input/publickey.js rename to src/lib/transaction/input/publickey.js diff --git a/lib/transaction/input/publickeyhash.js b/src/lib/transaction/input/publickeyhash.js similarity index 100% rename from lib/transaction/input/publickeyhash.js rename to src/lib/transaction/input/publickeyhash.js diff --git a/lib/transaction/output.js b/src/lib/transaction/output.js similarity index 100% rename from lib/transaction/output.js rename to src/lib/transaction/output.js diff --git a/lib/transaction/registeraccounttx.js b/src/lib/transaction/registeraccounttx.js similarity index 100% rename from lib/transaction/registeraccounttx.js rename to src/lib/transaction/registeraccounttx.js diff --git a/lib/transaction/registerapptx.js b/src/lib/transaction/registerapptx.js similarity index 100% rename from lib/transaction/registerapptx.js rename to src/lib/transaction/registerapptx.js diff --git a/lib/transaction/sighash.js b/src/lib/transaction/sighash.js similarity index 100% rename from lib/transaction/sighash.js rename to src/lib/transaction/sighash.js diff --git a/lib/transaction/sighashwitness.js b/src/lib/transaction/sighashwitness.js similarity index 100% rename from lib/transaction/sighashwitness.js rename to src/lib/transaction/sighashwitness.js diff --git a/lib/transaction/signature.js b/src/lib/transaction/signature.js similarity index 100% rename from lib/transaction/signature.js rename to src/lib/transaction/signature.js diff --git a/lib/transaction/transaction.js b/src/lib/transaction/transaction.js similarity index 100% rename from lib/transaction/transaction.js rename to src/lib/transaction/transaction.js diff --git a/lib/transaction/ucointransfertx.js b/src/lib/transaction/ucointransfertx.js similarity index 100% rename from lib/transaction/ucointransfertx.js rename to src/lib/transaction/ucointransfertx.js diff --git a/lib/transaction/ucontractinvoketx.js b/src/lib/transaction/ucontractinvoketx.js similarity index 100% rename from lib/transaction/ucontractinvoketx.js rename to src/lib/transaction/ucontractinvoketx.js diff --git a/lib/transaction/unspentoutput.js b/src/lib/transaction/unspentoutput.js similarity index 100% rename from lib/transaction/unspentoutput.js rename to src/lib/transaction/unspentoutput.js diff --git a/lib/unit.js b/src/lib/unit.js similarity index 100% rename from lib/unit.js rename to src/lib/unit.js diff --git a/lib/uri.js b/src/lib/uri.js similarity index 100% rename from lib/uri.js rename to src/lib/uri.js diff --git a/lib/util/betitem.js b/src/lib/util/betitem.js similarity index 100% rename from lib/util/betitem.js rename to src/lib/util/betitem.js diff --git a/lib/util/buffer.js b/src/lib/util/buffer.js similarity index 100% rename from lib/util/buffer.js rename to src/lib/util/buffer.js diff --git a/lib/util/js.js b/src/lib/util/js.js similarity index 100% rename from lib/util/js.js rename to src/lib/util/js.js diff --git a/lib/util/preconditions.js b/src/lib/util/preconditions.js similarity index 100% rename from lib/util/preconditions.js rename to src/lib/util/preconditions.js diff --git a/lib/util/util.js b/src/lib/util/util.js similarity index 100% rename from lib/util/util.js rename to src/lib/util/util.js diff --git a/lib/util/votefund.js b/src/lib/util/votefund.js similarity index 100% rename from lib/util/votefund.js rename to src/lib/util/votefund.js diff --git a/lib/util/writerhelper.js b/src/lib/util/writerhelper.js similarity index 100% rename from lib/util/writerhelper.js rename to src/lib/util/writerhelper.js diff --git a/lib/wiccapi.js b/src/lib/wiccapi.js similarity index 95% rename from lib/wiccapi.js rename to src/lib/wiccapi.js index c25e0e5..4cb288c 100644 --- a/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -346,6 +346,8 @@ WiccApi.prototype.createSignTransaction = function (privkey, txType, txData) { WiccApi.PROTOCAL_VERSION = 1; +//设置交易类型 +// set transaction type for (var item in txMap) { WiccApi[txMap[item].txName] = Number(item) } diff --git a/lib/words/chinese.js b/src/lib/words/chinese.js similarity index 100% rename from lib/words/chinese.js rename to src/lib/words/chinese.js diff --git a/lib/words/english.js b/src/lib/words/english.js similarity index 100% rename from lib/words/english.js rename to src/lib/words/english.js diff --git a/lib/words/french.js b/src/lib/words/french.js similarity index 100% rename from lib/words/french.js rename to src/lib/words/french.js diff --git a/lib/words/index.js b/src/lib/words/index.js similarity index 100% rename from lib/words/index.js rename to src/lib/words/index.js diff --git a/lib/words/italian.js b/src/lib/words/italian.js similarity index 100% rename from lib/words/italian.js rename to src/lib/words/italian.js diff --git a/lib/words/japanese.js b/src/lib/words/japanese.js similarity index 100% rename from lib/words/japanese.js rename to src/lib/words/japanese.js diff --git a/lib/words/spanish.js b/src/lib/words/spanish.js similarity index 100% rename from lib/words/spanish.js rename to src/lib/words/spanish.js diff --git a/test/address.js b/test/address.js deleted file mode 100644 index feb5cab..0000000 --- a/test/address.js +++ /dev/null @@ -1,572 +0,0 @@ -'use strict'; - -/* jshint maxstatements: 30 */ - -var chai = require('chai'); -var should = chai.should(); -var expect = chai.expect; - -var bitcore = require('..'); -var PublicKey = bitcore.PublicKey; -var Address = bitcore.Address; -var Script = bitcore.Script; -var Networks = bitcore.Networks; - -var validbase58 = require('./data/bitcoind/base58_keys_valid.json'); -var invalidbase58 = require('./data/bitcoind/base58_keys_invalid.json'); - -describe('Address', function() { - - var pubkeyhash = new Buffer('3c3fa3d4adcaf8f52d5b1843975e122548269937', 'hex'); - var buf = Buffer.concat([new Buffer([0]), pubkeyhash]); - var str = '16VZnHwRhwrExfeHFHGjwrgEMq8VcYPs9r'; - - it('can\'t build without data', function() { - (function() { - return new Address(); - }).should.throw('First argument is required, please include address data.'); - }); - - it('should throw an error because of bad network param', function() { - (function() { - return new Address(PKHLivenet[0], 'main', 'pubkeyhash'); - }).should.throw('Second argument must be "livenet" or "testnet".'); - }); - - it('should throw an error because of bad type param', function() { - (function() { - return new Address(PKHLivenet[0], 'livenet', 'pubkey'); - }).should.throw('Third argument must be "pubkeyhash" or "scripthash"'); - }); - - describe('bitcoind compliance', function() { - validbase58.map(function(d) { - if (!d[2].isPrivkey) { - it('should describe address ' + d[0] + ' as valid', function() { - var type; - if (d[2].addrType === 'script') { - type = 'scripthash'; - } else if (d[2].addrType === 'pubkey') { - type = 'pubkeyhash'; - } - var network = 'livenet'; - if (d[2].isTestnet) { - network = 'testnet'; - } - return new Address(d[0], network, type); - }); - } - }); - invalidbase58.map(function(d) { - it('should describe input ' + d[0].slice(0, 10) + '... as invalid', function() { - expect(function() { - return new Address(d[0]); - }).to.throw(Error); - }); - }); - }); - - // livenet valid - var PKHLivenet = [ - '15vkcKf7gB23wLAnZLmbVuMiiVDc1Nm4a2', - '1A6ut1tWnUq1SEQLMr4ttDh24wcbJ5o9TT', - '1BpbpfLdY7oBS9gK7aDXgvMgr1DPvNhEB2', - '1Jz2yCRd5ST1p2gUqFB5wsSQfdm3jaFfg7', - ' 1Jz2yCRd5ST1p2gUqFB5wsSQfdm3jaFfg7 \t\n' - ]; - - // livenet p2sh - var P2SHLivenet = [ - '342ftSRCvFHfCeFFBuz4xwbeqnDw6BGUey', - '33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk', - '37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3', - '3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy', - '\t \n3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy \r' - ]; - - // testnet p2sh - var P2SHTestnet = [ - '2N7FuwuUuoTBrDFdrAZ9KxBmtqMLxce9i1C', - '2NEWDzHWwY5ZZp8CQWbB7ouNMLqCia6YRda', - '2MxgPqX1iThW3oZVk9KoFcE5M4JpiETssVN', - '2NB72XtkjpnATMggui83aEtPawyyKvnbX2o' - ]; - - //livenet bad checksums - var badChecksums = [ - '15vkcKf7gB23wLAnZLmbVuMiiVDc3nq4a2', - '1A6ut1tWnUq1SEQLMr4ttDh24wcbj4w2TT', - '1BpbpfLdY7oBS9gK7aDXgvMgr1DpvNH3B2', - '1Jz2yCRd5ST1p2gUqFB5wsSQfdmEJaffg7' - ]; - - //livenet non-base58 - var nonBase58 = [ - '15vkcKf7g#23wLAnZLmb$uMiiVDc3nq4a2', - '1A601ttWnUq1SEQLMr4ttDh24wcbj4w2TT', - '1BpbpfLdY7oBS9gK7aIXgvMgr1DpvNH3B2', - '1Jz2yCRdOST1p2gUqFB5wsSQfdmEJaffg7' - ]; - - //testnet valid - var PKHTestnet = [ - 'n28S35tqEMbt6vNad7A5K3mZ7vdn8dZ86X', - 'n45x3R2w2jaSC62BMa9MeJCd3TXxgvDEmm', - 'mursDVxqNQmmwWHACpM9VHwVVSfTddGsEM', - 'mtX8nPZZdJ8d3QNLRJ1oJTiEi26Sj6LQXS' - ]; - - describe('validation', function() { - - it('getValidationError detects network mismatchs', function() { - var error = Address.getValidationError('37BahqRsFrAd3qLiNNwLNV3AWMRD7itxTo', 'testnet'); - should.exist(error); - }); - - it('isValid returns true on a valid address', function() { - var valid = Address.isValid('37BahqRsFrAd3qLiNNwLNV3AWMRD7itxTo', 'livenet'); - valid.should.equal(true); - }); - - it('isValid returns false on network mismatch', function() { - var valid = Address.isValid('37BahqRsFrAd3qLiNNwLNV3AWMRD7itxTo', 'testnet'); - valid.should.equal(false); - }); - - it('validates correctly the P2PKH test vector', function() { - for (var i = 0; i < PKHLivenet.length; i++) { - var error = Address.getValidationError(PKHLivenet[i]); - should.not.exist(error); - } - }); - - it('validates correctly the P2SH test vector', function() { - for (var i = 0; i < P2SHLivenet.length; i++) { - var error = Address.getValidationError(P2SHLivenet[i]); - should.not.exist(error); - } - }); - - it('validates correctly the P2SH testnet test vector', function() { - for (var i = 0; i < P2SHTestnet.length; i++) { - var error = Address.getValidationError(P2SHTestnet[i], 'testnet'); - should.not.exist(error); - } - }); - - it('rejects correctly the P2PKH livenet test vector with "testnet" parameter', function() { - for (var i = 0; i < PKHLivenet.length; i++) { - var error = Address.getValidationError(PKHLivenet[i], 'testnet'); - should.exist(error); - } - }); - - it('validates correctly the P2PKH livenet test vector with "livenet" parameter', function() { - for (var i = 0; i < PKHLivenet.length; i++) { - var error = Address.getValidationError(PKHLivenet[i], 'livenet'); - should.not.exist(error); - } - }); - - it('should not validate if checksum is invalid', function() { - for (var i = 0; i < badChecksums.length; i++) { - var error = Address.getValidationError(badChecksums[i], 'livenet', 'pubkeyhash'); - should.exist(error); - error.message.should.equal('Checksum mismatch'); - } - }); - - it('should not validate on a network mismatch', function() { - var error, i; - for (i = 0; i < PKHLivenet.length; i++) { - error = Address.getValidationError(PKHLivenet[i], 'testnet', 'pubkeyhash'); - should.exist(error); - error.message.should.equal('Address has mismatched network type.'); - } - for (i = 0; i < PKHTestnet.length; i++) { - error = Address.getValidationError(PKHTestnet[i], 'livenet', 'pubkeyhash'); - should.exist(error); - error.message.should.equal('Address has mismatched network type.'); - } - }); - - it('should not validate on a type mismatch', function() { - for (var i = 0; i < PKHLivenet.length; i++) { - var error = Address.getValidationError(PKHLivenet[i], 'livenet', 'scripthash'); - should.exist(error); - error.message.should.equal('Address has mismatched type.'); - } - }); - - it('should not validate on non-base58 characters', function() { - for (var i = 0; i < nonBase58.length; i++) { - var error = Address.getValidationError(nonBase58[i], 'livenet', 'pubkeyhash'); - should.exist(error); - error.message.should.equal('Non-base58 character'); - } - }); - - it('testnet addresses are validated correctly', function() { - for (var i = 0; i < PKHTestnet.length; i++) { - var error = Address.getValidationError(PKHTestnet[i], 'testnet'); - should.not.exist(error); - } - }); - - it('addresses with whitespace are validated correctly', function() { - var ws = ' \r \t \n 1A6ut1tWnUq1SEQLMr4ttDh24wcbJ5o9TT \t \n \r'; - var error = Address.getValidationError(ws); - should.not.exist(error); - Address.fromString(ws).toString().should.equal('1A6ut1tWnUq1SEQLMr4ttDh24wcbJ5o9TT'); - }); - }); - - describe('instantiation', function() { - it('can be instantiated from another address', function() { - var address = Address.fromBuffer(buf); - var address2 = new Address({ - hashBuffer: address.hashBuffer, - network: address.network, - type: address.type - }); - address.toString().should.equal(address2.toString()); - }); - }); - - describe('encodings', function() { - - it('should make an address from a buffer', function() { - Address.fromBuffer(buf).toString().should.equal(str); - new Address(buf).toString().should.equal(str); - new Address(buf).toString().should.equal(str); - }); - - it('should make an address from a string', function() { - Address.fromString(str).toString().should.equal(str); - new Address(str).toString().should.equal(str); - }); - - it('should make an address using a non-string network', function() { - Address.fromString(str, Networks.livenet).toString().should.equal(str); - }); - - it('should throw with bad network param', function() { - (function(){ - Address.fromString(str, 'somenet'); - }).should.throw('Unknown network'); - }); - - it('should error because of unrecognized data format', function() { - (function() { - return new Address(new Error()); - }).should.throw(bitcore.errors.InvalidArgument); - }); - - it('should error because of incorrect format for pubkey hash', function() { - (function() { - return new Address.fromPublicKeyHash('notahash'); - }).should.throw('Address supplied is not a buffer.'); - }); - - it('should error because of incorrect format for script hash', function() { - (function() { - return new Address.fromScriptHash('notascript'); - }).should.throw('Address supplied is not a buffer.'); - }); - - it('should error because of incorrect type for transform buffer', function() { - (function() { - return Address._transformBuffer('notabuffer'); - }).should.throw('Address supplied is not a buffer.'); - }); - - it('should error because of incorrect length buffer for transform buffer', function() { - (function() { - return Address._transformBuffer(new Buffer(20)); - }).should.throw('Address buffers must be exactly 21 bytes.'); - }); - - it('should error because of incorrect type for pubkey transform', function() { - (function() { - return Address._transformPublicKey(new Buffer(20)); - }).should.throw('Address must be an instance of PublicKey.'); - }); - - it('should error because of incorrect type for script transform', function() { - (function() { - return Address._transformScript(new Buffer(20)); - }).should.throw('Invalid Argument: script must be a Script instance'); - }); - - it('should error because of incorrect type for string transform', function() { - (function() { - return Address._transformString(new Buffer(20)); - }).should.throw('data parameter supplied is not a string.'); - }); - - it('should make an address from a pubkey hash buffer', function() { - var hash = pubkeyhash; //use the same hash - var a = Address.fromPublicKeyHash(hash, 'livenet'); - a.network.should.equal(Networks.livenet); - a.toString().should.equal(str); - var b = Address.fromPublicKeyHash(hash, 'testnet'); - b.network.should.equal(Networks.testnet); - b.type.should.equal('pubkeyhash'); - new Address(hash, 'livenet').toString().should.equal(str); - }); - - it('should make an address using the default network', function() { - var hash = pubkeyhash; //use the same hash - var network = Networks.defaultNetwork; - Networks.defaultNetwork = Networks.livenet; - var a = Address.fromPublicKeyHash(hash); - a.network.should.equal(Networks.livenet); - // change the default - Networks.defaultNetwork = Networks.testnet; - var b = Address.fromPublicKeyHash(hash); - b.network.should.equal(Networks.testnet); - // restore the default - Networks.defaultNetwork = network; - }); - - it('should throw an error for invalid length hashBuffer', function() { - (function() { - return Address.fromPublicKeyHash(buf); - }).should.throw('Address hashbuffers must be exactly 20 bytes.'); - }); - - it('should make this address from a compressed pubkey', function() { - var pubkey = new PublicKey('0285e9737a74c30a873f74df05124f2aa6f53042c2fc0a130d6cbd7d16b944b004'); - var address = Address.fromPublicKey(pubkey, 'livenet'); - address.toString().should.equal('19gH5uhqY6DKrtkU66PsZPUZdzTd11Y7ke'); - }); - - it('should use the default network for pubkey', function() { - var pubkey = new PublicKey('0285e9737a74c30a873f74df05124f2aa6f53042c2fc0a130d6cbd7d16b944b004'); - var address = Address.fromPublicKey(pubkey); - address.network.should.equal(Networks.defaultNetwork); - }); - - it('should make this address from an uncompressed pubkey', function() { - var pubkey = new PublicKey('0485e9737a74c30a873f74df05124f2aa6f53042c2fc0a130d6cbd7d16b944b00' + - '4833fef26c8be4c4823754869ff4e46755b85d851077771c220e2610496a29d98'); - var a = Address.fromPublicKey(pubkey, 'livenet'); - a.toString().should.equal('16JXnhxjJUhxfyx4y6H4sFcxrgt8kQ8ewX'); - var b = new Address(pubkey, 'livenet', 'pubkeyhash'); - b.toString().should.equal('16JXnhxjJUhxfyx4y6H4sFcxrgt8kQ8ewX'); - }); - - it('should classify from a custom network', function() { - var custom = { - name: 'customnetwork', - pubkeyhash: 0x1c, - privatekey: 0x1e, - scripthash: 0x28, - xpubkey: 0x02e8de8f, - xprivkey: 0x02e8da54, - networkMagic: 0x0c110907, - port: 7333 - }; - var addressString = 'CX4WePxBwq1Y6u7VyMJfmmitE7GiTgC9aE'; - Networks.add(custom); - var network = Networks.get('customnetwork'); - var address = Address.fromString(addressString); - address.type.should.equal(Address.PayToPublicKeyHash); - address.network.should.equal(network); - Networks.remove(network); - }); - - describe('from a script', function() { - it('should fail to build address from a non p2sh,p2pkh script', function() { - var s = new Script('OP_CHECKMULTISIG'); - (function() { - return new Address(s); - }).should.throw('needs to be p2pkh in, p2pkh out, p2sh in, or p2sh out'); - }); - it('should make this address from a p2pkh output script', function() { - var s = new Script('OP_DUP OP_HASH160 20 ' + - '0xc8e11b0eb0d2ad5362d894f048908341fa61b6e1 OP_EQUALVERIFY OP_CHECKSIG'); - var buf = s.toBuffer(); - var a = Address.fromScript(s, 'livenet'); - a.toString().should.equal('1KK9oz4bFH8c1t6LmighHaoSEGx3P3FEmc'); - var b = new Address(s, 'livenet'); - b.toString().should.equal('1KK9oz4bFH8c1t6LmighHaoSEGx3P3FEmc'); - }); - - it('should make this address from a p2sh input script', function() { - var s = Script.fromString('OP_HASH160 20 0xa6ed4af315271e657ee307828f54a4365fa5d20f OP_EQUAL'); - var a = Address.fromScript(s, 'livenet'); - a.toString().should.equal('3GueMn6ruWVfQTN4XKBGEbCbGLwRSUhfnS'); - var b = new Address(s, 'livenet'); - b.toString().should.equal('3GueMn6ruWVfQTN4XKBGEbCbGLwRSUhfnS'); - }); - - it('returns the same address if the script is a pay to public key hash out', function() { - var address = '16JXnhxjJUhxfyx4y6H4sFcxrgt8kQ8ewX'; - var script = Script.buildPublicKeyHashOut(new Address(address)); - Address(script, Networks.livenet).toString().should.equal(address); - }); - it('returns the same address if the script is a pay to script hash out', function() { - var address = '3BYmEwgV2vANrmfRymr1mFnHXgLjD6gAWm'; - var script = Script.buildScriptHashOut(new Address(address)); - Address(script, Networks.livenet).toString().should.equal(address); - }); - }); - - it('should derive from this known address string livenet', function() { - var address = new Address(str); - var buffer = address.toBuffer(); - var slice = buffer.slice(1); - var sliceString = slice.toString('hex'); - sliceString.should.equal(pubkeyhash.toString('hex')); - }); - - it('should derive from this known address string testnet', function() { - var a = new Address(PKHTestnet[0], 'testnet'); - var b = new Address(a.toString()); - b.toString().should.equal(PKHTestnet[0]); - b.network.should.equal(Networks.testnet); - }); - - it('should derive from this known address string livenet scripthash', function() { - var a = new Address(P2SHLivenet[0], 'livenet', 'scripthash'); - var b = new Address(a.toString()); - b.toString().should.equal(P2SHLivenet[0]); - }); - - it('should derive from this known address string testnet scripthash', function() { - var address = new Address(P2SHTestnet[0], 'testnet', 'scripthash'); - address = new Address(address.toString()); - address.toString().should.equal(P2SHTestnet[0]); - }); - - }); - - describe('#toBuffer', function() { - - it('3c3fa3d4adcaf8f52d5b1843975e122548269937 corresponds to hash 16VZnHwRhwrExfeHFHGjwrgEMq8VcYPs9r', function() { - var address = new Address(str); - address.toBuffer().slice(1).toString('hex').should.equal(pubkeyhash.toString('hex')); - }); - - }); - - describe('#object', function() { - - it('roundtrip to-from-to', function() { - var obj = new Address(str).toObject(); - var address = Address.fromObject(obj); - address.toString().should.equal(str); - }); - - it('will fail with invalid state', function() { - expect(function() { - return Address.fromObject('¹'); - }).to.throw(bitcore.errors.InvalidState); - }); - }); - - describe('#toString', function() { - - it('livenet pubkeyhash address', function() { - var address = new Address(str); - address.toString().should.equal(str); - }); - - it('scripthash address', function() { - var address = new Address(P2SHLivenet[0]); - address.toString().should.equal(P2SHLivenet[0]); - }); - - it('testnet scripthash address', function() { - var address = new Address(P2SHTestnet[0]); - address.toString().should.equal(P2SHTestnet[0]); - }); - - it('testnet pubkeyhash address', function() { - var address = new Address(PKHTestnet[0]); - address.toString().should.equal(PKHTestnet[0]); - }); - - }); - - describe('#inspect', function() { - it('should output formatted output correctly', function() { - var address = new Address(str); - var output = ''; - address.inspect().should.equal(output); - }); - }); - - describe('questions about the address', function() { - it('should detect a P2SH address', function() { - new Address(P2SHLivenet[0]).isPayToScriptHash().should.equal(true); - new Address(P2SHLivenet[0]).isPayToPublicKeyHash().should.equal(false); - new Address(P2SHTestnet[0]).isPayToScriptHash().should.equal(true); - new Address(P2SHTestnet[0]).isPayToPublicKeyHash().should.equal(false); - }); - it('should detect a Pay To PubkeyHash address', function() { - new Address(PKHLivenet[0]).isPayToPublicKeyHash().should.equal(true); - new Address(PKHLivenet[0]).isPayToScriptHash().should.equal(false); - new Address(PKHTestnet[0]).isPayToPublicKeyHash().should.equal(true); - new Address(PKHTestnet[0]).isPayToScriptHash().should.equal(false); - }); - }); - - it('throws an error if it couldn\'t instantiate', function() { - expect(function() { - return new Address(1); - }).to.throw(TypeError); - }); - it('can roundtrip from/to a object', function() { - var address = new Address(P2SHLivenet[0]); - expect(new Address(address.toObject()).toString()).to.equal(P2SHLivenet[0]); - }); - - it('will use the default network for an object', function() { - var obj = { - hash: '19a7d869032368fd1f1e26e5e73a4ad0e474960e', - type: 'scripthash' - }; - var address = new Address(obj); - address.network.should.equal(Networks.defaultNetwork); - }); - - describe('creating a P2SH address from public keys', function() { - - var public1 = '02da5798ed0c055e31339eb9b5cef0d3c0ccdec84a62e2e255eb5c006d4f3e7f5b'; - var public2 = '0272073bf0287c4469a2a011567361d42529cd1a72ab0d86aa104ecc89342ffeb0'; - var public3 = '02738a516a78355db138e8119e58934864ce222c553a5407cf92b9c1527e03c1a2'; - var publics = [public1, public2, public3]; - - it('can create an address from a set of public keys', function() { - var address = Address.createMultisig(publics, 2, Networks.livenet); - address.toString().should.equal('3FtqPRirhPvrf7mVUSkygyZ5UuoAYrTW3y'); - address = new Address(publics, 2, Networks.livenet); - address.toString().should.equal('3FtqPRirhPvrf7mVUSkygyZ5UuoAYrTW3y'); - }); - - it('works on testnet also', function() { - var address = Address.createMultisig(publics, 2, Networks.testnet); - address.toString().should.equal('2N7T3TAetJrSCruQ39aNrJvYLhG1LJosujf'); - }); - - it('can create an address from a set of public keys with a nested witness program', function() { - var address = Address.createMultisig(publics, 2, Networks.livenet, true); - address.toString().should.equal('3PpK1bBqUmPK3Q6QPSUK7BQSZ1DMWL6aes'); - }); - - it('can also be created by Address.createMultisig', function() { - var address = Address.createMultisig(publics, 2); - var address2 = Address.createMultisig(publics, 2); - address.toString().should.equal(address2.toString()); - }); - - it('fails if invalid array is provided', function() { - expect(function() { - return Address.createMultisig([], 3, 'testnet'); - }).to.throw('Number of required signatures must be less than or equal to the number of public keys'); - }); - }); - -}); diff --git a/test/block/block.js b/test/block/block.js deleted file mode 100644 index d4e643f..0000000 --- a/test/block/block.js +++ /dev/null @@ -1,268 +0,0 @@ -'use strict'; - -var bitcore = require('../..'); -var BN = require('../../lib/crypto/bn'); -var BufferReader = bitcore.encoding.BufferReader; -var BufferWriter = bitcore.encoding.BufferWriter; -var BlockHeader = bitcore.BlockHeader; -var Block = bitcore.Block; -var chai = require('chai'); -var fs = require('fs'); -var should = chai.should(); -var Transaction = bitcore.Transaction; - -// https://test-insight.bitpay.com/block/000000000b99b16390660d79fcc138d2ad0c89a0d044c4201a02bdf1f61ffa11 -var dataRawBlockBuffer = fs.readFileSync('test/data/blk86756-testnet.dat'); -var dataRawBlockBinary = fs.readFileSync('test/data/blk86756-testnet.dat', 'binary'); -var dataJson = fs.readFileSync('test/data/blk86756-testnet.json').toString(); -var data = require('../data/blk86756-testnet'); -var dataBlocks = require('../data/bitcoind/blocks'); - -describe('Block', function() { - - var blockhex = data.blockhex; - var blockbuf = new Buffer(blockhex, 'hex'); - var bh = BlockHeader.fromBuffer(new Buffer(data.blockheaderhex, 'hex')); - var txs = []; - JSON.parse(dataJson).transactions.forEach(function(tx) { - txs.push(new Transaction().fromObject(tx)); - }); - var json = dataJson; - - var genesishex = '0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f49ffff001d1dac2b7c0101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000'; - var genesisbuf = new Buffer(genesishex, 'hex'); - var genesisidhex = '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'; - var blockOneHex = '010000006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000982051fd1e4ba744bbbe680e1fee14677ba1a3c3540bf7b1cdb606e857233e0e61bc6649ffff001d01e362990101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac00000000'; - var blockOneBuf = new Buffer(blockOneHex, 'hex'); - var blockOneId = '00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048'; - - it('should make a new block', function() { - var b = Block(blockbuf); - b.toBuffer().toString('hex').should.equal(blockhex); - }); - - it('should not make an empty block', function() { - (function() { - return new Block(); - }).should.throw('Unrecognized argument for Block'); - }); - - describe('#constructor', function() { - - it('should set these known values', function() { - var b = new Block({ - header: bh, - transactions: txs - }); - should.exist(b.header); - should.exist(b.transactions); - }); - - it('should properly deserialize blocks', function() { - dataBlocks.forEach(function(block) { - var b = Block.fromBuffer(new Buffer(block.data, 'hex')); - b.transactions.length.should.equal(block.transactions); - }); - }); - - }); - - describe('#fromRawBlock', function() { - - it('should instantiate from a raw block binary', function() { - var x = Block.fromRawBlock(dataRawBlockBinary); - x.header.version.should.equal(2); - new BN(x.header.bits).toString('hex').should.equal('1c3fffc0'); - }); - - it('should instantiate from raw block buffer', function() { - var x = Block.fromRawBlock(dataRawBlockBuffer); - x.header.version.should.equal(2); - new BN(x.header.bits).toString('hex').should.equal('1c3fffc0'); - }); - - }); - - describe('#fromJSON', function() { - - it('should set these known values', function() { - var block = Block.fromObject(JSON.parse(json)); - should.exist(block.header); - should.exist(block.transactions); - }); - - it('should set these known values', function() { - var block = new Block(JSON.parse(json)); - should.exist(block.header); - should.exist(block.transactions); - }); - - }); - - describe('#toJSON', function() { - - it('should recover these known values', function() { - var block = Block.fromObject(JSON.parse(json)); - var b = block.toJSON(); - should.exist(b.header); - should.exist(b.transactions); - }); - - }); - - describe('#fromString/#toString', function() { - - it('should output/input a block hex string', function() { - var b = Block.fromString(blockhex); - b.toString().should.equal(blockhex); - }); - - }); - - describe('#fromBuffer', function() { - - it('should make a block from this known buffer', function() { - var block = Block.fromBuffer(blockbuf); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - it('should instantiate from block buffer from the network', function() { - var networkBlock = '02000000e74122c23a90d7bb207fad2cfd07fbdc33de36352b5561120000000000000000d6097b7aded2327c8ca979ff85367f664879a7a7f42e1914ab880e63276b8dd1b12eff54c02e171831fb8d1ea201000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b03984b05e4b883e5bda9e7a59ee4bb99e9b1bcfabe6d6d5cb348c1c7d580627835202f5ad93c2f3db10bb850a1a513979f8328d9f35aff1000000000000000006189dd01cf00004d696e6564206279207975313333353131373131ffffffff0111622195000000001976a914c825a1ecf2a6830c4401620c3a16f1995057c2ab88ac000000000100000001a9f062bdd6bf76f3059169ce8f30905e23b08b25e30570b2baca08ff2878b0e3000000008a473044022037da4b94dfbfe08e425b4b72476047bb45850fe9af109926dabebb8c7f0b93da022014de78058989b54d1a7ae19644c83ca4e26efd4000a4fe8e45659209468cd4cf014104861822906143d90a413c28c5aec29985ac36783d2c157fd0f87c55a5663aef51e74b0181740f3247aa1e7ab78b07379e1b1a94384c9442cfa5eeca8898769537ffffffff02e8030000000000001976a914b28ae06f3050160e775c806a42e7d1d127ab5dd388acb8820100000000001976a914017c96cc0f3a81c2604d9820dbb1b490127d2bca88ac000000000100000001b36da34608b43f5af519bff8f4ed4a30969963de3a7b7cd27ef897d14a0732f5000000006a47304402206ab21b1f1aa900eedfc4dbba741f972644647eb19627d1a664d1756d65e029820220070caebd37d1393e4e4af176f64d718bd860d6af08355a42cedeba6f509c240501210386b0396cf4aece2bf608adfd0e8d95414f6bdcd61b217241ec980d2f5f76eee6ffffffff01e882d000000000001976a914539c3e80f41382631d2d03c4778ed0fdf81b7d2588ac00000000010000000133f61c96b620149bdd45808dc8f2795bd8d9874a1d91fae44dad627445adc09a010000006a473044022035f04cdb8048e0a4995ae9bc8e59373f99b2751d5a920f7847d572090ea1265d022052e5eac0fd3e556171b4fe4bc15e4d5fd2a5f801d1707ce84dd9d74b1975abb0012102b9913536286170a0f6adcc2988cc2552bf1f97ec30d75d1ca6bd20b6b5394e62ffffffff0118fd6700000000001976a914539c3e80f41382631d2d03c4778ed0fdf81b7d2588ac00000000010000000151148eeeb3612d11bdd073f98f964c9431bd5ca67aa0ede8004e98f6d627f5dd000000006a473044022016838fbd4c9684407e771d2a99fc2a230ab655f315f1b5086949f286f71bff3102204ab02bf9e188619bc9b79bc9b01788f98900373a639b0888463fae7b3a4c66b20121029ac24d1abfa92582156ab553cc1562d56f48bcebadeadf1904fdff2dab74da62ffffffff0110ca4d00000000001976a914539c3e80f41382631d2d03c4778ed0fdf81b7d2588ac0000000001000000019c05873dc500ba9ae3616d92282c6a8723a8703be8c85fb880a4330b2995a56e000000006a473044022038ae1c068b089a73df1d369de616ce3bac0110fdb824523922934a6fb0e3f01102201fdb5edd8d77f2e97c4f898ac022be1e0c41d90550aa410d12471af305e520000121030c07ddac3638f0f9309d9e344fc9653aaf6430b4b38d703570763acb8246132fffffffff01d0aa4d00000000001976a914539c3e80f41382631d2d03c4778ed0fdf81b7d2588ac000000000100000001649072082c6150572663065f26554692502cbb8006f6ecac39e8cb421f5de070000000006a473044022004428233b5b46e36e244669d1370663c594d487b525cefb8d693e38286ba861202200f54176b57e8ec2a8e6ae4df41cf0cdc556fd7d6a58adef23e32bf6e744e1cf5012102820ebfafe39f5f4bf0b7e25ae9915cb7de8ceff88c0d01cac19bdb50a4b1e051ffffffff02c61b2107000000001976a914c225ab6924b62a12e85aa53f366eaee38609ed6d88ac3a986013000000001976a914c0fbecd8b2f85c31c5ac86630de53c7ae7ce464c88ac0000000001000000015a5c351916611a4b995dc75c482dd8afc6a813a5ce678cc7c5fb9e95b6e69bd3000000008b48304502201fe6c1b80f37c5e452c2ca4d1bee0fbc87e8fc17a13967d1cc9f685a29cc3e77022100f1a1fdbf297f50c46a2fe179170233181075260134fe3a8d8cf14490d72d10e9014104ec8286c3e7d962cd687cb9f3860c3e73866d4f79e57fe4df692680b6488c37b7009c4a963a5649323721ae3f20d6f393d7865f85b829a27f0b541bbdd7f15838ffffffff024e38c404000000001976a91484e16c064a30f69c78f9b3b42002fd89d8c900f988ac808d5b00000000001976a914a6e86762140b6d7f661b251cb7c3cf1afb2d870588ac000000000100000002507c35d72b8ebb55a43b5cf450f17f5f13cd3da4b263609cfc6e4508132a4ed1000000006a4730440220772619770d94488234ea4f47430f05cd5c78697a2e7791b12c6819602ad9004902204b2bc4aa967d0709a4c99d5f36f2317c44794489084cb593726c4062ad911cc3012102094d1fc9488b1ce68d021c6623b6d12ce2dfc0d6f527e6f2096765c245158624feffffffa216eab2a659f25ca6bc7bee9cc4a5e54772118f0a50d98f0656edfecdd849ad000000006a473044022009bb9bec4494389220e3188b37551b1dcabd035a7114a309c2ea62d1b7228d95022034beac693b005a9b5312b5c48c41f31da0665e1359be81dce8930c4c47de67f7012103fd5c201fed02e586282d48d353db05b58140e7a94e02d886204c35076eb70bf0feffffff029fbe0b00000000001976a91412ccec1db43e3a4cfde88e25129302f2a2246a4e88ac309b2400000000001976a9141e1800460fbaa6eda2ff7b52833555255af3926388ac8c4b050001000000010cc8087f431d229fa6daccad29eaa779c17312325e2cf651fa849b763fd85953010000006a473044022069b16749d22001b0a21744683d2d75ce9ad9f2492824912ab52b8830ea825dfc0220450abe230ceebfd021d262508ad447b249866e248c80d4e5c7827308671426c6012103fbef068b7a0dfdbda3f53acb71cbe12c39f76550177b975d2038c2e32dc430bbffffffff0211d58700000000001976a9148341537bc729cd32e1b6304ad7800357052c848988ac002d3101000000001976a914469dad04041ecfdd7e98079cda2dfde6015db7fe88ac000000000100000001eb4f434c6dfb2ea5e453afcc3b19c7834283196056e5e55222196a24898ec396020000006a47304402201a89a95ca205d07c70b327cd13d5cd17e02e79b0f1de9bc4e69bb50562cbab3702202970e1e064e68a9f2223c4a61e8065f4df299e87c62ca99598b1e375141ffe6401210358f1c439eb89915cb7f33e1c87373d6664684c0cb5095ea60ed585b78230a8f5ffffffff01d873070c000000001976a9149586513770ac55d28829279275f2932062d5816a88ac000000000100000001d0203c594d3a05ec4e01a649927a8ddd3ec45052bfb78e62e3da4bafb801160d000000006a47304402204255fb29cf9c7c8f451d714d9a076af5fe3f073a261194eb9f49ac5fc3f0ece802203d6e6d9f858da72b77edd739461702eee90facb55b4e682e009c9b40511391d50121027c386ac59a9a1dfbe52f11151388664d6ac544a9957ffc3c389b63a05404f479ffffffff01708a4f01000000001976a9149586513770ac55d28829279275f2932062d5816a88ac000000000100000001f0c4498ee70b44e5ef0fc7c9ae9d43d5dcc31f7498e161968eafe9935e2a57c5000000006a47304402205af8a8a26addfd6b631c8c4af22eb5f45f5c42bd2e2a060041c860f634e240fd02201510e5417cf1f9cc1ecb55980f13538a16a53952ff4ae8e1265557e68f4e8f95012102a7ac4f4831ea24367dcc21e2d586e56d06c78ce6859325686de71e479622dd62ffffffff0176200000000000001976a9144827ff0289efaf9374ce8db5d40a1e7e56fc36a188ac000000000100000001d77155da4a5b0435ea9369150cf44ec7556d3a716c79a4159c509cf1ac947ffc000000006b483045022100db0fe1cbeb3dd70f97633019424ab83046a01e4fc5c3d241d03226092fff7f58022050a7ec815892734a5ed85791433f79a1c436ab19d3dcb9706a378b2dacf86078012103f9ce7b512cbe79da51ea4bb25f24dc435ac87a55ea8cb5fa99411177255cc89fffffffff0110577500000000001976a9145cbb4918a6e7ac4c2de529afd3f0ead258fe129088ac0000000001000000015d011bd73d1c66ef56eff8bc3ca0ab99c500512119dd07028bfabf400dd22b22000000006b483045022100c9c30e7dac291752b08514d59ae9e034f8697ca1457cf55dba90d6d33e21f05b02207f802094dd1d6e427f45be7f8ce4ac4687eebd754a4a9ad148c2506ff5623d3e0121027544301ab1cdea80f629d7bd7a61eeff0f7c3eaed35679b4422b5e017189790fffffffff01f9744400000000001976a9148c692ee5b907848285c29f3dfeaa6ff9c79f156388ac000000000100000001602d404fe5970e4da1a5454baa50808a53df3d97bcacaf1ec798d5db3312e57c000000006b483045022100a9fc8ed2b99ae012b76d5cabcba58ba2c901c153f9572a6e359b18b4b0577fe602201b2f701e30400962b9441bcec0bd7e78baaf04e80480d874f6a156789a044195012102cba6951d129436ad8256685668bca8ce044a2e81fdceadeabfd39ac6b362ee00ffffffff018cfcd000000000001976a9149586513770ac55d28829279275f2932062d5816a88ac0000000001000000017cd5b2e220f41041f3b707945caf720be28057a269c6d4cc9945d984c34aa4f9010000008a47304402204a567d5bfda4edd2bf7a6e239307eb8b2ea84c3caea8542278409d09f6fe762e0220655fdbd14dfdfed1371d362a510d84e9afdd76083cac8087f83ccc084b451dbd01410486b1655a520d98dce4e50fd573a5579f69bf3fd73cbb3911d296ce47b0d27082bd9217421c00c4c52bdc227498a4ff061370be924913192efbc5b28a245119edffffffff0170c9fa02000000001976a9149090c8dae016b9fd3a9fdad72ba4df54b1834a3f88ac000000000100000001716ff994b731a312d2c4eec8915b9552465d4b21dd47f685a99e8e814315bde1010000006a473044022071d095a786bf87ba8ce3fb07dc75f9fd77ad74dbb296c12b10b3efbffad0c561022032c2e1ecec570e9a031a31a0ce41c099152ab179a543379b85c5ad10aee4a1770121025e06cd8d479b3808dcaf919b1289ab837316ce962732ef272b4fdac5777fee56ffffffff02a0f703000000000017a91461981717dc4d24394220e11fd09d42bf2ab5bcb5874f600000000000001976a914d4696a9c84387c12240ad5485fb9b4d6b7336b6288ac000000000100000001ee5a78d068854fcbfaa23774b9ce121f83bf809862266e97600883c3f108ecfc000000008a47304402201a01877972a71d7cf48e6213d5e79544aeb4c7b2852463f82b21a2c6264c1bea02205d622c4caf8f461dc92f2d1e9cba92d5b522a7e0029f22225466611ccd8817d3014104da6bc6a6139bb008454bfc8371141a5fb8ba6de87e9ab1578ab4c31e1b25513d6d1b1b0e66b0e39a29f6baf19f9f0faaf51d22bac02b1c07eb08058498763784ffffffff0120f40e00000000001976a914ca7eaccd4ef037929be65c7706992b055a41362e88ac00000000010000000121c6ce4a254c4d3138f1a7b61986720bd14d2903e7fbcc6aec3ffc88f8bb62dd000000008a473044022070ea08ad064f8b8709ada1680a6d153f1d52f3d1033c4c34fb45e6fb15ab552a0220070eca82b87d2bc4a44c1f6495456853b29dabdc092cbd18a9b498d6108c4f290141044a3460b7e035b73998236aca3312d8a694f7b1fceeac872e4ce65d012a6f7d8698fde52a204260e8ea1eb210597409b8ef2ad8ece83daafc40377071ffde1c6bffffffff0120bf0200000000001976a9142178ad5ea2623ae333116185b1540b29f09808f088ac0000000001000000016c2708faa270ae79b3c5c7e754d40609fd31cf4af60fbd56299c9cad52a5fc19010000006a47304402204faf65d5779f2c109ab8a9481c3f655846d2ce2e6af8c72334fc853daabb5bc602205aaf7bb1e112ae29fe9f01f8e4efb410612359c1cdb96511d8acf1ad3b32300c01210381ec871716e98a71777fecb4e18f05c56c3e44a079234f0c1cce75fc68e0d00dffffffff0225c91620000000001976a91460ff4529c00d5730ed8c63f6c2e0894e7b86e58488ac00497f0f000000001976a9143f2a486ea9689c05455033bb588917767c8ab10d88ac000000000100000001649072082c6150572663065f26554692502cbb8006f6ecac39e8cb421f5de070010000006a4730440220085b4b898bf767e25972b24cc21c4b43aec7f6dd501c8a4865be496ffd6a4edd02205da61f3c71fae81530f51d055a44e45186cf20c38128b92f34375d4ca0a1743e012102d5db1bacfc9a4c375a9223db95e33ae1f591af8dbdc600865e5053f225da24b9ffffffff0204bb5809000000001976a91495951cc4260ac3a378cda2e3395f811f88c4c7dc88acfe226800000000001976a9144a86401e50d73d8aa53a073b7c0c06157bda1ce488ac000000000100000001d33571f1fd3b59be9ad3d3f715dccbae79bb2e59b9cc933bf408855495f30cb9000000006a4730440220754a9a82cb29213bd687eb304c122ba75587fe91877ecd749ddc11c1582ce0cd02202fd6dbae3242b7095e82a105d0abcb63d28a4e3473af2bf4a5f2eecd58e0c5f9012103a3191ea65afb1b5974e502a53981381b5c5f6d34035c66d67cd2072f26d0a62effffffff02e082ce05000000001976a914ab5309ce0f75a383a80ec11e65750b3d1ac24a2a88ac204e0000000000001976a914c8b0325d344252d7df7a61ea11b9c1570a31680288ac0000000001000000016ac3a07914ec216826fd443655dec92110b86da10426ca8a5b447ba74ebd3841000000006a473044022072ac351fd4a03bb6a0e965bcfc3472d64a2e3afb0a5a65d41e59fe6faf7202b6022003cbcc236ed4178c3057b6b3e3c0f1bef577503631c20ccad7cdf9cbbe0cb047012103d24e158108ce0fa7322e1f95515e201b0d4f78c78b21652b3a276c109884eae2ffffffff024054fa02000000001976a914e6b42818894cf54e996aab26e94d7328f179357488ac005a6202000000001976a914b6dca96067a94ccded28ef8ddc9e6338aab7979188ac0000000001000000012bcbfdbb246f6795352e15ef30ffc30a823266d410b13940de1c6bebe2e950ec010000006a47304402200bf6a4e0d050186cad9ec0520faf230ae95069a23f1f1d7a94160e2671da26e102206e519151d5c82f41794df47ba57e2a747ad3b9351666c7b36d168134400e9de3012102af03be02630ba0a38a2f9d38832fedb4e8b5bf979422f234085fa44a38dfeb11ffffffff0210270000000000001976a9142d5e62586a3d244c5e3c4ecc32eaf7630639a1fe88ac8dd90f00000000001976a914420da0b7a488010afd9cc41cf96ff14a05ce970188ac0000000001000000016e726655a6ceef71c0629ee997aea74fbf3ae906699e069d6c9b93bd62d6f666010000006a4730440220527961b5de466f8eb082579be880d422866ce91255f3a2101f3f7bce6f4cf56002204e3e4909c9dd1b4ff736070d64590902ae3044118defe23a22f9e30c813c8d01012103f4aa7eaf4813e36dce5b07feb06be26c40d8650d6b87ff71e0748be9899ab50effffffff0210270000000000001976a91449254ac0c3f62eba4312a85dec152d34be8b95ba88ac60900f00000000001976a91497cc736c7499b6dc1016f728073d04783fad514988ac000000000100000001273aca4518c4bf276bd9ea75a9e2c1dedc724599104ecbde61f85c4c23a53e6e000000006a47304402203d9d92a705c310dc331da23c9c33133b238a326e0d137bbafa3fa573395e5595022050c5076a0ef48e2af4ae38d25e715dda448dfbce281b7571ceb85f643f1bdd7e012102f548a1debbe3727f8d01a8df06d03e2748c158570318c3e256cdc675db0fdd59ffffffff02020c8300000000001976a9146d860b78f982c94e590d4986f0ece2121202d94088ac4a0e1200000000001976a9140e51e95ce63f343d4268bd071a03c567ff80bb3588ac0000000001000000012db825d3ca7b56f1c9c60ccd4e4760222a3fb3c41a3271ea228350d27b4ded04010000006a473044022028d12c789842ae14d29cfbc6739c166414f9c508e45f1c1542925e72d8512de102204c8fd0be2c28f1acabfb34eaba2cd4930cd3d27478264c740f78145d43e3b2a90121022c3e626b9df73142c40993d79b995ea820b5c5237859f0e4c405a5a7d8c37e58ffffffff02b0633700000000001976a914e098b0eab9e76331604b9a9dc7446c62f20b6f1a88ac4015d200000000001976a914ccf3eb1c37695a7c5eedb040325b535bb4430b0588ac0000000001000000019c975c4bfb36f1faa640ac2b179aca4cfbf745dece1dfbd5acc26820fcb634c2140000006a47304402206ec42f99865e495ac51e1383876f4bda098f1406e7743378fb214612c40b09a102202d6ce2dcb64d57bb391590ca626ba19fdbc45396591f4b32e6271e1d3327a8cd0121022a023d7d15923fd2d3351323fe743dff984a87507dab7694adc75a80e22b6fc0ffffffff0222689001000000001976a914757662cfa0463ea90634d203c71ce57c5e092e9c88ac9d73c900000000001976a914e8d84dfd711bb9ec2b74e8bc2bfc95506f482aec88ac0000000001000000012812f85fdc7b6abbfe8a0b88a9a896273b986ac81b4323f8367676f4bb745ec2010000006a473044022045dc6d8e30bac58d090383a6f64c4856a03f09520c019ee3e8d8a47096293f3d02203a772ae961d0dce63c1ce6191235ad6306ba75d9a51146f0b6ff68bcfe70e90601210367c1a91e6ba1125d451539058ba452cd02a97b45381d3b3a70726cb46938491fffffffff0260900f00000000001976a914ca2eeeee7e725d58a2dc104ad5fed4cda700b46088ac66990301000000001976a9142bc3de6fe26eaf73f7e69ec00c6a295a6cf5c39488ac00000000010000000151b46528b920fc823690945fd7ea4629fb960bf408383bed8550cc1542e2b96f010000006a47304402202643a944d6d552e44957b4c94e6cf519c922613fe05369f11cc7e7bc2b7d2eea02205fbd2d5c3551304e91b5a8ea58097e104f99293f1f709adc4fa65492778a1a9e01210330b757708b1578b69440e07c9a13160e90e838fe05cd1e8c88eb6b70da950501ffffffff02d74e0100000000001976a91493eb43b95cc78327c0b962273bc12934b81be4e288ac3fe10300000000001976a9149093dba908264eec7eeabf40969842e3a4f31de088ac0000000001000000011cd13e76ea53b8862eed3b6c5b57e90c1ea82491f49f58aef2935113b05b00b4010000006a4730440220085d68cf406921d17752a717d8f744965c31d49c751231c10f7fe84f7d3eafe1022068f69330824a929f95bbc0b9ad6e3865c2479398e1023bce9295eb2364947d39012102afdc01cfd4f30ac98301015dbb4d95db2423effb73eb5562712834b293348132ffffffff026c2b1e01000000001976a9143bb03138f0525466232e9a5b3ef8d067740ab1a388ac4d538300000000001976a9148b95334f9e312aec176095274f4ba94e22b204ee88ac000000000100000001a3d41ae91943253125f5daf3557d225a0e902663916d61f532092d4622f4c798010000006a4730440220572b6675f8bdb97bb01e1ec1b3f4e5ff15ca23689f4ba8331f4ce7cbde672d16022042f483bd519cf8aa82b3dc9eddaef8673b244405bb94e0f04aea46ac4e68a288012103bfd8dcf3a70403a1ed4d1e519d9c4acb2eb922ca98b8588a8e50c0596b869e82ffffffff02442a0000000000001976a914e43126376d70c8ede82b626fd27f016e7bf74b0088ac3e810f00000000001976a914b02faa6a8a3776e9e8730edcf0a10474b06198fe88ac000000000100000001c323f4fd89d4cc5dbf5eef2cb3b708c5eb52ec6ab8b91e7bcc194482c90539f7010000006a4730440220423272b85b1758045a77f3e2f57a9293c59112c48d85c90410bc7964b97afc3b022022dcdb4e7f8c9254ae286fd6818b0c452f26ff6d85318ca97acf1f60bac370a3012103ee28fd365326672cc05f8e798e3c5a0ecfa00123c26b88e4f91cb81f58715c73ffffffff02e0673500000000001976a914cec8ad83c825d2f78c4f8a24f15253892f67618788ac28b90000000000001976a914b27940450993cdb1cfe6330958e82acb98d4b84488ac000000000100000001f02f961b41c006d8f72eeff8b3b57116217325e3d2db188720fb19b2a1fe8141000000006b48304502202631b16684b0ab481fe5189871507168360def8c43d893bc9bb9c36fccb61d140221009b1f2f853f113a3eb3f12543adb1f8b0e67de9d5a7d369ade56dc03d94535a04012102b87670dd656e3e542eaa7f0d12528dad3222d5eabad3dbe0866d0765b170967affffffff0278e00100000000001976a9142b84df243d010fdac32c714338fd811783d3d2fa88acb8f8c0c9000000001976a9143cc16c4522a396ea37a1d4ac57f700779601d5c088ac000000000100000001ca72c6efed43e4b8a86a6b4c7b3c988a239372a7ac6e84bac3961287309fa132010000006b483045022100d7d936b0f0c12ea909010e45fff284ead7d08569e3ffe716a2ce2c87c9245fd50220621f444a4a151d22cdb3ad5f586110db7b4f454b7eb0069685fa69260a0ef71c0121028f81e539260205ae7bbc22cf9c388b57cc5f9e2a180302db5a878f124107e4efffffffff02d3328702000000001976a9141f541dfebbeb51cd77f68ee3e879877f981658d388acabf9bd08140000001976a91485301528e5ad68e21925f1f38e60d9e11dc1eb7c88ac0000000001000000015eb75b01e18ca08845933b30a397ae03b6230a854c58836efd8ccf831666661d010000006b483045022100c3be50a3b07c6c4508df4cf3935816e8d5a12f44cc852b5f0e297c668c4c231f02200d20115aa2e66e9c79aabdc0c684b941b0e2e238e12329bca2f4f2f49c86860d012102da535e96fc5a1b3c3a77c07cf254e47bdac7220ce188892ce1e54511b49dc477ffffffff0280c3c901000000001976a914e1ed9eccb3653a240fcdbac8c76d52f17fc964f388ace0533546000000001976a9147da7a23cf7445bd6be3811dfe3af49fb7f0a2cc088ac000000000100000001ba183a01ead18e32468681b9cfae7d7dadebf3099381807b89df6b1f5351de2e000000006b483045022100bb685f3cc05680c798fdb0a8d66110079e0a19ad627ec75f4f5f677fcf4e82ce02207648e482d70beff1c7f783b12a99dd43f40ea57d63367e7fcf4c1cfb7cd04304012102105268f9eaa0f694ba4104a2fa34a2fe9ed0a6fa234febc64a7969c8e952bc64ffffffff02905a6a00000000001976a914d3e5c3a1f16fdf0008e07168506482d7482711ce88ac40420f00000000001976a9149913be3ba628eba6811bc0cc252eafbef73ee40288ac0000000001000000015efa958a8905fcdc2c5e0b222ebcbdf45a05356432a32a934cdceb3563019f5f010000006b483045022100c21f70b9addee155acc29ff3fe05d6c5a6246373c43e7ccfdb6d5fbee037b2bf022007d6bee18e535b45daaf6808dbdbe686d1b8fcbd92fe46aa31dbe4f7e377a616012102d46da59ba6dc1eb24c88295e14e4733696fa12bb04d68f2ea184727065f5bf66ffffffff02d2ba4a05000000001976a914174c26508d593f90ed1a55a6f092d381b3dd736788ac2b25544e000000001976a914c0a135c4b05a187289ed8d25a31cfa04bd1ca4aa88ac000000000100000001320aa3852a23214f3f444e2683f3b545a555cd46544d3aa97383f840839ea1f8000000006b483045022100b55e45c19fd6a810d045a77ca2fa33827e85bd88bf6147729d37de3aaad6b2fd022068d4b78993b5a0bdd364b002aeafde175f33592b1f7c51e5f0f95355cb54a3ae0121028d47279ea007706e624271a369bdae02d5658b6b5deadc1b0221518ed096352dffffffff0240420f00000000001976a914da5dde86d69a5d9dad88763f2df4b048953c7d0488ac80380100000000001976a914f5710c7a405f1aeca11b79ed8203ae5328853ba388ac000000000100000001777e61de7f2cea472a3a851bd5403599ecccb8ffb382582861e0f5172b1867d9010000006b483045022100fff70cc33bd128648a9dfe6c5b2e2bfad4f1c3eb5a8cbf97f0038409c8598aaf022064c89f5a37ca3980a171c0004333aa35a305b5ac1b11532218ad73401be3f26901210266ee2a40edde81f8acd7b19c219fc07ab476a2b4f8a3d7cfe81c5f511435f1a0ffffffff0230d6b601000000001976a9145621f431fa99c7d87e40573fa2bc31e781abba5c88ac00255602000000001976a9145ed051ff5a28a48678b34d635e7f203b9ef4e09f88ac000000000100000001cf8357bf24882d3a03544c4657de9f7cfd9191eb1f7bcc17ee2ec22e6a84e694030000006b483045022100a0af8623feedb5e3921487422de1347844340a5471c220042d1586aac492d930022029cea3c5dea4408d58e5fc366fe9cb1f992e73a1c3052a18a8dfcc4e1fe80c190121027bdf5ea599028ced662ed71b4f9c36b803ae07c70144c434dc872fe58176a8edffffffff02bed38101000000001976a91438675862d52a02d8ebb5b0c7746436521c9e5bd988ac25133200000000001976a914e5711ed1d4b0751bff7c8266f613c5b1fc6df31388ac000000000100000001e8d02977a8c854749336aa21237a74c1449a1432c97b9984f7ef73663f4d9add000000006b4830450220549ebac060a94f875f70893baef873558e5ffe9bef6662e4a74d3d3d41596f66022100dada2ca77d646fd9c24c1215abe80c3998e5521cd408fd3924073729e50231390121035fdd68c73f464c0364ad77084edd6566a2e94cd6ba60227fc2bb52f7dae31d8effffffff0270791205000000001976a9143341879a5abd625fb07c88d5681869438d39ec6688ac904cc800000000001976a9149307b74ca38170f6c4617efe73bb842aafe763ac88ac00000000010000000192c4bc2ee78b5faf50ab4b79658d38089283dcd2c9044fb7229505618d0a253b010000006b483045022100a23f73354759e9f97f814e82fd63079ce3ce37312c1679619298795115ab7501022001110cafbfffb01a2793bba530caf994c3344ae29d0b594ac2ac8b781be27dea012103be139acb8b1eb484385939a6cec7297ba3d65158407bcb62153b4af94a099581ffffffff0293b80000000000001976a914d5a99e28eaf7a5337a6f3a56a1d2436dea59fea888ac22479700000000001976a914ca4f1c265b75374e4102ac2559a5694fc8799f4f88ac000000000100000001c4c7b5e9622430320c9202d5af797a04283818ebc53aa4e450962d6c0c5b9d04010000006b483045022100889fdb81acc0348fe140e73cef1219dc2fe8af67e813eaf009d60ba59e39c5cf02200396f4ab692a5c4c17aedf5b129a39a49314917f4ba68d74d553eac2fe13c9e6012103881abad2f5b53ce1b1d1fed517344a0823a8bd2d6aeaa61776d5011e2376eff4ffffffff027c330000000000001976a91491373ef109cc861eb6e948b046753cd004aa11f288ac66559700000000001976a91439bcf6db3c66a9e032083b405c3b4dda0267f38388ac00000000010000000144a7f3a00f9bb763b2d5dcc4f54d3387cedfc47e19fffa6d83060956b0f1d197000000006b483045022100be57d9b2fb8578dcae72ec784e11d72f0956b56670deeff316746f438854f28902203530051affd587a800fa5a52904bc00fd3dd249501f0aa08898da73fc9e88cbc0121024bc3b58780d69d43cd8fcf9c850289567014f5d5963c1245b3fc8bef93498927ffffffff0268334100000000001976a914b0a72052ae4630c850c68b23885202b1596d956e88ac38a01b07000000001976a9147241ec9ac7c29efe9985fbc69927f70029b40af988ac000000000100000001579d2101d3b10dce5716e2a7c7b5727bb30086cfee4b6da1823f66f5b0baf213010000006b483045022100f1975cf86198a316ecda478fda199f134a9783e615f1d3df16816838d7d9306402200c2ca1dc6c200627624be248221aab8de11c86a483744aed29276c0a4b7bcab4012102b2d192c1740e213ef0804b579535234f45c69674473f5a691199c9ffd72f2bdbffffffff0279294e00000000001976a91408843fcfcce6c092f1ba9d17acbf644c803e422088ac87bf2901000000001976a914ecbc2f775d741490d4cfe4d3a61d6b57b7d2ab3788ac0000000001000000015edc6c135fb3b7b95c945c3a64a60ab38f42572dbca58b5dc22d678a7af1b45c000000006b483045022100e3e60dc61028174ba8198627b29242faa12232d57570db169c97b9cfa8acbb4502207fdfdb729a9a04afbb1f73e8765de137957d9be5d39f1ce442dfcbd00921e4fd012102b3c3b2d51c86500f1e754198e38474a6ceab39759d233e9299e514a4f789d3b1ffffffff02ec261a00000000001976a914eb29476acf4ad065d90af94e2662201a06f7ae3e88ac1a6e3400000000001976a91412082207ee0f399539b547ebff49727374bc2ae888ac000000000100000001d3addb2ceb3cfe904b0552c8467efa6306a42cf45b56426e19d6b6176d9e22e4010000006b483045022100ed5922e3053025c7527d5704def6ddb56f8a02ce45f56c1198d84fde89c0b214022020a980d86a056f378d4942c8ba6fbe3f18b55fee3406b15a300026311a151074012103ad9b97eecf95726db5713be1700376d33a5ff83aee6a15197075ef59285551b9ffffffff02b02a3400000000001976a9140d40bf9e554dd37839394a15c84ad2a3794b89a888ac52df2200000000001976a9140b71aeee3833b17c82ee31051df0668fc37d463088ac0000000001000000016fdeb0188cdae06b9e83d5aac5ec68c09136199b8165adb6cf75f5efa22e67af010000006b483045022100c92be15f1296a8a865ab2d6d41e781b7cb7b8d0dbaf5dae34fdb9ded70eef93b0220479b34b7f370d1f9cbbfab757b5e1880d8e35d4ab5c1fb1ae3aece33cacb4a20012102a106d4af749bdf605f5eac7ad9d46a72f7f0598fafb82a03c2e635ea68b8f4ddffffffff02cc880f00000000001976a9146c5184afd13a71dfde0dcb681813c3861866af3f88ac0b300000000000001976a914f425a393ebbe9a3fc3c34957d8bc691863c895c488ac000000000100000001d8de133e6f5c5411ed92c39e18cfa9aa5e71a50e7e0f3cb29db9e351341159e2000000006c493046022100c85b8d6ef594ea9a69f1fec82c117243b196a3485eadc66bbebcef98027b4850022100f3b83cc70610e77c9430f17f75d2d7e055f3733778145b4781734c1aab2ad02d0121028d47279ea007706e624271a369bdae02d5658b6b5deadc1b0221518ed096352dffffffff0240420f00000000001976a914da5dde86d69a5d9dad88763f2df4b048953c7d0488ac80380100000000001976a914f5710c7a405f1aeca11b79ed8203ae5328853ba388ac000000000100000001853160f3b6e2785caca300bac5430d2b3c7c0de1ab18b63bb96167f3da618f17000000008a47304402204b8babc6c254750f2008dbcd2e4b7ad04191228df503eda79ef225665ea09e3102206dca042aca915cf1490f63f859c81e7fe80dcf90ffb97344358dbd4f0bc2236a014104409e655d836f67c7c095da0184c65515431b296401602a3d68262869f3f992c6cc7f913a43be3ad0cc1df3d37512c80a1e37405b733a203243f0152512d4bb04ffffffff02c02a6410000000001976a9141a99c14fe5b2abad38bca2c355db786c7a82d6ad88ac30b57e05000000001976a914185c9e53b6e4171f1aa6b35390b2b960b71741d688ac000000000100000001f7c5a3cb32097876d35001d0ec50f28d7f0fbaede580a918ea4287c3f8e116c8010000008a4730440220665bf3b4cc7b07f2b53f4036b3b3bf74c85bab72efed6802c200c4eeb7deed9502206257341efe59353402f24e616634aa4c6e90388072a33dc5ffd0f205b768dcdf01410450dc028d6bfdc291021090ac8d42a568d69fa2638fc89dc76c4bc82cc2ce38186034560319fe0665f316c8dc66e31f779ab9665eb632e49067bc64c43568eb98ffffffff02201efc01000000001976a914e5665fa435239a42dec015c04ab3f83e80fa045a88ac0b74f1d8010000001976a9146187ad1cb7f4093a7ebd89dce4ef2354009388ba88ac0000000001000000015f73519677abddd79f854d9a93b4d6cecd211c6cd78ec302f60475fc6f9fa08b000000008a47304402201a454001be9d3404269c127a255d807a3536a92e4fbf449682288b03da44e6cc02203146198c92074a632bc37e92ef1c712c8615c825a33c14597ff77c587876826b014104b8789f0453d982a2f2b51a8bc5a3bc71e2ab9562cf2e7bd85dcd1ac21e8d3b77cdbbb2ac8c7f75eaa94fe23008370b3d0ca8e19c95b3071e89a6916c7e3c4d8effffffff0200879303000000001976a91433f4812fdd403247e86d7a1cd7e8cda3a09b9e2b88acf0135808000000001976a914a89469416e1cec6311eb04a798615429640cda4d88ac000000000100000001c9274bb3273d026c99e00cfdc35f0a70b01c35b08604c8d2243b0c8bbf476d6f010000008a47304402203e3e7237d3680c114d804843d6fbcb893b01ad31aa171843dbf089bdb01d8cfc02201470d19947d78f9c9299c57d6c3cb47b6c4fb0bc7d082fd6996984e0395740a80141040ef0c03173ad8917cd86938950401f95039526feaa187115c8a237504920cd0619883e1cc408ddc4808dc6ac7649ab6c08831f261aeff4631bdabbd263984a0effffffff0260e31600000000001976a9141030ab0117a2bcd090a0e044d87ecc80d6bab66188ac2a528c05000000001976a914ceeae18e590c48de17b3f978465c89894ed6f95788ac0000000001000000016a411d2a3de51595a80f22f2e1ba84576371d971472f9ac24b6132a1fb1fe808000000008a4730440220111aa46e1633d7be21c6dd89a26ea8174410b9db5545f663216a2161866749130220539f94c9ed985b977c7ef40f23e63eb9d899e4bd905ac449f388ead7b83b0bbf014104f8b6b50f288bf5805a54e71d76e0ed2483218fe9aa8c12a8bbbbd4c4e3999aa446a87edbc5722d01bd256259fd33cb24513c2514a684780ab490cbd93ca36092ffffffff0261464d00000000001976a9149e14f554d90fc1f8e80392953a9b4afc8ec2827a88acfb246800000000001976a91457d9454d85d5cdba9a6a1f0b54450012f3a1d03388ac0000000001000000013babeb83449c990c4fede2465099db7f217a1649e1207319d0907f04f5c43191000000008a473044022078bacdd5e66a1a12e33cebaf303c07cce0a43b757b9ea0f85ae33cfe66cdd2ee022050826d3c4427ef0bf5357fdb95db33d207c8fc9ad9c53459027c31046d549a8e014104293397b707b5a23a9ffee09940b3e16d9dd585dbb80e0b7ef083148c492d2b32e65f878c0d3926fbeaedbe0792f8a2bd04da33f8dbf507126af5078c044a1db0ffffffff0230e60200000000001976a914f5710c7a405f1aeca11b79ed8203ae5328853ba388ac00350c00000000001976a914f0dd368cc5ce378301947691548fb9b2c8a0b69088ac000000000100000001124d837c44bd2b345237f27bf759245ce2f7da168c67f13fc206e83bece9d4d5010000008b48304502210087b09589c4b5feb5e4663fb4d22e7068af25c6d4a4fec8edf6455ea5a4388578022059acaa0056cbf6c3a9b334b1f2018cfebcea18b4e7f84f6fe1aafe6798aee2e20141041e11ba348505b1e8be9a4e1723377ed31d03f1640cc68782e8a9d24e550181bf8a3e09d19edaafb0df0698882f4585ab5bcfc5e6c4169d58e7bf1068e55dc9feffffffff023a986013000000001976a9149a0f7f1e60867d16cb60a4dafa61dc32cd2e3a0d88acc8f8ff33000000001976a9146e971364ae0bede923b7cb28d367413510760b4788ac0000000001000000017966a2d0eb7fce33ace82bc4c0d1d4f8a96b4fd7d13f759fb60b90b56f37d38c010000008b483045022100ca95c5064dc2ee585c15fc1ee3fedcfdf7cceff3346faa18ebe8bce5842a30ba02203527488c6b4a5718bfce41a2de6fce65aa7138f1a2f6c72f3e55705a75bd7f2f0141047a69bd825ab06eb8d8b46fe4f86e2b806d4d536d4694b84c668675b0fe00b4d4b52eaa3655080863de126d28f393e9c77621d07d8c3bd0d1056a3d00a7171db4ffffffff02009d1c00000000001976a91475fe37e63a11f3dbc9dcef07825483b8105bcfab88acb9317802000000001976a914e80d9f396d5da926d25d8c7fcfbacca2c8c9fc6988ac000000000100000001deee959fee56f2612657baf6129364b6730ce35f2f2dab657ce22af82ee1b4a3010000008b483045022100f82e75a0a04a8cb14395ba3de6a47b68050796777c23c287012e3161a3bd0f6902203899b588ed685ca8896a012614d2c42115598ea08d55f5fc5cbf7f84b207816f0141048d6a16767516cfa38e2e9fe2af31e27dfb15cca7cd8c926d64a5a2c33480a895b3c83664b50714116d9c6e48cf3d87903bc54577bad0bb24d99e10010c3109c9ffffffff02d4f21b00000000001976a9144f51332849fb0546182081b805b5fc528b2120ab88ac8bad1000000000001976a914c6b2a32b468cef28a9d4a2304ff83f80314fe64c88ac00000000010000000111bbb5438301722fd575accaf2a839070aa7050fdb48e0da00835f14a49ba3fd030000008b483045022100c88c8f183041c7bb7998ec27cffe2fc02bf3e5a7f2b250423d70a72c0d90a43d02205fcca7bc718117b4e6f1e3ea5670b89682512e49734ed42900f7722a2c36e394014104094de7f3d8b58ebecaa329f2d9ee41c7040225415fe910753f491d2a9c044f721f7568760ca14e5e8c9fc70045e33f714cf83a152dce27d5027990a72324e0eeffffffff0242f33707000000001976a914b6b2df18fb4fa92b4e0f5f96ac3d5331c5cc36ed88ac0e21b204000000001976a914de82acab0f37d0a26ee5a51e58524d5eba30eba488ac000000000100000001f3aa5055dbb96f18313808c7c1305b3bbb5dbcee1c2398528c891fcd493faf19010000008b4830450221009efc33106f82dbdba82fd6319a6b53fe9baec4342d66d7b68518bb651199f0a302202cb1b73072a7a8cc290f10d9fa8ae41b749eb168d71f17280872b200474938e2014104417443fa374c00cca0ea30604c7aefd6f21b374a67b5ab3050075f9d62c12d47e43aad055ba447e2e4ec7676f683dd33d3e3646709dac153446ffde34ee2e34affffffff02bc750a00000000001976a91443262f596e7a65672ca56334a795cea898121dcc88ac4dc91500000000001976a914b1eeede25eb666a34bb33acdc5ae7850abbe81e188ac00000000010000000110c7918c6e46668bbc05114864e3f8fef4e96fa0f6cbed9faa1c753f6536d3b8010000008b483045022100e368c9ef534ec91c1cdbcd5f0e5f95ec670645e8a5a05a226dc3fb89c2d3878e02204f2b0d49bfa0e5f947adb2adb5f5da55b69dc016df97072003368fb79469c5390141048f60ccb14e412221aabf01f713eaf25d12e764505ab9f54d5faafa75482006f9891cd4a57ca98edea9719dd1f4874a5574f3062c585ead24c104f912d88f76c2ffffffff02a61b3400000000001976a9141fe1c54e815d5e667f310ca8f4fc610a06ce154988ac9ea55401000000001976a9140d4a24d35fe37112cc1be874ac266960fb666fdd88ac0000000001000000013e4feb6ed0f5b761429cbd095483bb9325d049e394b88b8f82d4af888a999479010000008b483045022100e6ea99c65c417aef733d0f6feae1a2e43c73461520d50e2bf7626665459b0a8f02200572553dba49b258332a3c2ce461b648ece6649c6cd206be04a6b7c5bdf082e601410420d2e23be09a121d8290649441d4d6a00a69df7f61281e0746c529c7429ab475371435829b91965f719894da5439e69cf04aaadb5a91a4a4d3b5a4eb396f6037ffffffff021c980501000000001976a9142b2a422e2ba5e050d1812a9d4f0bdb3c5c0a791e88ac71073102000000001976a914b8e02b9cd3b7a25f31e4fcfbf4f828ab9a177f9788ac000000000100000001b935034809ae629d9f29f0ded3440f4e2d8baf9f9cf89879b3610f51b165f254010000008b483045022100e63c9ff9aeaa8845a7feeddcda844988163b2c5ed529184121026d2553cb07ef022061528663de154ec2d3392a43a62b2ecea1d5d8fd7c859e1d89786ee2730ca28801410429d01739dace5cfac8447d8551d06718a609deaf1e826a7fc25c6648b88bd5da1cda9105f845aabb8c216a3857826d0aaeb32f0c71c45e574b5634b1820c8192ffffffff02978b6701000000001976a91486df3b2d24ae69ef12b1f0eb2fe4b2907047a5aa88acf43d5100000000001976a9148ab2ae9d4eefdf5c13e88b297b853b8461a7ac6988ac000000000100000001cb21cafaf3b7b016f86233c6364f6cbc16e314ccb4aa11b1ba260d47e1e67925010000008b4830450221008e893cbcbde1824f54b782da2ec8a075c29486273680b336f145aee0c11859e9022039ba1e22d90ab46600e4ea4c97a2f23def73b55a06f694e8569194eead821bdb014104c716b5b08e411785cb2712c12e58ce18c7a3c6aa31f707fd83fe40fa251edb1a9422a1beaab829623b55991f1222baa611c8f6ecc6f5d0837b6903bb49883134ffffffff02d31c5e00000000001976a914cbe6ca3c6ee0d502f6df956f3b9ddb80275d958288acd6072402000000001976a91428c553835cb95c12f1f9dc7b7ba9eac3eb7c3ed888ac000000000100000001f021ac29a2d0b05eb6e2b471c0af9113efcc7c8f6dc85d5513f56ee549cb91c8010000008b48304502210097b2e5921231da06c6c4e5d343104cc70b7e7b197eda82447a90b09f77b7074302200f23ae89a2e4c12fd309c27afedf5055a68461631107ff161baa3617938f66c901410423a38d2d3aa597789d39903b7eb80e989ecc66ccf10f5ca8bd274dbbb703c4a4596ffba4fe62de1aefe4580c761e72c2e1b4c6fce017e239e18888f71a41cd64ffffffff0220e88d00000000001976a914bf0b795fd8b79b7f62796070779727226577843388acf81f6a00000000001976a91438d8af7bc118d40dedf94b738f8fac011f05b64288ac0000000001000000011569a87b45e016068b575b73d60ee9ef7d35a8319a5255e2a547b4ff00794415000000008b483045022100aabf3e1277a077d5247d2a9d532b48a3e8e7b585281f69d8692ab1a988604e1a0220191cceb0cf29cd10aefef6444f11aa2b433d4c9d95d7fa354e61681c2af30e9a01410470d0259b8f0d5034c235c829a8b13915e04c747159f6bb26e89fee3bd9a0c50f60ae594e54243fc7639e1e2cf67c6594533a993b02a85293d87a66f598540571ffffffff02a0bb0d00000000001976a914da5dde883cc084fad0d72ab4cdeb11205fc63bf888ac70110100000000001976a914ca7eaccd4ef037929be65c7706992b055a41362e88ac000000000100000001181fed550dc092404ea20275e94359f3e5d96161353811f48bdff313de0c125b000000008b483045022100fda418ec9a3147fdefda1309bf58137e7921e57d30d67dcced102b5d78e9905702201733f69f5754a8867923aafc9e5c4a96e315be2aac11021ed38b37dd4bb92ce2014104da6bc6a6139bb008454bfc8371141a5fb8ba6de87e9ab1578ab4c31e1b25513d6d1b1b0e66b0e39a29f6baf19f9f0faaf51d22bac02b1c07eb08058498763784ffffffff0190940d00000000001976a914ca7eaccd4ef037929be65c7706992b055a41362e88ac00000000010000000111bbb5438301722fd575accaf2a839070aa7050fdb48e0da00835f14a49ba3fd020000006a47304402200b77bf39c7a72b581b8fd7bccb0e032350f7abb7b4254cf8e0f5248c1d9ae9f70220526af0fb6a3b2cc92a82cb06bce250a06877f0fde151e67415e6a2f28405a865012103d799787474d743ed1b8df4d417783c1b5e2e78a102e33f277a64971390ea294dffffffff03945912e5010000001976a9149bc9957b09c245d39c3917510bd9e05736c67cbf88acf420cf00000000001976a91407981dcf86e5e13ba4c065d9f9476c34eabcfb4988ac80fb651e000000001976a914e65218b9a7683303f6dc805d402d25950257092c88ac0000000001000000018fefa67b4502fc780064b4d10b77cdddc2d0bcd2d69f799e51c0df2552ea939e000000006b4830450221008e50d557ef26f173463a86adba49966dabeccc7ffef92b4e4ce785b88a0ccc5c022052afcedc884a2f603e8a5b12a746795d6aea8226430db51f4bbb12e40b57f120012103674f89df91621af00629f97f566767f688355ebc97fc01d14c51b70fbda24525ffffffff03db3f2000000000001976a91427cdde93ddfa070233c68b694cb85fb9997aece888ac599f0200000000001976a914ff5c109fce9d655d33680d55e9c7a74c455883db88ac7b9e0e00000000001976a914c0192c748170eb5490b9163e0f5f7c3c9c50c34288ac000000000100000001740120c1e446bb1a839c9b9a1bcbdb8fbad2d68055c8d847810088d7a1468320000000006b483045022100d1bc0a611e92abbf8c4e8a44b6347ce1a366b2aba335ae345c8be11b144c638b0220662ae07f35733a14b0fa48eb377fe7318dee6e635d59e3a063234d7226c73fd9012103ce4498a8412968f705d75b1ba7b5d79299e20bb9cc19f4acd8eb59dd0916ddc2ffffffff04c059d100000000001976a914813c4d05243cb64d32b21460360112bfd3b499b388ac1495a000000000001976a9142e143d46f8fc8e6dc94dcdde9ab3c73cbe6d9cd888ac800e8500000000001976a914cba04cb546c9eccab7c6f835d60e0189843ee5b488ac20a10700000000001976a914b31a32c32834bde2651e51e36e22f37cca431e4a88ac0000000001000000025eae9c64a6e9a9a896b4b8f833844a96e6806b0e021307f4730dbbb097fe6645060000006a4730440220680d2fae8d08cf2ded9401c070efa27f98353740402e8b28a5943ba240049f2202205cc09fca3247aaac8c86db9337826e94b6f98f10817539105d1d1ba7b277f49401210224394819d214109a51c2abac3bceafd404a6a0591c1e9100db89f22e23c2ef66ffffffffda990246ee3a8368cc2e827ff0ba41172c9fd3a1089fc0ba62c1b0f95532a998010000006b48304502210080681ac2afc3f59503bd79ae605c7aabc4ac88b66115ed9994ea2db59218e42402205b61511542311259a37d93f9ca5e48933c05cd9c82ab35f4365b631a3c400a4901210224394819d214109a51c2abac3bceafd404a6a0591c1e9100db89f22e23c2ef66ffffffff01b0360000000000001976a9143b5b06bf745bd18b66e3dd4bba1824a16672eb7888ac0000000001000000025725fc135209a978b44c8d242d4e0365dab7ef21590bf6c6b9c6ba33e135331c000000006a473044022074df443fea96a9d6cbbff9a34931134045b3063c203dce34371178014e3cf1930220215dbda357261975ffffbd9039a947bc71acda571e231f12d05b23f91f68eb840121034dd36bfbfdd7e845479ee48682c4f782fe66e85d135ebb826d7ee119719bd9c4ffffffffc07afbf00251f537e8fedcc834f43246f8a97db021818e834a433898721b4be9000000006b48304502210085e2773bd046141d81d01d5b59e0d5986646ff2f2eb186d7028ccbd04199c981022006e4de78ece565e3c81849403f9190bd131acf1d86fc1a6e7cc43c059a95d77d0121024dac20befa60963a0dba41a7625a632d7398e49afb92111d0d4a2c7a8c688d95ffffffff0170cee4090000000017a914c3c8e5cc4486a617748d946eeeacbd99039d04518700000000010000000113564c11a0fb53e31b4c382e25cfe3dfe59e266759fd2895808def70f24bf7af00000000fc00473044022026e6f4ae9c5033efdb48aed1190f98e4177190846a4a66a7336d4dc21d6cc55902205bd1cf2fcfd1c194ce10f204117be485c21c94130f4b8d177f225779ab9a74c501473044022005afa168749712cdbe76694e51dcb060e37d33caad49d806afa3e6ad4189e552022011eec2bd514609fa9c390647561f03400cd67c9f047ecad32224b36f38dfb1f5014c6952210372f70a3f4ea93f6775c0e87486b1308115479ccfb219ac6aa62df34246b32ef02102748c8d6bea89f79627402514daabcd28814e4a543812ae334e101a40212303262103e981b390020a5465c4c3504e2e7f63838642812ead315580a5c3cc8848dc427e53aeffffffff01905f0100000000001976a914f9187f5c76e90d574746bd5f61883e753c0e1de188ac000000000100000002bd1452be9adfb2aaee1c51c312b44fc8adc35fd4c2fc4fcab5b2111c9a51a02d540000006a47304402202b7d09a5b90651e4e77a220000fa134feef96c570d182556f597b7bb8253043302207d0829f620d8bdc86dda3b141cc37e78393cb6e6c3ed88801bc17378ec74f0dd01210259f00dfb22a5f496d6575945175813e211c855fcb39f0a94f5c431fb512bfd40ffffffff39b53904843a12da55a44806f77f0d352ace33565ce0bda2bb21ba3d241353ea000000006a4730440220316c78a229aa870d5c3ee4c897f8924fd7fdeec5ada8a00a9f25445f2601781902206385395c271339a2dd6e285efbcab98d6112d3fc11edb810e860aad34b21f11101210299c4795dac95e81964bea178d62b007fa8fe7f047fd4a21161924783f0d880cdffffffff0140bf0f00000000001976a914eb84dbf2edd461b3e983f7de911239e150cc6f8d88ac000000000100000002d115fa1ae8fd0b6d5878dc787fe79712b546b53316a1f1cd5450abed7ef89206610300006a47304402202e4772a3f45f40da54d54d2d68b5d6f3f0b7f8737697362a0b7f4374873678c0022068d25a1dfe8faccd349a53e3c116bfb7af1a1051956da3f8ce19e74b35314849012102eb8e086efb575a031c5a01d9e10bb3984bb4bd88b2430cc60a3ffe3bd9df5026ffffffff07ddd6f71e0da29004d4649bc51729457c81ada42aadd970cb13b5766f3c82f46f0800006a473044022046c6e3d999914176aec9ad2bf3af460165812b4b1acbc5881ca8fbdf7445bb9d0220687c03a8fb427f305fc5daaf705694537bc8995becd735c72d9b8bb43b0b05a7012102eb8e086efb575a031c5a01d9e10bb3984bb4bd88b2430cc60a3ffe3bd9df5026ffffffff019c160000000000001976a91415a2c078b214cc95d7ad87c7eb45c264f2c9063c88ac0000000001000000027caa31452e709a5aea64e201b8d712751aaa63828dc1a466fc5eb5ca86d6fc79000000008b4830450221008089d52ee9a0ed71ad25441df44a8bc4c2ed82879fa430e73e3686030f5f080d0220099c02362fc29844694aa133f00207f71d7e8ff1650d1ef974f36cf32950b360014104d84611fa78824128dcacf21ecccce744620a8610e906072ae6cb573d01f9c333f02f9fb799afda52ff5116fdef053460f01e7c7a372ec4f94e0bee8af7125d93ffffffff68656e1123c69cf73337643417eebca345d41d5ca847393d3db0e451b8e40172010000008a473044022076bed872ddf06522b16804382c2c96a7828dbecd8e59547d6f46503e4349f89e0220437ae2fcf9046e306eef258a75f10332d0b775e93c0c5bd2920d654f40cd754b0141040d756049f1ec92e3d3c3cf01ae02ffea271c4b4aeecc71f7a278de5c09b9112c2e61db1aa4b430722931a60c4a89479a62f25694d8861bddff5941258f36a1ffffffffff024b630a00000000001976a914a0c5b38f7c2368e96dfc4526bf2ed463ca0d4b9288acb7620100000000001976a914a12136aca8620119ea6aa100ac3da9b99809b69688ac0000000001000000012596aa4b5997ecdd15a1d400697d8e52828a01cd65f7e35651164e4f96c49c63000000006a4730440220233648a5d8773ab004c2cc9d8982498a20c456653399115e38b8e6751a678fd90220479eabf4540a653d4c57950061fb8970a4063873b48b0e5ac63ebf2ecffdf16f0121026f4f7b5176851570e91b518d7d301d557a7404dffbc8a88fcd66bd525c0f3480ffffffff06e4884700000000001976a9149b7687c561eed2073b263a35f1a47753caf5b32d88ac70288302000000001976a914e63fbe349c4a83009a1eb1a365051fec31b4451688ace0775c00000000001976a9143b6aa25bc62434c30a4a798a9e3f3996bef7137888acac19ec02000000001976a9145ecf0cd918f472fb4a2a72a45b46dd95b13530f088ac603c1701000000001976a914de6e34bd2f7907743107141a500c599cb9ed1aca88ac100b3b09000000001976a91431d7bb7e733709288eb30d0f19811203bc7f4f7d88ac0000000001000000021fafffdb425cad075e85adc266dc22005480cf93fbace93fbf9023921c79477e010000006a473044022038edf155b171df595a8f38cc9ef2b9c517134301a7c607a28a68caf809e4cc190220782572761ceb03104779f6a0442e678df799edc73f25eb2c3497bfd1c5e686d001210245c19602bcfeae6f09481e45a847fa2d5391fd13712e9a9a12bbf61aa8e80527ffffffff9f8620f6c9f531ed3b5d1c5f55e7a511c24d1d855aac206c90276e35c2fe0684010000006a473044022056825d30a6ac44bb833ba62f1150fc8a4c2b31a5fd43909c2354065a9746ca1a0220408199839300a0c9137b3963f174a75700c119e88825ad840f061c8eab0a300a012102e20ee178f2eb8c71d6c19c82a1c27a43c90616e0fc8d065d181d530b455457aeffffffff02e2f94100000000001976a914dfba28dc856c9a949fb67a55b234adb957416dfe88ac34c0f201000000001976a9144c64073ba9d839d4cb578f88cf3f72690eddb5a388ac0000000001000000028eea3e838f3a9d04730a6c2c78373437160b36cce20c140ffe56f15c92a003dd010000006a4730440220590cb1f0005d74882aa09c87def0ec1762b7af74ab3ad267a5c09fafab9bfb9702207b708cfa0e4b66a7af158d0d7d4553c1a190887d4cd1c34e04502d366c64cef2012102aa621b1cac7e835b5ec78e6324136d3d70c9ac213dec4aa97b32d691eb081d8bffffffff7a38994b5605c572e160e7b7b9e9de1eb4c9889a8f300d8b7045168e4e03e93f010000006a47304402203cb6f7dfdedc77f35ab86df573b6b853dafc1a28d9154dfe93f8195ba0a06dd602203c3f05e8a5cff0f9510d27260d1c9df01181ccfcdaeddca804c462c44af52e3f012103d3e562c5114b26191c8bd2af9f195c5eb5c8f6b757a7e72016570169c7679374ffffffff02d75e1c00000000001976a914dfba28dc856c9a949fb67a55b234adb957416dfe88ac4943f001000000001976a9143b29af8b165554c52b710dda5285dec00038238c88ac000000000100000002b791f6682e071fe6b384ce2fb0c8f1fd58c867f9ae076e98be8190c454bc5211000000006a4730440220206e8872d69b18b7dc0b16fba168a81685c33b8bfe10da79c0730023bff7a787022076afd2b9e6f296f1fdfdc73d5cbd5fe510c75c647af8ded2b3670ce242d67dc50121023cb02d3bbd8bc227b20b6f8affa80464e1f9f2aa684f2e6175ad18f6f1ed3ac7ffffffff1b39183f6c881581dedce68a6a708602c9f897e86ffc8363beda770c957fe955010000006a47304402207dfd5c4ce70c05ee332904eea35315934125b7cb48e765ac0b9ab6d9600c516a02205377ab5b89a53398781e3e3a262aa45628f999308f3cbdd591d2a62c896351e001210338c12cce00a01ee5675f76a685a9bc57af8b3285a8b074e465880adf6794b8c7ffffffff0264ae0700000000001976a91454157b374cbe22e6d57577b5ea31ba7696f46c0c88ac18196f00000000001976a914ca359613589c6df6e4646d962effd2a6e6b7556088ac000000000100000002b5b715cd300ea36492e8fe95a1001a00c5120f9a3969a47cc9c7191978e87c80040000006a473044022007bd254e07ed53ecf3a100f4ee2539109404f8ce589c70c7e497cb116301705202201d268081223073aef6ac12a3798b367023e20c0ba5a40b93ee331b057ba06a10012103e8e47440766a0d1f4696f5520b2b0c86aaecb8b2a7a33de489c477d753a34677ffffffff0f9a358cb817afba91e264ff1b41364d98628b52bf1a7f0c916a9f08fbaa7850000000006a47304402200dc3cacdecdea6d5c81fe97534afc4510c42f94a6770fe515570c378e10a60db02203bd3b614870c72c0639df43af4441b34379ded3f85d9e5a0bc521fc0746d02b00121022552d66996d64cb87f4827433bb345a0b7a1d3b02f394c7e889fa9e1791f6c00ffffffff026f420f00000000001976a914ec4d996b5d9f22dd1e4ebcde6e06dce850d6d8f588aca0860100000000001976a91474ef9b69d30a2b2af63adc749ac3169d40abd67688ac000000000100000002cc129ac4ba3782defdbdabe80c93569371935a14805aba8f403a2587a36efde0000000006b48304502210092464f2d4cb41ec0d39a450fa9186752dea45fd92714739d5796ae8eb78321ce02206a26d3e3a3313d09ed604d2c4a2b54c640b8a001b0bc0f8f245d0e723d8c0d970121038795e76aea87acfdf50f3ea0a3fd7886dad42d6eea24b31827512298fddc7f92ffffffff85c6b1af317eb00c4996f718d3e4ba1a16f6bada87f2b088ed38c785cc7a4545010000006a47304402204e82c7d2e67150dacebf7d61c1dedd53f42ecd602d47a22d454af6b970d3ed6902205d7f516fef463fa02798a7c298df281d81071612d05a3bdabb9a1129ee8baf23012103e2405329b76406222ac182eb477bebb6bbdffc3ef2e7c593463ce80fde269dfeffffffff029cbd1d01000000001976a9141c6959c775b5052cf11a0f88a2e2974e31a8a3b788acdc7d5a00000000001976a9147c6cc52376541171ff54df4698ba81bdf5157f9288ac0000000001000000029692fd40f4e29b1f0cf49eff3e02e5c929483730421e5a9bbd7a4e73fdeed5bd010000006a47304402202bf7daebd603aaf7f4b9d582f140c2a0fdee2f25fbbb1624c7321640a7fcc97e0220010bf367935d627a51f40e4b127586e8a8b7a0e51e8bf110b013f4c8f8687624012103536b9d1c215dd201bc407510bc6412e95ab0fcae3bcd5cd652cf4a82069f2c07ffffffff2133ecf456f347a9ad36f2746167d2f92fd12b3ffe564f0168e8499f64b0b6cb000000006b483045022100e994ceaa431fcea10c2d694796ce0f4d2ab1a6787bc28fa38501bc78d3877b620220587efccb520c8fbfb31b73475bcb06e680cdf84b98e1e4fbb185dbb66ec81d55012103536b9d1c215dd201bc407510bc6412e95ab0fcae3bcd5cd652cf4a82069f2c07ffffffff0229303d02000000001976a914a79436ae0070b735d13053ab80ff3bc8d3847fef88ac29310200000000001976a914d4851ddc7a7a212119e5966bffdd773a4a79507d88ac000000000100000002a17278f78dc2f7f232559f7648bda45b5ac0de1bf24f394f6fd290f8d053776b000000006b4830450221008d1e8c702eb08fc8f29c2f1e7a92ec0e4feb37ab698327b84d11fd0e449f1f35022029c629969663a4e74bd267d1e8e4a8aa79f9f1c2cded78818ab42bce1c8311a5012103080030c8f06254fa1675a99e8d43bdd3b6cd7c54c1eed27dbfd6fb9f5239a0bdffffffff5ee938e6039b2265bfc85adad30e637d565319385cb6d62fd1a90f710dff89b8010000006a473044022062614fe509ab2087ad3dd28a613ae2d2bf806e445770a6268455807a781fa95902203d732e0185abd6baa5bccff351d076a8e2dcedda6929fa18843457d03aa71f9b01210359d7dd8e411ebcf6979752e44e1bff9d89b40d4108704cb7ada6c1c36d2c71eeffffffff0280fb1f00000000001976a9142a447615d9816e83fc4763a579965e1bdbd8070e88ac2f480f00000000001976a91478e5fb84b45767d0e16f8056b0b3c54bb1afe7fc88ac0000000001000000022dfccd5d3548f6977d59c7b50de23ac55053b5b7266dc7ff6277089e40c69bc3010000006b4830450221009b6ab9be70cc5ee818b2815d7daaaf1b987bf553aebb6e657a4abc6674edc7e40220305be626ae66f2f9e5cf0a9c95b586300f1b75f43b4d3ce8fe982621dc9103ae0121037a1f7216c20906ced708b56f4699dd4e7616a504ceb355af4021049737f8f3a6ffffffffd27117a6d9bedea429a9afe15a58e669a462b009cb712c705df1ccd2f47811c6010000006a47304402203a6933c7c2cd22ae0eae63e8ea3c708110a1ec495dc0e9471f445847885d871d02204b4de74b13180b1181d278c52e830cdd876595a86a0120b2cddbcd429cdd42a7012102618c263d7426a22aac903249263f42eb9781f7a1cf5c4ca1b191d3207ee9a2bcffffffff02f09b8219000000001976a914f7a6bae5731af376f690551e17a6f272e43bb25e88aca040dd00000000001976a914f00b08101bd21c669f58e9eb669743a31954c29988ac000000000100000002e9ff749dda3d1cc920635d8add3ee2959f4eb8e6de08892ea447b813d3911333010000006b483045022100b2524879f4df70682b0193b44f524a959da0c1c06076249a4bd659dc4b7af43702207d1014a1c1d18ef27bca1a9448acde908b9d778a6fe70af278a38d124587485d0121038e6dba49984aa152ef0235b279495490a48d3af44b1708c10d29968c5582b68effffffff8b68f63f412ef83d4d2043adb7cb199b515f790ca2b5e0936e167e228fa8d6ba010000006a473044022031d49e83a109d9b5a1c642c1c7680c9b59f37f808645fa48d63c6ba0dbeb1d6002200cd3bd2f7ebb25e5ba829dbb070a876c843669e516fda59e6dd08c00652bc95a0121029f5f4a4d9cd48691cfb8d8662193193271affd0d29b359cdfca0e1b5ec4233c9ffffffff0243adae01000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88acb1f66502000000001976a9144e47227e4f9265c307be2d9c116ce3bb5984fc2288ac000000000100000002fa8bb8e245285095b5b6cc54938a1b7ca962b0ec0253df633cd8a73f30a754f3000000006b4830450221008e2081de5ee39db3d5cae1823aa28dbefdcc45103604ebe41ebfa40d629999b402204c6b9a411ac007c91bb45a89f08fa8d039dd1f77cd4ccb0aee62c7a3930f913f012103acd7c49fa50c2d6d0ebda873cf8f2b853e55fd688972e2e07aea867abefc4744ffffffffae2e01136a8e2ecf92696aefe327f9a5d1d245759f8cf9b3fbcfafb1ab58432e010000006a47304402202627cf535e4a1d7acaac7cc1d35e1e7de4a25338755754d8fe63032c35a8aad202201ea21b0f1a766f919a5c83d5ee75043a18821daa04578cd709cae4c8c00fde58012103327a03c8df819cd44719936978102598f80e0f3e2a755f6810f224d3ef1e09b8ffffffff02cf0a0600000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88ac9a154f03000000001976a914a1196b3eab885462bb15b22a25f84a14811e6bb088ac000000000100000002e886cdfd7c9c1744798d6dbadeff47e1c49be1dd52646f568f9acb08d7fa277e000000006a47304402203f4c3a66f0746b942e36ffecad93d74112824136bdf9c598d839a92719549b3c022028f6d45d304e26747d48c3bec3045ae3b239ad516007b3d38badb1ea50205bae012103f0d831fce8615a857d39e695f45f247338afc87e85abc903598db38a5d628895ffffffff0fe0cca889ad4349942ede802af2053e63c51087afaf540186416a8041e2556b9a0000006b4830450221009355f5d5e0473ff99116f25735db998516771546c8a62eb5797a107bb924a19802203b80649b9fb59855601d19bd4ea34cd838077af0b1548c6773bed05230cba3a1012102d8da4b76f21aacc52fcf0ff6197c34856a18978fe1e7337b3f433bb5ef0f548fffffffff02219a0100000000001976a914bdb11212ce17c19563c95fee7c92149366b33c4d88aca7491000000000001976a914fc0abc5bdb6536b8ee53491f79a307b7e41efafa88ac000000000100000002114ae6e237a7608e1ed77f8eb4418b9733201944f547962e1bb8a7e917e47b0d000000006b483045022100b4bfa5600eb69ae778c5161e92b2ac264d51fb9d8290a1ce7c9f6385711883eb02203849342ead32d95c83b0732aea56d037e01bed1092e71fb4c5552a2fa591c6fb012102f9740daa1cc88c48e8b78e3b889af2f21aec7e3cad7d3d8ed6574572f1c31c5dffffffffa56f6719de1ae0f491e334f780a7204a833cde3a950fd150935d2fece7a83805000000006a473044022016761e99b60ba1c9599d9cfaec54c14f20582c8906a3336b1eeab77a899ceec0022054987514ba0626219ae5ba4eb0a0183830572def6a5073229853f4b96ba20cae012102a46391bd7ba047f50f67ebe58ea05b631df90cb096d0db736357bef6216ad0f1ffffffff02445b0000000000001976a9146ede94d77318a624286101afc4f12f5d66eea8ce88ac5a4f1000000000001976a9141e22b511b0ba3a65a794f58d8dfcfc58b35b671588ac00000000010000000268fb85cf40333c9d6c68099d574c189578a5a0e22b0975080ea340d99c17541c000000006b483045022100c03f78e69d3473b143d318b6b26782427f26865cb4d55011f020cf8a6b804d76022029da988e434b878ad34db92a6cb030715f9d20d2e3723ccd1718475fdfd76eeb012103fe9fa8f0045869889558c255ebba869b0f5bc2931ed2412af8dd05841471e681ffffffff1af0ca6a06cb4d3ff0708dbcc9b070b93ea843a86f67d6ef796d8b929432cb99000000006a47304402201843eff603cf74c309c6775cdd03e1089c4d47bb93719efa011be83a0a78f25d02205a6fb730c271cd701e0e7ab21bb0eae77a335a57b28063be7dd13a7c78cfc286012102f128af487ba7bd9a2c5363f0d858c796528c8ceb232eefd75c881aa43f4574adffffffff02400d0300000000001976a914a9385529fdad30064bda677835467c1059118e6a88acd6500f00000000001976a914b1f1b70012d186c87cae45b978ccf17241d53e4188ac0000000001000000025fa2f80bbfa0a59e95d5d21c7b3978ecfde71462e363c20b0f6874a732f69ee5010000006b483045022100f2f214d1eb1a9ac723799145d3f889ac5b21bce51ef9b48687d4af3293b1113e02203d891b3db82702852681a5bbb1b5ee1b0addefed37098c2cd3ece76a4ae0740c012103b5e87580b49bb682210712a2134e733b5335c039d01b827eff509abe7d0f2cb9ffffffffc5348ea29760b1ed1a0ffac627a58314c860cdbfa07864d88523f9ea89dc5420010000006b48304502206b9d8323493158adda276247574802ba9ab71a045c449045cfa6430d783d5c6e022100ed9c44471fd75fc0beb2690e67d052a0160692dd1ce5dfbecfe8da5f2a45f97d012103b5e87580b49bb682210712a2134e733b5335c039d01b827eff509abe7d0f2cb9ffffffff0240634800000000001976a9143cc8164e264fe4ae736c4083410d4c2cd30f452d88acc04f1300000000001976a914b6c945bc0f1ff79d1fce2b5864f5cdd62e0a7ae688ac00000000010000000269705dc38bcaac091786dbd082e377e071ef1c7b0f34b3e860ab97157bc9e090000000006b483045022100bca2d06dc1d7744ed538ac733eb6b107898e9395c458ae6f87678c0d4c62c06802207c0a068f528f67f046f63ca0df539e82b18441a6019add90d7fe6079db7729530121035e67c94c80626b9d35a4eb2d08281ff89d736a6b531f22c6731ad51d41355745ffffffffe0057a257aeebe7b2cdef5890ed9f7c549f7724716abb4e4e88cdacd08e061e8010000006b483045022100f1575f5258feaa5df6fb9cdb96875284e36773c26c8f689b56b82f5875049168022052ffc8bb404e8210ac9895d79569759b02bb83d72d239f67a840492ff578de4d0121036542ce5ef42cf0db962d58a183291deb34be7cf5f9a2c3fa404b43c5bb5e37b8ffffffff027000094f000000001976a914fb19253681ef5bf4ea16c708643698dd3846ecb388ac00cf7b05000000001976a914828d5dcb5c89dc352289e7d1d201b3a6ab3ee9b388ac000000000100000002c2211586b41a4bc97d01bbc2bafc4074a46aea31058c34911a7ae9e54087cb7f020000006b483045022100935217d81b8a302c4c8d706dca706a6f0192a531d0b0fd2b5aec33956061d069022036c58a8d87409387e0fa3db953b7dbd678f9bbd6ee058233b6a3d197548a59aa012102cd1f1602f26dde53fee26e989a16785fb5a4de6f2cec27ef09a8eff8f1306bd1ffffffff6c7e953c87dd495747226fa97c8888a99d778363aeadca95a1c93bde4ceb88db000000006b483045022100a7b9b1afa8bf629f2768269dedb1d6c5601fa7b8c71f2943d663f04cd861d89d022057d8481172aa5faa69c408aecf6ac67d46b24314abd1275b8bc0f91b934002900121038cdb5ab9f97b9e5c7a485d6c3b1577a2da3785e86479450b27a02e634cc642a8ffffffff02a0860100000000001976a9142d5e62586a3d244c5e3c4ecc32eaf7630639a1fe88ac6b470f00000000001976a914c6aaaede9f9d43193b7749d5c57c9ad1c4c327ab88ac000000000100000002c481e49d3c43af9803e5c2ab43cd65f7e683a9c4a582d192df4565bcd3439be5010000006b483045022100808ce8f7f0ac830207b9bc54dff1b11d5c0ffe3381e8b3de7854f1cf4fc2e90b022016b5a54a012d494438c7c04f37e75d8c7cb6fa6ead1c90323d05fd17625e915c0121030ae096c2324003b60aff4614385a5d0c78fd0202fcbd6ee74021b50fcc394dfbffffffffab402046c0ce06d4bb83206bc558cc075a3774ecf64a9d3ad1c3236143e46f2b010000006b483045022100a3952b2e1ce07249e655071d301fb4a3f60012fb38a81404cbacac9340aeecbd022029e2916ffe02943932c789635abc91dc213bc886422209f26ee6e83b513c5cc30121035897535e4918dcedbf540e47b1f44a42c2abf2918af9f83db348be90df4d6690ffffffff02599f0200000000001976a914dfba28dc856c9a949fb67a55b234adb957416dfe88ac6168190f000000001976a914e95b7436132f3a0a7a4f58b11708a73b2d597d4f88ac0000000001000000022f924c484cacc1c8008cdd196f03c7aa91a9a7b688fc0d7d16b3eb9f7a085f3c010000006b48304502210081f30eaaa2f75c6aa26dd1b6a1a4cf3a06003cf9f38e8d903752dc8bad382246022021ea28f2ae4350e8ca479288fcd07e93cde3727b087c923d8b979b2160c06904012103db1f92c07a99df028296c4dfa2f8eacc0980611d43613e279f1d71da0cebe2bfffffffff736b38a753465f81031cd2dca539625c0e785904a363c92ef57854357bc8f09b010000006b4830450221009602d7fba6edb9e06a708e6bf4d7a5d0fd4afdc82214510841c4225023c098070220037446eb63435bed4552df905f1d6a44b1252815adf3f1bcb4c5b12485b33891012103f0dfafbc9070eb84f4df5338e0a4d661e5add8e4f9d6f41000f14408d4204088ffffffff0200255602000000001976a914fdded20c0ea9bfbd6277fd8e662a6814319cedf588ace95ac402000000001976a91460cbca5891b04d6db63338d9e59048e77d4d90b588ac0000000001000000020e2a262144de4c498d3509463bcd50b6b02bafeed4adb4c7bb0d18f52cabff12000000006b483045022100fa08411f7cb42bb615b713fbe21e0257b72cb4f5f61c5a668c545cdbda8eb785022059e5a689c2c9d5260efcb0df8437d0033618cca583e0a35d97e31599156d8398012103c30c6695c1cd0570dc692a8223a0c72259377224721c0bd215cfc181cd7fdbedffffffffb01ec2d5d2476756358a2195dab0c77c4216484cc43965b95e01bd237438626f000000006b483045022100d0479500671b90b83de9eaa4fc369337b3118070c97226311cdfed89b0866b2f02201743fcf337a267c1ba5dcc1bfe186c98e51d8bc7788c1c329007bd8027b6cf4a012103a1be5261bc6e5885d1f881d016282faa9bf08205967be417085993db989169eaffffffff02394e0f00000000001976a914ef8994da5f26394a1f3b772fbf1b07a3bbcbfdde88ac20aa4400000000001976a9145c5463f5273c54c6faaff36f12b3e3d2fdd58af388ac000000000100000003b5dc3f08854409bf610c1369338329ecbcabbd30f86813ac44eaef68b2d398aa010000006b483045022100932a007751ad135aab3918808c4a262c728d1f0bdea0f8fb68dc98ed17a5b18c0220716ceff39e163cac1882f3a8abd9d7240fe426067281417f84f08129e28e73210121038ca47fb100bf5ecaccd7378c7d0d6320169d6192158f82c6940967c35ac227e2ffffffff7946a2ac77792419d935ec7b08a666d5305e6db00f767a10ac9745b67eb62478010000006b483045022100d5e5653a8f4f90f29686b27b0e3520ca157bb6f1f19c05dc2555a3b42e83ee7002205b4da1a5559e18fdfc12d9ec79cb566630bb56f80fba222c28ac4a651e0b37410121038ca47fb100bf5ecaccd7378c7d0d6320169d6192158f82c6940967c35ac227e2ffffffff8ce02cc3f66713b94f7dd4a9af382f3321c49a925b7dc33d3c45f236bfa5817f010000006b483045022100ce81963ff8916fbfe939d17efcc683b7eb2fedc3f7d9ad3e7d8427a14fac021102200534fadf789ac9c605650f749e398e40792e0939764a6b2974364d6a69461d1c0121038ca47fb100bf5ecaccd7378c7d0d6320169d6192158f82c6940967c35ac227e2ffffffff015ec05900000000001976a914a78b8d26957613f8d16d647c70213eb7e705266388ac000000000100000002c5ab219f6881a8fed6c8fb224630b44c51e9c75f6847633533d5515c5a9a1724000000008a473044022071bcf7933a1a325667060e2f689ed4543433b5457418b12e4e5aec320133966402202b21b656d4f9f099e82b8f013578d81abd35a06fa6d3fba0fa48e26ee992238d014104293397b707b5a23a9ffee09940b3e16d9dd585dbb80e0b7ef083148c492d2b32e65f878c0d3926fbeaedbe0792f8a2bd04da33f8dbf507126af5078c044a1db0ffffffffe296e946ad2212a4b4b4ecc1468a21576bcef94c965cf6e0c4a5a18ec96d2a37010000006a4730440220656fd430b4bf4a79b211bf6e82a74fbaf13c23f44ff3d4f7ffded6d70a2a28a8022048c458a111246e53f4aa47983b1ffdcdbb15c9bf519eddf34c0cee5f4c0f45610121028d15246e451c1b64b013ad3e83b10cca9805aa0f1aec81149b2e02d71b77bf4bffffffff02d0a11000000000001976a914f5710c7a405f1aeca11b79ed8203ae5328853ba388ac20a10700000000001976a914f0dd368cc5ce378301947691548fb9b2c8a0b69088ac000000000100000002aea1c43db415e4e30a620d9de6557d1ec730b52ef7af744742856f00d122f579000000008a47304402207cc4bf147281ad9a57757d7ad9f7fc1164ec781fc1b1edf6bcc7a5b3f344bfc4022052754cc113d8b741f65be90efd1bc476581860132b5281cc58aca1f7ca3a3319014104a6c93aed872a7a83556c454db39973449982278c9d38f2328de2798646909f58552c6dc6d59c6c1da81c6bb180aa08ab13ec4bf5c7f39a995bb9758d19d60c7dffffffff99e274fce738828e563324729caa0767adbff6872e728ac5d4f9d494ad3cd848000000008a4730440220527f4adb1580aca6885fe0766750c91b4763c87b6509e81f0e54b33c9cf021ee02201998d3745caa90f7d56b175c370ba6a75975a80d60276ae120f9b6dad3d13f59014104eaf51b074e8c8b59badfe96dfd9458fd07e6368ca94116d5eea4fc7976c063e89463ab797da2d51c538eebc0974a95a929d13e98edb6563287474af7d1397702ffffffff02e69b1000000000001976a914f12aa4feb7d9803b624d85d72538ceed5aa2898b88ac8a8c0100000000001976a9146d116a93760198d2f043893ed5d8eb9088f38eec88ac00000000010000000205d4d2c1e92ca4e05ae626a32e283170afc735fc60904312833ffe31c1f7c8db010000008a47304402200eb58e6e83d58cbc8f99e0eee1fc3cebb722e423715f552335095117643fe28a02202e75a991ce1acc9c9b31cca94a558bc1a9c63b822cd66b46f634882824a7c02f0141042ec075981515fc9020e95c8d474a04d520100e17c48e0c1304ec35d6e33fcc8f7b7ceb2dd047a9d92a3c739089faf2ab3aab7311ab11cd882e48de02d4da9997ffffffff5ac4ee047e29eb7050e4f2e9a43195a1f875f624ef9d46daab96cbd156725c76000000008b4830450221008c39cb069d681752b00751ad5dccd2b00fb8bffd08c9ad43ca59bf782792fcd40220520ab6e4db72270afb6195a02d11049aa5410b5b4f9c69a1e13b9729fa960f890141042ec075981515fc9020e95c8d474a04d520100e17c48e0c1304ec35d6e33fcc8f7b7ceb2dd047a9d92a3c739089faf2ab3aab7311ab11cd882e48de02d4da9997ffffffff0247631b12000000001976a914f30ea2308c4c059b40111232999ac8ebf3c5c60c88acbff40300000000001976a914af50323ec6b3b12a5d6ac9ad81799b2f3e37ff8c88ac000000000100000002dfd757919106b76174a92af02561da7d4f804d389b06fc0131c107814fb3ecba000000008a47304402203834dd07a1effce5c9e474e3ed3992d3d7a0bc531a907fffe631ab61844147540220744e183eb5329ec16c0b2e65acdbb3477655585ff1805cb170813117f49f298001410456a9625593897575b54771d32d7037612c5d8ced907eae645d43aec3994dd010d9b43db7c50e134c6bd4644477192f5ec11bd838e943a384d5410b35f6e11357fffffffff7c3183ae2619c6d6aac6691339658391e47e2cb71e9eee8f3f88fea1a1af899010000008b483045022100ff84610e9cabbcaa98bb83ed73645436a31792e993bac9a766ce976aa3a12fc60220147bb35a35c2b426625e6b828c779bc1240e26f582ee4dfd1d51f1849f82652e014104c735efaedd169c5545c2eb27bd21fb50282798090c410faac286f3658f778f1c8286062f749d1703102d19446a53c92981a64a56de3dd13c2ab60ff18646e7a8ffffffff0200a3e111000000001976a914b104f5f94cfb336281c25d23a94d58b4d6ff310188ac94ed0000000000001976a914394c27ad741f345520157abccf2097a01de4d9ef88ac000000000100000002bdf33f8fcce5ebc3a436b9c28a61fdf8002760ee67a4bdef070ccc6ebdbc4844010000008b483045022100e5b09c224aab23028920f3d053cbba686e933cb92865a4177a62b6d787bddc250220183da984c55b8f08d59d851fad2a9496bf0de4f1e921a8249e452b6777d602ad014104060aa2bb92a0ab8a996038e393b3b0a9c89d77fd7e0f79fe56d2425ea3d249bce201565386a82781d1a045a8277fb69c982f5f7f5056a79c21c8da8cbf9bf2edffffffff31718e811b1f655b2d1495a8f80338781d27826a3091a04a8c33247496812653010000008a4730440220360566ef60561ed82612096495f0b070e67daac7def829d2e2b7c23ed81397f602201a156960cf0f946d736bac5d2d76976deb3f0721f43438926f7df2e8dc16443a014104060aa2bb92a0ab8a996038e393b3b0a9c89d77fd7e0f79fe56d2425ea3d249bce201565386a82781d1a045a8277fb69c982f5f7f5056a79c21c8da8cbf9bf2edffffffff024def3600000000001976a91410ccd94064fa2e1dfe3c3a1877d296d14600636488ac3fc60000000000001976a9142cb1dd92fa9aeb9420d35bdab9fd68293a2e6c8788ac000000000100000002fc1609b18ca3fcf95d806e06b3dc6782522838e7a3dee132bc43a44b1cd74290000000008a473044022024b4ffeee484e590c6dcb573630d25fd02d7948881083d0ac1997a54837ad77702200d02963fda604beedf1f254b0d37d2d95fbbc9f062c884b1156fb9b51b67a33b01410464be64caf9fce8219048e43f1679893f36a7817a727305b5873e9796c3fca526f94b46cab4901267a739606972af59619455d380a53d821ebd6e657f0391addbffffffffe840455f404eac395dc37fbf4e068213bfddaa38f1041407b7f17ec05df3e6df010000008b483045022100fca8e796b514fcef86ede7b2bf30375356ac18e31dd73e03fec9c04c42181c7f02204fc9595d11e61fc7bc6364325c89ec502daee9c2b2ecc6ecfcbf92a1a31dc368014104c39fd3d1cb89d5be371aa0837d0e93feb5ece3bf0f6d61690ab6c1b126730b3b90bed98c19b1a4818b2edfbd927dc9d450f3c9ca2c01565c23f89e0e806e6579ffffffff0290051000000000001976a914bc8d74df37f65c832ceb7e58464326ec9ba6998388ac9e3b0100000000001976a91492251b417cdbcc4eb991b4cb848fec85bd9f306888ac000000000100000002ace568f57549ad4d9d164c87709b5ca1ba3e29395cf70f1eda3bdac0e3a5b7ad000000008a47304402203e9c28e46d3027ce061046414f9be2dff479ebe93db3f7cc911eb39102b13af10220018fd9ade10af3b712ee00484e0ac296608e8c8aeae89ead469385dbcdd03f380141048eb9167d6ac5e47a6e53f4cce771be822a615a6f919661705528e8155d8d173d67ee9f0ca409a6697f2727a6d524692a335fe6766deeaa46209f3fa30404f01fffffffff6b5bf4e8492b9ea3eb50ee8b5823da3cd75f31f14bdaabff945d235093d16808010000008b4830450221009b5251ef4ac5fb22dd22d4bf4a3751a9f344a271080f6c6d449115d76083d74802206a70be002af0c7c4f3058f74acaf39d96f9b770234404934ea81fc2cb3b5aa3a0141042f53c8e430be2cd02d415f166ca79da8fa9ad64b3c691aa1c81543b2e299b12f0007c3051e0be2ce92c41295767dacad7959c448eb660fd8a806949a06b2658affffffff0200a3e111000000001976a91488bf392c6adea62ff4dc9d6d55a7826f345d739b88ac6eed0000000000001976a9144e03e6ed32f4d0f3585dc4a5c771fc589a0b921e88ac00000000010000000288c10545d1b34990a39ec293f61211dc7a6871a4d37e0c7cfb8df792c835b913010000008a4730440220760083dd6480a37ec194e2477714ed60dda6519e555e85060c08a4fcfa8616e00220565999c736c4f7a695532d5ecb25dabc68c89b33190980c861adaa524f182cae0141049b6c72b3831db502ed62fcdf85534de12f3d56a222d993e26e38fe139e59b0d650782f9650d7607196dce66374904fbcf1baebd6b5d7dbb8096de648ee6d540cffffffff49af6fd65d2ccf5265bf11594c5c5cbb9c10301bba8f837bb19c25ceebc0e1f6010000008b483045022100d13eaae86ecad48669bf83fc6207f3a47a105e5f4b1313ca46807fd80271684902207ea29df51897b053edc4419c1a68eca6420eea7f185e19b7a5db223b5142a7630141049b6c72b3831db502ed62fcdf85534de12f3d56a222d993e26e38fe139e59b0d650782f9650d7607196dce66374904fbcf1baebd6b5d7dbb8096de648ee6d540cffffffff0280a21900000000001976a914c3de9416f7f92a40dee37a2d1a90e4733622e02a88ac15240000000000001976a914efd63a6eab86c082f65232607f41df7b3e22fb5b88ac000000000100000002e6d394ae5bd33ad5b3b8fa0541ef2adabef79e061fe512088c551edf1ce2a201000000008a47304402206c1e3387f59add5d7783ab4853eeb08b4d26e3f334bdc2706eea31a49de3e24502204166271c44c75d24a978bcf5d04ab149d033d6a16799c8869d9c9ddc42572a9101410480df6adca7edf7b6ac450a470b0a00b67eb82f7739e7b829fe3985ca2d1696f161c7a794af1da6d8e8cccd1fc24de7025e37a83989bdb484274e4f1b531a5c47ffffffff8a1b54c0a4d3afc521de01f3d9040a7b7507d73247abba60f719a967bb14433a010000008b483045022100e97dbf54aa2905cb6a48ae02177affff2542ea62b579d1415c1efc07935f9d76022062dcd24e07f2cd043bec6fcf2b6e7f5d83ee87fc33da7fe75391d4e993f3494801410480df6adca7edf7b6ac450a470b0a00b67eb82f7739e7b829fe3985ca2d1696f161c7a794af1da6d8e8cccd1fc24de7025e37a83989bdb484274e4f1b531a5c47ffffffff02bf450600000000001976a914da5dde86d69a5d9dad88763f2df4b048953c7d0488ac9ade0000000000001976a9145f2839e8075dfe25989942ad2778a6cb1f28367a88ac00000000010000000219cb00628209dd4814a28f716e83460ad240420743e46c5f925db2cfd718238b000000008a47304402200bb788cf1c128107de1a93e1e21cabadb15824beeb41d232932ac13699cd11dc02207849c4b091e3672e6f176bd5b447fa3634e83b103926ad8e856adb7e41c4d9dd014104293397b707b5a23a9ffee09940b3e16d9dd585dbb80e0b7ef083148c492d2b32e65f878c0d3926fbeaedbe0792f8a2bd04da33f8dbf507126af5078c044a1db0ffffffffcfd51f86e568b026d11be583c597a125845de6065142758e266c6dbe9db8a27d010000006b483045022100ee430a5bca97fc7ac70245c9f893896eea6cee0deae2919c8000c3e7432356f902202302d77ebdd4a1eb3ef1ff738162ea2c368216e2ccb5415cd455c9a12bd36a080121028d15246e451c1b64b013ad3e83b10cca9805aa0f1aec81149b2e02d71b77bf4bffffffff0242bf0600000000001976a9145f2839e8075dfe25989942ad2778a6cb1f28367a88ac88b40800000000001976a914f0dd368cc5ce378301947691548fb9b2c8a0b69088ac00000000010000000219cb00628209dd4814a28f716e83460ad240420743e46c5f925db2cfd718238b010000008b483045022100a73c958e920a94dc5aa2b031d9fafcccb2bbc6b426d15f56be19eaf95630b44602207f84e5367645cb86e51eda70f67b05532b62f7500785d9028e7b68eb08484bc701410480df6adca7edf7b6ac450a470b0a00b67eb82f7739e7b829fe3985ca2d1696f161c7a794af1da6d8e8cccd1fc24de7025e37a83989bdb484274e4f1b531a5c47ffffffff36412ad0920aa5c363524e445f8600f6301158d727288f56c04ebc120f7a5140000000008b483045022100b6898b1f3d301f4fbb81bb2a92de1ff3c10cc5c07cd2a91974aeffeadb2b1bdb02202d68f25865c4e11922e60be8cd4fdaa887d4275a611069646898d3e2eacbeeaa01410480df6adca7edf7b6ac450a470b0a00b67eb82f7739e7b829fe3985ca2d1696f161c7a794af1da6d8e8cccd1fc24de7025e37a83989bdb484274e4f1b531a5c47ffffffff01cc760700000000001976a914da5dde883cc084fad0d72ab4cdeb11205fc63bf888ac000000000100000002181fed550dc092404ea20275e94359f3e5d96161353811f48bdff313de0c125b010000008a473044022033dbeb610009361bcbf5f8984b2abe7fe00e3e48d93f4222d2e82a34208cf91e022056bc9291adc93cc9e3dac7edb71ec1a4e34fc97ab428ba900832c478ce89bfe101410470d0259b8f0d5034c235c829a8b13915e04c747159f6bb26e89fee3bd9a0c50f60ae594e54243fc7639e1e2cf67c6594533a993b02a85293d87a66f598540571ffffffff3d8538714482ff493bc11d89d7554d1bd34fcbec692a97ab310ef0657c257bd8000000008b483045022100aa0e9191f91f98a11ac3bc148bc63ea268973e1f479e2e0f576a90a87c90a8400220345923cee26bfb4cef2474f59a6bcdc9db96302d47dff5b2ddba3fddb306f91601410470d0259b8f0d5034c235c829a8b13915e04c747159f6bb26e89fee3bd9a0c50f60ae594e54243fc7639e1e2cf67c6594533a993b02a85293d87a66f598540571ffffffff02a0bb0d00000000001976a914da5dde883cc084fad0d72ab4cdeb11205fc63bf888ac50c30000000000001976a914ca7eaccd4ef037929be65c7706992b055a41362e88ac0000000001000000026f8ce9f97b17ef4a29d33e7f0f19a5c0d379048594311c460e15783d89e514ba000000008a473044022011420ece4381ebf2880bbb3f472a832796532fdec42fee694d546292b2ddd56002205dcbde0dfabab8fe79416d3df0a663deff9f45b7e37ffdae76e334a357cc8be2014104da6bc6a6139bb008454bfc8371141a5fb8ba6de87e9ab1578ab4c31e1b25513d6d1b1b0e66b0e39a29f6baf19f9f0faaf51d22bac02b1c07eb08058498763784ffffffff3cc8543ae0f38541ad69ac9c9d4af6acf968575aee9eafab07017b61277e7b43010000006b483045022100b95b0de07d7b4ee5d89db1411b4a455a81daa9bd1b7fe45a6a83a451be94d26e0220026b410960a98edc0521a8fd51a80354f8594eeb2cdad94f300063554a92f1ad0121028d15246e451c1b64b013ad3e83b10cca9805aa0f1aec81149b2e02d71b77bf4bffffffff0220f40e00000000001976a914ca7eaccd4ef037929be65c7706992b055a41362e88aca2200900000000001976a914f0dd368cc5ce378301947691548fb9b2c8a0b69088ac0000000001000000028773f9efa141d42f501f5cc1c8694ba847a09e1113966559a1cf96d3198687a3010000008b483045022100b12995e84ab5b91d68a45420090bbd2a4d4fdbc91e48cd0e2401d83551670d48022051b21cf5d1909f81e6fe0f5e1edf2283903e8092a1d1b24726e4823442714d4d0141045004624f44b8d7172fc04c126c2629536f533c0174aacc87070167a4b6ab65981ffd6a8e220a53198fd14d8f1bc82ec0ce8db600c7390cf2a74808cfd896f002ffffffffa38749f84b00ffd22e22de1fcf6a5bdc3070557f8bd800e7f4fde67b6719bc89010000008b483045022100feb99393b1e4d80eda329f3146208da1f13204151955f8297d7bcfd6a67e438102205220dd1c50dccdb482c3427c768da37bb71a2d191b21f4150e36a06ac273cb130141045004624f44b8d7172fc04c126c2629536f533c0174aacc87070167a4b6ab65981ffd6a8e220a53198fd14d8f1bc82ec0ce8db600c7390cf2a74808cfd896f002ffffffff0280841e00000000001976a914270349d5f1a856c2317702cb4b8c9a3e31f76b4588ac50802000000000001976a914543027ebd4cc39877b31631a8b616e5229bf043e88ac000000000100000002bb6e625354fd3f403717fb5fff24b4f00cf5ef52d4f61ebc53e56b26cfb5f164000000008b48304502206e7fd08c23d34af8abe9abba51b9015ae59828e60d60ca4b332749c652f515f4022100a149fc9b3cbd694fa6b4ee658c97767c52405e4142cf018b428107fa2bea823701410426f96e96c52076004e0bdbe21485f69512f82d80980511d76e3b67ade5a58b2a3aa0754c78c2dbfedf89b7439268c02b58bbfc40600db582c2030bfa907408b6ffffffff3e8e253918d27342899a518d083278646a388a348fd94dac0281662f5266f952000000008c493046022100f348ea07d739eecbebc93656b4185f4dbafdb3f61e777ed463d36733ae1c5ed4022100e84b7d09d6bd5b192fde407a27b7f8114b4ec6012d3bea28d760d64204e2acb801410426f96e96c52076004e0bdbe21485f69512f82d80980511d76e3b67ade5a58b2a3aa0754c78c2dbfedf89b7439268c02b58bbfc40600db582c2030bfa907408b6ffffffff02610d2900000000001976a91454ab536bd2c85df8ed88c3942427c415fadbc07488acda351400000000001976a9140df75ad11969c404099bbcec9446ce766a41221388ac000000000100000002f6d5f482decf065e881e3b8dd18c3d53ebbeb82e24947be82d838f06d4d9938c030000008a47304402202718a4644f526346da9f44c820607f162921a6e6d741e2195d0885d238dcf2b302207811bfdc67534ffaf9bbdaf4da3f47a88cac37c11cff6848ac04436abab640e6014104689dd09a2134c5c6ada1541fc715c292395a622fb59096b942e2dc13b8318cec2f3cf1def51074ca8cfe6f2ba654e37430b01797bbd68d529a49ec3cb23c80a9ffffffffa803e6094b44ee1049d88bac8910f4010fca1b62fbc845760d5cb63a0d80bb16010000008b483045022100a602dc66832a3ec78fd258e0251a106f8467eb0b83f37bc4d9997b840b8dc1c1022000f04d410a6736330da64abdb7da91f7dd21fe57ae31f292a3b43e7e9f22b6cc01410452fac25ea480b3483e56df06f8f34ea12ad9f6efd071c792d8d64355fe4da6dba9750cdb9003dc9744042be98cfbefd42429c1b2a2e46f4e28345bb493ee1e08ffffffff03b1210808000000001976a914472e53c0a19483ab7d32a9debc65721789f00af888ac138e6208000000001976a914f562781e972686456514455c29b0d0c21f3abb7c88ac94ed0000000000001976a9144a36d029c3bfe8bbbeb4206478b1552b612415a088ac000000000100000002b85900e96279f8be262c776ccabce64f557b4021e8f671324a3e92ff7adc60c2000000008b483045022100befee20276bfe9a3a9e59965b99039180d3fdd75afc6d571b1d7d346a75b04cf0220778c9c5d793aaf2284c2ccdd52cb2714978b7a13351a73ca4be693525bfffc7a01410479ecc33109084e334c338e31ad4282c39440de359d946d4e66671c6478f80ba84ce6949681ff2e52f8e3f2e05080cc25592a662079633c1d75a6be3dae1b890cffffffff33ede880a22775417667dac13d94f2ca8aab606841b155b6d8a8c9d85ee2283c010000008a4730440220726f0140a3408d1a276a74a31711c7648f611c794db34bfb378c799c0553624102206900604a95f4b24ad32970354d793db0ce535b485beb9f47256b9453f27edfa00141049f1d8a77c4227b75aef9748e02e3c81767f4b551b0bf4d6469df1c0c87e4955a1c036495bd5017143f3b7489dadf5ee564f1d8627ec01e831228d2b557a70e01ffffffff03a0860100000000001976a914bd314932e2643a7fc53ea6e9db8f8954903c687688ace5540100000000001976a91405d99d15e7ce574767642428057bcb8815878f6f88ac94ed0000000000001976a914488402e337a27c5e1990f8158d5621d007ac996d88ac000000000100000002aade3463dfee6d1b8ab52537cf7400fa4768d624bd48528c81d2bbd46308139c230000008a473044022029a590e9af3b0eec2f7e7ab08c110fa0bae0cb8272709ca2e56583c9f40dd3b202202812625f2808d84df406babdb26bddda1687f1bb0440585513efa6cc501d34f701410479ecc33109084e334c338e31ad4282c39440de359d946d4e66671c6478f80ba84ce6949681ff2e52f8e3f2e05080cc25592a662079633c1d75a6be3dae1b890cffffffff550af905cefb299a098f5d9989587c19a7653753fe8232d7e003582b562deb1e010000008b483045022100b730d3dc5c39cba3fdc3831012680e2f6165894e44a8809ac1a06d90bc571a5002206f5007f1eeb08c73031a4f6147e4a57224109017777f8c926b0c3045206559e00141040333fecf212d7876c9e823dd139d3fdcc6433f63065bb6df4e6a2370009bb56970519ae201827a5aba6b4f7f47d0b72c9910763c7aed7419728140cf5001ffccffffffff03a0860100000000001976a9145ca37b62f843a168b4c304dffa176e888971ea4a88ac44480000000000001976a9148ce57da128e76afb72f35d6a1770178af5fb8fb588ac54510000000000001976a914a63fe52b9a7d54c8ef07a79bff9acea31d1fabbf88ac000000000100000002add9ab6b125165b9a08d8f709ef5018d995f90a4bc2baf661bb9baf60c561bab000000008a473044022004dea9857ab3543ef685efdedea2f516a553714edfa7299094924abd986860390220192cfd3c805d2838216eb2cf7460068158b27e5b12b605a7a4afebf497e4eb69014104e42aa0dc9c3e95e824fc43f361af768ac9fb3958d85dfc8f2d9c3642b41cd3a387c388dd6728b75784fb00907181021b01f75307cd1f55c71e30e56cb875282effffffff1de496d83543d397d5f7a85df548a2f2543ff5bbe35d39823d4873d1d6fb7550010000008b483045022100d12d74c4469a76b6d5a68e4dadadce2f04ffa09638d9e073f42c24eaf9e374ac02202099f90bc3026684aee486fcc5b399afc41092d8fce72f4805642d4a74ea08470141047e25cfe8a868e82a054641ccdd75c7643ba009432958b185a709d2a48129cd13d98f8d77f72ddff26c0c51b643e43066bf9a331ee2b11da6e5c751481e24f6faffffffff0392b62c03000000001976a914f33a3446bde3bb98efc4676014c2792d6d09bcb988acedb61000000000001976a9144a1f68109dca42d44ab4df8d4bcd58d32ae132b488acc6e30000000000001976a9144c9864fe2946035139773bf7c107247e9929627188ac0000000001000000032db47904bc4900f297e8d75c48bb5be7d21611ee57cc391ee1ee6de3db15476c010000008a473044022054e1ed8ef08c7bb0af9b3d9e9dc57d88bb0d158c66228c61f286c5263362215c02203a17fee2f7eeaa8e16b50a3f265e9f883a407b664d08210b85661f1fec53ccb101410464d46bb645d6f9eca350d806709e00f9f53d3357e403d5bca1c71230d58c474e931f896191c98b2028eafe3e3127d3cfbd600b78442fab715fc0192acfbabc36ffffffff60f73776facb40af231e413586187fb90110b5ca86e95ecdf325f7d955512c44000000008a473044022070de91c247070ec7f5618abdac25b0f0c609d685fdf53c745e86dceca6076d9e02202cee8d97f481484072016579b4c2beb9ab9a166cc31bd936883ef4a0a574a853014104abcb40d71a3a7cc16f9633a8a5d27861d53198f0f06d5e3260d6a2211fc25e2adc0dcbad7ed6e022ca7fc2bc53dd375eecba2655955cd37c5c2ed273f3d38a31fffffffffc0d2d353aa040a2408cd43c467a7bf23a7edc37c0bd6a69529bc72411203c5c010000008b483045022100b37e88bec14e072e5854dee2d655828e4ebdec7a7a3c62411e20b4814a01ac6702203318715db84c93dbc65f0a20909b36000fc48fa8d057c6608fa692d720b6fcff014104af3d0ffecb4cf642d1b73e8096bf73d5d5edde746f7b2f20ff3e684ce8162d75eb97844b0c1fda1932fd16619981f365864b5a84156506cf7bf33ebed0c8d7f9ffffffff026ee72d03000000001976a914b15131337b9b3d290e6e4429e1534771d55e86a688ac2b740200000000001976a914bbb737e6444189401d4d8a98c08afb399cfb205688ac0000000001000000021b06fa54ea348b0375d6afd257c3bbbac50ecafd5e0e585daf3e8d87d89ac7ef000000008b483045022100ebd9cde62571625523ad4c0a4d57b8e58c5d6a41e761cf2e396d392218df098102202dd41ced1104974fbba8535d81afa6d5595eb7a49a05fab3ca8e580056b0a8b20141049a7894a2b9ae3451f0f13cce15315fe69f31bc3857a6efab818b6e1617d962f6899a07602bf35a32e954ed2904596739d6904401fbd9dbec59b665dcbfa643daffffffff30d77fd44adb739c8049987a5c641103b4561e320f9c1a2d3900dca7e670e81e010000008b48304502210088b75ff97f3bf4c35e1eee5374c36cda60d801858cf9ac24fbe668b1b5453dcb02206b92d708003ddd84fca36896f334afc9ac2c3317745a28f60ac7c807053c3e0501410426f74a0bb07f232eb875de4f3f511bdf52ec2f92f9b029b70a3a7537f600e5baa0fa515fa5482708d169537b87972d7b63df73c23cee564022546f26772aee6fffffffff03a1191c03000000001976a91436cb7c1d5b9c52d37b24fbe8ef7b36dff93e656288ac96641c00000000001976a914c87b9699a7f45b81fc8ea5ca1040445be3e4ed7188ac94ed0000000000001976a91431a5070f13c596d6d70d5653be2ef861f8b0963488ac000000000100000002e265ca1488f1e4f826e33f996228eac9214516dc28eb771d54a61b6b4a1240b2000000008a47304402203a89f205597cd212db981dbde2143778ad87fd35a9f06d1ea35a09e3488cad9702207af35319ab5b6e32a703c0e2dbab32bce8b4a8337eafca60b6b3f163b5a4e167014104c050050a33240b943652854625020a92a6e4bb2d8bd9ae9ae5f1c092d99a10cca228c2fda9fb87b5209a3b8a0eaefde464a558e6201c9abbf1079233e43ffda9ffffffff49608af7672697979b0115fd9963e54400b246513c3ce59fce75add70181f8e8020000008b483045022100da744899eeb5161a9d982f1bf5d330e6119271ba497fd7a3555c72ace127233a0220744a1b9bf3a0d19e9c4f5d2496e76c21cddc9b032ddad9604cdbb4be0bbfe165014104f765397683b5af62d01ab2708aadb90c775e6a2cfdbb386f03f65703097f961118821487aec80af67e3b9707c1011b5ecf83bdb6f9e2f93f1a5f283fdf9e0bf4ffffffff02100d1c03000000001976a9143f8eeb5da54790785452145a94c4f2eaff78cd5088ac84c60000000000001976a9149c99dcaef83ac9ff5e81ba6c4620f924877d489a88ac00000000010000000392498c1329832ddf168765dd5325278966343c2f788e0fdbc375ca17a424ba59330000006b483045022100cba4cbe9b5bb2d6f312a1658552ea71bd6e78cafae9f748e870e0e6c79bd7e43022038963de40612d078b637e2a801d7d8a3d94e9b052d614bf202b6c9ab82b20a3b012103c054590554fc059039a0519ef407c7336178652930d09c620dc4fefec621bd1bffffffffe0d33964c2b8eb83ecf76c9b25b79595d6f9f44897c69b1f522d8b5c7cf6c86a000000006a473044022016174b530395460e770593f6b913aaec4d1abda9a8c4f37173f7148f5758b3e50220506753eda9bcf96a606b6d6b1801d888593d65bd925aa9fa21bba845ff27978b0121034163ba3439c948b2762906c11ed0885074c9d45479a830228899537357089086ffffffff0322c9836888efa7f8a54a743ac34780621a95fd6d76c52a7f9998be9c64b48d000000006b483045022100972d2f15136ed4cf6a806618b20099af99cee15d599d4a6980d82427916de31d02203d0b6e5967a1c8a6dea2ae2b516d9619a91a796fe172892fd38338f8ef5bed8a01210391dabd268cccd7c13a5f527bda8d976514a298a59ae7e093c862dcefd3b6dd05ffffffff027ea1c30b0000000017a91464a0363d19b5913ecd7fbfd3d7d0fb0b1227a39487a201ca15010000001976a9145bd0ce93ae8d518f715ba2892c3bb433b2554c1688ac000000000100000003bab657ebdaaec260f39698e6f3a5901b4820fa1b1472f0721fc7750cea59e94a010000006a473044022072f0461305904a2017480c048e8fc1c16af970e06fb18a4f882d71a22f73cf270220162404ecb3309b9797c349b3a0a6c7e5cf717a756b23c69d26877ba9d8975093012103f5af354bc11893a5d142a7dec5d31223fe180f3efb07219b28ac8bb78d2432b1ffffffff8487c8384bfbfb052c400d4202340608d4f8a429541a4b2b2269939057da9042000000006b4830450221008806be3e28ed4971bce05cef39916aeb7c8c37cb294177152076bcbc95d28aa6022057e7465cff8ba1e35b5e4af87cc5d97e8c35ac5ed53eba67485499a01d1f5190012102a5f1c6c743128c2bcb507ba68738e8116f8e0c2421e7f39955b677f956cf0e18ffffffff15f622e8919049707ee68ff4fc8cc70908e2833f772ba2e3dbf5548f90b3e250000000006a47304402203e3e04e7b273951d7346d41a9c4e9132092da7f80326dcd4c57f29fbbecb88240220017c93e80c36c6c99e205149649d61f737f7610b089a76adc7352613994dc231012102959683ad6f667636d6ac0583760d785a83a538f4de67e610c5adf01004eb5fb9ffffffff02c0e1e400000000001976a9148667a0b47a63a67ef38b833a589e333acfb360f088ac10090500000000001976a914b648c6f166a4c321d665b62eb5595bee38b6bd0288ac000000000100000003d662818c9116036316d5b1ef415557c50d5a49d1d9abb1f002472d18ea7649e8010000006a4730440220204cf8379d64fa04839ee58f8cf1db5a7d13d8a5289c29cb0916248b708b50ef02205d7e1ea13f1e65bacf68ef59cc750cc569f95431f639a1551dce62d2e56025ea012102bff66d64e5fde31244ecfb168b8f68542bc85bf323bac9e07e733af2dfa1736bfffffffff5443c88535d23f62d80abd7d7aa009c5c3705559285481badb71d73cb6f4ead000000006b4830450221009d82b6cb6dbe43dd1a03412432862b382d8628adbe738370dbbbdf72f4586c7002201fc44f13d788f8aba7de4cc3e178727c407620c9b658d82549e4b545b27e7ec8012102bff66d64e5fde31244ecfb168b8f68542bc85bf323bac9e07e733af2dfa1736bffffffff6d5c97e4ad9e977ae1f6c42d887a5a670f474cdfd1451d5fa6c13962f81e420f000000006a47304402207228d53e4c89b083b2747865aed8971a76924641426e88fac89329d59910190002204311d07f3c6cb13f9b32dbebaef23227f3a55c2b20446a2b3b3286c3f8327a82012102bff66d64e5fde31244ecfb168b8f68542bc85bf323bac9e07e733af2dfa1736bffffffff029f513400000000001976a91479ac58c0ec17d19ef2cb7853f4dd6eb4293a00b988ac7c782300000000001976a914c387c3ba41c54daa3e01eafefd36838b5fe8a27888ac000000000100000002e4fe9a7b03bd1abdcfdd587402827bf5f02fd4bafe1758049e1557d24adf023d000000006b48304502210095825a2e491b737395c2c5cade58c7a161ac8fe729858de307f9cb916f79647d022020b8469f31210e54917c52c0aa0bed7d04ca1bf5e10955edafe363ef99039691012103d56be50a08ec7d8ddabfa78590188d24f98ad437e2cfae7b7520fa062021fb5dffffffffe01f36cdaf5cece96e40b6af47b7a1bbf83525589227a3666473b49969927c2c010000006b483045022100f8549405d53d58bf2afbb4520bbdc071a31727c4749ca2c31b537599324b5669022021af2323ecb749a121c37576a5531cb65b32da75af5faf75942058849ec586e1012103c42c432bb89d4f541ffff5772871cd897fc149adc5a811d86985a5adc89aa4ebffffffff029f513400000000001976a914da53e43b441ea706fe63fdcf5e360463e83dce9b88ac0c1a2000000000001976a914ae806ee5fcceac6e7958c0af6905c37ad0ff1b1f88ac000000000100000003ff8278a55a71e2b4b25804f8c4e87bfb7286ebd077129e76effec957f048738d000000006a47304402206b28431597cf59d64418152d67b6ff14b5e89708a5d14cbfe505bed76c3a7a53022064baa4217cdcd76ede50f78b15ee9b63639bd2f63a7797e1f29ef31b34fed1930121024222dfc7ceb3a0755306a68b1c77c3147a48e6158943c38e9b900c379091441cffffffffa0037fdabd5442aab4b95ceacb22526b27b77844e93aaf6ce040ccaf9c64dacc010000006b483045022100fc111908aed79a663202225768e82083aef3f2e9eea707edcb331fb1781084e702205eef6812715e4cb597897c7192b66b4637645fd6ea2dcef6688da1640e3f806b012102fe622835f43bd4f78cc465aa379f76a21fca153bd421b4ec0e80fd802e439131ffffffffe72eb6138c6f8a05a1699797f6df1aedd954881f29ca4c978bc66cde321d2664010000006b483045022100859ececf2aa0b8e43995bc3abf94aab5ef90269cb8434048bbb97c7ce8fe31a3022076d92871bec8840c802ec245b2d028706cb04e0c60373f1e49158c516e9b08470121031136babf6e01a0ab7a1788e83e9792068bf2a4b1bc92a42601186063f6ff5e75ffffffff02c6a84e00000000001976a91407a5820f962325b4fe9d894c9f721cfd481618f488ac005a6202000000001976a9141e13f46b4fe4ca9020caada60df641c80ad82ae788ac00000000010000000370a7045990f6d00bfbca584703493bcbaae577fb62287dfd98367937d152a6db000000006b483045022100c4f1da6fe9ce03e908190886cd6627e80a59c4804cfae36c765438e99d33592d0220633eaf175453ed61d07be3c4937d35e835d27c1e2d8b1c36e60e6ba07f2b706e012103eebe1f21a4bbf4a026c9668a9dffa6285b09915a6da4abe6ec437004da8e3491ffffffff9c4864a6a744696a75563dfc9399019af8a6345d9c2cd7171ef281c04ac275d3010000006a47304402202e09d36241a4dbf105aa65f5e56f5473fea8198d001416a96fe2f7be5bec00b5022056af0f20f48eefc8d2d3dd131323c7cdb0488f30cf7dba0721ba0b8c3e06ce61012103f7f2917018fae7de83f0a04d2f73dba3ae39ec2c3d5c6b8ffc2f0024f5b33cf6ffffffff76c1281fefe8c53f2546ab3da5f40060d12cbc6d5e14253c63c50628c4d121aa000000006b483045022100dd9598b600b1e014a785a70a624522ea6672114f2c74653f4ed65c30c91161d602207e9e10918fd01b9f71d9d3698767c3880b9a33b8843c9c80a6a4386455a94d8201210212e631428341b5b408fb8e1001878c2495f1404722d5b2bd4fb06569eb58c706ffffffff02005a6202000000001976a914a94e5cf642c1e100b7777b789c07c614f353b62f88acc4450f00000000001976a91450c6cb882f47c64329ba865b9055ea95bb317bbc88ac0000000001000000034e5e7887a22d54d87d7e75c2d297d644e813cd5f54d8be892c2f389c86dcb7bf0c0000006b483045022100df137de8f526bf3cf57e8ed9f6c762cee6ac8f752d1e50d71b9bab98d1b8d0f202200633505ccb7698ed9bd1854fed686464a89624786f9cb52a50cb64cf81fe9cb70121036def04e46ecdaf13ecd6ad3a5db9647bebe79150179b867d0c0a2c760aa8d9b5ffffffff9123cfbfe058749491bee5bbdeef7dc5810cac18e41b1eee672c94c3f7a0b989010000006a47304402206b6d2b5450a98b534519abf7770652e02d927c4501da7cdf8b1afdf9a98e65de0220195edc0dbfe63fc809c00ed46e95dd0cb8766eda8043f8e696efca5a52f468bf0121036def04e46ecdaf13ecd6ad3a5db9647bebe79150179b867d0c0a2c760aa8d9b5ffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc13926307070000006b483045022100997b921015b253701c072d3b4afde5fe4e529cebb9e2a1d7f37736456184574c02204924afdd74d8267d3f5731ab6eceffab4ae03f0d5cc60b1464837064bb68d77801210312346d4ae2c915936986296c2c42c96f1fbfa931832af9b475f911855680f08bffffffff02e02bb002000000001976a91457162eb62138da24afee34646d9ee37de68546c288acc918a604000000001976a9148ebcf60d674bf740de4c61b39cb0a39c57120a0688ac0000000001000000032395e5d3ae093f701d604b23375ac44bd31aba63f61811e1a0d832b80847835e010000006b483045022100a1b23c4dc659eb71a34bb6626627c48d0594231d668730947c08c8f7d0f083ec022025e43b87ad01921c526d6d0c681420c33c098b43db86d88c3f9266205099636801210201676d6db697046ff852d66265d1343d8e97173ecf81940238d21a61763b5e53ffffffff4be714871033b0b7bff214d2ecd3841d20107f65e8095b29f54268e27030447a070000006b483045022100d66d8be96a3439bf4d63ca8bf49ed9cfd54268ce93db4d45e4f95bce6a2c924102203e3482c196206fd65a210f6d6221a967881dc92b01c2b7db5469dc1ad56aae2e012102a42d0ee4a818fbf92351ab0148580c159366fd90b95ebe6beead2db22fdcb8dfffffffff86d4f00e5528d34c382d32b55387b5f70f48758351ef67288d7d729c2b370e06120000006a47304402202b0d08309b5d56bc78926f93e9a4fc3dcd74a32499c76b7a83646279ff40462d022047d2868337d08775ebd31fc0ae62b3318910fc598b9e0b19570b5b2ce83971b0012102a42d0ee4a818fbf92351ab0148580c159366fd90b95ebe6beead2db22fdcb8dfffffffff02b8480f00000000001976a9143a93f10fbc5d799710e31e5edf01ec444f0ca51b88ac40420f00000000001976a914459cef560e3a369916ea9ea3ea9b707a053bbff888ac0000000001000000039d91aaa66da8edcddf1ae6b6260329b814489e6b0aff46e271003cdde6cdb4ab250000006b483045022100d25724b6514d817372d10dbd2e71a016aff7ddbcd8a4e6b3e59794912578c64202204b2e62af5892801804f14f804da633f61da891c71ab2b305cdffd3c4c2ec8d060121039c8804ab7b479fdce96dc4afe21fa77cdf31b4d15e8312f11adf5c0d02a3ceeeffffffff3237743d3b1999927d4190e1c452d9ef98ed8d821d03f635b4b15e71e1dd5cd6520000006a47304402203e6efedd80b5ff47dd02d70b67f0396b6316c1b2fa0f18e0e7104982471653120220280c3a8a0082e324fde1ba0ccfe50890417301c7e61299f7bde88507ed12137f0121035466ddf546ac8b55de30f9185a5c29ca4cb653b123c6aa20aa310cf23ab7114fffffffff294c939ae46cd1d247a2328c4179ad519de6766b5de6f1f5441397943925b1de010000006b483045022100894ce5326ad352ca174efa4029b91bc61a683fb0537310e8a86f83c764d3c0de02203ca7cfe5987ef468cbcbd3a904d1b980aa57036e5f3021377b7b5376cbdc380f0121022052d131c1afec8603217ba8677caa9323ff8d36bd729449ed69156b9f7aa674ffffffff02c91a0000000000001976a914761f7cd356e3395f23932d7bb337ea89866fc58d88ac7d500000000000001976a91428046bc33c89989db5c81a62a66c811f4c20b69688ac000000000100000006edd7610a7bc56727561ffab2ab4753925d6bf651ea27075ee85a1cd9f41d0608000000008b483045022100d48ef657d06fe457e5906e4db897c33e71398d2475ffe4d7d6725f469532add60220422686a3f0879d63df302e89af19801adb5bda0b711592097bfb5bb0e15a8d3501410423b5f7b2332ef81a045e01c67af6bed905ac5eee3a1712abcdb0ec6d84a8173c75b39c962b636b1028f707697c55a5a6e58ff8b43d28f9bc63a70949a85d18d2ffffffffa37bae54b5e8cf1a31f0549e0466e06c45548ff903da468a5b31904efbb255ad010000008b483045022100c961d69903a18b5870179debeba05dcffc172123dc9750601997d2f5082ae4e002207f009395775c2578d4bd7fbb774e344f38c05d3462bf2b6faac4756f7ac77630014104d4a6240fcf510dbf8f4bdcbaea74dfbe4b6d7344db67c30c2fbbc2e9c24d204ce024c00cf0722686e4fafc10f153b1dac6f260ea7307bff9b8ba4fb0b2c23a88ffffffff22b5f57dea707b4bcffa44f628bc9cddb82797aa2f0fe054bba6e01013e39aee000000008b483045022100e18b753345f6816b4035a361ee20f5ce370b0aab886b464000ba3e83fde250b902201152a1f130692561b78576861ec1ee93f9ea67b388c145ee29c88cc6d99f98db014104b4a4c2d644bbfe5545fdf00c34342387710aa4a60cd1194e168305f775e7e74641fc7529c2fbae5bd5cc3733f6866302a748d9b84c1a1a16e949215a5670fc6fffffffff51b06c532c42c185b91f04a2a55657bf6eeeaba35ac48bf5df977f7e0e46d69e010000008a47304402202ddad561b2a022b6cfcac80d9a17732858007eb46b082ded9736510c9c3d907a0220035c63609d9e6b6acdf2d3440c6fac76409c5621d6666011f1df1c0a59dc41f20141045c4906d48d260ed65be33c99e5cf6d381d9400aa027f1b6a2cde78679247cbc49f4ea9eca853668702797732f612dfa785b984185b8362a0662bf6de299fb98afffffffffcb9b2f6ad263eeace1ec1eb653ac873223e49f0e377a896bcf6040774251cf0010000008b483045022100d2123b325f58f80820c2ce6ee793a577de3d484afd7db8fe6e10487ada1d094c0220532eb8d3be9df32f7365bec27cc708187966ea9b7812c58d09eb94a7ebbe311e0141045c4906d48d260ed65be33c99e5cf6d381d9400aa027f1b6a2cde78679247cbc49f4ea9eca853668702797732f612dfa785b984185b8362a0662bf6de299fb98affffffffb95b40bcc0e2bc28e20a3cd237642f52c1165abc9727ce97cb8494a00a0720cf010000008a47304402203ac8593e88c20e9d3fa6e6a7797c5b6fcfbd0a837db3b59d3823631beff397d502206c01e6fca945d61b501e0d54f895981db4f560e35a8e90038203ac88eba8e28e0141045c4906d48d260ed65be33c99e5cf6d381d9400aa027f1b6a2cde78679247cbc49f4ea9eca853668702797732f612dfa785b984185b8362a0662bf6de299fb98affffffff02c667be04000000001976a914a73e49d9cf3d61329cf15929366761fcb3c0efe088ac345fa800000000001976a91406c06f6d92846223d090c353a01c873eabb2f70988ac000000000100000001888ba4f9bb01bf9d18bbab26c25f4ce989f799650e84c299bfad14c199a44583040000006b483045022100c189a9933b6e6fd4a717bcf9161aff88c0cddd698cfcb08848ad751faed45217022079d4ad9ea936c867f0009c26be35ab04c59cb10cd0b3129da83a92e8cc58feb201210223082d95d956cef3053996ab5eafb1dec04798401a3f444fc56a49bbb8787f49ffffffff0d2b270000000000001976a91463a19dd83408c8bba9b11b1bf3fa549f57694c6a88ac16270000000000001976a9146ec41bd2140dbeebf4a0dcc1e156d03382a7d68388ac1c270000000000001976a91490d809037623cb98d394e49b44e993b541366db688ac11270000000000001976a9147e80f64281739d87817f3e213bb90046d8fdb31c88ac17270000000000001976a9141cd0cb02580147e8d9d7f88e1bce63d723f9bb9788ace0270000000000001976a914556fe723c062476a9495ebbfe5c85d7ed55de11d88acc0270000000000001976a914e590dfa70eeb62a34590966e4f1fa55341918f4688ac5344cd01000000001976a914e03f6429b25bdccf13feb78c2eabf725919c1cfc88ac1f270000000000001976a91473923aef34dd69f94f2a2660e24e51bccd58ad3088ac11270000000000001976a9145daf72c8ec988397d3dd088799d61bfaf8c8ae2188ac17270000000000001976a91455e4a39188e3bfca34e162190d5da797299f913688ac0c8b0100000000001976a914a738f17c9422af56422e02099a6f7737ce637fef88ace4a50000000000001976a914e43bc2ae3e263afba96fca24f991b3e8ae6177e488ac000000000100000003869d5ea0650440be0334589d98a58f82101d76534e6a19eb5f22c84e9aae63ca010000006b483045022100d8e793670eff5f3a41dd083a5190ac0b5bfe10f67e0a18531e29f4ebd2f447cc022076289432c5dafb84a1ad3a922ab1e91a8d6f836d320dd31fab1095a618c495c901210329802bf3d593bcaa9ec40d1cd4568782e289f3d4cc28e622ada5517efda9e728ffffffff5c335e6084c8f739a9ec0975810e409f2f14627f622923753452c0a522911228000000006b483045022100d105cbb1f6fa5af93f719619d6446423c4b4a96f236a70a84a39fdad371ed8e60220239117bd6c601b58162cf45a3d151d5df645adccab95f57c2912442110001be001210329802bf3d593bcaa9ec40d1cd4568782e289f3d4cc28e622ada5517efda9e728ffffffffe12ace827af1168b1e055149893a5cf40ea91568384236b7e3a52d9381ddbf2b000000006b4830450221008377dc51c6f1a6810dbb38973314ff289868a70d03ae34b1b6e403cb01a74b0502205ae5b9512d8f199b2be4033f672e934107cfa29a887648e07670e43d4e3a729001210329802bf3d593bcaa9ec40d1cd4568782e289f3d4cc28e622ada5517efda9e728ffffffff04ac020000000000004751210329802bf3d593bcaa9ec40d1cd4568782e289f3d4cc28e622ada5517efda9e7282102e970a940f8bcdfb9e9165fe6de05c94b9b65f5bad1e17cea44b4099640874d3452ae22020000000000001976a9144bfe5fab8a0d3680187266ed77260cbca5ffc12c88acd2810100000000001976a9142d5e62586a3d244c5e3c4ecc32eaf7630639a1fe88ac22020000000000001976a914946cb2e08075bcbaf157e47bcb67eb2b2339d24288ac0000000001000000043fb289a48460716e4ed08da7f40d4ba66b16a28c77a1fbcd0cecb226ba9b95ef010000006b483045022100eed851fb6a7ec6c72588cc3e0d3ece38766d60dee4ac4ce55ecb865ce6d1868102201497abfb12e1fdf35e9eca23aea46f022d3a0feb0ca3267a8b2dd2fee003ce11012103c0a948938917a04fcee738927de1e769ac3c296ef3671832bce487f1689029bcffffffff022ba6eb9681568b49f3772656caf2dccecdb3fa0843eb6e77f2d0def34704f7000000006a473044022028b12fedad9a4d809b6bdf8897aa8cec209286dcc6f18db3f0948e59c3aadf4902206d142cbd57d008d016bd2fd9a7338fbeebecd3efed679329775134ab0ed880da012103c0a948938917a04fcee738927de1e769ac3c296ef3671832bce487f1689029bcffffffff841a2e91611714993a47566632e29faa1a1411b92bb3d3a35c4997b3f6de8c97010000006a473044022023c3b45dd6274055e46310f623ed00a3b9f3268fc7f31eb79c3d9ea266c2e54b02203b37dd29938acfdbcec421dc0bdf884d34100e9c04e066ade4a01e93dda40938012103c0a948938917a04fcee738927de1e769ac3c296ef3671832bce487f1689029bcffffffff65df3232638cff6bff9525ae6b0d7c5b563d06ab657a2b046d7e2dc00054f520010000006b483045022100dbaae1667bf3278f7c7ccdcec687393b0859c3f742b4f87f8a4070ed739feba30220620066ae3d31ad0eaf061168a61f6e103ba1096b3b88f3eb5e26ec7453e656e1012103c0a948938917a04fcee738927de1e769ac3c296ef3671832bce487f1689029bcffffffff02b0b33200000000001976a9147a14361a09d777e17437d38cf7f3e5e46f65cd6088ac21510d00000000001976a9141d319c9e95533e797a0f7886ba66bad810b30f0d88ac000000000100000004539796a9f1331b2171f0766ecb43d4db97d748e592499019b2dc90edc049cd84010000006b483045022100d97d5b8455320e04ffa9ba8e66bf3d226685581dc224812f0696e7e1820d931d022033dfac7674efcf93db65b365fcbe6cbb541b325b940ccad89f8ac81fc7626deb012103fcf4acccd7c34e8182d47bec14f77f8992a77bae1b19753581ee16ede9dbb713ffffffff0bdb924289d30abf1ca1ff5be9dda72b272116fcdb1b8324e10c50873bb3f59c010000006b483045022100e065599f095ac58d07f844c7b3df86f668207d9b6da35d8936fbffa9a2e1573002203c8c957712169d91239082098d29f1c9726a600ee398e43faa094ed3d27d09d0012103fcf4acccd7c34e8182d47bec14f77f8992a77bae1b19753581ee16ede9dbb713ffffffff76cd3b4d3c823924f56483f8d3657e0884b91766d533881c082e93312ab6075a7e0100006b483045022100b2cadb8030f826f50f10c3ee26bc5af3537d41b07fcc7264bb2b7388aa9c8923022017ed24099f967db3b0d61dd8c8cf15e0ff3447b7c55d34f32a854113462228c5012103fcf4acccd7c34e8182d47bec14f77f8992a77bae1b19753581ee16ede9dbb713ffffffffae740291fc71add2329a65c2503de2275ebb4caa3f44be304d2d3ca35ee79a1d010000006a47304402207442f403d042a7fd464bceac50eae27a6cd6e76d82b6452b1a2de78e55345e2202204fc6cf74c93ff0bffc9cd996fc914a7912a17a756cd4cf88f65af648344b027e012103fcf4acccd7c34e8182d47bec14f77f8992a77bae1b19753581ee16ede9dbb713ffffffff0220a10700000000001976a91467dc78286bb047d1fb34b61fb9596aef0377d60288ac5dc21300000000001976a9147d5aaa79d6cef73bdfa2c6d29ae0bc163a029b4788ac000000000100000008c7493c5a2b1cf714ffeef7345d4fdc844b5ae78caa497a0b5015adcca84e913f330000008a4730440220379d25f5499a8ba349ce13218aa7a4ca9fe8c7408ec0bda865a7823827b39c8f022068941ad4894175d405078385dfd86e8ca031f6a7fa6812b98a4be0ff923a1b8d0141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffffaba24afc9598fe456c67ba4563584bb63ecdded496dd253d3dd09c211ad14c34010000008b483045022100875741dec657aba23a90894e0e55312d7992108198288a5246ba1d649faf9f7e02204a1855b1ab58aca2fb903dabbf0bef465308038976b306e321c8e6b73c7be1a70141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffff708950e3f327dab9673004db5a5d8d6bb419437e9813511a682b57052929d9792f0000008a473044022027e4cff1c53e71b17d1c50e6b29d9291d406b81f51b458b58cc7b6a42ec4249f022023bf054acd5ecb18c22047759d54f45f05ea216f9baa92d069f94bbb2f23f76c0141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffffda42171bd2a4415c3bf6b90bf9732488a104418c7ce6d586f85b6cdc3d9880784a0100008b483045022100b559a877422b974111f75be12ea4681afe86a26d1a611f4748a682daf1e37fa3022014cd671a74399948b88a4d6bdb494ca360fe462ed6f025d5fb48b1ef9858fbff0141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffffbb58ad675838fd456317fa8cb07f2a83cbd35fc854da4ffed1119b114d6f4186000000008b483045022100bcd24dbcec2024a42bef06f6435a631edaeb6c52b54c669cac8590f6b0f83e89022073c928e1a421e58c1d4ef478b00ff67bc2268ec11632101474bb910bd723b76d0141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffffd5f0f20daea7d482155b4a24840145740de7a5eb62e041e13d9f9730cdba9899010000008a47304402200c7993991e94760ee0894e1f1534ba82db588a82f6a7c51f8815bb370938d0740220108e87d53c6bd30e08cd1d1582726cb663042cc09975289e9bac0d8eb483a3d7014104cec552e67ac80c9237132a133ad6a7ff8b577fb53988b4d6251924eda0658859d2e767e83dbf895ee1581c3c635ede319a4f684a39689d27af90e381d234cf7dffffffff5a8730c0cc6ee731d5d3ddb52d3515a1e577a83d83a6c15bf31c29db8be16942280300008b483045022100cb97f7c2f4353baf99d17e849ebb925ef20ad044b78e64da602ac2eb58043769022070e0686bb1eae1c29049ae3ac26845d4c5b7e45ddb64df7fd24aeef1fa6787af0141047a824fc5a97280f66e50f7a44b21896cafa17b6996567eccb467bd583a83963a96221214664efe412d91578cc74c38c512aa4e9dae1ae0d0063d1a219c04684affffffff770bc7f7c00d62beb0e59ddbfa130eca87e2aa3ddd7daa8de34018e7b462150c010000008a473044022035a8dc844d0af45a1f128f1b0f604a5a6d9cb3cac088e57672c97eb216a53dc702201e3ac62d6a59b0dba34542ee24ca3d3369fb789d04877af147297a8f0a112cca014104e6666dd418424d6b35af9d0f0c0285f596d517ae89e3ca1de3f884d8c00fae46f8de683e16fd7462e8e8c1b3ab63e1a921a3b2126c8e9d6c22f1a5e1c7a1c871ffffffff021ac00200000000001976a9148629714b466d5b8656661fc8c85e8997f190caa188ac803b0100000000001976a9143893a14ac05ebf6a52a9ed2838fcaebd39ab608688ac00000000010000000f55ad86faa09f030aee8f58e27b80bc7b849d8e7a0ba6b378302fbbae56e7df23100000006b483045022100f438e4794713e6e85861b5e821906186c97f3782021d52c13fcbc0c826c402770220344ebdcfb405ac946fb3c39c81c92c0925bb6536917c606e09771dabb9139b170121028dcf43555920b975673fa8d65de59e84c06574f9bd94b294d15e3697f590f612ffffffff47cea2934ce2500c3b5325e908393a56e1ff13c3df8b4deff73f7af45b3c2bc40f0000006b483045022100f72c5fb60b9d64509ea4a43508390897b30905bed8a96c77fff4d2311554a34c02204f898845dd3de6f0c81aee9c54e2f57f205464617c4f5e7fe4fdcacee518fdc50121020124b4a9dd247b5b1fe3dea733be14ca6ce3f56a6fe23bed4d4fad30b7f14b89ffffffff47cea2934ce2500c3b5325e908393a56e1ff13c3df8b4deff73f7af45b3c2bc4000000006b483045022100cf7a33ae908a62fe9221fd768a5f6ff58ef2359f46fc7cacbb7d3f8515e19f2502200bdc893f10a4fdc6e9a802c7a8102bccc1e9d5e33ac35a44bb7cb95b572aee070121029c82295543dd378c7d13073b439e16bc2f354e0566234d2c2f9904e53cf692e7ffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde030000006b483045022100dea9ab110eafe1cfc1dfde9fe730ef5bba8a96c6234cef33b3ce4126f622698202202e1d7ba8ff9bcf7156bac0c7923a5aab255b6931e3bffa3f906df27cea616271012102bb2833f994636ef7de7761ffeb80e77e8292f07611a2ca8ea254422dd0ad7dffffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc13926307060000006b483045022100f393863e5676490548f4dfe15a93b3e428717d871e124bdad6b7bd3d9093deb3022045b6a3641c5ff4065fde59e896723c883b4225a2d0bed59ac75b7498dac4c8120121029dcf8c7cd53a2b4b18ef4a1fd1fc4bde9cd1b2d22a7e40360e2b9943ee702740fffffffffcf1922514dc48c1bb631110c8ba6d92737b7bb991fff301438828f75d0ffc73000000008b483045022100d4895f52db026b7bd61e5d0c238705c4ae21730c58af92b8b481ebaaa30a7a16022045b04842653518ae9c11a0c334c87db3db8f7f31c8aad92e0fd52672ce523a0b0141043a1bdc3563e134448c92472f1389ec158fba49ddb4d4f257fbaac26b7cb9816bae29cc317bbdc96693165f1c8c300e7dcfd9b3f6de3734a1ee242c33d2ce1e1affffffff47cea2934ce2500c3b5325e908393a56e1ff13c3df8b4deff73f7af45b3c2bc4080000006a47304402203b20cf23c0958d659af0a085c18e3746ff5a80df5ab9653afc47c664a5f3f75502205e46ecd9da959da670e8346cbdd26c34acedcccb997f6f58b1265ae1d8e3cd750121037cdbced5fdc351a6607d68abe8949b25b3ccb1e95fea4d85a15c5fbf29db8ff1ffffffffb68e141800bb7d0cbbbbe5c842aaaa53fb27505f42c8040502b03ce547ca408b090000006a473044022067ea18daba0705333686aef070b728a25c9958680ac552a824153190e74137cf022046ff40f2cfd935c67897574684a0fef181548ff261563bbf69f1e8abbee42de001210368722eaa8e19a979040733f048e28708ca2a2baef5fedbe6612d7b0d595a5026ffffffff55ad86faa09f030aee8f58e27b80bc7b849d8e7a0ba6b378302fbbae56e7df23070000006a47304402204938ad3a90d183fb80189621e0a2c4a7b87ac0662777d1a69b9365aa640bf76b022049e86a8d64c087aa1a5bd945e3f685a3787fc974f96b54a652b798f53cd2e0a2012102cd34684a88a2165a1037b245ea8d917dcf49eae7f1d1d0ce1e830cb1cc73f984ffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde010000006a473044022053ea3754de7317ff847ee557a1125b7b396e74f1314e2765c9b45f283b300428022043b8925e4bb74de99ea12a8b20121d02c666a947122c0ae87c49e5f2a1b2e4ae012102960fda75ed6cede9ca4536a00fcbb99a9edfd510049341524dc9aa01528cd6a2ffffffffb68e141800bb7d0cbbbbe5c842aaaa53fb27505f42c8040502b03ce547ca408b0f0000006a47304402203b590d969e14b6786e2560ad027ca978709d0a69994d7f2ca0d7e2b40e560707022015ef73b332dbd7e88b3f51563d949d993759df371a783b3f213ae6175735bf9b012103d70c3c2407445bf30e1877562c686d487987205e6b39724aa60b85f6666697cfffffffff2fb6d5ef691bd78529c644197a5f5466acb759567ba50b43e3e68104cd4bdb77010000006a4730440220443e2f99436629352b710f8e46b439ee059295135724ceb4ff111022f042f3fd02206dee1bf9fcad1d736c2bf1cada1d223515c1144bebad1d333c45d06f9721cc40012103fdbd81b8921b932c64b40f0ee28e77aa15dc15dfd672e58b43a57549b3a316f3ffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde080000006a4730440220278710cd5b6300c62c1ccc92c5be0912de36be7e30a50661db0119988387a9f802207056df06530d756429bf6effa80cad5e37fe910ef29259d356de4b67932b63ed01210224f9be7f81dc4357a2f18ae0b698fc5c60134918514f25aef52c5da73c52bfeaffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde020000006a47304402205550ae898228e245332db632e1fc2ef85be0da85d809c419b834abdc0c370401022045a136d4aff7ef8cc3b6097143c2691cd843c4170f0f1e5423396b1e0a44c6c801210344de1a320b1f05a57b98e9687384a1cb232e1d76eae8a9a270900166bdef196effffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde040000006b483045022100a63a3e8038634cfe47b95607287451f007051c0680711f8c93490ae49b65a66502201b560e18e42c961733d29bca24cec4887e79cc9617674245166ad1298be5d0b3012102b4a6d812b3354b47c0c41561fd1667adffbeb48eb296f10a9db252ab0c6938b7ffffffff15c80d0903000000001976a91489214f459783ab99ab411d8f8338d8b366b126fe88ac60fbf56c000000001976a914ac52c193aeaca17ff5f8511272b06171c4639b6188acb6a40e00000000001976a9142a5817a0d0c1c24da4ea7b375600ecfe42fe7c9488ace0af015a000000001976a91469b1ebcb5d58d44ea9d92c34a6c853c063f0047188ac0cdc964d010000001976a914d4249ef620cf5b96db358135e4d392f130385fe588ac1035a830000000001976a9149292005022ba766c61496b85f7680c0375a040a588ac6603ae29000000001976a9141455543b92f177ee2d5046ae72275438afd8a7bf88ac06f42d00000000001976a914b85daec89f67060ec37c54e5eb417b44934a0f5b88aca6d8e823010000001976a914a8c4cbed19d6cd0406004e34254deb1657a79de688acba3cfa04000000001976a914b879050a15b00dbb29d88f14d079eefed99eed7c88ac92e14261000000001976a9145d1643253120d1799defdb730bb1a94be873c69988ac583daf29000000001976a914f507d70fda905feb6d3cf00e7ec49b5f4880fe6688ac9f5a0200000000001976a91447ced88f66c87207baaed3c98ba232aa69de537388ac00e110bd000000001976a914028e1f3dc45530fbfaab1a232c5d9777c1554a0388ac1ca8bc29000000001976a914ecf09155e97a9b3ef4926228536c1ac59539776388acb0770401000000001976a914ff933d6753f14b4aa554bac93d0c5229fd98028788ac802c05d0000000001976a914fd52a6126e4709da83504678931dfe37db457a6e88aca2a6f502000000001976a9142ae6b68848a2b43c78dd9ea34a0d68a066a185dd88acc46a0d00000000001976a914fe13b17ed6971a532e4464728e97601644ad462188ac50a75ef9000000001976a9148fc2714b3e339a16be73cd5bd2082dd63e69e4f588ac67992b00000000001976a9145123b7783a07eac14e4ff9905704a66cbc398aeb88ac000000000100000013d7fb3e99ec6ad179955cefea5e1940eed8d61c0f8f9674592c845a6fd8ca70ec000000006a47304402203e66268320b52ff95eb3970a945a39a8e72ff0e17924b940c0504ae506a827f1022054fb9c19d1446a52b7ec971a4217ccf5c6615844862bfdeffe64e1e82f68e68101210284fbc92cc6d4433cf6d02aeda5d19d4d67fd2f284e1de9168f0286d8b247e511ffffffffef43ef6705e4293b06868032b86f1b6d9bd092f54fa98dffe666b69f1d4500bb0c0000006a473044022057fcad6492f86370b903aa58d65fdcb1eaac10d5bfedee3b72a6bec433c6d26f0220748f6e3fe3ff107c1d7d8e0d5258a06e841e8d0de4f537d6a59e658f560d1de2012102feff76de7a04d338094cd290e82b2ab027e4f54983f966b7bb6943bcd1bace4cffffffffef43ef6705e4293b06868032b86f1b6d9bd092f54fa98dffe666b69f1d4500bb070000006a4730440220594130000dc237b189d2acbf7963a076a1243e436eba5ddabbe9482afa990da502203615011cbf4e8686d61fc27b49a5c0223a008b1c4c60fe5488b88af0ce89930b012103494ef6a3fdf2832bf96837eafdeb528d47b027a7477f0a466cab51d0ea5f3cb1ffffffffad6dd2e138f49e6c05ebd631fabc1d7795f73988eee66364b7e398022350b295070000006a4730440220631116baf74db92c0e8ad3c8dd84c23350c21ae2412faa9a5f78f410ef27bd1602205dd4fa83596799573b88fec9299d130497ef9adb6ba23b26fa711ebccf93074a012102decce366a6a724e883c1832f8b93fc33b32bf61fa0c757a5e9561c2cd58b6b94ffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde050000006b483045022100b62e9a1adee18146bdaa758826436d5c48967e11919c0d1c466d5271ecc78b2e02200264535c086f85f29fa2bd6cf4d73e50149a565e02bcf1463ce5511cf7e8588c01210376f2f130d1d27bde88f0a467f2c6ef28c97d516c4891e5d3112f197982a53185ffffffffb68e141800bb7d0cbbbbe5c842aaaa53fb27505f42c8040502b03ce547ca408b070000006b483045022100ac9e630853b2f4eab1d04f4f9c760ab06a8654539b973e8d0cd229444a06730302201c437d09dad554473f92b5116f2c954b1f8433eef58b8de5010b2ee37de9be640121024a2d0fb36c556f2e0f365ec91ad252c3bc57fd0d2542974d893a325da107ffb0ffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc13926307130000006a4730440220568609afdef0dc4a1e143ad11d2abbad05be7d553b0e251acc6defb1a7da155902202cfff19622227fdec91da6984ece10dd7810018686c4561d540634702045f8990121022221ffc3a562cf28c24193f0861790de03f0062934b7ce00d49a4c27dcf8ec00ffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc13926307050000006b483045022100a8e3ce7e600c4859f9f6f6b1609f2b83361d9ddaaf41aa57a04ab9d7e813307602201cabf9f783057560d4f44557361157cf0e830c0af6833eaed123853dcf311b830121038f21f9f3d38ee280e72d9135941663195a7fb0abe3e28f4d9b3bbb4b48583838ffffffffef43ef6705e4293b06868032b86f1b6d9bd092f54fa98dffe666b69f1d4500bb010000006b483045022100dac425607bfdb4658eb2feed11bbfa3e45e2a2888fa3e3e7e576c5eeaa0b84be022029b7ede1cd2ec4c72cbf03728a1eeb136e4eefc9e25a62fe2a6f00784be15b92012103be8103b917c25d5b250d74608d6fa4f8776463ba20b9f7e4e131b58ac29e7962ffffffff0d2f6a1abeb76bf038bf0de8a4946cecfdfca99caf6035a071684e1dc200d9f8030000006b48304502210093d02720b7f6bbd69afde4aac2b67ca828b5f41a7e765ce8da810f33fabcbf79022003a2f25d249e45959da9a3522307d8363a966de6ac58a782dbd1e9dbc1c59886012103adc3502860959d8731c39bfcc502d836899e9a4c432ed3e113469f2a86e3ded5ffffffff0b80f043e007e4a021dcd2b5cf448cd1a457bb14b5810da16ab5161ede0f2d43070000006b48304502210088106d9057ab0d0b7c0a0053ed7ced94249dd120fe7a7ef3c95820af1b2a42c40220152f79003d2c57a056401b9153981bc2ae3e9ee7e9d512852ae7b12afba6d51d012103570a61bd857d9945e74fd550aebedddeac46b8a15c1bea6a730101a00202902effffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc139263070f0000006b483045022100ed50345435ee34b9ad5ca3a25f7bb5767e3c1bee109fb6c54cdf7863994611f7022055c9baad30e6056519bd21e11d7cccb7759b6c4c910bb927d7ee0545a648355301210219848d7910dd1d9e5d20236577ea519fc6a59a6b84a44ecb8d475d121a5d3dc6ffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc139263070c0000006a47304402207f7027c0fd99046f6585089c33f1676932ba73a6738eb82dc6539b68c381c616022040b070d15820c7f4b99ee1f413047d4d014e549b80383693eccbc3127738a45b012103448381cbd4cc253e878dce1c51593b309e58f97574e918b70da1d348ff842609ffffffffb68e141800bb7d0cbbbbe5c842aaaa53fb27505f42c8040502b03ce547ca408b140000006a47304402203cdeec90e5b730533604c859327219cd975b3575bac8fd033e904f31c001b15e0220146f4b58a1db758e75c0dfcd6e1bbcf50736bb94b1f00680d3b4ebd01187fa890121038506951c80bef6103099d3c0c090eb75d6c5319856c6c17b8b222393e5917b27ffffffffd0af5d9e4198d457576e0f6f0660b2268c6c9c794dcf35b6fcb97f09b77962c5110000006b4830450221009ec10a2516bd3a0cbfd30612981964d5e1285912948e8e46f802b14e3eaf5e1002202d699385b4f94c11206669e1bea585aa4354a18a5ed6f3632ce85f30a06861dc0121031dc422f14ca460f8eda4b47481a417c9ea5285421a1e7403779beb05d77f6ae9ffffffff78f434073747d95b0e7528db9fdf01fbc1f7a7cdc41b83db2a5e74bc13926307040000006b483045022100aae2e85df6382393aa2584ebf3691ccdde0f8f8dde5a8fb4b899e6ae74087e5b022034c18eaf3164e88d67b97268ee041050ffeee8e8baae873fa0a414ea3d57690a012102015c9a906bb14f64e3fbe6373a7311b92cb8076e5239d33cce60c40bd94f6353ffffffff84d20e975f1b268e95a866a2ac1d91e48d6bec5f9a0df34269b996303b0c7162010000006a47304402203f4eeee326950e6c91ba8e2838744a874cfa864914b516346d89b2b11b01da14022020c69aaa0920bf592028280da9c89f997cbf840968d283ab13f825a59243d023012102207579fac69a3f8c702fa779fb4ffb3ce72084716abca9a014697ad91aa1069bffffffffd0af5d9e4198d457576e0f6f0660b2268c6c9c794dcf35b6fcb97f09b77962c5000000006a47304402204f848a906c1f955ffb82f606490a77313aa8a6d7bbd629b8274c1f3cb2ca6db0022039766c5dbad62568369608bbf30b60c5deee64fdf7c6cd5d29e61710b8067aeb012103991eb4f1a47dd1f634d1075142486ae74ab7abb0e68202a928cfb8cb2e76c894ffffffffab719c3ddd5d7945263f26143912927b79974e558d68df3a1236cb79be9c5cde070000006b483045022100931da94c1f8788283e064933a759178f8dcb6481744dd74d1d01982b20aa3c210220186f595a53ac7477bc9b2c847fa246cadc91cfd2bb91201e92dfd003e9fdf69d01210374865af212f1e5a1246107a8fe4ea81d1362d1a6bb63c91ed2f5bcca5ed3120cffffffff1566525609000000001976a9140fcb0e28c1cb5f16b7fa5169ed20865ee6e9e0f488ac00c2eb0b000000001976a914827742a437edbd9457730797678838cc770e4b3e88ac001c4e0e000000001976a9143f215fa3fcb48276dc8319223459383003e236af88acd0206f13000000001976a9149414c2506ce1d3f557a4b14c59206e81cb189e6188ac23e20700000000001976a9147f7d3fd076faad73a6700be65901e0bd27191deb88ac3ae0a023000000001976a914b8f95fe58db996aa2eb88bf5acef88fa266e0fda88ac76828d1a000000001976a914a77cba1d132c6f336e73afbfe656a2fd756620c888ac1265f501000000001976a9142eca8491b59821a95b4decb10d33de11a87c1af988ac80bbee02000000001976a914ac01ff5dd3b4c6d4f8499537163672ce1f7387aa88ac48280904000000001976a9148535af0a130683b1dc3c7667ae2cb6d77410169188acdad10f03000000001976a91483b63006fc1ae9483a0b9d443a6606fae2bf793988acd0f33d12000000001976a91463699a81cf865eb1b09cfc82148e8953d97d68b988ac7a8fe105000000001976a914a6a89f46fff859b8a0303aebd82da16c0ef0faab88ac53a0851a000000001976a914835e9f30a7c6b5341a4bd152d355987f9519213c88ace0fd1c00000000001976a91405ee1086e645298320abaad9bac166549429c41888acc45d1309000000001976a914104239a9d15fba7252a5620feab2ce33cdc4f91888ac00ef1c0d000000001976a914694b0ebbae242491eb7bada96b08d1630926ef9a88acdcd4e323000000001976a9146dd0ec807e8705d3cd6f14a965540ef1ca1e368788ac1bac1700000000001976a914e05b7c3a1c5dcee2cb962d4de5abe93bab16ae4588acd04da014000000001976a914dd0d7f52c52b5f8484f46a6951a74a95c294b0cf88aca16f9500000000001976a914969bbc4bba55af8b16aa169fc545698294954a1888ac0000000001000000283eed827ef96f1b7075210c7f049093cc760f0dc61d2d474a6b700734045c1a62010000008b483045022100d1e0bde370391361865b48a6d103b79573d8dcf24305000f5ed4c190fa8115d0022001b9a5ca7a2a36422c11eabd7f592d9e9916dd39b2932cc76e14753d88f6ce1c0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff4db464587f85685e87ae5c5ba62eec2d1a8f19952dc2584ace49ee9b7fc2af001f0100008a4730440220286cd99d44561316f447c5450d0396a6a0c4dae803e4f3cdcc91d5df7eb3134e022067076f79112da30cd65ddc59d0d5843e9f0f38e4ae1c558362b730dd1b1d17380141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff830fd53ee0997ec32ac64e171568ccdd3ad8033980e41429d0dc69914f51be83ef0700008a4730440220685e7ab1c7da0bd69fbd650b407a08989567c8894c085dbc6d252f89c2e900f302206bad211388fee8a3b96323e6c3a242c57bbd2dcb13e9c971b3b7139bf2b712d90141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff8c9db2a3fc07fd6004e6c2a71ef51ebaec7a6c1dca4f2874a5e61b4f8bb793ca1d0100008a473044022071385d36cb9efe530fc24929f001d4ddffd3d057716c78b174fb516358d0afdc0220350eb07e6dbe09802b4dfb41ae300082c952acb1636b85e5681ce209fa038c3c0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffcf215866352f9dd5ad7394d701e507f36c67b64428521bfe7b103f1130193d00240700008a47304402204d3eb9f948aac5b695cd99eb435551cd72327833229cc9e5b1d385333a44a6ab02203b161195dca449dd0c0c2c904716530344c70bd79411e5299a35cd9ff228ba160141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffa3467a857b4747d17c31d9701ee8f4ab337cfb71c2b7f71bde9a7a76ef414320bb0100008b483045022100ef05e86165d535c10ce5c7127dd96525f49afd5269dab4e9601f6729f74f8a7102206bfdd93df11f87c8fd0e03b92e57c0104617d85098a98e08e48204212106251a0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffc2e5c82ae5a7831c6e19f54394dc0959fe2e2ae889b2c6ee353af72cff8d0acb1e0100008b483045022100b8f6ac0a0fbe7a51912298a3aea6db020cb59b145551ae47ab2bc56c6f5c1746022007d79692e77679c0d9d9d04e63f8aa17d6c1bf4363e6728cc2c491fc6ff14a6b0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff1e3b385edfa983193c713af8ecaa6c6693f4c5ba4d2a07846790f0116dcb6c35530700008b483045022100942c7f577573d6f0b18b3b10857895a9cee2146db83fa2759bd0cb33e4156b9c02205a128e121a3def39d37446eff4a3a1b664a1fc372044fac8d5ee6fbbdbd1ed250141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1fffffffffda89832950b955e6865ac76c5bbd4a7c76b41ada24da7f21e1b48b7dc8272561f0100008a473044022071d5f7d2b4d3d73c736c0069007259118c8704f47bef9938ccfe7c6eb82c99b8022053d6fcad0a74a5c059c307dd6e702452880aeddc12046135eb786ad2a776f93b0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff3ed10d0764cb1816cf93160551da026692696726e9aebeae2bd1aada0c3528cad50100008b483045022100db8b85469e3b788491ffc218e76fd4a216df384f28db6a8b9e7bae87b3c9f9bb02203efa7aabd83d5c11ab1091e42d20b629a32e871e336a46723fffe39538c1bafb0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff27b5ab68d9ca206ca5a4470dd580b76feb370270ca0903803020b3d371f350aedb0100008a473044022066c3a71679ea23cdb2fef21ed2dd12f086255b44bfaff06828c64e274e736a010220414701c93a206e34624038374c74a154e67945f46de8b415f4b200009976d6c00141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff10aa5e5dd5de1713efeaa5a6198878e092cbedddf5b6abbcbd9335f660661c531f0100008a47304402207953f275f9dd7d68a901016d24ed6a080e4b34635f8bf4e54d5846ee811e92bf022064644bf657def7ea6c3be981686fce501baa7186513242c36aa77f9f304168110141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffba5f43bfef7cb6a50ceeeb163a61723e11410614c92de99012a061c40804cfaec20100008a473044022055f9c6cd9ff4b060081648265b198864bc4a727efe5f6e87b9254fabb84fd9cf02206175594222860690d32e1dd2efd51d67bbc35e1635016ab8d148d02c201554790141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff8d78152d1709bf625de8a6706d047e737a9b96bf5b661f25746e46f2ed22219e010000008a473044022067c29b5d471e24cee3b5757aeb9d712fc188c5f745d398ba991dc8ef7f71e1e1022067a1a350ede3095a6c67d280ba1f01f0d2fe0f5e6eb4dc2db57756ee9ac2f9990141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffaf938d296a140d1e5c33a8413b9809363bc9fd3db15613b8b2ed1436b95b63731f0100008a47304402200a6f18ab2dcf7d91f02575223b1821a40b168e18fb1ca0781599afb969fc3864022039c97aeb5d2427aece295e3bfa619db071000a0ad5660d596f31a2c4b56d717d0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff26d8bc4dc318d3483744f51f4d4a521e876c9d505b3b9a33562a6741a01a699fdb0100008b483045022100f62d7e2d683b6517195ceb39b41d5893abb2f437d38c8a468e5cf028b4b93e22022056d0e83d53df4785545a1431a82d953513e2759513639958ade8c1e4b8fb08bc0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffd2c71d0dc40fb8a428412023ac3cb072d902036d9d76383a52a4e0991dab3f57000000008b483045022100d504306e66407dded2769e8c9fd4fa26d08b25e1308e505dfd00b6fca157d5c6022012a62af4cca34b03e8ab3096d8fe9e1714ec96367dd299ecd2faa62f5f2f05060141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff626539cd2bb704ea8f58ef265a399ac8eb6ab9ee8f4b56303796392de6d71147000000008b483045022100fd553c743bf97d7aa461ffa84f0c22126e9ad10a393ee1cff8d2b14cf0b38e4f0220343d61595754fc7b6dfdd7461b9fb6315fa7a426f45c7ae33d2fa127f3eb5dfa0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff5e900e591609ef3853fb9d6c653a85a4419b0fe0a4bef72b40db6868cb8f939f000000008a4730440220457a09638551fe1fa85e10e3896ad610e410049e664ead147d9f9779f40a73a102200158696da4c13d004f63b755175a1a7141bb0e8e33c86b3ea42c70b9da060ef80141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffea26be75210fb968647fe384d9f07821d38f01ae174ae76bbe47a4f113693d18000000008b483045022100fbf10c5ec91e28d325e1553795eb880f894b695f494c8ccb47f30ab6aa4006f1022051461c846c1a138e8db8878c15b90b012daf4a2bb3bbacd883a3bf643c449cce0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff8b3714f7e1618f11937e6d24ab02b8d3c95e279adb9684d57d2efea263739687010000008b483045022100d1b55814828527fc47b2ad8571cb6bc6ca3a21e144e782e758a0c1b3e2c0bbca022024065a6ee8a2cf322031c3235ce90160dc4014717d09486b4940a4c4a88471e60141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff144d3477ab4a57dc3f78c9c1ab230861e9ab80aa9e04ac2f5ec3c07544f0230f000000008b483045022100ad3376b0d12ab79bf8976dab3cfea3c200b13e9770dc2ca4cf28b03205b2582702207dae7dea1cb35c9c3fafc2ccd09f7fba2fc82f6ea866ca42bcde69167503bb8e0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff3ce4ca74d951c5f45e02f9463a6a54b26c352d2aa83dfdf05cbabd760b0b5407010000008b483045022100c640f6b7f6f124593b1334db6fc74d80d87b550906c54f98c5ab73b99853f5bc02207ee54b250a462442647a828a06b6a1458b0c9017078fe533534f58cb6f1f6f310141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff9f559f0e4a8c65e5be2b18538329eb88ad8b4fd4ef9f4632d32ae0999e16e4ad010000008a47304402200300189f60ba8056981b6738091957b32c45ba5ebf8e2ab1ee15655d7764aa7902200cfb1d395fe1f585f1552c0ad23b54ea03eb25e6333b6fa446eda66cbdfc20a60141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff4fb8c745bc34284cf212ea6106cdeb8ce37fa14c549cc3765d9acf475ad09ee0000000008a47304402200634e0d7928bb8f85bd5178495fabfca9d27cfd9b808bd44980f8d473885adb7022003638f04d5bd20cc5201fd8a07fa042599edc831b6cc010dc7b25bba3e568fff0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffb937d2e2ff26accf1088a35825330ccd7f0d1d78b69b4f54111a37536a332504010000008a47304402206f38e86043e29102f01d449489c8a5a7a88358b1a08851fdfcdcc23d4de2e785022024b8ebd5e7ab3330c78a8c6e1b4b0cf07704b8b05b1cd9fececc5a8d86aa257b0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffd2f0ae14e2bc19114b22bd57630a484bf21bb5fadd218c5abaa2fe723830cf4f0c0000008a4730440220170aa2247f2108d525c55ade9d8dab7510ceb0d16e270f3153901018e2638dc702201666b69bd9466705fe02b059e769a9943db53d81c5c39655111a185ddec2cfea0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffc1754d047ecefb750fa1927be6de9fabf96e2becdd3617e26dbc45be68cad2d3010000008b483045022100c1cf10efacbbaa5a0e4debabf4748b9a90d182eb09fe76b43ecda6928aed1257022004507bb709efd770e975559849a0c95dcf950a6fd5c4a53c9469d492d45b3aeb0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff9d64f5c22f9d9290284bdde5fb286fcf684b236fd6bdece6e02d07776757a4c2000000008a473044022056ef3635e03a494f00108969d4b82a5857f3fa6373be1f022740158bcfcf771c02204fdfbd12fe204e4e467ccff61ca4f8962bf51fbbafea655e3f809a53a44177df0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1fffffffff465d892dafd2aadfd914ff8af877ae6e4d72d58ea10c4a438a708f0f873edd9010000008a473044022064840358fb7b292b624f14a08c110bbda0b174177bc305303d5ad4a78cb5009502202242bbbbc075012cfaea52e06846961436ab88535a3d6be34bf1c131866025d50141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff9748db5a541909357aa325359c6f0c797bb157156de96e5a9f5f20ca06882b64000000008b483045022100d35b0e57e370466553e88e86cbf54704cb3d2d826e9a1774055dd8382e8f155602204a1ee8659f9a760133e0832171c20e07907400668d3169daed4482aa62ead27b0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff6fea9d0b3b2b24cc6b352b27e4c3bc038752b143d3620d085e17ccd805661b83010000008b483045022100981712dca424adf195780c75384118271f41934022e89ebf47289ae78b43d2dc02205ff030bbb218cd7b4e15b035f962cc708f07929208cb172afb39e2f379f4c0450141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffb2f914cf1fe445e76933254e00ef9a4f8a3142377fa7592e2407292334d30baa000000008b483045022100c8565b696194a5e248b60cac7e82a567dae65a928c3bab1cff0c744df969907a02201bdead056a33689421fcdcac23186dfa11613782af793387c6805a04583223090141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1fffffffffafdeed2ef13e5a0ed961697460e2ee5c36536b91f5a4661dfc13d6a5200ad83010000008a473044022013c3b669571bc35a83293065275dc0e196332ce5703a00443dc6066ede813a3e02203a04f6e3617729763acb9e661747e1564a93b200799210268a2a0003c62205ad0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffe696cd39802f7e9bf2963eae114c9deb00bb86a03f6df452c43c53ee689f1ab0010000008b483045022100a4b17e6107a3b5b2a3a62cadfe018a725a250cecda572a23d006e16e4781195002202563cb9c19c605cf7a490023f6164627119a241e658ff58896ef1a6b592790b20141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff7662abb9e1a9a1b8ba8ce1222075cec7eaec1aba80aedaa090af514876c23dc7000000008b483045022100fb85e713601fa08b4da4682627224121437dd46f85fc0f9dd1305a36e6c351eb02207bbdeeb67050a83e2d919dced90fb930d6c1d6743379b56695485bc0652586bf0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff6a6be5256d050bda7f91301c1696841b9aa9d4610386d40369bc3e0c01c3aab8010000008b48304502210090cecf9de11738c28b534592e0139371c1f12f18590a1f39fdfef19dcc76ea79022075fba124cf04255677d433fe34864886a4d75cc66088e38e465f756a9e6a81980141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff5a51dfd9d76f6164401f31d30a1971a6e7467d19fb1a319b0d546ef3e87b777a000000008a47304402202c7345033ebf73b7fbd69a7ac26a62ae7293d1fbe4717880737c2b83e06f96b702202e1a34ccabb36fb3088c63f37e87eb4b744e1376afe8f25686a6c5483b7014670141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff4be714871033b0b7bff214d2ecd3841d20107f65e8095b29f54268e27030447ac60100008b483045022100c6f38ac86ff34b89f6c07512313d59c36ad958c12f9b4d2daaa6b92d108e2f8702202bf655afafde6df24343bdcb82d98c9dca52edbd9b5574405d41f3be017216450141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffffb4dbd3b8da503bfa60726dbb7eb38d39641236c692b699209496a44555c9968c010000008b483045022100e75a40386e6ef94ff84434e3c3e3ca02da3f6a718b62203b024f7aa5ee7028db02202f0e3726d743e74a8bbf9e89fb86ad35603e3a984960dcdb5b4fd7ddb509ef7a0141042a1f4f9afd99e458f577cba0afeaa3e7e1fa7cf3c8854cdef57f84ef18e87334f9abf072baf9368382424c83f89d208e2837cd7fb906dbb91502075db7366ba1ffffffff0200e1f505000000001976a914dd44b69a14f0ad169d628451f3793e8591639bcf88ac9e083001000000001976a914596d3055016c76fe13b46e299e458c03d0e102f288ac00000000010000000552bb594c351c7b26b6c29b84ba47688468bae4093fae25049abdd41911bb5ffb000000006b4830450221009078968631250c4690a3dc3562e598f186a8986b4b19ab2cdd9b85c2d9a44d9302205cf040c6418677d94caec9e37f59ccd681ca131a298ac54de8cbc9fdf5736f7201210383fe170364b867c94cecc3ee0f0c8ff5c19c18c44a42b2b3df36d59bf9b1fe19ffffffff534af251e89d80a5b0fda190c880d6ab909a37bf4ca44c1b3bae3154847c6e8d000000006a47304402203076c781e832a56dba20b51d807e6ae772918000cf0bc8105a74ffcbda158aee02201770b0049639dcb92e395d6422c2b1719fad48a1ed3c5065bba82d236e65a157012103b66c014184f07f571ab6fdac8864134038373e5abe905e3afdecf0f98189d15fffffffff92498c1329832ddf168765dd5325278966343c2f788e0fdbc375ca17a424ba590d0000006a47304402201860dc8a6203376581dbf581fa56745d43cc22f23976c712a456cc41599db1a0022032e02cbdb43e70d86fe741d3eefe990d1f3c05e316ccccd54986948e519a452e01210227997757925471709e647321fe566c74ab4487fea0831e405313349ea78ad5f6ffffffff3231f0e7ece48eece297979f6d67efd91015c8309256fe26a46b2431284d9518010000006b48304502210095b82ab7237217b26db7c7d226222388ec2d4daab988f7f980f8abbe49dac3fa02207a4c9ca49e021c79e0581fb6ae165f846957bd6343ab1a7e92f5c352a3f3fecf012103d7972106d09adcbb0f0fa60321eba7fc51ac06eda3c8f44963eb4c1cdeae8b5efffffffff7a7ad6e2267a5811506f4b4e0e84d01ecae49f4fa490847e69e2c31bc241da7010000006a4730440220040ab56b2dd8a818835d1d802957224157712e5e60bbc936fbd92f8e30f379720220188a1aaacf1cf4295cf42c8d096da5973939b32d47748137ca9ab279474f8ea501210390a8456aa253d30b208973ea44b074acdd0e4cb15e25d5f2de295290cb6bcca2ffffffff026fda0f00000000001976a914abcc5501c2bdab5c7ddfb8af54d12c46c418972588ac0008af2f000000001976a914c082abbfb3ec413ba489209b11aecaac5aacc4ff88ac000000000100000005638d152911ad71b0ae3128a7f552462e722f103bc34cfc4ee940454ac2af8e283f0000006a47304402205891102c12f372653a2ad7edcaf16b6344359b723ef301e63512c1b69fead374022042d4c7d9f55266f450e6285e0ae3d15a74a1213eebfd028847039927f6bf928b0121028c8bf6dcd49baf18e6ef57228ea54c9e4039b7f7d99946626434fc17c9e425faffffffff638d152911ad71b0ae3128a7f552462e722f103bc34cfc4ee940454ac2af8e28400000006a473044022012906e7d0c21d45416f386fa5e8b70e44ac657845d6276918ab6217c0811056102201adfafb846be7cfd7b8251d1567cc0b01b82e8db28ba3d5d9804a45809b897bf0121026baa49ed6bfe52f16f0d328b8bfeee05f99388b3b4641dce900c3684a95a28d4ffffffff638d152911ad71b0ae3128a7f552462e722f103bc34cfc4ee940454ac2af8e285b0000006b483045022100c6811fc1edf9421d07645f7f792056479f31016fb5d65eed08453047e8a9e3dd02206517429e0cbee9b1751e2479419d0cf93e5d1e0959bced6ed623bef870a6253c012103802fcdb8d6635484fd21c0320daf6b9b2e0b811db96442d9be99a822676a0fb3ffffffff638d152911ad71b0ae3128a7f552462e722f103bc34cfc4ee940454ac2af8e285d0000006b483045022100c07527eb9f0efe6a5fb8b23f35d1a47445baffdd40bffdf994768ddf19f97594022062dce10bfeaf75137fef51b619b049f3ab7456b5ad55eadcc4ad26a6403d37d7012103bdfc3fe7c752f21f3101b331c7ca0a8bd760b083260a02b000fea68c04684dbfffffffff638d152911ad71b0ae3128a7f552462e722f103bc34cfc4ee940454ac2af8e28650000006b483045022100d5c6a7d346c936496c2f00418bb649ccc15425726219013c14b7d6607a6bf03602201bca73549878a6179e5421dd89d280dbadaca281e3b1919a61e0b467a1b7e19601210362b1ebc2050133818f3ddb2bd1afaa712bd43da9e3baf8d91a905acc451af5e4ffffffff02409c0000000000001976a914ecb15a858fa33b5f121edd856b6110982e01f46088acd0dd0600000000001976a914ce3f9c438767b93be5503b14adc8b56c4d5df67588ac00000000010000000567d7a52aaf377a247714679712258769ca57afbf4cd0d7984f8580dca3021603000000008a47304402206ebd94b22d7b2ad26ddbdfe4002a34bf08e108d95ace0e4c828c103d112606d402203117f01fe96d349c13d117740f148132aa987e242b993f0be3e864a2168e5f9e01410443d0c474d738e11f29da45995202320b05c2a847f94a59ff6ab083857261d8e35213914d59cc963d83dfcb15d37120b9308b0db96f09cb49ee3956f128a9beb0ffffffffdd2f6ca977a4aaf843cf489cf0fb0ad61ad51ce11f34cfc482a76b7b838d4fca000000008a473044022056284030b1bc05ffb9d2d9ad9231d43e62ad2fd60b1e819d4747ddc4b01e435702200bcd2b125fb6e6733ab2824a5d077c16406c5cd079f0e2d7f0592c316f3763a601410443d0c474d738e11f29da45995202320b05c2a847f94a59ff6ab083857261d8e35213914d59cc963d83dfcb15d37120b9308b0db96f09cb49ee3956f128a9beb0ffffffffa6f00f891a86d3a630e09b43aa24b91ab5c7a9fb5904d7f4e82cdd7b52fe7330310000006a473044022040e7701c13339a22ecc7edb3f1a9d2f15989d27da10f825f84912abb5aa468b3022046984c24232b5295750535afe70204acceb604814aeb85d9da0f7f2f49d4faa3012103f7901b70bd57e655f3fa3842519b4aedcf2a7d1bb25937854b386a8bbe0900acffffffff612e526f4a0df2cd9c20b1aac8548577e6935ab0d26d0f4280ed7ebac6bd12bc000000006b483045022100e691b5777435676d61fd56d139234a64e6f3dc7ff5ee5f489f18de8088ea33280220597dcac0822fafd9fce5dc0a843ff806c8c31e797fd008565c0be1fc8973e2300121020febfe84f518d971c1c3158c878b61c3fb7250600c532cc0df8f0a02016cec26ffffffff61665659744ea3566b3795258247cc65bd597c4fdce1d47fb54dc8a1f1960543b40000008a4730440220569889e4ee6f12df5b249389ac33ed066e7a07b8939068ab92959d5305d8bec702206cb4a5a1f7c67b151b36c0f2278395242e4750bba43e02dc5af2aed710b79cce01410443d0c474d738e11f29da45995202320b05c2a847f94a59ff6ab083857261d8e35213914d59cc963d83dfcb15d37120b9308b0db96f09cb49ee3956f128a9beb0ffffffff01404b4c00000000001976a9148bc8d05aa085575014d2515cc23e7865b1728fed88ac0000000001000000013bf82ab6ec03fb21a12fc8434a2f409c6e05b6a59ef22e7dd27ca76754650ae8fb0000006b483045022100c173e802f6af265f13b3b90f4236e4d9c712c725b7c1df10c4c6db25cdc433c702206900e08269c384ed113caf8d4bf4cf12c0100e96c7c1c8fdb449465510dd068b0121038c5c3b57f3d238befbb3d2d30722c84a258e7a7c1c6104517c34bbc5628fad3affffffff01c6ab0000000000001976a914d702201d250b4286c770ec453efe24fb6cd685ae88ac000000000100000001f6155abd104103c8bf63c7c71373dc09dda4c2d274bd4daca3a3f9fbcbecaa0a000000006b48304502210089d02527090fd13eacc5db55b4b82de45f12fed4e2e024de611dd7c479ce2c7b02206ac4e5b9d68516d088e335678bc1055a9b412623aa0fef10d16426f340f423c30121023380650476b0473c1af2a2beb4a861e37fbc6d131626f60defd2660adcd7ac47ffffffff02a6558600000000001976a91405acb15c954eb47058ce41875e79fd573ab3569b88ac514b2d00000000001976a914c21ba1a47928f8bef6be74b75d0c20e095efa8d388ac0000000001000000015108c49440d32f496d75e4df926b9d44028574f26f3415d79d7b69851a9b37e4000000006a47304402206e6ff17253c0742b63090795267d5bc940b1b490cc7a22ad6289f77888f1d6510220041ffa2cf43ac960b94beed09012571490fe2b55ade666ab3cd22f47d2184af101210328e1bca9b6d122c93fabb896f88f278a2a2452999a0e503c44566cfa005302d5ffffffff02b0838500000000001976a9146b4744b1caa854a95c829bb750e9f1d20496e5c588ace6aa0000000000001976a91405b535c47c2c3833621182b5be2acfec19ed265a88ac0000000001000000012cc5d2942e896f62113305f7a171983a8fc8b7d0243975055d02fcc70d368a4b000000006b483045022100dac592e83757daebff93fcf84b43e5d6b8272a334fb65b9db1bc4f40fc8571d70220340fc78e510071e9be79a583de253920105c158f77bafa9f64ff7919067a2e7d012103c6d94cf9b34ddbf57655ae016139681e1d544480589da64ec7fa52cfc3b86d26ffffffff02f007d500000000001976a9140eed60663e5a3661056131458d1fa6dfa957209f88ac48aa67000000000017a914a97a15771369c7747cb3fedcfbeb8f6fbed3c96d87000000000100000001ebc0408c8fa08a7111298be3a425045354e89a2cbe0d8a72a0bf9fbaaae5ed3b010000006a473044022015489c2aebd9f29902801c9c1c4e0edfaf00a687a61c14447a98c7aa2a26294b02207dd3fe965c7fe87cb5fa349d7e28712d3dfeab7b1f3953f79dd28e755750dc840121034a74dbc431735a515e44a69e12d33717119159f9820a542e8f086bdac5da5e68ffffffff026d786300000000001976a91410b274988d65f957fb3fd7e8950e34d847a9495b88ac9632b600000000001976a914df29a6dfcc9407be57f07c7116bfc0bcae3b34eb88ac0000000001000000019ac686ad93e3190110b70c40a6db567fb6dc7b1cc70aa9b591390f5b80a70ee1030000006c493046022100bf2afe55acf5edf17f00476dabc468cce1aa87048f6a3aa58ee34828d801d513022100a629446e50c72d0c9eb78aa89d2cb95e4d63a3c9eea4bdbc12634072725c727f0121030749fcca4a7dd8e6a27fa6189ce4cad476a4ed5b4a2a40fda660852a54b22107ffffffff0218156400000000001976a9146737d81de609e9af1f8759a39b1fce6629d1357a88ac50160800000000001976a914f13f79a8b06c3f32b8aa0fdcaabfb17df1b2f30788ac00000000010000000108433a84a70189ae539cae0d92f87babf71ac70ac01eab375252730cba4e36d6aa010000da004830450221008a98e2763c78dc6ed251a430bcfcce4e435bbad9e1b82f36d1a6e172b01b14ea02202b4fbdcc6c9d53bf65279aaf2000518973be9d616c24c72cc50a9c04169a43d6014730440220379f36b1fa865cc7dd7105c95676fc86309e400b709aadc300a5c2d7e910a529022020df8f63955815031c4bc063bc9f46323d038f6ed5b154f4c6df2d02f820da37014752210204ee8c004fe69866d3b8f3a7c0189c9c057a04cc313005edc639f9f50be504602102d4767c371c863dbeff2b79b0907d25b3d6cec8c7b24a5a08ae565853698e27bf52aeffffffff0188130000000000001976a91436b5253fd9868b203ce55ad5cb0098f6b8a1aa6f88ac0000000001000000b87c4198e55d1e4ceef534b613c02910a5b575630d525050e0a1fe113dbff28aa3000000008b483045022100eeda446aeea3481faaa212da516c602432b0914969c7db1bc4dc762ce791f8840220302d9db3df494c5e69fe1ea5572ab5d13643689a609e749b4e25b1c2de12f46a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3277512f83aa03c92e1684f99b078b312e31b4512b85c2b1803de35906dd2064010000008a473044022000ade40c68e440f3cc3228770ceea71e32b730b302eca0faa5285c1424eb84660220260b07b9c9b8584225cd8f1f494fc2b847c67220a7f931bdf4195fabad232bf6014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa0119a50b72d800af4da404c23f6a0f9f2d5dc70b237b8a42437083e3f5ea591000000008b4830450221008e26d9f386a1dbe1bec9d64992fff72267d58c820f95777339a7beb33074274302202490d80c8e493b3c2aad40e8d46b3e5b422843c69dbe1ea54dcde9befb302058014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3e9719e662788884c92bcac44b49dc598beacce1b86c7cf354813251963970dc000000008a473044022070633190d0a813e19eb534246bf78e50750f7efa502968da05145b740b32dbab022013df01422c6e9579fdd7c702599dfa5d1e4a20ffe6549ddb77651ccd1c835d41014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff4f1dc75a10e37f7c07f25b42bfbdb8687b366efc4f35722fc66996437dade1ec000000008a473044022040664463aa5027baa60345d6085d3320fc923fa9e4b891ac2c63d8257c2843450220119695d223bd88abedb993dc5d7f163324b927a2c38200a7cb9e53e9e74ab7e7014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff2a60b2351dffb2858ad98d9bf14c8f2cbf843ca4fef386b6380ffd7dd030e430010000008a47304402201b99e239f503030ebe369f04047343ed2dd17600fec55819dc343a28304bb096022053debd56b2cf5d60a661ab6c217e1545be5de2ea329e2d02c275567867c58df1014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6e16cf94944e72e495e516c09595cbd1d80209917f8fbecfa3b8256ce822fccc000000008a47304402207e6ae3d939a29f5aa7c71b15b58ab64bf52e5fae57f1096e029d5e371d0c446602204aab472539cdde0526deaf4595d93c5eeefcadef136ac2b7416e09b181945f9e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff254a1807b6d5e9403375c54dcbd520555f3e6266dd4ca144d8bbc16f3870ce50000000008b4830450221008fc243d30ecaad533fe51664ed759f0ac389b1e9e265c7956856e16d25356d9d022033dd3c3f84be5a6d344f734a4146722a3a58820bad630c5b82bb1ea50e932856014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff47c4b165a7ce79f892ea3515670726db487f354984b3cb5894e9c414ba6483ef000000008b483045022100be633ae66d39450a26f732abf591b635f476e6736ee9dfeea05d6ef779e61a4302207d4dce0bb91815ed5f24bdc0b6a3214b0c661b62975ac351bab0fc736f8c87c9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff9de2082c61edb091a37250493c017922742c956803ddf7148a84cf59e5c72404000000008a47304402201e298e468241d16d1e15c6ebfd8174a15331755574e1ab5923fa47eb851cd208022078545a5af7a96537f5e6cf91f167f2eb84874e350a96805ca7bd900000d59266014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31fffffffffd64001351aacdc62258c3b6adc122a1db38491f4a8dfaca57bff5d005ce5ff3000000008a473044022011ee32514619892c0206b22ee435cae58ffb701d3e72f02d84f4fbefb2fe07be022048b2849b9ccb51959083e34195af970b96fadf32451b4f07500e1b567ea1de56014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff03cf3296b916bf32c037cd73e6fd5a25e6ad692fe0068842962ea6e436a4b321000000008b483045022100e16691b53d93ec9db9290b331967a970d3790ce63e4f8b77f86d4fa0887f6cf5022050f3b26be49efd4bc2e8050ce1edb098f00ed68736c926e17490ace907a6b022014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc485d158f7314bc0b2c9a66518e7acae4d396b8d573b50c552ca00108b4b4aba000000008b483045022100f9c2a5b8aa10dc498498e68ef463873b64adc8e3a46ea67f690180c7461a32fb02207709d8753ad5a56ce2b7abe36d3cc4ee66e15e949fe4afb0004256d8523069d5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffaf18b493a975a6ec7721fc23a8cc8e0c700780310dd587bb2b9f23a629e68a62000000008b48304502210090ece15ef481a340c19d65f6d100f426a604eb9a73296a8022352a1dcdf2f7ed0220158956495c8b0891d8905b24f50db1f1029a95130f9ae5b021ef3b6e9dd86bfa014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff407810ae14f48ffb8cbffdba13e00dc412d5965ed29730b2e37fb2558302906f000000008a473044022051844ab15f6ad2f31c443720a7944c940a48d309ef13fec718c9c77ede6a6f250220226faa94f75f1eff928f2e28b33615509189976ed6040c55002bfddc68350070014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffac0f6e6d5dea966c7ec24cc88c93067a7875e0f9d36e0f3cbd210b5715b6edd2000000008a47304402206aebb839d7f647e4cf973779dc38e636de9bac10fd998fec10d78e4afe01ed3402202557554620d5c7914c63b55c8219bfa0b3096794f347cca99200ddeb49e20153014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff957dedf22d0a86b4c020e8715dd8065bf8699d1a63bc7c1ddd74112f06cc81de000000008b483045022100a6b59866f2049ebfc358529f0d551ae8b2baace5c25776b238270109072f62fe0220108697a0fd6e455de2a601660efa6b00cd4f26722436f613a6736b933fac8d33014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd467f7377a086ce0704916327ceae6c1963d2ee38729f0cc8c66b4b6d7c4baca010000008a473044022026cd4956d3455e90b3f8c1c5a50ace75411e04b8f68a6a2027950b83c4ded28f0220321bdcbef2ad151cd16dc61320b32b5d295624f3348b70c2b7e90744cea4ed15014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff503880629d78f396845186291c3ce00fe99c8b62df583d5f3987d8ad69273de0000000008a47304402201a4147043ed4ae14d820288f5b746d6b0ab7b2a2a237251ab9acb5e73864493602203054cae22af872328f220c0b3b4ddef7fda256f34491591ff8c9e0e4f5baae6b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff19814da5f966f8ad13350f6a639d37c7ea7f66769cd3c3e8d08fb65e263a121a010000008b483045022100fa192e15b372b949f84e30bb31ddc236bd8edb48fec5254d35c22b250cff875d0220645ac2488f5341dfd75a8dd16832742e2ab141df84030254b09b67f277d9938a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff29742ee87db55f67e77c3acdbc812042d37e803c1cc1e1a451d8ca84ded54a02000000008b483045022100ee6ba558c1f6e302b201bc1e07824469490cb967dea4d5b6168e6727b1f870f402205ad60c9fc9dc75b3ed341b32d8c6f3b69e68658036bd4cf4f6a4ccbb298fab30014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffed776aac195f445a7f76b41416804b4182f96b617d0e2be718436b18333f1642000000008b483045022100956f4c4692cb71cbd568a8e84b9959de21293ce8d2605fb27def79b4444553fb02203e5d65820636ed4cc233bb670cb573e574da0651b05a5eb9f56fc682a45d7585014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5df8698fb02381bb28768dc0c4049dc377b0fb376ec3b7761a2b57a662e02bc3000000008a4730440220353f2709edd69a12b03238f6f343d487a17b33b247604fe032ccdbc5f13dfefe022067f0a3296881303aaebacb12b2dd859e4c123c338cd9f65eb8e7d9010a7ecd29014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff61fbdcfd7048345a445e00a48386285056f8d7a7ed9b52805a5e400117b87d1d000000008a47304402206b9ead4a53cafcf84fa44faba826205b9b2e340614efb10c4a670480d956b3b202202e47059725ef945f042369569297448c4e5928472a6881aa57d580a83c94600f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5061a471874e56a7591c26bc1802abd5bd2d0cd62f9138d90303f2b1875ed031000000008b483045022100c57982480c741738418e284d03c296d5a8680502c262de9336d334f7b9424ae502207fdbfea795314e434605a29fe15d2c9321db7dcae4c780dbf688c8da7299f1fb014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff53698b5ccc19c0f781f1429d418360f63cd2579ea8696d876af97a5717c3e5db010000008b483045022100e9a73aadbf54f29a239a65e6c842b772950b0a18ef26e4421e9a162d666ecdce0220439a00b842cf60195042db8a98aba17239f79089a31fe71161fd9350690b2f15014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff2641fc9b8e682eac377dd41360754ac38100f9065d237649f9fcb12acd902c8a000000008a473044022004e04b483d1b884161414df372a61df26466bff4ce271e39c16cbbecc84eedd302203672dc6d0f58d10cf0bdea1f647df855d66e206b854af4138f51c0757f20a094014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff52a934404054bdbb9ea752b99187b46745c28fea81025eb26ab667bdc8757040000000008a4730440220044022550bd2c3e57fff2e47d01170f57199ebc64081936e7f493588d227f01402207e6233f2d50023f83afa9e6f9174b3881c5e60f2f367b9850e0057fd3eeb1b9c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff627b10f07a1ca1017923798fdbd0b447bdb3cea80b399044dbbaac4827a6da66000000008a4730440220129e328bf95b2253bd7f510cdbe1280c8140ffad110d00008c3ac1e6c1636c2602201cc89204ad03315271c7306b7f6ba0f3fd9795e868597f767091f98bd689b645014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5eb612fad48ca64c6e9da2fc9bb0bb42cacb4f1cfedf960b664d408e61a8ce2f000000008a473044022078d986296e71bf978095d31d7404e5f7f49ac936b17bd401682cbcae354a23a4022071bdc4f2e7cad5fb521399d737fe10809a3f03e410372c60101c0ef633e53fed014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb3b1dea271be16cffb2723caca96800805133119df59a5413c4c18b2a73dced7000000008b483045022100c9e25c79d1fa49ecab1345b2989c63a87383c3b6b7d8161708741bcbda62c7d902200ca94940c6056f1960f5d19a0852e11e29f430afc8c12fe176bbb0d9245de2ff014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8eda448ed420c500b4751224a3c1bc829c82ddb2571c1604033499eefa415f44010000008b483045022100ac9a41dcf327bb5a9927a2b43ede6067427e24dc737b4331996b1fe326bb901f02202974a02008b35f66d87e2b8bbb6554c3cf26eead36baa4ffaade682c6fc8d6e0014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffea50912337935deeb270d8ec170ed43468f0f4ab8935513544e514e8cc82785f000000008a47304402205e668cac8f8200fc964b950a4e57668cba72f09915b2b5088d984a571eeb2f87022038295f8b5d84b1b784ca4059c3bb6a4c06098f27bde87d394bd896061ce95b32014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc3860da9b15f6097f6948d6dbdcef23d0599d6b8d8678e44a2ab4584fd5759d0000000008a4730440220086f115a6a3cc10160eb7e84bfdc0dedd27b2e53f7a9d4c353ad5cab37a49be702202030d5668c906219319a25e37c933616f05a0cbcd7588c62d73db831ffd09818014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffad775652988c4b5414d96411f13c557f5ab822adfce99be9b1168966329cdd2d010000008b483045022100cd8fd9d3d845b267e8069e906ced74999587703de5692d2192d0a52db62f20a0022049c2798b6a7b776e2e37b0f707d7846a7d04b91d01173a31dddc19c8230e1755014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff37cd20486aae1e6b1564221a8e51635db9380dcc3379d60922248ab16c687b38010000008a47304402203f16aa07ca09e56ff1dfc5d80cc9be3716d9b1cdeb27c7ababeafc5a8af0861f02202e9296d02d55d6fbbd801e86c62598fb519e38a60e980d4ed023dec2d5c8cdfd014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8e6bd97bd3b51402e59e71e99d131e3a1049a84ba6ff62c3b6fb41727d6e8d46010000008b483045022100fb0f62ed272d2be75dfc8a8ac33b6d82e251834f42eb1f604594efebd4b5ecf302200cc28c19730ed6eba6218826868c1c69b65cc706cf9357678c5ce8f0b8a20ad3014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff4e867af2aabb9bd83bd9100739079ea285883a30650f7e2e1481b52b7af97b2c000000008a4730440220539667b0654549b9b15816dcdeb6498ec687f6c67fd723096d1adf0fe22afead0220418b18da629e89af14787fdf547e41047d4c9a5bc71669ccd890d9021a33605a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7158df8dc7240f4cee203e70373fc27ac1fa11710b0483e606145d6b15011908000000008b483045022100c2c84d90e345c94614e34fe7c46f2375c49b84bb67c6ee11161439bdc1935f5f0220798e8cd6aa9da32ae8b84afd20aa4695970c0b5139f77bc4213c27b82dc8a03e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffde33795b1eac1a780dc22f07c04df835de23b71417f82fe77c395e212bfe33bf010000008a47304402204128e0aa2a2505477844653dfafd8323130c3e1308476049c7c479ad6972498e022002e8c192849b7e03211ad6756b0c14a4d80f4fa0a67418d6f1efc8a99ad79b7e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffe84954e619677efd1aeea6b00bc4452878d5918dbfb2a8e186fb6ee2fec4663d000000008b483045022100f273c82287b4fc9355546c2c1d4b2fa55127e554d26727d7b6fc231513fe31fb0220453a6f0103757d048cb574d7af5c48f3cba459ed1ec4a1c4c78e525fa1fe2f29014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8580a0ed63d7bb72b3173dfd709f5878b1dc3d00d97f799fae88290fb20fb7c8010000008b483045022100990eca1c490380afe9433aad3cb733b6159d2663d508a66a022e7ed8a51bb5240220170eceda6d93055cb505b19fcbe942841dee55f9a6148ef1c999f0d8f675e1f3014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff24589ca66e842e9eda1119cdcf750913bf57704a8db23f07aab13e419e9a3d3f000000008b4830450221009a3550d9b7c8289a19a9d5c0515965a0dc8eb836fca04f1958b322b756777b4602203a710b314c1fd1172d86f9235b3c8eaaeb6854a053a05d6f44c0c8c01f93e613014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffe510ab6abdc2f0eceac3bb9c719a8c7506d824737e9ef0bcba0f4c118fa2ecbf010000008a473044022023a97e79a14144efad96ef147eb6ba6e372492b2b6fd6fa2f0e0e7d5ff846f5e02207179786786eb72f4666aab36d0b5e766a984f9167cbaae8d53c37de339ee8e34014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffe5536289772ae083c041c11bf0a963ed22c608d1b5bd4115158d11bdf031430d010000008b483045022100813886331fd81eefa7bca4c9d67b159ef58267dda0d2821bbb99646b52fcb3d80220701b7aac212609cc13a344c41135ec3028fbc00294f0fcf4a8cf9a36ee5d6b9e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7c8f010bc0a031404fa7823393641d152200c555b47651b2e0825c197553236f000000008b483045022100c2809cdca3471f5196e5fee32487965c8ff919910aa58459c90c622d5544e5eb022025b9a4b474b021269be086d8b90b766c17a3a1bac4bdd336cd423f8afb2ade2a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffcdbe97681bb0119b19317af8ccb326e992fdd232327c00a76237cebbfa536ba7000000008a47304402202ed67072685202d2ad437ffb1e35ddc6652e7aa35010541ed9e69eac811b379e022035d8224cbfa385eda5d79a776fb33b97a6aaee526d46f45bfbe1bf34f9914b8b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa2f8d98625a03e292702649f7c3f9118663b8bee54a731698c84bedd814d0917000000008b483045022100a3f56fdfe39c9312164d646298bf9b91eadf6c803d7a8206af0a3e948455c56402204451edf99e7c5ce263f9479260cce2c1596f6a23dbe580e71b98b44087524ae6014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff219db259b8f0779017c8b183713041ce18312152443ba1ab61a22e3017f76d61010000008b483045022100bc08e13b2f94a8100830ce531b2b2a06e70a21cdfdca10eac7f889b54e31338602205ebd473a861350671e9f08991d4512e3ded92c8a091e6f98194f3b08fb4b8e4a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd8760ba4d949f9002282bf254a4b414e2f1ce4d3e0b874c21c4e5f6fd3974589000000008b48304502210083d38ba80768150228d781cbeaa44fce32e99fc44558266de28bd92ea4d61f6b02204911bdff074b0b7541599070385f6c7cfacdd0d64a018ba9502f50539e4f8b0f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa2aca55af7f47273c1efd1930d43b10dfcdb4dd9675c95acc11b8ce085d02b92010000008b483045022100a1a98d816e3d3ef94cf774e166dfd3853b8b44fd019f06254018bcdf9cffa3ab02203ca23adf7ee90210136f103a03857ae8f021f406e290c6f6ec47f9ce11b02ff0014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd796e114a60b46521652d943ec69f89b708c44034e1403b7e906e505ac5de134010000008b483045022100f84173dd064f7c9e978599df7eb8ec4e689e294fab7da9f681a8bcd64449b85a022034c80a3e6c40ec4e1ef3f86b21ab2b138851863aad5c9c1711f784e080431875014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff51149c823fa3c91390b6fac44db7b3e67a25682364486d09727f5fe357cc247d000000008a4730440220080d35dd7f0112a1b4e327249aa5526d3ce79e388f4786ceb0b171759611ef0e02204f7211fb127fd188f9d88f3a65d351dd4465f4dae7323db11d2b1c6ec0097693014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa4be8955ffd66dfd7e06c220abc009a36607b6c7002e95094cf48b5f8b8c738b000000008b483045022100d3919ea8cdd491a699c68b1a2eb23849110cdf07c7e5d5a59a528ad1d1ba80a6022033944f0def54dea79cb28ae27a40e0e2c45d417ad4e2a044f99d5a9eb8d463bc014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3a310aba7c3e3dfdd24bae393d7b3f9ab0d4ebe7a9b2ae7b9e0543d7737bd3f5000000008a47304402202ce7b6b9b16cf6ed83ea30c395fd277e1d1edc48fa8202e206d6ba17d6f92059022028ba664e1618965e6f586b84989cb0df0f23d7222374653cd95fb8eec206820b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb93c390e1b4b837fa28e8a91628b8f08c3134bd754c2bd2b3906d198db9be11a010000008a47304402205bdee36f23809b9ed67d9b40d41eaeb02a6f7c314800c61fdced84e6e6d4afd3022028d03be15d43bd22f799f86a5a1fbf8744a8633b50d36cb1eb14115c4a332394014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb60d5082bcbf074956e986273799c5f9cf561b1440aac7bd2921eb35150f305d000000008a473044022025ef764daff376fa6ddf9641d4c2e6682ffd764d14b3af80895d2cd29d9b0e5602206cadfcc1bf24fe780fe9690c26419c166540c03a3917e597c7bd24b00d54c649014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffae3f8629958ea057d99081e94e956aae9f0fed7631bfe2055d86d823f7300df8000000008b4830450221008e5698e1ad05c297cae346fab32e6e0e4d8ccd497ac99d85b3058db3aca5024b02202153ef5dfd5218229bfb61bec530bfb87cf6d62d923f5e2e57b20617f99b3e2e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5a645dbcfe1d7f8c84362491d30be34147e29f5c5fe89ce41071cf82cd4fc090000000008a4730440220237d6e715aeafe591a4bbce13ca2205d4742e67ba7126cbe2e0548ea84f240f002202781feac551bc415f954c68412e75dd8161152a1123ceb09a5158ef02493931a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffbbeb3c7158a5a0c1c013c7d716f889936dc7317510caa3e00c1bdb2b82d9cc09000000008a4730440220186ccadbc99b4a2a05aa2a8cf30c4e7b2941452c5b2932defb7e3a7ff22c51d40220257aca08118cae27a827856365b541420dd568bd42e64e342874bdf35fe28d12014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffe34c3dcd2193f88130bbe0662b898a005d0c95554752aa99b7a5bb8868b45e0d000000008b483045022100e791d6f955bdf42a7deec8968e677592e666fcd11dde697d4d3f8e53d13f68b3022021bf1cb5084685d614ce6d876da9cf353bb8bd6a85bf176bffce8f509a458c97014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb19eec286c735a140c6fa491c9ab42f997e0f7d7822074526af4281c1b3f3643000000008b483045022100e5dade3f507443886b3d6ae840999e9ab2196b2e2895e7fdc835eff9ce93cd96022059f81d7217ef38f296db35bff0ba928baf7edb86bc543e810bb37af621e73dfa014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3247d44c025670b907831a6611b123322eb8028ec5ff393b68b20315fd16d28b000000008a47304402203a6fee558c5d4c52bf67ff18a8361cb7af1f850dbb0f930da270f7ae80d93363022021b8c162a1fa670af36e206affcef61b9f8bdbbc3448ccedaa9819d5c3f2d8d8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8e972204e06c5792a1ebaaec8426654ab5e5a7b1f292c4f94fe5590c0f7d85d2000000008b483045022100c3b507fe529100d38feb60c5f6d09b685468094bf060e8b7f41836088e1ecc6d0220370a76e3ca0252710351e2af8b88a50580265e0a7f96c70d4bbf751a04c5614a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6dda38a03bdfa0c362bb6f2b2cab2c6f69f5711f297555af29382841a69e99e0000000008b483045022100829071fdb1c8b1e77ced838aa68b5b21885219b0658d252346cf8130fa3acf0202207996837b080bd26087ea3572ef33617851b41c7a10c905fa34d1f4cbe6258e01014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff75571451fdc37d95afab561755d8a7852356bce9d4ba3148786e0b055be9824b000000008b483045022100920ccbe0ac458f1933f038752c170bc0cc479356f64d5d1b32117a9518c1859402202a4cb804b739f3bacd1b9d4b6bba0ef7cc44bf581619d2ecfef9ade76a3c5f7e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7b8b65702b722659bb26abc601d21bea053f503af730879e73b44b2df07d2005000000008a47304402204a663f4a80cc5602e325e096645497216e4a799686e8f3b5f1463dbd7112dea0022031a9fa3d5dd682dedb0b8dbdfd53cdd318a43ad448f434e932e7db3c50e21c71014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5483de99c58fe38bb9f18e39c5bee7e293feab4e5a1cbf33d809a9009a778e9e000000008a47304402202c3e0974aa34f852c20cc355374a6bfed1d519bd76593454ab1ae355b7aea20f0220180f297e3c2a2b83bf369bffddcd162d9bbb491ce4cb74c18822fec9bec36e26014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb6920943981c338874eb4b81bdbb238f7f9f7c364ddc2a4101589859cddc29bd000000008b483045022100e3e4521e165b08889b8add001a7f2e6d2e4cf784e175659c023367551335bb3702204672996b313569c15d6c4b6e5a7582325264878af7dea45234b53b4a1e94d736014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb979117ecba981a558c7fdaeb120dfd674ff65deff370c3fc3d033a36e7595be010000008b483045022100a8eae5b8478ecba8abffe1314e280386f78009b6c388f6a3cca25b61e8e1976002205d957f4e19cba9b09b630b53d4f9effcf3f2e9b8e6c548d7c67d90b1dcd0ebdc014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3bde6a3172c412b733a84b7aabc70cf261ae4d0f1b7f435e6ee21c8a547b1a9d010000008b483045022100f5014f528e70fa7a109a77b6a920290fb412fafbb2b20a52bc4ad398b670e00302203c53316f83aa14db4fb3de7556545e54424752809e08aef42cc4fcc1ac4a4fe3014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffad564f40dba7d0351204717637ffdf446c2a838eab98508b3563b64e4738d14f000000008a473044022019a80059a77d926ea71a8fadb9c1e8a2f0538fe736be5bbe49411f8917f32ffc022073ac901cb186196c5f70faf346039ed9d2a534f3bf38d05db2be4aa1f6f7cd3b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff9a3335f1bd1029838236285fffa275d042c5c55edeb86f8e9f166f23b38b1407000000008b483045022100b4c615707e0084697d8bf79d0764cb02d6fe7c7a1325fcace111b177b02db1d90220658caecc16db36b4321d3bb85e348a74ef18ffbcb0247cc97fce27bcef8db6f5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff84e05905b9f91889ad2bbf1581de3b2cef77726987ddddfb45cb67407a28d4c6010000008a47304402203e6d59a681e2edda2718b013f7f2c88972b8385b9ed62a5349da1e9b9580279c0220454262933f9f008c0bec68c81c3188f29f124a3e2bf24dea8b875dd842196cb2014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffcf5c10bf6a3639a715e876dccbd829d0735b8072e793868dfb3ef72e0342aacc000000008a4730440220056b1c4c548224de2adb5b3019fb95b867767a84f5dd9bb9cc091392f607c7ed0220272772c57ef153d4523b82572a976f8974f79054d64754177db0e2579227888c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1353fd4879d2278fa903ae59f4822c219e87110b8ead3d31b2c3a6410bdef4fe010000008b483045022100ef2baf818f7f44bfd339aee5ab8609b1d344eb31a94184f8ad3ba1f19767dfb202201371689e1adb59af5c8ebc6e35f23eeabb612c43bf26403cec751b31fdd96bc8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5399d5a7d6530ad48628e7a038972745a1769c0c299898a9c9136f6ac5533a35010000008a473044022045534e0591902f508ff50fe55845729e88d44ff7d9bcb93a0afdb00576fb87d102205f79b79a3795b2857eee7aa819dd794012e73a4d10e58a33d8131e8337bf5e22014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffefca3bafc2d9d0b40da3bf3152ca227b5e380fe6c28829b00512007a5aeb4946000000008b483045022100f5fe50463e05d2a3a3750e3556ca046a768f67349a7ed109072f0e66bbd23f8802202fc58b737a8095d1bf0b0d22d836408581bf323d174afe9b293c4eba8e3ae44c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff19c71b3562d72d49250f6532ef8fc0e6e1d5e5a01dd36abd72be7d2bf011ee5d000000008a4730440220697b858e69242298680abfdb451fb9e82f9f6cb04c791a1c824b7c804cc16827022059d229da3b946f4f451e4e697e4485ea91a74207d4f5929602271335f7f3a8dd014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5bb75916582eee737a89e43d804d7c95a3ce0076efae967ab58d322497413a2c000000008b483045022100c55a8673ac09b50d1f55bcd8436834759b5d8b76525288234856c18aeb4447fe02204c512676c1411d8f7ba3bbf1668bba888e3732bee4284c3160102619c91e36cf014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff341eadc37fe707beb9cb10820d3dafed594c2db879bc86073590f0e425789b31000000008b483045022100e74da24be0cc25f466a4f32bf607ba08643b8f38fdc645995a5175ec064b174902207afdcb708992f7269c8e8abf22840fc77d8e5993192f96b502a66296e63e3430014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd7be31e7640389705769614fb7e7b1a406105f4c77f3430321288241eace429a010000008b483045022100dbe14444bd0d76a13deb03a407e007513fab9d8fedf00449dfa67c7c9b909986022051a761687d81fd381501b61a6c115c7e2996680a9985f4cf44a8fabb92d6647d014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff9921eb3073740ec243a76c2fb58f2ceffaf63abce4dfedb8128f51f1a17223f3000000008a47304402205a54eb9d87b9ddb8145e3e4c04e8f2b930f5b003d678980f823e13a205ba771902206169c29b8314c19f8bb7a26af21d9d63221321b9cdb87ebfb44ff742f0e9d0f7014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb8c300713e7999b0913f7dcf9615339400a7bd9f6d1158de1d291c15d96d7f4e000000008a4730440220799e39435b2080b98336c844d5a997ed783986d07a69567005548a5e5107464c022003d741fdcedd1fa7c4a82625b6f984bc6f16bac6d68db8a3ae4ed7b68e38a49c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff739960f57711539f31ab19c617003fd874fd35c224e00a7bdb754ef7572da76d000000008a47304402202f29fd429fa832762307779eb15d4fa0b4abfcfd33d00ac94d31e10669ac4b5b0220126c3399e52f5035ca9cbb1b21edc21757778196541461ff1384a25a1699f6c1014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffcb1cab67a095611e20621cc2fb878095609eff0fc0747b06bfe93111dbfa5838000000008a473044022073e8ca9be3260b524207a8fac634b1490e1ceaadf41119b4c10a07fc59f8ee2002200840eb9c98bfd9c3ee72297ca5d2f9b72ce7d3416a0998b62cd9116a960edaa7014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffffa386af16e1c935e1cf0f82b6c7029da3ff28136423dd647d8d6522269487ca000000008a47304402203cd12209d80f2d93fc31c3e4aefd8e807710efec83aae3fd34ddade3dc3ac2a3022030729e72abd3e3ba61a376152a97ef6bfbf02ba23c0dcd848ac1e208e5884420014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb6b803d129190d7560678decff3967de9813e32e191884a4406e3e4b8a38364e000000008b483045022100f32857b4044ba6701765a5ad531c16f3c129a681c30a156440f3d3a4e4ec8c56022002daa8432d861214fcfa164108768b74b7ff97886d3bad9885a655e0a6d61d98014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffedff6fb28d5cae891c26c8786af0447643fec708759e24cb16f4863052d5ed9f000000008b4830450221008a5e583a76082dd398b9b1a5bf97572895d434e5d1fb5e783e273e18b8fd75d002202c6f6a296645f5ab2522a69b7f0be28dfa36daec6b353f4c1caf8ae5ce7efaf5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3f06bdf732290cefa08becffadb08ac9c85aff5bcb320eb84344a0312dbb19f1000000008a473044022067475d8413b0ab578daac369522b046c4cc9d067e628edc50a9249365cbdc696022022717187cecf56df7e7478cfd5c1a41c0d2106a88560cac26e8ab496b5858b47014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff76d7eeebfe78df9b2345b901a3cf1b811d785d33bfc9ef69e0eee8ab2bac87e4000000008b48304502210089ab8911c742bb4190a24969ea3906d495f5ecf196ac962125b375e32080160302205b857923b24e44bc6818707e630f223c590773f7539952d188b6b439addf8d7f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1b67c1337d493431ba6555403bb29074f8594b9bd89bdc171268b6cb8d5fabbc000000008b48304502210086dc86d6ade4211304b0fd399c655c4d5b27431296dfb1f037996232452feac902204cfb1430b507445582343967e5f5def131cb786321fefc53d8c07176e2262a6c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8a5e0517eab85e25654c717a25c72505ff56570b395d1e6493f22d87085f3d1c000000008a47304402205df97747e1ebf980b5a7ce5c1eba4bad652307d1d36c230dcffa02fa91781d4c022010ceb03ce1a0ce334f92799e6cb58711e677ea3fcd2a5b23f8b415cdfc7703de014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc41c319801e90eadc57b4f08c09c204b0c87a8939d421eba2e8f46a05a814643000000008a47304402202ea29bdbd504a29e67206f618090c1ba496668561a93f0b26643bb132a944b2002201e789b05303dd5cc68aed8d9c5ff78d4a129bfb5536ffd6214ece0219ee5bd3f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff87411b1e6a12e903d3c2ddf919ff303feefe09afb13f8bb853ff9d0f987cacd3010000008b48304502210091f26b68caff41a6e423d36ff91102c24ad6ae4858ec791afad4367f2eae7897022076bf9bf94b8343a7bc630b607fa273ab0390f7cd2af9fa9b4d9de4b7a7112e80014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd4547281b9edc214d147cba1d7408b5ee26c6c2389348b7d3e7859b54714d98d000000008b483045022100bc0ef15413d09d82ef92d065210741e9241aebbe2c3bba552422c775861d894e0220174058888e772f68206baa57696941b0a538cb1bfcafe7713e5c33cb9b5e3383014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff00b9358cbb2deef7cf26a8e7dc8f8d2c31d1ee56d6c7042ca031f4c30564c9c9000000008a47304402206de0742f744af7968b90c7e1eef0735af93cdd12496760917f9e0dc5a17bf6dc0220788c2f233444bc8a8155121c53c68e2c10463f94e8f409d49914b05c1ef62ecb014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff005d8b79412ff14f0ada5292feaff0ffa9138e1276aeeea6f66c994ab57b47f2000000008b483045022100fbc626da5f5c298532fdb3aff395ca38f7a36fb9591c06ea6ecdfadbd72d8a3302201f9a078c57189ca9dc7f7f488b80598b75e25d2fb0eaf2fbe12fcd88124c161a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff920f59399168b74eb11785fa6701f41e692b2ffac1fa29b446de85fa0cde86c1000000008a473044022063ef51b31d42c8001ce1a15d57ac90d5bbc36ca39a091eac4e7f1373a0ac8a2c022022285e9e83fa333780162268473decaa3be30d62ac6f4e67d4e0353cf7eea38a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff0d4ed410fa70a65455632fc4e4cc609228151a21b5b9b0dfb292afda40a10c4a000000008a473044022067ed12233108143cbcd70f21e4ecdc6a89aa648be55d9b3597d2494eb5d664480220268784e125afc8e96d7b1a28b1f46af59701d4bbaa47529577cad8dc4bf27032014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffac8bead47aac599802cdf05d30f62b1404248fcc9f2e1d76b768384bde25796b000000008a4730440220250cdb1f8c7e33a6887554c8645aeffbad4434ea33703b51b032223ef9a8b00502205a95738f10bf77717776ab15173038cd68e7276b4b3ff9aa732553ef579c74db014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffbbf3cbe2bf5a4fcb0d10224b5e1dca14036a806de3bf46654ea18a6190054f8c000000008a47304402202fc4d3538bf1601ae9871f3e27cab9fc2eb427e05101fcbe0ea411d8a8238a480220076a72ab277f468eeeb1615c478071b6fff12300caadcfaba5bf4eedd5c8838f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb87e4c78efbb64f9f92b27c694b5b7c784f80606028c1d487994e47c2a274914000000008b48304502210097dcd6cdaa57786c862dc115db567e4cb386df0869908cf89c19bd17233d488d02207feb6656c0f769d06a9ca9b75f1ef13fa25822eccbc0fafaff044c6d908885c2014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd5773bfe1952cfc90cc46490fa0a126f52d72847a0ce0ab919f6bacc51850d3a000000008b483045022100a441d259d25af870d39eccc0685a6c8aee1ce27b400abdb07f9565f414bb5bda022032277fe7eb2a08390e50c89dcfdc937c3fc892ee9a946976c91202cfe7c427f8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffbc594876b467b2b0ecaf21d327681a3be9989778a5804ad49e8f817fa1f27997000000008a47304402205f001fa929d3092c150c243b31abcbb15a7dcddd7162abfe08b4dc33961c25bb022072ae3b951b7a660a8e1a91b7265fdad94182b3692b74cb0407e8247cbf56e96b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffe32b4cab0e68dc9ff28e822dec3745f0c103ecb2f337a29d22c0dacb4cb6e4a6010000008a47304402202daa1fa6db42805ea5c841eafe1c0dcab99f2e269d96c725ea176fe2116ed6c402201650154cb20b6a5f535558ab67f3dd16c621c1e745b7c142b4d8514a2cb59d6f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd1b5374661c8cae0e214e8309d8c04ed3cc9c7689f2b5a98354ec15d6d0be2a6000000008a473044022046ee82dedddc26ca99eed8499b12a695a9c7a2ef1381b17e50552ca61cd228d902206fdf2a5d54e55015105dcbdb19b33702dd1a01f2f1ca8e621c45cf759cbd282b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff2cd9d8b0c6e15541f1b8590154e02cc8950ee5e9b694907368db04134192325e000000008a47304402203f251d4d7843f0f9e8c2b679df7f4ff693df1b31cacc1470e5f7ceb8c6be0c7a02205706ab52b580d5be3385fbacb34593fa1f49d910e6411aff9938f8261ddb6fba014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd8d5f536f8cfb7e90a37fdaaea180db7bf30568e6c286bfc86fd92a36d00fcd5000000008a47304402201cf7e79bd55e39a9daad974e903caa4347a4fa79ae380caf41b5254bf74bb64402204ac03a15b33f5cf4132a67b307edbc814a37bf1c781581420d95d8526a94ac23014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff613c450cc4ada24ac4637e521fc758349f02f8b82183b0bdfa071e3d8fbda581000000008b483045022100cfe5bbf4116cc4a70b204abfceb2791581a072634364d27cd6638c8ecd7301360220708cfdcf732825f742679a83cc2922985f5aaac6458aeaae51f9262b35331165014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6d3c2512f4e9d6e1f992264b0f8d3876783f08bfe9dd96fe92c5fb21c971b075010000008b483045022100f051f41838cf40a4aa1faa774026b125ee8986d3b785694a56299e753484c587022049c5ebe12a1b44d198abe3b4ffadc266abd9741dfd1ab9533a03a5620527f6a8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1cdcd99d5fece0543ac159abe33fc1189fcd55988a133ccb74380e05833dff33000000008a47304402207c2e321bec96b02445d522bdcee1a17c2f693623afddfb4088c82ea5071ea56b02203b49d9b7d7118794ea6849e7d63387d894ffe8c881cd0edaeb6bca2db7476767014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5bb6206b44dbb0a762caab0ddddf0c6a7d2ec3a4eaaebfc1ce8611cc0438a626000000008b483045022100a43ce3cd6788b2ec10617d4540959da885d62fe90875c2c6dc6627a5d156d5f80220789fd46d7324dfd50e346f3a9568c36f05bfbd2c793ce19cff31c71dd9b0354f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff410a2272cbbdf4d1c3d85e487932959c1c66fa09467fbc32bd6bd478182c1698000000008b483045022100d02ea2ca50f8f4ad625f7f738e487fb523c75d104b06b9704870ebe4f457375702203eee932f0fc09aa5c19b54b5b51ba030b32e677c212438b36207560f340b912d014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff90f0ebc055fdabc61ec6fa5c2e1fabe664b66c8e95dd25abffa7116baf9eb787000000008b483045022100fdcc51cc1e937b35463fee6f1a49874980bbb8f5143ee587adda7a1c35ee8fbf0220762707a80fcc93e94c55fdf2b7d4daf640691810405f7b64bc6e353dac8471ac014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8242d17e7b3e7a61334eadc44357d499a397b9453570831735753b50768d3f69000000008a47304402206d684282153be872c4e11772cf9d915407a09f2ad49ad8b2ca76a44c79c9aa0202206f035aef0350317f6644280981d43975607ef5b157d74d73bff94b4216807662014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6e9d70f0655a4b92a677f7646b820b349cbb227aeb6f9d6cf0d1f72bbe891e25000000008b483045022100801dca6e34108199bb96d955eb37556ad3e8751b649e9991a082feda63cf756d02207aad67f56de4ae23028fc0eff5a905a26e5455cbbd45a6ac96c4ef356626e323014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7b470a939f1dafbef8d3dfb097800a0a678ce4c76ac700923849b1fb4afb7216000000008a47304402202758edc5a3f8b1e3433b8f094d8deafb6cea8b4ad77fc9548c67a54298b2846402204f1fc190cb5b4388f1f500640a99752e2cf481a07f67bfed4ea8ec56565455ec014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3fc6443e9c98af6c888f420a7b130d93fc5bb43f6d0dbe4cec07390ee72813aa000000008b48304502210087a84272b59b56835ac01806589a9a2b902327edb4f9449c710a0e09e0c2518b022062a1114886705a19d448d7e22c2bee2c13f64860eeb4ef2879d60b0226661e08014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff04d0bcba3b007db4a9c06564d40afbff8183f9ff23bbbdebf7ff995051d2fc94000000008a47304402203b031f0b0b884383d498e78a937854ca1d0316d4d17e4fc2d5c047ee7b98db2602206789a7890ef8a41f9877e6885337bdfe6b564d1b9f7f29ebe19e5cbf330e3f87014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff77e7c34ae68833d9dc46c3c81dceaf4bbafcb64546b021557dd5949d2918f60f000000008a47304402204fb919701f43f138d2be8cc68dbc8dda72e6e76c47e472e89589f8fe67ae211702202cc2b296ae6052d22da1e16abf57588579c89e41e60c16f8423fa675e4337076014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb9b5dfb3aad4209ebf9800b7cd1682b7c230aec93ad443385873bdcd22fd0df0010000008b483045022100e5a755a5d58cbcc719d782f0f26efc0cfea38a8eab375bf3267cc4327dc67d090220262a6641c87c0a5c465faadc8b9bc4558975b990633d8c7ceff85e4eed7e4813014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff97bc3f5ba4abc5b8868d26262a126dca3703b1ec087530408cf11356e89b03db000000008b483045022100d9e3088b40a6179018b0778f8dbdf2f4475c7e3c10d3dcda1334812333a47ff202207ec5631f210a76fc5c440c2d21bc05d5b9fe8f8b0ec84b0c3da0b93e509b5a5a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff504ffaba0bb537c161043856362ef433ad59008a179c5fd160b2b2752ebb3681000000008b483045022100a9549a4a6ad21118c583e75999aecee0c5150361e8ed244f08e3808b997ad7ed02201827c923c7c6001aa4b9fbb5ea514dffc5b5047393273df76ab9ec9a8a8b5895014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5822c751db3aec1f9c186ad04c647833fb306d65971aac91b93d28c9212c35f4000000008a4730440220707b3659923b8dfd76c7d903dbfbe0aadea217e6a275cd427d160149bf24a30102203f3cad64eb867d1e81f3eb5025bdeb94ec15df254367a6da85decb7f923cc6c5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7c8176d62010dceefdcaaf2041c93751f4921bcc66e11af6bd7407cd023b1c31010000008a47304402207500f7ae56f554fa5da181796d8a2c3789ef83a0c19a3195e512261669a52aca022004cf4984ac55396daacb6f0fdc158dafcf879916feec9b5293bfa295d7da6919014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffca192f3548af8c5e4527acb43698086b7d8554a6186f45d0f0677d4341497058000000008b483045022100d17b1db7013bea0ffc9682ae183367030034ab17951636bcf18196e818d4f96202207d284c19394d64d0db8485ff68086e140cd9c0c4750fdf23f98478fcbce2c945014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff302d83d4861b1805001d50261f5a57c16accfe008c71c7c2b3bc315a045650c0000000008b483045022100be2858873d48f5509da2f0d24f4c2e0ffa170242021e30cad8519884474cb13302206680758cb2cc534b2ba1d5a76cc50e25438ced3741410d0249dfae6c96b1b3e5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3a55da4edf4d70fa0365e33978ccb01e4cec1580f88151bd4afe464f13bb0bab000000008b483045022100867bc26135f26fc394d4fbb7543769cab8d396b441e8663fc98d90130469a7c50220048fb394a87e67e4aee54374a6838d96a04305c315a07f428b2a59acef6fdd38014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffca848424a7316a36a62d61706881a46ccdf9b674233ab36c9df770faea8027d5000000008b4830450221008b379fc7c944ae0c5aea0d999bfe255a4b246a83b7672010f95bbbefe19c92cc0220662010cc05e771ea21032c6f4322f9c519a51945eeeca629f5d2c2f3dc56a76d014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffab95bd888d54daaf79c9ffa61919094a7984e018ff7e96677c551672ac197120000000008b483045022100ed4e1245c7335d86da3d1344ab431a217added435df3f9e29b5f75951383381302200905a3663b79abde7b1908403a120baf9a86fc58f88858aa2b09f0c0aa4c929b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff005d5bf27713fcfbe9eb5241413b4b878d9ced694085b87b0c6b78862ed58133000000008a473044022040ef397be77a634b06a169811c7683c1d057c8e382b2e2a70818370acee89e0b022036d4d6132f815e5fb459c92b720f5af12b5ad492731d7dbc09c761693b4ea17e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff320d3d03fd2dc18439b9548d7a087b8e1e050e33903cd2fab7277ed219d605d8000000008b483045022100bdf2df098ed75d0a9a703cfd452a74ff2a11bc5e302086fa97e36866dd091184022033cbe0d4cecc337274d5b2995d403d4117180c41e68c7c1142800ef853f15773014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff24ec65c908b33ed3bfc086cf10e85df742308afbad37cd5af41c07ff85a2cf95010000008a4730440220650a1491229ba89784106d55904d0e19df732e583c0ee6324456bbf9186ffc120220331de16013fce3d496057903a7f68a53a1ff29e733523711c5afefbb64627a5a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff42a2a3b811d8fb56b7a4223ff019967eb5041ac5bf659adc358ba067ca0259bb010000008b483045022100e1909855740e31c8405cd39ca6777ed2e2d0b0416d3488d3ddd0463164724e5f0220623010050534f4f6c26d51cdc421b27fc657048380c1241d5e756ab11e121d04014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa1034a6a2d9d4c65ea7648a31226024d39153076ba09b9d45b393725915cfb30000000008b483045022100806de8e5fadd6eb2c5ecb78af6ea63382ca80e03984edcb888ccf894d912676c0220526be08d98dce7b22a87cf32c09d9f0f12502d29a03e0604330e0c8a87346e3a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff0698cb56a5908c6192e0c8e6d041af203127f9354211806fa07465725cafbfb7000000008b483045022100d376b3a52f06dd22289bdd9b40840a16bb3feeea3fa5af0ef0e327cd59bb51a102201c475286124ad3b3d21fc7ce1fae1a4682f5a3bdae3ca108f84aa71e4a5faff9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd2810d3708794a0ca2f443aa48fbe57059c8522aae88d7626aa003fca715027b000000008a47304402206ce297a3fff1f387e8b51e2ee0a3989188a6704d2c8aaecd6456c5149420486f022052905a95e2df32b446c965c28090ed6f6905fdd8b37576cf81894999a4836b18014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff07a5c3cde1aee46dd25ffeb5d2a38c389c0935e104dfe5fe80358da0c9ff1fad000000008a47304402205d25eacc41ac1542219bf37e4987cb43320e2bf9ed728f2bda380a687e64969b02203aaccc2840818b2e0b071eea44d4839d77f02ddbbd1e3d723dcde4a449a69e69014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd328309a12f9a353b568c8942f646f4d4872556b244975ee2c4f32b58d8532e1010000008a4730440220691de8e44b34e8f8d2258d5615367ad8411598cf558dd39d7e3a3263fc214cee0220375a35915efc51ac011244e40eccc9c9287767601a5c130e64944a8c6182ebc2014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffdf261cdd4022f6a492796611e95e22f39361baf7fffd3c2f869836b191326aa6010000008b483045022100c755e0ebaeec6c5876d9bae03b7c371c23cc88b742754a3566f034bb3382941302200a159f45ece620a9c7264483c5a35dda1c52f98d1e7c1664d0051ae265655cb5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31fffffffff1cddd934535d9494cd76b4fd950cc1f18a9bb4cd4f5bc8053d7f6595cb9a277010000008a473044022008d270eed1bf8eda19798a8587eed7dacc943b5ccdef759756861bd86d6979e80220123c49dca5b8c9f46e37e727b55fb6400a72d37bf0b869f98ca51a3068d9e24a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31fffffffff2121cbafc846910733618448595e5227285a4bbbb222ef751e79c276b8a5a5b010000008b483045022100ee978bb7a709e99b3de5bf0f4d213df1fff26145a9ba8b7eb1be7f4c62810b5402200f26d59fcc72489834d6b77659e065ba324c83b323350274d41628324f98e99e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd588a900826ff889224a12bc60ec4ddb1aedafe345c4dcef01b8f8ff53952c8c010000008b4830450221009bd2b206b18db4f2a79dc0468c778b5434cf032328a7388f5ce6ac1e1d930f46022049de0061a046f8c6a372f75f1f1ae33baa998085c5a67e93cc73bc8381cb5850014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff63c1431b6515b603e3ecee029845246a4cc30aa445fb16a654c7f3aaed307c8d010000008a47304402205fe9e3253c5b7062344b9446b6c110ff30979f120623839377800120229ff2a202204b3f996326348c13804c01e061de002e6a9f0eabff0122ea786f167ef9937906014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff39c83f0172a417fe3afa61601d11cc64db00491d0ea5f409c50782b7f185ef33010000008b483045022100dbf8faf92cb26d2cb7e849fd6779bd471cde07dd5e3af43fc5f91e16b9a58abc0220246d519d7f42eb64a5c36964863289dbad4a2a24597d48ae6215cc75c1bdb1b5014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffb38a77cc124413448d78400e54534142da5374de08023f1326915822b441f1f4010000008a47304402206c6acfb1a35cd54e5d6a37da42d382db6b2ca45b5e398b1f3af05905ebd1e1b1022001cf35c338d098a8a59735f504f5c79d4a02e3a929ab0d5e7c1aaec1b2c8a8bf014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1d32ac194c07011c38e81f7ea7dfddbfb63e947e47ebddf7d2f918de49d261f0000000008b48304502210099d9a8cd8d28b4b604fb600882695d6a134468dfaa32b560ff7b1199cd54850d02204e69288a83597f174823bb61228390061942013141194d70a828137036c329da014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6e6a9f6d2fc82e551a32366407056e8c3cbd83154553b1b03152df76ea7aff83000000008b483045022100e89ce7cbb9f6971f5de1445df82ce70763623f797b2466c2ff72759ff05d4b9d022028ed2d146dc025d6df3276baaa5ac4d7d58f44a61c58f05b755aa29de943c18d014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff132aad09768c7203015b216bccb0cb0ef8ad2f1a88c852b38ed2b47e54d84852000000008b483045022100fe99f91e45dc47fd23397588edbd85644daed0af86b8df537ba3e40ae8661c510220658080555caa11751066ad65a13227ec08dd22a090470f55cb8eee8d5c9d4aa3014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff74699364152cf9503099025f2633e64040215009f88c48f5a53a1846c76774d2000000008b483045022100bf3582ea3e3abd9e2e85e3f3d2c113b9d9744583b5a775260e5473932366a8c502207f3d6395d48bc3a2a9550ec8ba04988f12a846174f668a43bd7999d4cc289931014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffd3d918664de66eb38492b1a560dbabfd3aad8bc417230302c85de69084c5eb6c000000008a47304402204af19318445c1bac157f30c18f83cab8ab01a60aed6fe3dbea3c4262ee1e047a022079b0aee834f9c150ee80c227a08d04c1459be273e05b7a956bf0daf76c9faaa9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff8a78c1c76af02f23da8fa9972a64c4a2ea937fb9e74ded960ff6d9865c290361000000008a47304402201f1ff75678b2cde661d9924508f05680c655d0295254555ec1f0e0434523ecbe0220700157e0f1f855adf5896d1e859d1c528f519f583bbe9198b517b01962ace788014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7259a0d989c12b84cb6c8287ea3a14d991cb43eb82c9414561e11e433693e789000000008b483045022100c1723a623ac964b47f9eda1fa0d677b654509f2aafdf31a9ccec9b780322594e0220451a0afdde1853efdf6fa04255aa9145b2f32cec01dd3cf8eea533b553c6e9bd014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1a670f8e3a391c3c1825b5e240b4386d07e06c85999037e73350c2d8faf7fba5000000008a47304402202c038661489357f534f70cd4bc62f2de54cfc17ce3bdaf906f2597e024ddb70202203b4f23660e011052a1b6455f4e3a8475ccdf9aec711451fd36050e9e4ace6ecd014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7ef67493e1ca6e65e4689c761fa9ad0ea4db3a8c466754cc0e5274a87c88ba3c000000008a47304402204452da0cddc8ce6e0028d01784d158cbe16e53bb4d6b9bb47498885ceaa18c3b02206aafa51747d4df8aaab35ab3200446734e496cbb1a602434c4b64154bf4febeb014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff483c8cc18b5b1436540955c219dad2f7462def2c4f4b516dde21db381595ab64000000008a47304402204febc808cf2533b62b3fd11f7031bc63494b54bb5bb24b6ce9df1991d8361562022023d3a81bc83a769cf9177d38b728998dfff09983b0b91246f70f8b6d201d3be3014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff215bdac20fe63e8335f9ea0c43f0d8a25d33a98aaac3d9cce2f582e9963f1b60000000008a473044022073294aa66121a59af5a437731c9e5cc43551f4881c1b204f0eebd2ced278df4a02206006c675103253b36c272c2656522c816b0bd1507001d578d9141762cf8669c7014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa91d00e346908b7dbfb1b99d50cf97174326c96baf2c80f46b1fc2a3c59f21a3000000008a47304402200d4f7c879f014360685964a6bdd2c893166399ce0b58cf2dc4b0d41711e769b302204af0b15fcb364f1244e94d282d34de8d4e01cae46ea48122649c3a8344fc237e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff1ac78c4e3f938507b6221ab9c9f3a626f75401d0cc9cd52610f81f442c26d295000000008b483045022100d19a1aba79b29b94dd3e3cb9eea7e6fed13af4a92f12321e2a062fd6f7b7fc1f0220360a0bc78872046f29dd7cb5bc038f0150c9ea255e2e0f6c774c6c36c994221a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff2d91dce60581601295b0f7ff77b30b40fe9f78dcf2fad0fa9ba6fe314dda731c010000008a47304402204b331c66e6c6c57f1a62727e3b826a9a41a44d76d28e971e3b6840e12907bd8e02202cc7007afd33b189cd9bd8a942b39888e32d4add4d7986398d2b4332626b3517014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff935aaeb916d3407de9642165789893f1c9e7fd9efe32c9bc28d7aa47a3bc074c010000008b483045022100c0337f80e2292fde2a35c355caa3db54d007b37ca154ffcc1f6133beba00664e02205ec8fae0b65b7aeb3e22adfe233d9829b7c773c00a695b5b90bfb948f38e931f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6a25951027174bf71897b0053f6b7802c806aab3365985bda5f6bdb0d5471023010000008b483045022100cd020ee32cfc152bfb7bd9c1e6ca0b7338a7f06fe896d5eb98581147c8dd9c1f022034e74292c5371c6639d6feb59050fd30e6c520f7b68c44c2908e05643fb8b040014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff57ad14afc7991423c5334bcd87d1a13d16c0c8cd1be9c64b6353b0b35f902d3b000000008b483045022100b0b8801dd2230d1f0c6e4c077ae47917900902ff446472f257ff61c95eaf61a402207398f2dc2a16042acfeffa0196761f96c451b0a06db971f9180e17165438fed9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa4235ea316fd8e8acb55c1c21f1bd3301f60bb1abf38ccb8888e9c7abd0d8c55000000008a4730440220698bf4e31c91ae559f3f754c06740c98b74accaca0d2ff5d6e1c7536c44f169a02205e4dc61282e66f9e53bbb63e87c75d98d954478e1545beca45f498b12babf840014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff5e92da56e2fabe175184be5c050b88d35d5b8333642ddabb2e13738e856ca200000000008b483045022100c9345da7f30cc6828487a8283e1c64209ef0e29761c83297e61428224dddbde4022042085694970b494cec4a19a624ca03870ce6eeb57acda5aa8e71685dd20e6f9a014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff89b0db9276f277e311df97deee08b19339236b25ee841d663b1957ad953d1e0e000000008b483045022100ec0ea2ed79bf747637c932c567e958eef7efa699104e950fc358a5ca8f9d7b52022038e78b215d0e1decf4ca0ec3183548bc58806aabdb0ea6bf13c2f6762bc2e8a8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff092fa51d98dd7c8aaaa8b00a4887d80d4f74047e678a61ec5e5c73e32d61ffbe000000008b483045022100d3da2824110c0c6b7afea911a6abc92f600dcf8a011cc1c535ec00c520cd8a6b0220320c14ce6d4b7d3e4afe1ce756d9b53d8276c053856a5db720ed299ef2f2a83e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6af4728adb84d71999f175f0857930699508950727fbf3e99d44d8faa11391b0010000008a47304402203be009029197b002a5299979235fc2e87c014fd1cd05ee8437f5e07f1d959ce40220516915baa772c83c1db33dad66071223f90346ad4a80946cb3fec9de28ec180e014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff025d770801f54a073e14f1577ab3e392ce4cc606fed40dd10ce502ef2fd6319a000000008b483045022100e40f3c18270265710d1c13eff2973504e6e5495c6669d5be8e76ef37d467624802207cbc8d70d8d67d883865b5d830e88663230b501a71682bc24a85eeb4125bff49014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff6aaab7a7deeb45df42475cbb94dfe7ebfeb933a0701007d3598e570d52057eee000000008a473044022062eb92b45fde372be23a4303d6db8f18fcd5df0ebec8c4ac09e92671bc5c8ddc02205d619dda7697f12d0919c5e279fda221a7cdb34fc803c68397f7ad1a9113ebb8014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3f3f10bca4e619d545eec4c8de8d39f2f00d2e11496de84592bf0d359c882072000000008b4830450221008cfad63762e582869626df188e02d1c0ba60d007a8db4187fc24871712fa26b502200b4a6f3ddd6a111e50c677e26add7a86c3b7e3c6d4d0f1f323f12e5d74ce31e4014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffa331749f551ee590a5f2eb0908ddcf1bc11510ade17341b499718e1721c0c62b010000008a47304402207e8d20740a72b1c0f408a245a3205c56eaa719c7e8e582877103bdf29e123d5c0220503be1571dca8c2e9e7a33b886efe8950a2630f10e3346a84cacc5fa2228e3bf014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffbccbc5790606effb348cf836286c780c6924a187fa2a5e7d8b6a1e09d8a1bee0010000008b4830450221008b26d9f2a9c8fb48e4bb58936bffdf827e01021630dbb046bcbffe32b2a25e3d02207e9a0f8d87e894d79d26e7b1ae7c31fff681cf8f750a4cc53908323abaa6607c014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff091205b3a39937f559baa29509fd05f5a4ee8c99bcb2ea9dae01a711b09d5eea000000008a47304402200e5e51efcb65fe808bbd651899bd0066676423dfac8632741fdabdd6f871ad3c0220067c775af3a930d87517d9d47f5270ee842151c5f7b386a69813d34df6f56b94014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff3bd2e5f5963812c511990473f571df69b7c771ff39837f5cf78763f2d0ae720b010000008a47304402205c2112bc85801508d99068b15be0eb7e6659294b9d2fa5178590c213d220cd8c02207f5eca0f05a6e222a162fe315e37635ad0cb5c9eac15db1b4f034a43908e8bd6014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff2640720e73ca59450543e5d7e31df9d7627b3b813f39a4f9f1c5c0aa33eab6f1000000008a47304402204ecda19976af6e6ab59dbb8c2fd96d5f8b69cad6605517c2c0d5d83427b230a202202e575fa7b7702fc9600ed471c794903ea2b6654624e711b4e98fb9d68dee6ce9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc781bf6d0c5a01c9a664a9ecdbc430244a9959f1a1e6f411fcfef32a0effa4bf000000008a47304402206dbc53812699cdd117d98a2f40fecb45eef0a3cdb3421e1835f279bf71a8250e02205c7c5014c0274a4bf2354a69db5e1fb0619114e484fd7697218cbb1a4f1bc01b014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff73a878aa68bf12ed0f027367f0ca1b75ef3c685f93019f9a0fa2369428e99f84000000008a47304402201d9f838135c01a453e2f57b5e20b896510c4c6b3ff9c682fc52bf94a1bc726dd02201975732143c12b706a0389a002dd8eb8cf02cc35fed12eb4cb169b1c4ead5b80014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc6c0b577374e63c8be2f3673ee6877a15cb1957c2459d668e8c16791c18fd385010000008a47304402207a921c13c5b80154379a7e530d557e3f8f36438f87f9083638912e201f95a3d4022056a253d5f2fa5be5573fdb0e63762b44f34c2ca2837c506845ed1ff084f4de9f014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31fffffffff7178c2ad8a788cd9b8414c316a90e7a2b9aa4d0e3500a078bb78f78adaf2f27010000008b4830450221009d5983a820386a665e3abe92949aaba92ee9efd4dfce0f6cdc64ba1d5fa6952c0220564297e5930c4895c0c244be47377e1be4f207f96aa111219b1fa1e8200506c0014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff7e9eb93b7347214c7a4fe15bcbb753124a84ebd259013a148dd90cfe83f12a62000000008a47304402201178601ace2551471f7da7fb398c1f9e2d2f789e5d8a662fc32b73a983c7f36c022074affc15eeb6c499dc98bd7bf1de94f1bb60af71b6c0e2ac6b67f7e63623eec6014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff41c542485a6dd3e2acd62f57c34a6ff33dd73d875991c39b69f0a47cafae4c98000000008b483045022100fb311ce78f3bdadd9c80effea6446257f95429963414ce669ad9b50b1a59588d02201f39e30778ce8d91aa8732db5901cb9e4052d0551ec178853e736b1baab7d4b0014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffffc791001af9897690ee3b3aab38893b9c04295a2ea6caf83017dcdddf190b7c20010000008b483045022100d2ccbeff28c4019ccbeb67cbd0d669af90ec2bdd4d2301fd93ea0db8f3db9a220220116e9cd2ed250cf417d0f45a6361a47bd1f26d92a49a933a8042490627b68fb9014104a5ed97469860bbe8f05b9964dbc83bb17e5d14383a54fc4395e1e698d01011f6827632c50871df697d46faab766a267cd3b12a17244db5af311133953b440e31ffffffff0261236e23010000001976a914510e4273e56cb363926a149dd7b86e8838e98f9f88acdbed4901000000001976a914b526df90f2bb0c5830b469b8b8f96d25e127de5d88ac000000000100000001d27b447bd3730b2c58e05dbd5a6aec7473150f8f7e69482cd7e6eb3ab26d9f7001000000da00483045022100a698a2d989bd249ba70571230b354b8e54845663ff7d32afac2b3591154061e7022061d18cc45f7e6080799c2d18aa10d4e7b55f5b50fa3db99babd19c460c34c5f301473044022065da4ed1421c0d0c3e157c2cd736e4c22d6af912a84cf1fc0e6f418e51a7bf7402207bcd88362d13127897881bc9ed3120f114b6a5a027b6f2979e65810c1676882f0147522103eac01e7ba42cfdd382d140754497ca33bc561750077e8adf73f963e288df6ba0210396945cc1bba0e1920753033878225a9db6773e25ee54b34b9998da8d7264e73152aeffffffff0288130000000000001976a914ba5dbe9f26ce3e4019bedcc8d820f50cfe7f482088ac802429000000000017a914d9ac0ca54a0c406d20b84fdf9b3cda1809521c4b87000000000100000002ba215a16780773a6492d9a9faa379e245852ce64b772e9554437895f14686f91000000006b4830450221009ad06b19d68f485d5616de7d64a373cd959d4fcb8b263d78e77194a780fe40030220659a86324793846cd91dab815fe86f5965c574711f08b0e8bec67ca60f3efb1801210282d8a0845f70288da1c9733a34ac3d53f8af2d3af472f39b66a3c7d9a4d9f8fbffffffff4617c6d64467436a2ae1299d5ced9b686be607f0bd5614a717c81c718d362b79010000006b483045022100d34ddc1164b0a11ce669c9a46b6d1fd0c1cd7d1680d5e724670718f7ab529fad0220204f57df044d968962c62c8ab7f6b9df4a86c40d5b5d2ffb384dfcc6723e32ab012103093e395799cf1d2047d2bb108b849754bc5f9f8fe3072f40e72e56ed049512b7ffffffff02dc0a1400000000001976a914f44903978916e08286ca171309579ed21639218a88ac1c300000000000001976a914b803863ac070da84ae68b20626c5d6f47542495588ac000000000100000002b9d39f88260df204f6a0bf620b4fde95003d095cd6422a01946dc939ea8ee30801000000da0047304402203edfcd14022dc4624ef6197cd8549512273e5a38519a922b1584e07fe98aa45e022044745d2ca6eb1f2ddcc6d954029a0a5ebd263cc97a5f0c7d65af2610b798bc6701483045022100886f7f4c740f7fae0e76d9dd2be028c86c01950b930b7eb7a9057f612092e0ed02203134d8d0f080e4dd6dc85b60c51c03beef2e12138404aaaa53be0ace160c20110147522103cb5e916302a280d56688daf22122e67665cd9208ff4273dd2fa1fa39625950f3210369552a76669aed6e02979aa08d743409f55f3a668db8aa4aa50735a3cc231ac452aeffffffff2a4bf2c8f4ce17ef610b9c9afdd1dff65752d7b1ca0963b0ad5141350b5cefca01000000da00473044022002427e1469cbe60062b157454f42eb90780f2a86c78cbaff072b7908240604f3022042a6abd842e2e3d7921fe186f5c0089f22a0f5bd688d182f45bab62c6772f00401483045022100ad9be23e59184041b3cd082611ac83be295f7dcb5d23cab7bba38a2ddaa231e402202d47f2853f772f90baab685ec38f1121dde0279cca4c0e0b6de69ecb4ec1eaec0147522103cb5e916302a280d56688daf22122e67665cd9208ff4273dd2fa1fa39625950f3210369552a76669aed6e02979aa08d743409f55f3a668db8aa4aa50735a3cc231ac452aeffffffff02da534800000000001976a9145232cc109276d3307a91a54ce6f2c23c050082e588ac0806e62a0000000017a914df7131367555744a89e69ba16b645862dd753b8987000000000100000002a46329f00f5ce42835c20480cb8b7e9a5694a21653e194b7f1aa2bd79c98ed0700000000da00483045022100b1bd78e127df911775ce386e6004c556a31517a8c05bb03fb994b0551e4c728f022050e995dc70d5d933c6ca0baf8932235aeb8086fb45b6b2ef0ad55f26632c2bb301473044022071a0801adb35bf1ff897d6fed026f565508bdd8a7e675594523292fb66159808022004f5e611bd2a21307ae5f524b622d01162efd6fe5ca0f1a0b4e3a90525481ac00147522103729b6873394c29d1153f3ca9f4aafc84d825d6a68d793d373ce3cfb9cfbae53d21035734ae241e88a345de09a9b6810951e41781f610d2c8716aa25d634bd0c5401552aeffffffff320d8349e448c80a3638544e6a2b38730571812fe9ba0bfaf73898c9f08e1dce00000000da004830450221008c2de186e21b9cdf6a1c20fd3b29b79f12da360bcdca773beff8d030a870206602202ca28215f1f2c17c5c2b560af7f31fc84fefd61055edef25e07f4f911edbeb7801473044022043877b82b7fefc3b6f839eec53f056403a7923b1f61fc3bc02ad9ed6c44730430220640566554e16cc457bbf5317b2d83db8129d941328b022c89c1abe06dd3227330147522103729b6873394c29d1153f3ca9f4aafc84d825d6a68d793d373ce3cfb9cfbae53d21035734ae241e88a345de09a9b6810951e41781f610d2c8716aa25d634bd0c5401552aeffffffff02b0360000000000001976a9141d9357551b00179418f6a1c9fcd16938ca7a1bc388ac586209000000000017a914d16a297f5eb2d9a3f149d1e76885c07e55b331158700000000010000000490e92033022183502fc32e5a9920eb38944c0c5a7c3028d08683b14e369aebdb000000006a473044022076e178d40c102a5724dfe890d7a2d8870a31f6b20f42114637ffe922006ef62f022036e69d20e6a0e564b36495623f50c9fd5500cb5ad57563a6e98b6a04019d7b23012103569ac034acb343be34cce17996e90e5367227b473cefc946f6bfa19da60dec40ffffffff7620fbecf73fc14ddfe74e266f8e884cc645e38e99f64f2bcc5e8fb7c0c369d2000000006a473044022057c8251a4a12262eb30d92cd79ed091476f8d1c278274cb9a9c933eb615f748b0220610d008d558389cd737cf87cbbb4525ef602e2b9b4ab155da4af1b41d545abf001210310f74ae1830d58ec6a42284826c030475e3b8c58bcfe32ac3a9ed9f72600b413ffffffffc08e3516a48c9754d4ffde13d725a900943555c0ffbd91b745c198487201e505000000006a47304402202b4c1b05e480ef74cd8ddc9c72419212238a27b462c1c64c63d15739af0e7cef02200ffa0373a964f8b02bc7759ec411b65d20319af7babaf3dd6041d50f2b13f546012103057f484429b599b0b6b6fb6f2c6f2dc1892ca320b57d2f7e2d191c2a0eeff31dffffffff0eb66cecbd0c506f31bd65a96ec0933780e7b0d15f2fa9dfbcd962d444d0a628000000006b483045022100d39695bd98dc06360284a8f5e40094dda9be0901f86c3d01021630953693e10502200751956dc08e823737ff191d834b752e23e23db83a53b14abe99c9b23cf038c9012102a5f0e7ec7005fd18303f813fec8ba1846d6f8e401ce4356f27a644bb0c06618dffffffff029ffa0100000000001976a9147d690a03eb998edeacd67c2714a486087e1b698c88ac394c0f00000000001976a9147d6cd03388492a093456cf21149fc1962a17ebb688ac0000000001000000099f455fc2ab8ccddf2b1ee25c9bbbd118606364aec7f237ac75e8c8406d91bcbe1c0000006a47304402200a53dcca5564c250ba89c67a9b5daeb82a8a79cfeb08481cda4d98822c53e66c02206d953ecf27189cfd84b74f00e455734cd841e038372cdf91f12edd3a40286df8012103ebdcdeffc072cfa522ba305fe1fe0c6431be0abefef55f826ecd49807a53fcf8ffffffffbd7dd753cbf7d1edb51a170d82d2be5b29d4dc4d6944958eed2d485772d015c4140000006a47304402204a0c05c663005e865a6aadf41d9b2d7228aea34725eb8919a2d76a746e964b71022012c54eca0abdb155f588c79da79c794807fee244163fb049a31cf9ae78708758012103ebdcdeffc072cfa522ba305fe1fe0c6431be0abefef55f826ecd49807a53fcf8ffffffffbd7dd753cbf7d1edb51a170d82d2be5b29d4dc4d6944958eed2d485772d015c4d90000006a47304402201337ac7f3aa09842185a561c6bad4f5fbeb1a200071ab6ffb25495e4a9de3dd802201db68a253107f61ae76acff775609d899ae1ff52cbfa5b044bdfbbb778da416801210249abf28e6f462d56a0078ba3a45eb467a47701310838a2b515ea4f3f469ab0d8ffffffff894083ac923a4260dbb13f1bd3993ca10d3152fe2973297a94cde3de721db134010000008b483045022100e4f50cc4ff4b39106ab3183a3220a90ee5175ad9b933f28cccff4d060cae2e6602207cc1b9c082d786aeba7f89a92605a75e2096f74964b7961dfb1851d9b7fa64da0141047336b05430fee858729a60f791cbbe2e88d8aa90256ccc20558d80d7d3e3047b557ed522450279514207a5fa2af76c6d8df9e4c7b0fe04190631cb9f57358e4effffffffea113aa0c02d7b5515a60ff173cef170c13442e2163ec4ebb5427834cd056cd1000000008b483045022100d4b5f97c9b86b6dfd8f1bfbcb5ed2eac556fa254a93134087f476c155fb638d50220126dd77c277a80b858732ee366f4675d84840d5380867f8787ecacaf98455ffa014104192b7f06039a557345ae4b50b1290dc2af54e935387c6867c76ed4f67d7ab1192fc501dc94452fd3aebe9da5919d640ab3326dc9bcc04e12abae5298b01c24c5ffffffff0835921a048823a94d7600cb1a362578b4a0427d695fdacd4a4326dfd4a93e73020000006b48304502210099717705c7b33be308251f2de07895f5fa85e4680460ec8998a9e2d51405057a02203b84ce6e3461dea109f12258639c127858fd5a14e4bda13b26a24e4493be79fa012102b3613ca1742d38bf89511aa98217a11b7fe2f6c829b30b02f07744aa2acdd9edffffffff0835921a048823a94d7600cb1a362578b4a0427d695fdacd4a4326dfd4a93e73030000006b483045022100fac990201a2fd67e0d77f0495cb927641db216ce5b59be2a57eaa8ac25bed280022034c75345243656403945acd14317aafa805faff6b07f3ef2807401cb33012c40012103f4c2744ee15671eae703c6a5d74818e3dad735c043b8628851656a1c85d8cd3affffffff5159105b6d33699103a6e712b196b9cff22375e462ed13b2d491982efec2112e010000006a47304402201b8bee4547adcebdc29e2f9ed76e735df2449b79a4f4000418d48ef10ef2507b02201e97a396c2c5c926f8db831a4218d3c8fc70dfc6446f8da6e428a60c437009ef012103d8b4b62ba86bb31fad7d6297bab00f05b4a4346b119415b7922001a230c5f731ffffffff3e476b1db06c88385084ca98fa3b5a23e46b0fe4a2c0e4e5e6b0961d5c3decf8000000006a47304402205ccee8ae656ae9a79f215ac37f0266661eb42673ed134f3d2330ef767cbfdddf022024508069bd9bf158f79a8906fdfddbcc32f036f7bb09aa0029190c4aa76411f8012103d9289fc2e8662c1e7d79f3c140f069d7f5d12d83b260d764564e2ce9db068d0fffffffff0280f0fa02000000001976a914e221989cfd4b54c17999b9cc1de35904aeb2bbcf88ac5f490f00000000001976a9148584f2972d7d4fb42cbb978e35f4ada50e9e369a88ac00000000010000000416acccf6c13002c544c5d315f7a2af99ff4409c4be0a1c6b42de665b435b970b540000008b483045022100c34e3e676277cd728d4a1ca4cf86f764cb372a92f11fef56f64912de1b350460022050dbe5beb5b2e5b307e23030d1a198bfebea968c5a950efea57b2157c650ad6e014104475a197830331fe7fd1a89d49d119d1743074ca8ab85f5c6cf8127e834f4a0204a6a4a4a941d87f2017c18a0db424c36b0981bb1d974205d5f84afe9ea10d712ffffffff212751f66e30fe4342619c70a803a1e30f3a90ea0783b8ccfeb739294cecde5c0d0000008b483045022100a0b5e2456232c617806eb0f74f3509a7595dca7f281a40073dca1ef870ed782a022003f285302ab824e652d30124207db2bb14778a0ee69c0f6dd457c4c25a08517b014104475a197830331fe7fd1a89d49d119d1743074ca8ab85f5c6cf8127e834f4a0204a6a4a4a941d87f2017c18a0db424c36b0981bb1d974205d5f84afe9ea10d712ffffffff15968d47dbc33da80a24ca16201045c79992e41f36ee787b2b5608f8bd3023efb60000008a4730440220062e634821d2a7612a74b8652e36bc05aa5a9849e4b7a338b0de4d99e85c7fb602200a239bef9fbebbfc0793d5b34cefbf1627ab691ac230adf6c3170fe6224f4e8d014104475a197830331fe7fd1a89d49d119d1743074ca8ab85f5c6cf8127e834f4a0204a6a4a4a941d87f2017c18a0db424c36b0981bb1d974205d5f84afe9ea10d712ffffffffe3bae31e9608ab0b50f3b79db06877add30cd23f6b7c9c1854b7a1a4f54fda52b60000008a473044022054d643139f7d22c29d2e532f10c134ae6ab5380af6490e94ffa93ee70b35ad67022074a78160bd73de58d08721ca8849d943d987c2f683545c35ec905e1408bae7ae014104475a197830331fe7fd1a89d49d119d1743074ca8ab85f5c6cf8127e834f4a0204a6a4a4a941d87f2017c18a0db424c36b0981bb1d974205d5f84afe9ea10d712ffffffff01db8f0200000000001976a914f867fe60e2548a7143c254190a6d254c6dad7c3788ac0000000001000000fda5012a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d8070000006b483045022100c95e641e2007df0eab2ac26a805be3d72808cf84aad375706cab0f93e464b471022078a0db3467bb370304d97fea2a30d23876cfbf365dab4afaa0b12c9b9006c0250121027e52e8b25aa97fed2d2db4616604d7e3f400fbac239eb079790bf6a6b34b2610ffffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d8210000006a47304402200652f84ebb685da926ca8ff3ff87e2188e8c231d3e98a55d68cc1368c9b7617c02204871ee9906f44e8d91d644c73639acd5dfddcb66400fd77f313d3ca1000ad2ac012102ff192b32ceb6ca7c147da931b3886549e18ec1d47a482ce5375235458d479a5effffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d8270000006a473044022015108d406303a4e342f712d5548b6644e8d60ef67fc010934c8f254d239a0c4502207f2b24205d52f17d9a05e37ad58e24c494774469c31c8552ac35c7ce503d6621012102a5c4276fb5e2b3218fc67f5c3fd87bfc9fc75f12bc0e8fb6ad1c50a6df0009eaffffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d8420000006a473044022016d794d41b6dad8b62a6a51ed29153c69a4b97a1d686a804d4953984535af2f10220770f6483e72f3442c309f912fb6df3fae88ffa2679f90c839bccd39989bb32e401210221c7ab81dbf119a938f75adab81d255c60bde3836b7c7707ee9a7bdd301e80b5ffffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d8430000006a473044022045cbdc549be2e27a5ec8058b57f6dc10df757a16661eae6ce4a934e2facecad502207cd0662a5844a38a614ab8b2d171f80bb403f7ace9f3ee31978847b95b0dfc4601210360e66e446a61398bc9232016e6a2f34e5c26f362479398702acd988ce66807f1ffffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d85d0000006a47304402200755b40438bd36aad288bb02270dcac3c9ff1a66af1ceaace41f18d53482992b02203e622ba7dd901918b7b60e012c17160b8818769cbea764785e207e07d7fdd5eb0121026c9c8daf61faedc31b1adc045f6db1d90d8a46c7f457017d8f5ea01873d57789ffffffff2a0476d36095a99756f5ebaa9cd184f9ba4d4b52a515aef452cc90b61972d8d85e0000006b483045022100afd20a33bda3e233b956a0487c68dc8b63a8cea6560349527ddcc23628b5c51c0220713c89412c92651b35d50135bab2e5bb36060838105df48fcc9b121ed832cd83012103c798853d7f5fcc815ad4fde1183d3d80a40003b818fa86a21403aabfbd0d9959ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d000000006b483045022100893c5648ab3c75fbbb5d68d439407b7fc4803f1f1415c744f66af0ce8670885c0220735a7ea1f2967fd7aeab6ff2615d25eb3cf16c3dad0ccf5454aa6bb666e5622b01210252e8d828e4939310e60577062aa5414d03bda9248b3b1b284ac0ec0d77dc39ffffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d0d0000006a4730440220025185c440839506e1e56f75c0af7ad44deaa2867204d123c49a93d5a2df286202200dbaea862c2aa32c703fb724b4240b7450dc32c1c2ddd91fa0afd14ad4e18787012102f2b84f3bf02c118d60b1cd602d6126594993c70af1b6895127f3a7333d397011ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d190000006a4730440220229e610175b723981e63727a1140298737e63d79bed5dd1c27e46e40ce86893402200e38354cee3317a502bc7973242e87ff2fd2f5eaab9e331c22091c44544a1426012103d23bc2304b5382f53bc573bb7d3d32ce2fdd81eb1cd1910611c8f54dbb794771ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1b0000006a473044022066b171da2d12b9ec89351042cad56f0cbae009407d41ab80749eb4df35c7d8c1022070b874f9f4536c085c1b0924ffce4a6fc29d51060ecac9ccf88bbada2e6f81db0121022bccd2c3fe9a40ab0c9e6ae7cd4555920281bce457120b58a62f237a770f35a0ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1c0000006b48304502210082a58252112cd43f1d497df929795d5563754c6bca3b16ea4a47df84f927885802207e78f65a172111e10cf2daeb75136eb7c54a45abd55163dee42eba0c44285d47012103cec48e102fe0a049ebc494ddd3d14d3792b6735516ad9b50297c4733a17b90d5ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1f0000006a473044022010a136afcaa7177272947872dc34100aa39377d2e89e5bd9b2339062255a80e2022010a047d4e8921ea6045f14e83c905e2ebb99dd28df7c3c2f230e6cb980db377f0121021461bf989e3d749eef8073ecb337427f17042db80720c0e362f01793d6e42610ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d230000006a4730440220785f635d4fb6faffad8d4afd8a362c1cc1e2309814d20df0bdd30c90a1a3bae502203b0223b27fb4190eae8cf7b08796c4e8d6c66ba07fb97084475e5e89d41621f9012103cc1cb2bfb5a8610d0b253b93f9bd07c2bde18e387b149f2947b753b36566c511ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d460000006b483045022100bbf58acc4085bab384da8fbeef8d4fcc3eb6b4012708cf80e7a8c490ed866f4902203c125c27b5570a281e899029da2d44a4b23d8c6fd2758afe1f174a7a02ea0e210121025ea8074d10f85c04eef3b63930923fcbb122a5c9dfdbf41a56b47e91b3473c62ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d480000006a4730440220486cc50c3a9e70d5e6ac3447c0ad95a7614d14d524315bf21244476d41295a6f0220160a55e0608eea70362729a3b02affe32ce7616f3fa0640d9fd54222901659c3012102e4562907fccfcf4b9a743e4715d5a9cc1ba203054c63a5f4d0ac660870d35ebfffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d4c0000006b483045022100c4f759b47f2ec1d3c71f47d699be64fef5d91a85d2354fe902bba96e88f19e9b02202dc2f1fe29df71904873e3903d55b43f317b734a9d2bbff1f424c502f5d59ce901210201a71c6842cbee9ff2e7c0aecf1042ce5d30103f4f73d8ef35447ba56fa78430ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d530000006b483045022100e03965fd123dd8dd86ff71f4065e4140250bb15024287cf5a3360a5adcb49a1702205f491a0ab1c61ee5ea2081998bbf04cd15b16b6a0bb142f3e55af2b706be13c1012102ed801ac57a9715ea9d33bae10cf77e955e97d3eb8ec3e0610b2e1618aea49743ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d5a0000006a473044022064e7d380461dfd83426363c29426b53ccf537419b84dd67e9e8503e46c7cc32102201ddc0f4f953d82d63cbbf259487108a10100c04954879c502203f4d22b89ecd1012102b944e9570267305e26e166d0e782432bc5145c60d9b399eacff1b1b05497ace5ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d5c0000006a47304402207473f92e3e6a4f10b5a3f4ff1e4840e83b15b8078b2af3c86d71cad85e38a98202207602514d7405e834653e88c1e0daf07fd3c70db66228292296c2359c5c8ac1e30121026c9c8daf61faedc31b1adc045f6db1d90d8a46c7f457017d8f5ea01873d57789ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d5f0000006a47304402202ffb79456780f95c5aca97fec0e5ad0f107241a5dc045aa3a486dfee8739eec5022079fcd30c14439d1dac99b1c9f95bedf7b233a0bb24aad295a9cb0a33343e9ae301210375d0cd09e670b856e4d4d78aecfeae7ab5a7512c545fbeeec5e886eba5058191ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d610000006a47304402201c9fac88dcc73ec3f87ec5b6f155e1e81ccd9cdd7067eff5569ef7a7e6fb7af202201bf4a539f6ba10e224b3e9c21568f251aab2d3ff2756bc0138e4f7b48dd37f08012102d091a45a2368c4fa118ad23fe1759efd5b69aac7748ebdc04a3c7956c772bd42ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d630000006a47304402206b093609e4d69e2b01affac61f690085d61c06491189fa3452aa26a36c517a610220662249f96f5ba0048cbf0efed79318759a8d5bf002b9ce479bed7866d8e4d5410121020476e85e348a8447b7c73a039a774715c51466d82c55a24935264f22de8e5a6cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d640000006b483045022100d2dd95ab01f5896bfc6cb54e7b0b1913df9213a875677e81d69be50b60d3d18402204e8e4fdf7e9c7444223a0d089b00e711a0456a74f18ee292b69c655cc22b9f04012103640004c90bbe3d4afc532736742932f32ac2e2742845ffe1f0e11fde8b0737e5ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d650000006b483045022100b19fcfef7d9cdddae7f99f9d2a11716dd78bd3701d993ff799cf68e157c02479022000f9ed5c27432a938257b8cb23240768f85f7afbba600b88f492d0b8c8ebf77401210287fc31cc44bb9a7bfd7f487f5042c5ef237fdf4586f38696f62f7332aa526872ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d670000006b483045022100f88a016e2968e7b70a0f01ff5a5b121bad8fa6d2da58d4a53626228e5f492c5702201523c08ac69bfbbbc44ae6f287abac7d107df595de5a89c0a5ef1f87a215dfa90121020537f5d907e4ff313a83e488234fbb52aff34028d8d04106861ff4ef71abdb5dffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d680000006b48304502210099577e9abd6e030ec1a30c5424d35a5487ef75aba44b74b176bfc70e02bca30d0220128f31ac116af9e0f58f26b7b2ea8b96ec5c0eb1d2a0108fc9ea8995f8652a42012102ef521a7a55cbf3fe9950765a737d88289aa2bfcc2aa3c9ec8772b1c8d43a3ba6ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d690000006b483045022100d367f14810a9a9ff272a8920126288d185e2eb6419c61a2e9daaed6c057882df02201537548794e192b0e0dc9e0348ee37a2b6f9e96d42cbaea6854ff2ea232f1ef0012102220cbeb0304f1fc487b145533d5a59d270235b550775adbbe064133789d5a374ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6c0000006b483045022100853a1f1bdde73e98671dded1446ca76ed4a3866603729e9b4f22aab56b85178c02203b7d4c7496f70e23a806a8aa6f149fc01d9d0f1ed92e83eb3989fb8d2f388cec012102b1530fe1f946149b84d63d2366668fa931ec5860b8f7f3b0ecad46e0bff32260ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6e0000006b483045022100ec303a6cb61e91dc97cb48105de39620a2e0add2db15020832b7479b134f6152022062c3f8d863db9ec05e8f7f46c8119b66d645df5327a5abe0641fef4ac0ce7b8b012102f51dba1a63b3fcc2d5d57598461b9d8c63a159b6509d3d0b269ddaf3c0ea255cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d810000006a473044022043a339ce4571e5592faf6d59713ed8ec1419f6189750d65662b1650151fe359d02204267412810803c7ed0eceaf83813210df62b708e432f8240680edd99bad18665012102bdca2c5703625f8a3a800d14cabb4b622dfe766e29cbc4e03f3e2faa227e4ceeffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d830000006b483045022100f975b9bc745fef2aa6f0dd7af5f0d9b17b803d9bdaf73422f797996fac3f0fbe0220072095d5085ba7df3fac613addea427f2ce2bb9d1d168a5e0439e4187b9fa9870121024f20cc2f4c33c2d1161a439be2a7695eb3703ef7a203966d3f32b201089af9b7ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d840000006a47304402205275b466e547db4b7780968623b4229feb946b480a8fef793b6983d45a07670202204a9316d7edde843648368aeb70e8c86f8f8539c165962b626fc165edb89eb27a0121033a84598a27229755e6c2ace0c5fa4fffc51fcc46a4357a904409879a1218397bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d890000006a47304402202c06c9bb2815d4a271f6addfe592dde181d22dc47b3f8c7c8f188d5043305118022070675d3d59076900a0bca00a86886e8d08dccd8641649b1fe0627e29c9ed67b1012102092c130bafd3f042a14faf0791e49dee1c4e4c45fa8151f8c29e28a1eb156065ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d8b0000006b48304502210096ba3427c920a108c973adca05ae1d5d30bb6f232e6493d36ab00ba0b0d7c77f0220164120670bfa1eef85ce6b538afe7b9baa7179f00d03052bf97268c2f34f56c3012102e28092d1ada820e1aca104ffb1c7c48f3a2a5e8c5f90838939235dbf01a144c4ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d920000006a473044022039c06148010d4f7852bf61dbb5838ecc0aa1e2a26cb2b84b9bb9f6cbfc0e39e4022018985f0505f88b5a27ea1ff3a817706e50183dc46c21fe76fc64e71c9d2fd982012102e79e860ef42ad0f30a2f347b4c06dbe0d82a36ce559fa65044a7fc033372105dffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d930000006b48304502210096479f7298a3ecb791a14f2d919aaebc65c84ccb91535ea69272e1e8db30820a02207a99010921e49c95adae92c2f3274a9bce475fa95fc9db839abd352f0c2db82e012103daafedba4fd924b5c08c6c19f407d9a8dd8796c6db74f9a3473827dcb48f40c1ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d980000006b483045022100f716c60b8a68c37d9134092a89da0f534a3949c528e8356f35346cc6d0c3245d022071d89d381f0cfb13a3e6d759380166e6b87035e0613e34ebbed758ac6d057e4901210381f6523b99eda5a898dfb4f47e14d15bb956ed10e759b81f3e102747d2197dcaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d9c0000006b483045022100a817618f0995dbcb6a3dd14f28f8539c9e8bc0fd34ffdae1aca4ad7601f117ec02202b704b4ac8d9d509442f87c31c2f7f878a3129235f3dc036b68a4bc27ec383340121021813cdd05350838ff535db25d1605c183c7b4141d0ee2ef2bad24671945f35ceffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dab0000006a47304402207c68f2e388bd29780acef2a0d16352609edf43af8b358274d8ebf7fcdc663b98022034b180c7a304fb6433a8aa70816d7f846c41cb35cbe17ddf566b68b3bacf742e012102ab574812cea5df5f4ccb2bc7cb6a2ee3ff9188213cb664db475b749cb0991283ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8db70000006a473044022074e687a2c3b2f62436088a709ab64dcd91b55fb228580ae564d54645ffa82b6602207e1aa74c7c87f7c8bf8e8feff0d9aa6709533697db1a220c701b4bf1a6ab8e47012103d5ef5cb73c67cde8a2ceccf5d41dcb665955ba4d7ae511e049295ac0c796a4aaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dbb0000006b483045022100cf1b92ed2a335f4146964606de11dc787047444a52030825ec3a6496c37df65502203b72f38996a8cb7d4f40733a66ea0cf3e326b38b555dd47e565eb40f536df14e0121031f6390da5e2c34d9747e450778e62217b57d4bb4dd7b4093a6720675bbfab1aaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dc90000006b483045022100d7d20e06bb88f79785db6720af4e0dcae92976dabf6dbe407d885df621ba2eb502200c014a36b6ca2916f28ca41bdeb0750bf3b70e73fd364ea4d4a281919b19a6fc012103c0eb8b1c197366c5aca991758cb9ece316d77cbdabc880279b28ef0417fa96d8ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dd00000006a47304402206a52107134e27f4a2b5b50af9ebc41259b7de083e5fbb274074dd444f29ddca402206380a2a499c8d4db5eb956c57dc66a4a55c9075403dce289a199a2f99e476c97012103c017e13a66a2fbb5773eb8c158fd91d87d51398ee06058d52874555e24d90439ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dd10000006b483045022100a0249312c747a7c42fc5dede0624c940e4764256084fa5f4fc29a5bc29654973022068a2c9b827abcb7c9686ccc83231b9b7082449c8bddb0a3c01b7e6e6d28279bf012102c6bac6f6a26107f1b6ac7731d0eb1f68be1a960fcb936138d5ec1003e3009b9fffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dde0000006b483045022100c258e3c1990bdbba3f7d6db50f314ca6f78eb85c95cf99cc102b88b6baa7b3db022008c2f2c2ede6697abc4b42b268c228be25e8937ff904075709a335fb4276eb6f0121030504f2b3f5ef6f01d3300ebfc4d477b76aad88f96b8e17015c032f17ab4b7941ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8de90000006a473044022024787ddca037f88f5b1e264d57c904114bddf0deb99b9530f8f61cf48f21f9d6022030b3773a96d75274ceb3cef1696f92816f32f004b0e7d310c6dfb19a510bf5e7012102085bb3c49dcc6335149e8e7bb4bbe22f815814183ed53b7ee65de391462235dcffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dec0000006b483045022100cd48773c658caa98ab6a0b984b9112eed0f452783de35de5a37a7231b6c8c0d702200e5d8c4a6e625256895cd1bd296f35b50d176f184d4869d76e3626dff7e6bd9501210215fa4ab10ea2dc19364ca008396577725ebca25bdc5108617cc2915c344c575affffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dee0000006b483045022100b06b7a904c7df67eab6a9435bf0a6de07a20d5817fb0a50eb4abdb871765de4e022059ccd1fa0e0c12e37c243189ec2f8c5781a55ba6f0d276f255e91b1e8d7a0cad01210224d78b34605ccebe94d1ccf7428094f852dd5da910125aeba8b87cf1c12d9be7ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8df10000006a47304402207b033df5dce1e78551a20a3fe083096a2eb79f50843e706a80083c09d41ea2c8022075dd7b28eab6cd0434e201922fb634765142e07440a0bb5c6c71b8697d2e5945012103fdd7c5ed26ba61578966971b16eba7a3864044610a345b54bde3987184fb2ca8ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8df90000006b483045022100bfd439a666cb7c28d16b0529150f2f2596d633e80c2fed9638ea0efbdf8ca5000220242a25953596d500eaa364aa5c476b603736b59db0ff4d268dd99d4bf276af2401210253d4804dd1539f083fe2fff11ce66fba62baff916bf0c0272bf22c45a09772ceffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dfb0000006b48304502210088c9e18476c6a5826a80eec2f9b391ddcc5e9d280eb67225c26922b91da6b4040220755b38be69cc7aca30668127eadc1f51fca3b6e61d7dbde34cfc59c5b4ef34ca01210289e2a3024ce7a0451144fbf6017e31fd10998413361057f43e85b6a5d82f19f2ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dfc0000006a47304402200748712d5844e76a3f63870458dfa5eef7f3b04b821ca32d7db98954b6b5a688022039816fcbdca22667ddd285a0f89bd0d7649ed52e24d956fab67566412eec3cac012102838ffc97652219dcb7e571b0a88639c2a6bbc111e0b0c287aed28e49badebbf7ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dfe0000006b4830450221008b66cf0126f57bcabb0868476d8e27bd33bcb54ab0207a5c0e55ba6dde4f0ee902200ba2dde14385b206106744e55452b8451bc5a25feba480aad6c65646b0a07c48012102c47390ada367119450bf53473cb9a1bfcecc563d51ace4d258482fcc86e341dfffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dff0000006a473044022067b1df43975f5848b11db8f4ea0c79338fac49711fd89b3bf9da5005ee6bd88802205adb39dc244fd3442271b155ec8f56a7412889a051e51d62e3e16e11c3a3bab50121037171c297ba15cc70dd4d9c040944b085d555c97798758591eb95b42263f23b5cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d020100006a47304402204625d6b400ba3990c5ad379b90e970fe6d64307cc5bdbe71f9006c4ad8d0595a0220164c8deba9762dfb909a9bcb1626c943333f06461e2c58b51b41ad6340005afa0121021849eb6126a81231d59d590e73325f2eae6f8dd6758cedf5ce7cb04da2053956ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d040100006b4830450221008fbbe55a9d67fef6a04fc975f851ac54967fa0800270c04010341ce4228271840220549b04c3c7a8d5520b6c9f05f3f1cdc54ec209efcb28aad110b53b470a06b42e012102659d3c8aa3b8ed1f7ccaf816e04d6753fc0511959fc4092bf3402efdfd1ddaf5ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d050100006a47304402206f653ee2be1e3226eb4a725db388030f0fdc46b5ec6820f84fd34236bf2820cf022005a212288b956c70aacfdd4a4ea2b8a6d50b573cd7ffdc0f5769eb15bf31e611012103ad75d6dc4bb9b4b1ccf7c6859244167b3b46b218d5d7c10001d3096ffd0aac01ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d080100006a47304402204e1723e2d61967726cf3a2b0a162d7a4371d4d4b3f0fb207809f5ce1c55f547c0220018e66868f2d47e89738d4161682512248d58f3ed1e1a94afd6b173ab7911e1e01210275d67da7cbc7c0bc0e30740d659c8465c2e2af74fd0e2d29abdeddb82963c59bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d0b0100006a4730440220036f42f9ec22b5b7273358397b51b8fa134080a900ccdfc49db8f62aa5df8343022019000511752b4d1e9f9f7c452f098d65c116b25e12c10568e940f7254c4f6f1f012103628f06885c53e23474d28cd2610288270d191923617b0856e9e0bff0a807aeb8ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d0d0100006a473044022039b64c02fd04e0cab94a175c55ba7326cb051d43507500c57119beb86ca3b204022061aff32ba90e68522831abad438e34070f37b41e26f23cb7921f03f851357a2c0121020878a547339dbc2a9375ea4b3197d792daffa18461b2e33bac0edb76fac50f63ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d130100006a47304402203a72392081261036c93eabd9c6cdcddf15bfcae6de19785b939711dd093820a702207693129a5a6c141eb57366585e553b875b0a6480e77b9b6ec2de822b13a80ca70121038861dc0fdd8bdefa9747c60b91be7f88648e1c0db70341c7ca393cd1d9145a53ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1b0100006b483045022100a46259b42b8c8caef414dad6b9c1c39338848cc204df8e9e0467213037f563e40220676ce2f9215bf1ec1558bec6bcd259f245fb4b8b3e283cb523812a2262f92e120121030df38f26078d2072ae8c53866fcfce2398fbb3d1b39ae3ad0f79eb77de9facadffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d2e0100006a473044022000954c6bf95490186b020b7d456657cb19c71a851996448b0dbb7a69fbce5ed8022069de6c4eb1d106eaf56f728dc41adf33238b435c7c1caeb29ed9bcdcdaa82b920121026596df661f5d6ce02be34806c12efbd77636e7c0e9e8685eec7e9162adf6ce7effffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d310100006b483045022100a9f01e13961c4d024c59a169e4ff959735b29bcaa109c865dec40e54ecdbf925022042494176bffb8a64cdd934e62c1314ac32a0da057bd5c5494bbf64ab52226582012103483a33dfb5497521fe2133beaae584e2672327663d930cd866f24886ea51002affffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d3e0100006b483045022100834f8522b6e99a850694255e864c56efd473f5ba7f0bbbcdb5697872ea95823f022035ab23ba7be772044cbb77cc8eed0fcc22d10c67d444b6a57559d2b93293cb7b012103c357a607dfbed1b44707ac9abbc0b67b515a3369a10748dc3c5164336a4072ceffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d430100006b483045022100ef7c3b7682046528f18972baeb85a84b83bffc165dc26aa4fe2e188d350ab2860220068be06ddb4c5706c570921f960bdfcb4142a5c38e543669cf25adf1616b2ac8012103cc7aa2a2c6d662f66dd8e880611b4d9df0019f0d436cbae665a2e3994f3661f8ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d4b0100006a473044022034849a5b0860f2f6dae657f02aff9e558543ef689c052b4066931619a1d1fd5e02205d843fb322134487f975c718a9aac313517f9a58a91e5ccb42ac5903acad60bf012103435b160c6b7532d7a6df4b1b32a67f02a42451fc8f2c2535a3350dbe0c889e5cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d4c0100006a4730440220653b76c650c8ccb86f8880761ace38192a55848f4ee992b13d845b61edd227ef022031ace2a0fb499bc3e66300820f8fa277f2b45df3488f66c8a9b92a5120b03fb00121027965cba44c23b05468d010b09a66c88f11f837fc82d93e65735270d1c0e2af77ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d4f0100006b483045022100d6dc421210cb807fbd8237ce505035c3434b8607c6d8eded004fadb0d1d5bb720220681a22e1903957027f574b16f3eac1b51285365f216ca55f2916233844efe36e012102eb8582dc08ea8270bd164d684176a105fd70dd5165766194f1613ea501b7385bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d520100006a473044022054acdc886ef6db020e1a2bbfb7416608133796ea0f97734f60a53d38cad59bbf02204364f26aa2555905ffd368546b136cb1e44b83ef3ee3f8d20c6b252585e6a289012103feee761b7175fcd481dde6568aecc1dd9cf04df3d65b70f005541dfa9403763dffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d570100006b4830450221008118b31c53fbf7840f17729835a3ad7ff09d2b8ce8b2f4a1ef861759194da10502203b63de6d057dc7793a41e0e7c397e5993580863777c17f00456c976d104d395701210239e8726d971e4500e1988e528f061ab92d730e4b9a93155ffb540d41c05b11feffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d580100006a47304402206b8b0c86e8bf85d2d4ba4c3348a26dc4601ffa6c21258314cf76efdd2dda725402206a26aed98b41635581f887299376e70ffc9c17080e34783290969adb457e4fe701210261191a870744f836b3571a815a1b1ea13a7aa0ffacbf3d45943986ebe3768b8dffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d5f0100006a473044022068e6fe616d8d273bcb1e1f07746145ea7441a3b3fe73b0579f48a28abc22f43b022072097a0511e2af032bf7ef0cb89b08a5c636745489bc5faf6dac703eda0ca06b01210200385356b4ddde07e2d9bdd89f457ba05c5e9da33ad7b50a92051bd2a91a90a6ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6a0100006a47304402200c241b59ae006b8105e3b334020ac5f13381fad06dadf25b0698e60b2233e3e90220478a91dbdc52c1ec8f1af7e400d8d1332c4aeb38dcd9944b551d99a3e0586488012102a48b5b01a33b59a2a3eadf23d108ce1ca951ab4d5bc81c4e87c7284f70e28e48ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6b0100006a473044022054190595b148c32d55eab3bc9a38ee35d3aa6cd6814b64bdaa2403bfef15ec4902202563745d7d4815ec9d232cd8b38a4bdb463dde55d51203498e381fc1b60e6ad0012102d36d24cb8d752b99f3c771d502b762ace0991b697c4e4a23bfbb9740a9f48a99ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6c0100006b483045022100eef3daa0a589d1baeb18a95e511624676e3e2320030d00e4b0a160560b4a296a02203d02195e9883de19490407fa99d972a858a8a94264bd28e909d908d7172ffc33012102b99681d93faf7d71411527c099d59def01beb5aca0bbb37f48df055a24627828ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6d0100006b483045022100e8ef1e3d015f8b83d4950cd754fd5fb9ffaa2afbbcb7ab38e457242388c0736d0220760d4f9b3bf5e7498c8a15ab486b4bf174bec6a18385c37382e5dbf45ee0a70c01210281b87d0e4b299a674d62ec6d25454bfe20337f8d7ea3e3b1e689615cb5526cbaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d6e0100006b483045022100b8daa336abf403bcd90bc233616adcaa17c2e055725dbae1fbaefb95e8151da30220193f9022846b60b2cc43a633266413ca0b04f83be5f329bb006bced45d10fd7c012103048a2bcd8bf1d2964705c847c4d767a531342071436cc1703562fd5ca7937f3bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d820100006a4730440220386741223d2f6aab0307d1374bbf4840363a89344daec60ef1e05d253028b14b02204c33aaf3bf08d89ca6921ff2334f77f6939ed26fc4aef08a3a587c4d719a26fa0121033c07e5f15c4d4e4fa886adabdcff18f5160a0229be7f97ea925b10096c867f5cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d850100006b483045022100d6fc51f59b76711a70e77cd2b0a07cbe9f318a8b3eae0f593b9b1c23cef315dc02200e3d77a869930b29c12e7e487ef4b39fcb087de0f56e99d479b741adc85b0ca20121036fdcf58eb2d612438d6117303f666df1bf0f29d09b3fa886b351b80c81480acaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d890100006b483045022100a1d17f403f7e3bcca15116e50daa4d1aa96b6f7b53fcd6b6c180541e53e9aaa5022073f4c37082067d60b1fc6d78d432928f8d950ce558b20de68def7aa2c139695b012103bba57eaa6d0f43f79a382db7fa868b7917293e2a663512ee0b546117164bb91cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d900100006a47304402206b3f60e339b0754eb37c1abf84d52c3678acb419a27ebe69d8640a7916a0605a022062840aef8c126e2fef8c9f26c574399f9ff42bb0c7e43ccd2989bc0c5c58558a012103b922bff588b20500c8565f39e16fa7389954d354e813e9d044b7cae10f7e5eeeffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d940100006a473044022011cb2c0fd65e4f040a4af0e800a9d0da4d87c67aadfcbe8f943d6e5fe82a7c9f022055e92b0c643b6343da526f628b7e0decfd39064de9ed7a4680ecf4425fa1707a01210364f61b677581f5c898e5360e126cacf49c54422502b47ae3bc28f2df238af0daffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d9b0100006a473044022005836c5a53db3cf1383b361003663d5c91b43227ae0ef4e77aa9301a4be2a7a602205a298ea75a3463064108d5ff5ddd7f5d948e1e7587ab74f451cf367aedec3cd0012103045fc5c01ebea94b876878e8cb1f81644720b16ae3b43875921c5feabef1cbeeffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d9c0100006a473044022059c867737de096574360feb30b967cae2d1c7b40071babaae5407212202e74db0220295fa86daf9570e5b0206c42b45c91377d50d56fcd38bf3d6e0f62c0e2b3b6ee0121028955e012d5ffff6d63758ed9793352cae5ef426481be6c3e5fc71171d1b40a40ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d9d0100006b4830450221008203c9ad7210a05efd7c149e3248214b6a10ef2d54dd83e3f4c3d7ac94a482e702204fab424b741654ff5f409197485a507a2e900a5b4c097d315bf9cb4b276165530121030673a0b89d175ff09c2edd0b310b9582c2eec64036a02d536882189a8a6801dfffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8da10100006a47304402205fb0f84e129e1c53ad675452226509329f40c378f1e13e9c1ea3ed25c084a11702201625ee2a6b758153600dc122c127bfad5f30000df090a2b8b3bdeb61580c152b012102db821d5fec8b536e019e96f82161686fbbb0b3b15246db02173c6e93f02d0a81ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8da30100006b483045022100e88d325a434642d4c60c892d4c7c926b4df87dddf25155b289bcc161571f0fc802204dc4a084205abe098a957c0a970d8438e5330aa59edea71e222b8d44f60806b40121029a75eed8d11d13c7b36d336dec0c37a9ac360d0f7c43355a1cb8763dc4845e98ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8da70100006b483045022100c838056c473164edb49850a3165a1410d47758d7b1b82e53eb2288714e5f844002206e8fdc6b5a9b0f74082ed640ea7bf0df85ec48f60ce9e0f94caf849e8793974f0121039b4dd60a8065305889b5f07fe5f4de59c8ab144dc851ba405b5cf9282cbf8637ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8da80100006a473044022054bd2e818703bd381152b2a9837295a22a7e5364a3715196bc0026c26284ed9f02207b6549d92c8cee6981bb84b85b566e3daa40c0bb5514574e1df8f58c1d8764b90121027d510e7ef2d251d74ab897b4bfae915cfb3979a043552c0d8ede26a95ad91fb5ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dac0100006a47304402203f421411be23aaa66d1db5ac9228060f97acdd62f5966ee7a497187b0794d6cd022069fd055bcc7b9f25f4135ae382a3fcdeedd6e57716325c5cc23e6d1f94f38172012103b1d2977a5cef19d66d6d12e74e069993023e4cd6cd3373e845be0e4c79290ee1ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dae0100006a4730440220027ff809af616652e7c323497c7b21547e900f000fd0a83e11b87acbaa64f87e022014cd4203e604e9c99a4674bb54d3670dbba24402d49798500dab0d1dfe6554f601210330f147db0faee2e800e1bf2eed4841793d0bd0d5fe692847fd7065af8b0e01fbffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8daf0100006b483045022100b665474cf5b8553756bc64d8414b3f6cd25fa2580a143362a28293bd96f684af02206e3814dd31c78adb0fe855137f92f5f7eb2215ca68f88959d113ca61f66cf7c601210271eed898412d9d8d04b21b2484ec39d9308edd10651373b44e2c6972e486f302ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8db00100006a47304402205cea8138fb7e544c8f54d2afd9b4528c1ea43f09f6f51123edf629718440bf2502202abca4f1bd41da14d6da97831db5327126cebcea7425d0917a05aebcc0b4bc80012102399b853c2fdbf93a7e0d320bfe8a64c4125f58d485aba150baabeeff5bb8b646ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8db10100006a47304402200b81ad3776e89920bfa72699531edde8e3e836ec54b49c7922b4a66fc7bd1cc202201b41cd2817a419eaf667a071478ad1a424081437db7b7db0951ea30040fbcbdc0121034d3e3498a4f125bfc0cf3eeabe8ae604910a22c27a825c5f345ae7186023ae82ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8db60100006b483045022100d029c7090bb9b64d96920515b158a9c79bf6666be7c755e00fd85c48c8fb03de022037881d78f67dca093cddf2cba9d6f93e108afff9d8db2f5b46507bc3b2e92a84012102c3d8316da0c1250d9d9f22f225d72021344ba9ea3aef22dc9cb89d8d326baab4ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dba0100006946304302201f7935ab4459cd8b8ad9b3afee270c213218bdbc2f1afdd1c05517225901ea54021f3e95f71becd2a8ce281427810ab6494a2e213fad920dba6f960767282bacf3012102dd11e61aed947dfeb87f4898e5383715d9c4064a18f92dec576f484eacb2770dffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dbb0100006a47304402201a05238c25ee15f4d19e763e99463dc4d8514ddcedd5fbf52a7a60dda56df3d4022015ea1ddfafa6d335347b0797877718ae31b35d1470593db2d3315eaab301a0c2012102383c6cf9f6f16dcb47445d984395f04b1a41ddd42cc66d0aa1b40b2a685d43b2ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dc00100006a4730440220743442be0b13d5022b8cf31206d25592e6efc1ebf11c22e06e73ae664fc50456022014882eeb158f755f2d7443983729c5b81cfbd30965d948606fc475eee1ccd3ef01210280010e2da50bf224d2ad15cd764acf0aaae9bfc9efc45a8d88258cdcb673e95fffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dc80100006b48304502210094b490aac0d953e517725d7b8244c6f2f059b960405ddce907dc005e100a9fe6022022a5740dd9a927fc26146f25288bb9a387e9ad099568412fbe76d5e11e4768af012102b8e37b15ed2962547879341e41c3b55659929ee5c259df0b740320d0d627968bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dcb0100006a473044022004f18fe83b4490b4eca0383d3b56c9055b29efe6ca94c3acda476a428becd04f022021035ed356c63e0647e4cc8cbeaa083ddb6702728da9202058a4612a16f69b9a012103661abe9ca452dd39e739dcffe5a57fa01b09cbb16f0c77efb7e83203c60b0357ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8de80100006b483045022100c60c5ff1453a041d06b26b81759f846cf69fd75fa9360fa1c15e679bff52cd650220325d1dd7ec3d6a2300ce070fb7e72d76dcbf822eef29b766a897e09efea4a0a3012102a86b88cd9ba8ae114080ac297beb46a1e9d94175018f0593fecf69fbdf0de37cffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8def0100006a47304402202e4a26ec62104dd8984c9a870f84a9a499b5ebee1f300b3f18065101e7f5b096022012f1ff7449c51fd7ff622c285b39b720cee505c78d4eb64569340b6dc6977538012102727f658519de2b214fc282a4ce9f6deaf09ff34d20b95f45f97199916cae95aeffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8dfb0100006a47304402202748342a9a3e51f4bd4169d0f4839d147aea77db107c90eb2b664f665a1f730902201577f054d76941945c3dc672ce30d0775fff5251375c63370e8e05069c5bfc230121039a467d42aa858bb84b7115483e4aaa32a033b7bbc04969b1b283fe1eeda525afffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d030200006b4830450221009b58e8bb89bd25151988bdec1619da76f99cea0d5f1b1e36535b53fbe69630bc02204457ffa90d82212f9a3d3065adfdaddde9cd6940cdfa9b56a2410ddf31cca1090121035a3e4b6d57a68da2264a66e8dd4f95f08773b6bb45dcb13c0c4c0c02a1370bfbffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d050200006a47304402206e0afcd5808327fe657e0e5d9ad420d145a186e2dc7c2cce3b2ca8934e037b800220398f2ee374791529915a7311a11d0eab48e246bba355d73c6c0f7dcdcc9c575d01210398b42c0bdb3ee0a36db5bfaa54df1af62c8e618c45d2f607d50b41981021f5e1ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d090200006a47304402201a7b5700f0231c8b1b1b985cca610e1ba8398dd5e2ccb00afaaa021685c760d302200c1d98f9cd633fbc53576f4f35c47fe5f92bba44da9d63462045d061bef85142012102365bb4d19f31fb2ebb9e0dc2a3de342ca54c9851e11e395cb90fc00372ff0032ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d0a0200006a4730440220570faa67153cdb600537c95cabcc27a6f3be50adb1cb34415ddf28716e28fd30022033024b95a07e46808d4448c7672cf7e55b62c4996dcc49d9728db8d8b2171ea5012102869610d6807e1b8fa4ee9fc9ec77a5c65c815c459ff6c0c43ca58a385fb21ff9ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d120200006a47304402200691a6bd9a218b55b22d7c8fe7e30cb4b5fc8d9f0f467105a12840c4242e774902202ec960bb27f11ea233edd7e8846061744ff4ef43d190a1410e3f5b77960b754f01210310d3e7e2dd65d14ea328df383f942ce917d764a74b4211f1cd885c3a15f07072ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d150200006a47304402204d5eb7479a87d8f7c5e4b10fa730c2c8f7f249bb98f33ac3f33b653c83fe6d5a022052ff9a19d2cc5d405efe6c487414d62b5c7d37d63b7e7ecccbf247abb1303fa101210395fda29e25b649eb29f8ff2c5553a494ef95093cf746a8b229826a1de3361daaffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d180200006b483045022100aaf10af8a32cdfbae477c509516dbc21d22e9d849a2dc98f8385a7e52170eb6002203b774d805c6c76e876c98cc2809f50aad53a18e677991b3fcb05d672a3b751230121031afc3db826d4afc2b8ce67eb4cc00f1ee10f42618dfff7147d9a9cc70e09c3a8ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d190200006b483045022100d060760d508f9938cb5da7164203a7ccdf7c953c637e2b1e8fd6491e28c3232202205ae876673c4ca0350446b86e8bc4e1b06aec36ab7d1aaa8e426f4101758c04240121022abaf62caece617e1e21f254ea8f039d15b3e1d3114c873bc2b13a74b3284a85ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1a0200006b483045022100ca3e9d9e40d47a35652e0d2cf1492b6d6f99ec73e52c4326c2e217849822521002203cf8780eac3153cf7e6c278edaf55f7b23c124e7258f25a0948dc9e77eb008d1012103c974162d97e336a85a0ab0524dff7642361aa223e828b28043cbe72914b70b62ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1b0200006b483045022100fd1061fd38f51e8404eee8de6bd32532b963c85b0c60b6b12b2762b58d2645b702205d16be604e7503a4adb0b89ab83efe0a71f0a3805788ab21cd2191f2030b0291012102ce403cb7fb712e1c9843fade390efed93527e69b909bc4080590108b0f62185bffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1e0200006a47304402201b2c7422c861f1afeb4a10537250a58674319b40eaed8ab917bf4c01a6e3ab98022018f5a40ab9c659ebb24e8366d997d401959e2b1c5db310ed3360ddfc3c0b55940121038787f749b550633c0ce68c87a5978c93724f21deaca1e27bb75f18b48cec83ccffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d1f0200006a473044022049cb99756a94f213c4a117667726ecd2c30b66cd3a73dea718378bee7aaf006302200d64a25a5489927ec6d64dbfb6ff1c4fcb2c02d9177b70586eb5dbb90b48ffb10121032c416ccb3b041baef859872db424aa5364116abae839402eb16d2e66d5aca646ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d200200006a4730440220730f2ba94915cf66bce625f231d4b0f9205334b53feb95426c6293519163eca00220707e1a06c4b574a91fbb9b0b882ceacee3838ac5910f39c4078b9bc2a5442cad0121026ce0c77f80afd4c0034136698a4a96cdcf0075258293d883bf9f4370a1d1d25effffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d220200006b4830450221008fe9b998a72c096aeb74b8ef285beaa82d9c22446fb19f5850defa23acff457d0220223cc831bcbad7ff1119059054d1c867fe98cd14f90f9f45e39a4ac8d695bf20012102a0074a676f3348c8ef8e8f9d06f8c619f92f21a816a9b5be96c01079133f9153ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d260200006a47304402202d08bd80d982ba29d7222e51326737fbff9ad94ede724c59243e650f49afcbe402202275771bc11143e9f336119144226f52ba7d57976447b7501878f4cee6639882012103dc6a39ca42438d74f372f2e6c39b78cae0a6a0497ba9b324b37323a429c25693ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d430200006a4730440220772a000a10c3f2087d88503030079805ab985b3d923fb89fb5716f11dac5afe60220555cef4e3c4dc02c5f8fe6698ae4e48410eef130b328eec11f7f42b66b638f1801210221806710404c53649237bef9592c17097c4d173029ac24cba99e2e2654da33ffffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d4c0200006b483045022100aef1b74b7a4dc7d34369a87b59de0649e67b1c6a2569870eceaaaa1bbe772209022031f6cb38abe93ae0beb2e70a72dd291d83137675c8a65af97c647bdaccdb3a43012102fef18983aeb87b4361a6d0df281dd301db5976bb29cdfa0f6eed403be5921941ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d500200006a47304402203ee99c495c372e89ab7a116a584c0233105543463aa9677c63b3c11f8e59de85022048b4be2b999e1c80870e2ca9829b6a13144c3d530a6cbf7353fbdd5472ce8a97012103912a48f56f2dcc6877cfa5a5b34d6d1fb545c2dafe35b3bb3224f7df2c744b62ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d520200006b48304502210093b6a50d5d21ba73d2f4eaa931dad23fb37d9e14092bf5e6a998ced21a5129d502205f678ffdce4feda9a0cb651c677700a08643eb2af259bf7f7e7e05075ea5c2c70121035f91879f6236f544660bc6ef4db7b54a75d81877188804b624b2451a22d9e603ffffffffcce475baddbbe9b5f28e614a5077882d98fb5636ac0a8ea882a8158750a5af8d560200006b4830450221008ef854b9f8cfff81ba5cf3840a7e30757e8a04607902585d2d28ceb29838d4e2022070f0a093cff8838bfe9a7183025068bcf14d5c3a034082ad778915612a775354012102fa32f17b49b73beecba0c2f8227b08683b56eb78c8a40edca596a9010c91c51affffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1030000006b483045022100a796aae8ee86bc1b60cff71107f85b32a564b2fdce68a3325bea0e803462da06022036ffa4e3cce3e6f61c961904589e0382da12e356c5118ae975da0f5cb4ddf06c01210265d1581eb36fb426a10567e42a77c021f054af9baca4bc20cca40c4d7e7a6b72ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1090000006b483045022100e112752ad37ffefe392a93492df41fd20b3cc00a3dcd8bc58d1fcca5438148bb02205edb6517da39e5142d3bc08125aa71d400417138caf22f402a57131ac73ae442012102d09c0636e4ef75d55f30e3ce8bfd0e15b8dad9f4125fc896269d8d94ccdcccbaffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce10c0000006b483045022100ee1558240424404caf77056eb5bfc77476744b556b9a9fb53fe46598de76cb2d02200539461619399d4c70fbe092fec1a79486089c253ebee07ce0dcdfd87131f90e01210398b42c0bdb3ee0a36db5bfaa54df1af62c8e618c45d2f607d50b41981021f5e1ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce10d0000006a473044022009da225ff9f6ec4917fa24a10f2a25e42cce512c4a7877da14cb289588bda61e0220315b19e7880821a941d11541baa233a2a43a2807c2cd0192def20a52ece188ad012102e177e59930592cf7f25ed9e65932249f4395e9088234a938aa9e8dd8fea737bbffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce10e0000006a473044022026a21b23f0c94b2e4fddfe0623e95ccf58733375ef3a9aa56c5ee85e2f2b02ee022068682ec97d429d5dac141e98d47ba6974428e3436280e3eec253da257d5bf5ee012103feee761b7175fcd481dde6568aecc1dd9cf04df3d65b70f005541dfa9403763dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1100000006b483045022100e7d9d061b253fff6fbc7f5b533661e2b08ce7d4496b80d988b69b389887b6a6b022036c72c7d0f1b1f349fc8307dfe71d30edd93a3dffd73b613fa834f3daca076fc012102bdca2c5703625f8a3a800d14cabb4b622dfe766e29cbc4e03f3e2faa227e4ceeffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1210000006a47304402201f94668fedf809b34c1950e29bf98e749077eebe7b555ac6f182d1cbe95a4cfa02205d051a3b51213779e0f550b584674d33cdeb43a169cd2ebb63021172f63022520121031afc3db826d4afc2b8ce67eb4cc00f1ee10f42618dfff7147d9a9cc70e09c3a8ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1240000006a47304402204111c3e5248ff15a7b212cf8bdbce95d4318a4267310a0b488fd8f3385d723c802207ce823aa9d90642244d48b22cd62de54c2eea000df629d062cd2444725b7b2d401210310d3e7e2dd65d14ea328df383f942ce917d764a74b4211f1cd885c3a15f07072ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce12b0000006a473044022018dc25150db8380232511b5cb9302ea3d903cc7d666906716b4e30f0a739ff0c02206d772aaadf196d0147c85ca297ee737d41291df5f4541ec54d36c9b755b9ac8701210200385356b4ddde07e2d9bdd89f457ba05c5e9da33ad7b50a92051bd2a91a90a6ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1320000006a473044022059f1028839ab4af6940f16a1e516283d8f0e5a82634c05677fbd3cc35f77e0c202206cda1e5ea5f7fbe92eaa3762848e504c0d7f40374fe3176d81ed366e07076582012103bda66744af00c2926e8a9fe7d4e4b10b44978e31b6c1c621a2dd2192ea1cdc89ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1360000006a4730440220019aa11c92b978eca86cd3cbb88ad40f9035174559bf802195dbb8ac2d7099cd02205196846deb50c0cb171f46f247de8f98b3eee3eeeca79dcc8db095fee0372ca4012103b85351a7b2041a50095248f463f53e82bf504063491099fdc3b0c9a83190bf8fffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1380000006a47304402206d2295d8bf8dfa5b596ea218b3badbb648371beac8550de84899dc33affbfd6202204c882dce7c35e7fd922c2e603fb3eea9a9b1f4a955bfd50ee2ca9946127c1cf6012103c974162d97e336a85a0ab0524dff7642361aa223e828b28043cbe72914b70b62ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1390000006a473044022020cf5cfb7369179e400e3025a2f78d5be4f975ac26287e634a159dfe1c857b9b022038736df5d7fb7db76ded1f590123f73858a358c85e4688de3b6f73000f2d7c13012102365bb4d19f31fb2ebb9e0dc2a3de342ca54c9851e11e395cb90fc00372ff0032ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce13c0000006b483045022100e7bca4ae4c32b339a2359f07b7ec2ec369a19e874f06fb4e7a7a45a6aa5a0d2d02204b2dec6c29ab65723761f9a1fa1fd71959714a956fe67792fa67cb2521a2517a012102869610d6807e1b8fa4ee9fc9ec77a5c65c815c459ff6c0c43ca58a385fb21ff9ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce13d0000006b4830450221008251823c9ca39a29ee0f4e2bec048584bb6ae7be78a758372111f0a38515bad802200ac17d99279c9725233d40ca3a76b0d4ea888e5d459b9f8953257303f7dfefec01210375d0cd09e670b856e4d4d78aecfeae7ab5a7512c545fbeeec5e886eba5058191ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1460000006a47304402206a45ed38986493559e31b146a54279f6d3db81b6d458a6b492bc5d6da1846e9602206d2361598a468eb52b6ebda3a79e0c592a803059f9108926e2960a0696f9430c0121021d6d6d74787f56298827ba2de6b362ed728437b43636605185bd2c7d38b7a2c6ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1480000006b483045022100a759eac0127618b9b67b3eafb4f542e5ba700edc002460a72448622f770bf5ac0220444cd313d27bb968e215fbdd5ef938d2bac2269f62b19f75831d2c8a6c1bf55e0121035a3e4b6d57a68da2264a66e8dd4f95f08773b6bb45dcb13c0c4c0c02a1370bfbffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce14b0000006b483045022100ac393f5efb0faff6e47e460d94705b5c28e0d4660954c86bcb8d2dfd2024bc2802200f9758bb634bdae1e15deaf25dd18a014d642e3b372383d569ef1a051cbdf006012103d44ec737656e1fd7b52f1dd5d6e223eacfac855527cc86e5c89ea8230222bb65ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce14c0000006a4730440220643219e1e5397c263a571c823f6e2b69c35ce651c4da3c9ca4fd89160a481c9202206878f8d2dc692303c853868ac5083c094e8da9c2f1bb871ef700e2cb980b8a7d012102207ef56f0c83b6d2fdf865cfc9c8398a0e91d5ed6fbfdf5fb8607f1050fadc44ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce14e0000006a473044022059f45814196e8b57b0f82de0ab3703f78692b0048620c123d6f649563ec6b5bf0220057d85bdc145d2be54bd1b00151bc99f23ede82366d3113078d31aefd154faa7012103c08c0d0d0e4715e37f3f434e06fc3634a820e9dbb7db953efa1fa2b707ddd61bffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1500000006b483045022100a0da2f47b157feea9366a90a779be3850997faae8554b99e12e3724f8d153f29022077957501320a4648124d3b358f0c6bc3c075dfaf6443b410d4e833f1a2b35a33012103048a2bcd8bf1d2964705c847c4d767a531342071436cc1703562fd5ca7937f3bffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1550000006b483045022100d8c72f6baec07631b9bfe35474e29a8f4a730d84ded906892f05dcc5aa3526c10220663ae767e4a776030eb98f529b96567f6e73913c9a2b519d0d4d2ff6a491e46101210281b87d0e4b299a674d62ec6d25454bfe20337f8d7ea3e3b1e689615cb5526cbaffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1560000006a47304402207b418b4cccecdc3109842012a197fb955d9838ffe22390343cd4c6ec001c6430022001bc698f4b73de6406d16f6217a6c992f47e78b0dcc993248b12a0eb4088868c0121038787f749b550633c0ce68c87a5978c93724f21deaca1e27bb75f18b48cec83ccffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce15e0000006b483045022100a19e82cd51a2dfb1ace2e1cf2c4c33452467412d55e7fe175e563e71f3b2cdbe0220757786bb52a4c3cfd0e6f2d56d67dbdf2bffe4bf0f124d9cb7c5e2a95fc364070121022abaf62caece617e1e21f254ea8f039d15b3e1d3114c873bc2b13a74b3284a85ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1610000006a47304402202044ffc93608403fff54930e308033adc5359ebf9b65435fd1a29204d42e0837022044776b7fc9b011bcf390df52dc0b88f7573da88bfe53edf1f59c2feb210df3b8012102da7da607a3d5689f3b548b84158cd7d01b6a3d06ce46e21d30a89f2ae3b38d3bffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1620000006b483045022100b6e413a1f591c6c41b215ad6637d209faa8d5efa2820c6755496c3f3d0095e6a02206749a0b8a3b985b1866d2b75538dac1b4b6c1250fc97f20501c1404670089158012103ad415589158489b4849f08a35d5232ab97b8af419f54a51293eacaa207f1255fffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce16a0000006b483045022100acbd746359056e3d2c511c76b3ef543a4baf5db97011383f281795a30e6f1555022006bd970c51340437ce3e148dea839bbc96f5adaaa03fcd20cb72f7e4c8416696012103c808a9293397918ae34b7c6c754554ed70f7b092899f39f40c84efe6b44b3cb9ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1750000006b4830450221009c29bd4b22b5dbcbc8b723fc00808e5dde928458df472f7f1ef508f8b4915acd0220344d78cca5a0c0cfb03a8d5b4217944233529173f5bfb8777a301654b49315cc012102a0074a676f3348c8ef8e8f9d06f8c619f92f21a816a9b5be96c01079133f9153ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1760000006a473044022046d183986cc6462ad04761a493816a31700ad9bc60c4be0589354279973ca55d02200f653217d2f08fb2bf2f779f2839c577a8a4688f5d345c5c6e6a8e0f5436a621012102001c8add5f438e5bb88384cb5a0636eef778de49c72ebebb820d60ec450c72f3ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce17c0000006b483045022100b5ff9dd5493ace5193217c279274a800200c1cae77e90b66da01eed7c9eb47690220383c858d65d93c097ae532c236f337163d07a98aa0e623ed1395aa586108752f01210254e690cb1831c658615c1eb7619d37baa29261662d643a0346019186edd5e8e8ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1820000006a47304402201413569e40213407ec132964bf8a5f5c53f787abcf7f8cd8a211f2b626f009b9022040dfeb7ed9c53cca8a1825bbc327f9a42ee4254b610e2de491d7436fcfec11ba012102467d9c0ba7fdcb7c5bcfb88c409da4abd7bb7f0f1392ea537375d308beb726caffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1850000006b483045022100ef1ebf71f7b7b33b29cedb92462ee186247dab4ddf5977b5f385ff90033c6164022052c042fb195caf30b8fab1376d5703abe1565c49b4dd69d8ea5fa483e6e415d3012103dc6a39ca42438d74f372f2e6c39b78cae0a6a0497ba9b324b37323a429c25693ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1890000006a47304402206f171f092aa1c83b385293e6c8651d332b0a26bae1e4a1b936f579b64c85b51002207e1178443936f66cd0b64265378ff25bc74422fdb57e3561323ac04e688c76e601210201a71c6842cbee9ff2e7c0aecf1042ce5d30103f4f73d8ef35447ba56fa78430ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce18f0000006a4730440220403520ed55944828f742a4b8c72feac418271e14b516d2331f6de2173248c972022046784ac0666c9f8e9495e9ea027530c8254d382677ecc3730b1e07dba775fdd001210290297b638a0a815a09ee946947567946ce8d40ad4ca4b814e42d4b86d64e5161ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1950000006b483045022100bd08c38e9b00a560692034bbd25013f50d130a335c87a7e727fa97b6c228a3fc0220287d22c6826d9fa683a3914afb5a9c04959de7355fd6beb25ace68db19d3239e012102c6bac6f6a26107f1b6ac7731d0eb1f68be1a960fcb936138d5ec1003e3009b9fffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a30000006b483045022100848a82938d6268129d76e94c7b777f8c0a1d599ce007fa34d1eef5a711cc815e0220240cd29affd1c5daba89606afae3e6d98583c18731f2346cdb72be6eff28384d0121021a5795b6607ad6e840c9e286bd0483015f198c14579a07b09abe352f3adc21a8ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a90000006a47304402205acabe46f8f7371a38e439a909e0cdfe69ecb7b9f8d1af57057f6291e3e5544902206e16fd082122e56e3165afac33b873dd781610cb32b324f5ba2cb28a1ea8e08b012102aa40eec24fd5aa30cf2ba80b1dfcce8b3cea6f81b63c4798c40c52b0641d7d6bffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ad0000006b483045022100c7d466f3db1f924d4c43b80a717c9dbf42bad03e305e3dad837d987417567f120220474d5655aef0d0510388194185ae579bb5b3a66bb15dab578840a645c2e24100012102dcc2a5abc3a39b4840455b057c912c3685b6801e7df26d3674ef6d2ac12a8d9cffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1c70000006b483045022100e2a7032b935736a85de81c73b23872c3c9bcb6122eb18a40962ecd02049f3bb702205b510375ddae6c39ccff655ee40d8044d2af612b595e2b19e0dcaafc6e22ff380121029d46352f694824dfcc800fb6781602a527d7ed003be2d6b1d64c8e6eef50df7affffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1d50000006b4830450221008ffc2ab065cb3a260ad98968f6acbf193018b0062e8ea6a92e4f687377accd6b022012826fd27976709a57c0148d4840964f4a3c3e18b7fc1c070845ce13589fd32d0121039a467d42aa858bb84b7115483e4aaa32a033b7bbc04969b1b283fe1eeda525afffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1da0000006b483045022100df98058d7a7cd1e6157cdb1a5a2b1bd889cd20a55ddfbccf8035c31b7357e4df02206ab0498e35c1e28cda73de832e7266534fa4c07ab361e2775f3f4eaf1d71b14701210253261bb6c86f395e68f7480f90e0e7a47b32ce0d56b75be775345a5fd009ea25ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1e70000006a47304402206ed58549646a47e9bc7dfe95fe060fc5eab35bdbcfad49b3533bb35d2954287d02203ff50dff4929b869c1ac746749f66bddd6a6945e228d11286e40078b143b2087012103cec48e102fe0a049ebc494ddd3d14d3792b6735516ad9b50297c4733a17b90d5ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1e90000006b483045022100d748aaa58a76351cfa2adf3fbed17cac0188ec7c822430358bb67d4c5c0493b40220358651be876f294274b82e4ab27cbe614223cdeeba7f18ed4de9eea029430f98012102b99681d93faf7d71411527c099d59def01beb5aca0bbb37f48df055a24627828ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ea0000006a4730440220208d5ababeded05d060511ee084d4bfb8445a6bce9f0d3344ed18d387175315b02201a060f0adf15f82bae7fc1ce52d60d1ff80dde87bce1701fec63829f8869cd110121030df38f26078d2072ae8c53866fcfce2398fbb3d1b39ae3ad0f79eb77de9facadffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1f10000006b483045022100e64c57c363d4d317d4c63b2543af5d18d5c80a8c19ce959f1b3c64544debcf62022054414f5c39ecd2e4b7c3598bca35fb8f44b8c443c6369806f47275c4d69124ce01210381e1b57ebcdb3b56c0da96dd3f40c4809533f3949d00740175af286551fd39e5ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1f40000006a473044022000af69b4690dda54e96bcc22ef1ccc6e597ec9643bd791693b87a7541281dc4d022014b7c8bda024a5bc12db33999a3561e97831b0ba05297547e5975dbd793045fb01210291cded3a99d54bfbba91178c3ac811e0545b9ae98594cd88165bd8d8a6c5adcfffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1fb0000006a47304402205b306ce1132daac159bb1616dbfebeaf141abb669a6e8c0cfe6083ce5d2acc390220688d5478cf187590de77896b1edd9a2a203e95262edb5f269eef7b8ea83ada19012102ed801ac57a9715ea9d33bae10cf77e955e97d3eb8ec3e0610b2e1618aea49743ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1fd0000006a47304402202493af2acfd48e7ef306a2ca586cf1ce37b0b0df15dd529978d04d0c126b190402204cf7fa00378a962f5a02c13af86da3ebb83eb41757f47b4dde7364e207a73679012103661abe9ca452dd39e739dcffe5a57fa01b09cbb16f0c77efb7e83203c60b0357ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1100100006b483045022100976aacbc4b3226fde372eb72a011f8343e0996675b5ab5dca8caf4c9411498b102204ab6c4955d76ec1500c7c918c58ffc1baaa0cafe7d37f3fb3a3369dd924de9990121027d510e7ef2d251d74ab897b4bfae915cfb3979a043552c0d8ede26a95ad91fb5ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1190100006a473044022100dd2cb049a9f33e199f8cc28e3e7679eff17ef0aedfda59399558c0c49db19d90021f562725a736cf9b9c12b5f1db508915bb520a83340271fb8c94e205099d33260121025ea8074d10f85c04eef3b63930923fcbb122a5c9dfdbf41a56b47e91b3473c62ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce11a0100006b483045022100a5b1934e7acdf80039d21c94784cc4a0fcb3df42a349e03788b91de12f5ccc7202207961a88464ddf26ecb8c46902b55478d4224255d5be4d3e2b8715c4f5c0b64a4012102c059b935facfa01366100691c91328659bbdb885e3c802467cacd44e92bea4cdffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce11b0100006b483045022100961ea22b02b1cc46a09275dd082e1f59172ad5db2db9a092c179bac9910399c702204172b2a043a152abe48acd87505cfdf1d4c7bc61a60e4106d156286e15cc39cb012102cd0581d13ebd3d022a63c8d86140e52bccf1b454f824ab7fefdfd6a338c0a4a7ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce11d0100006a47304402202f5ec2b5364ee715fc43b743f73062f04c4bda8e3f287b840f16d32756f58efe02204aee179ba38fcfb3b077ede655d099d9cbaf546bc4159d30f27669e360d4ede5012103a1cdaec2cb6677a444b56fb6f4c7dfdad2f16e0e83da9d08bc0ab837d44ca694ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1230100006b483045022100ff8373e26ca26ca23c5e0f999e5ee448ecc8086c972b64619653a31da0a624e00220361762c6aac55ed25f420152a24133dc731b0a36803b496602a5ab5c5d220538012103966efefa3922def76bcb9c9da9ca320ff071df2253a95e554e88f0a43dbd1af5ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1260100006b483045022100f153ca090f3011070d662bc4b07e99ca4b134eb18f54226a923b090ffe79bfc80220447feb3a9d45e98a9707ec5bb9b7373cea53207529823c0db76c8655e173c6cb012103c0eb8b1c197366c5aca991758cb9ece316d77cbdabc880279b28ef0417fa96d8ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1280100006a473044022027f3f6b2eaf4d288835b317f989ad1188e49613b44c068eef0ec1a9f44a7c98102203e27fa6e447b42ab288937e4c2c2bac355db38c2681dc293ce88d3b9791c09350121026596df661f5d6ce02be34806c12efbd77636e7c0e9e8685eec7e9162adf6ce7effffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce12d0100006a47304402203b55c002ee815b3bdd84fa67e7ce831b70e8e3e7b1b65ff1ec8f504093845ed902200ea8bdf7d242d4fc592ac9d64a03e72c98a38fb73cf06d80e783badd944e3982012102407e47a6ad48d7be1d7769a0825e1c80da8c6e138d4a3244d02b82c86b134b73ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1440100006b483045022100fd421e1001a1a80d0f84072d648d66bac47a69fcc376596cee7f18e17cb5e41f02200b38c605e725a14f744f72dd62405aee66f6679d104dc0ab5870447990ab1f730121035619b45c3b340326aef6829d231c44907d48f1e9a9c79f2ad67bfbac67391755ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1460100006b483045022100c46d879804431bd6213fcd9154be70249545951b25a52f753b7dcb821c280f42022007f8b7abfa8419862c4a37142b476baf5e05a67b094828d06779a4bda7899e4d0121028e1b5a54a6a54245bf21f0848d672d3f688d11e9328f944365b146e38efb4bffffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce15f0100006a4730440220102fe149d1bdd0efdd007a7cc71c3b83b0386a848551748e7654e5e9dda4178602202db140ecb33fdafb218274777c946f42c28ee486a298488763a7a3781f0733a3012102b944e9570267305e26e166d0e782432bc5145c60d9b399eacff1b1b05497ace5ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1600100006b4830450221009224cd25356cfda7872374fccfc4113a6d050b6810ea69b6086722b30e653e3b02200eb98f74952c550e924daea631810f0931d8b4ff9327244fd38e8ff2accee5c301210394e8f35ed26bf683033a5275478aa2fef20dd21fbf5fc5baeb9ad4c4d4226698ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1630100006a473044022009eaf02543c90f2e987a81e1eef361c5315dbb17bb30475a4b2b0d1dd207d1bd02201210a494912a07390746a10294d9f9a371d06b9083625b66aaf43b17d41e82a5012103628f06885c53e23474d28cd2610288270d191923617b0856e9e0bff0a807aeb8ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1670100006a473044022044b02743085cca9ec5a2d5a81b6b99cfcb4339be69ba8b65fd9fb74815310bb902203d97807b80072d56ef4aff0395de843fe965323a5484d7edc2781af29654c7b201210360e66e446a61398bc9232016e6a2f34e5c26f362479398702acd988ce66807f1ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce16d0100006b483045022100a3e4fa2e154c224a621ddf06b086f79e62f183b89834a9dabc3d2dc9f468636a02202f0bfd705f6398d94d8970b305f1dba71eeda8f601ffbecd9f60ccc87b83008a0121039c596113a41cfd570dcd458350e7370af3986daa6e3953a1b5f6c4d9bd3114abffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce16e0100006a473044022013e0955cf80da8f0662294963cb6d3fd4c0eb694b7a7dc7d8ae1f615205a5a3002203e1790833a50d3d662582987ac0ecefe24db18987ec8bb3b46a6f81c2ae9ed31012103c357a607dfbed1b44707ac9abbc0b67b515a3369a10748dc3c5164336a4072ceffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a10100006a4730440220460db28bc3addb3370375346727656c1a8c55bb482b54583e4faf9466ce69bf802201ca90204d80bc78b716b84e2dce5f456c61c9de267181493149ad3d2c81388920121030f7d9bd8007d826c505a99dcbc9c155d1fee0bc95c4cf820501cbbd0566b2d0dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a80100006a47304402205a9859cc2f2518dd90e063c9cabad05a73657d133367687ca269a05558b4577902205aea5452e9feb3f57737b33c7d278d429acf81d66ca3550579d4cb4f3f098467012103f96fd1a1f4db52fc0457a3d13be145d0a6f332d4e70ad776a08522d749dba056ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1b30100006a47304402200d6c40bd724d9143caa8a19f9b690eaf19d40971af193b37986477432e7cb7a202207f1ecf7adefb6f34847e200d3236d4754213a2540eb639c3ea719a81ff7ab4dc012102727f658519de2b214fc282a4ce9f6deaf09ff34d20b95f45f97199916cae95aeffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1b70100006a47304402204b2577ee7c4e548440eb876a2ce5b2108f5ef2b50cd29e4af9ba76c9fe0a6ece022076de26cd97bada67601db24f5c1ee7585aa441256b955ea1a4100e05cab5f4c4012103531725f6d0eba124ee177084ce0be3312fc88d45ad517ff08791b95810f94670ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1b90100006b483045022100d93a9613b27c7d264e5169757cef11ead4c89928df6671df78adb3916d86727d022070358d8e0837fe188eb1f5ae61f8ad2e0bdbbaf4653dad1fa7d2a4534177c4cd012103771ab78fab9c924f56d9bed1f4567ca8eaa7b84958575f7724d1b8949ceb2d36ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1bd0100006a473044022036caa3da4ad597835733b9988a0c2c93a2ce84ab2cfba3e881ae8b3d78caa63c022056a559471c90dde6e92ec8c6e043e5f231ef229ac6d8938db3b07bf4c302252301210395fda29e25b649eb29f8ff2c5553a494ef95093cf746a8b229826a1de3361daaffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1d50100006a473044022053ed4be0141efa9996949751e9c0ab4f1a1ee2b9598836f9e93282a2bfce86db02207133eb7956820da32dad04c275735a9cd973839d71f0b4f8177d45b027dfd846012103483a33dfb5497521fe2133beaae584e2672327663d930cd866f24886ea51002affffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ea0100006a473044022035e53c2f8502874c854ae8d9d7ab6aaee793d9d2d69d814f82520422a8685f8102207e387d04d3c6fdf5b3e767afb6ba5988b43a10fec28dc798e3eebe9f048fbfaa0121035d9ce97541161d79ba3346e6c755cef41cc110b2fa78a658c349b3ba8e7ddbe1ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ee0100006b483045022100c0f43856a459c691b1065b11fb80c687618f339a13326257bcdec0baac9539fe022055e2273109decc4eafdbfdc0456b0dedf53d484fadc7ce5cb8756d5a8c159c3a0121023ede75e5bc13b2103eb0d3c8c7dfb60b6c7b810f49ce005a55ae4b7d0eb1f658ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ef0100006b483045022100eef38a4bb2747e5bb1800c3f4085ce43e56fc868aff98f3307a0358c158e33dd022079862e3b9f1abd528cb9a41b842ea5ca7e04212e810d65ad4fb899a9b0c6a2c8012102e79e860ef42ad0f30a2f347b4c06dbe0d82a36ce559fa65044a7fc033372105dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1f20100006b483045022100866fc8dfc71d4a3e6098b27e1f837dcb18e48cc3aa7ca3d5f223bdb9a7ccf8fd02200ccb4860b6375794e17eaf20ce7cf01cbe2e392c989857c0c1d055937be3b845012102765b7ef38aa3489505eb3927828dd8923aa0525d117a7ae20b1f59f96df0c7b1ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce11b0200006b483045022100cbd1c355903d6363fc5cf087016ddd2d18609fc669eced315e8ba9bdf6abcd1a0220027940c9598180501779ec8d1588367e24775d1982edbf54d601e00545e895ab012102812793e164e39f5631e622575caaa9cac7bf43737f7f95302280566b8c7f31aeffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1230200006b483045022100c6941f9c43f6257ca934f984adb1bf248f78098f40f72bbf2dd6aaade13f06d50220099e7a882d56cf1f075a2ed8106e477e3c4be7eac3e2de113fb7440fbfd1ab6d0121024f467b75f6c16df2f8239406df5646651b6be9e9f50b504b60ae9a1209a1e993ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1280200006b483045022100d3d4821b1600e7fc7c7ce3a66377b6085f5a02e9e67c755bbd182d34767e7fa8022017a414ba662470886ef289a686f761e27c6fc2280f5cfa5664b1e143f431a3790121020d934c98a189f626654c773dcb53de3de5690b48f0fc64ad92b25f8d08e9015fffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce12c0200006a47304402207f9e201874f3ffe97fed726620eb1b3dfbbed6f3ef2782caf09af8cf8a6623030220021479bd9ba60b76ffc4f081b5817c74b103d99869982d3b408eb678798d7e5d0121021813cdd05350838ff535db25d1605c183c7b4141d0ee2ef2bad24671945f35ceffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce12e0200006a473044022017c26f22dba6fcb856906553a64b4500749316af603077d318358fcd2c77ad970220230bca1d5f797d53a470dfad6278d92b2b94a505e6e3e8c33a11946c71963c1e012102a48b5b01a33b59a2a3eadf23d108ce1ca951ab4d5bc81c4e87c7284f70e28e48ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1310200006b483045022100dbb4430985bb573d8b8a577ca5347ab0d195468a9de0f23b69f5c9fe584f5dc90220293bae1aa0d291dcdecbe147c767361b90c43be5ba8a01bea34f3ed34caf4a96012103a52b0909c010f6df76c29f4e53ce078884d7a0edb027d3a680cf1ff2106ec18affffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1320200006b483045022100931b902c13c655ab99db6143feffd7c48b52491bb41491def8cb1c53f34f75ed02207a08369ec4a934c7136bddbd8570eb557b0c865c2d7e6d56c757ab7f7fa4ff6b0121023a186f3c944d8349cd144d419f2f043eebcf260f5cf06557d87a11b731c0e76cffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1360200006b483045022100f9d4917400ec6fdc41cdf2274f1760b54d1bcbecab9deb00efc294380d1ffc880220631d22cb4f9f2e3a7e0450023e6f089b6d00eaf9b37925d4bbf46ceee71b81a4012102c686a2956d0d18adeb6af37438ef2392a7e1b0c070d253212d333013500c408affffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1370200006b483045022100d8b04e92ba289360d3589e77ad35126c5cd759787b4bfbe2ba8163f3a9406f6b0220478f3638c63af6d2c6e5a2ef890523cbe4381a5b8e174673d599bc453cd20ce2012102d091a45a2368c4fa118ad23fe1759efd5b69aac7748ebdc04a3c7956c772bd42ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1390200006b4830450221009a5d8dbf8561fab292d34cba14d1b0bc76c475fa7229f1dfdc63d392349c7f770220343b743c1db463b91b443ef3bee68eacc92f01d6eda9c27a655bb47ce1f4ef700121030d170f347bc5ed046ce73ccf1a60d017ae7cee5f7254104bac52dd0de19ad91dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce13e0200006a47304402204446051fee410f77a847137e376f2f123575ae8352c4f11c4271f9c42c8210040220560aa920725767de3930e3b35473723a7ae39fc543ef8d10972e3508a142e7a601210367285ed00b1ea1c032beb9515c6ccde95b57965c483871b83cccdb58c20857fdffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1400200006a473044022004bff4c7ce6489cdb962c1900274a2879a9e7388c00267c4833f0742aaf54c5302202ec1183039fcd4c48afac3a97a214776b4d85b8cebff1216deb4c74d73fb6a420121036b80696a61486e2fe3bdfea251522ff9e66eb66a4c5162fdf60ac6c833ea90d4ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1660200006a4730440220679fb3854cf2634447696468f9367640b61737c23883bd45235c87d734759f0f02206981cccb33b6348a2f32c4abcc2b34e2cc127c97a9328319a464a3bc7ff7bef60121028035704b48f9cb31a48e577bee6c22f6c259f9b6b23d6c2cd325148e8112ab12ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1750200006a47304402204f79a45812f628cf1d11b79adfe77cd1d7a0ade3f64e983d5e5feb1e6dac132d022021ba37477841b0370cbeecc3c9ed844c1ea1d0569f4bccb735b772510023d45201210261191a870744f836b3571a815a1b1ea13a7aa0ffacbf3d45943986ebe3768b8dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1760200006a47304402203f35d4957abeae071b8f0cd2bd8acc52f364aeec88913fa3c75c5328da0b400a02206e6a4a1209bd4c2bdc6435aef7c9b2439ff0c093f1fc524dc4216d21277933440121022981500e07f5e6bac5b5187a33fe6ece5962db6f98defb2b5db580398ace645cffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1800200006a47304402203ed2fb6c30ebe4ebefaefb23e37e4ee7e636e46574350ca8da134a4c0176894e02202b105e20c5178946c576f2f530b70c532a9ec83f0d23b0769a8a5cc62be494e40121028ac506e0e8d1a686e602f6ab99fcf9db7d91f10d9f677f67fd5e3f2f273b167fffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1810200006a473044022053a357744855f26e6c45a8624588ddcc5fb697b08e75697b61105110f444930702201e2e5de286be705bf72fc6a619812c522b80f5aedc917b9e041e23cc52225ddd012102f9b763a3b03e3a2efd7861ce9863c32e863e919e96573c923581e8f64fcd495cffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1840200006b4830450221009a4cb0b438cc08110b96116ffe7a5f990feade8fa6bfe64e9cb53d71f0d2fd7f022028c58666bf6868e277af9f1f2f086b4e2be80ade355d66ed967b7f1c8aa444b3012102fef18983aeb87b4361a6d0df281dd301db5976bb29cdfa0f6eed403be5921941ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1850200006b483045022100efbe5a98380d87a33a1b32415542ff5804a3eb9e2849eb35a7869b812512610b022019f08404a2e2a990c4ec76d431d0b54fd990c7d364f56b0c9cd0a6e3f72f0d54012102092c130bafd3f042a14faf0791e49dee1c4e4c45fa8151f8c29e28a1eb156065ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1920200006a473044022035250088d01cada30ade05f3c3b36d70d861bd1cdf06043be51bbf8a1490275d022076c597cf590d29983e7e4a1e86b27d56fb7082927dbfbcce011b7493da642b230121026ce0c77f80afd4c0034136698a4a96cdcf0075258293d883bf9f4370a1d1d25effffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce19e0200006a4730440220776d3446fbcc8939e09783c04ea919190dd817947d9700df4f70f095c1777d2002205164b3ad67db0578bda2da7ad6b43ca6164d8cfdca77a080b4200fb1bb503bd00121036fdcf58eb2d612438d6117303f666df1bf0f29d09b3fa886b351b80c81480acaffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a40200006a4730440220093839389b62068ed30bc99a49d738d482022f88c6cd5176b109d44483a091cb0220684c0077fe2ac4bf51208dbdfba52b79d031afbc3e2629c21f7d1630383214aa0121033f10a61831dcba9c5a55a79d7e4889a24f71e2bd65f34ce770ec07654fe9c5c6ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a80200006a473044022054e1cbc2ddacfb9d34d95a304bb7f78d2dac06b168fbfbcca1d16871b1faffa002200794a401df56c7dd0dba4f8f2bde962345e2e1ecc89974056c79401f96f7fa330121029460ffd6c8b809d3cf267772a31a9ad2e94a0fad6677446fc81d03e5da48b73dffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1a90200006a473044022065a97b7d338e2476fd512d4895a7b8359cb7fb096b9401206109735be41ebab302200d556b237b96831f0b558c8c2bc2bf4614c237f893ea8c500a7656e518d3039e012103ff89a25c084b465f1c5d854078ceddd639920e4a06b1ac84dc033fee257752c3ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ba0200006b48304502210095d50f2221faa05a2f24f7abc226f3c580141969d72e26d0b7d706c1f95d69b702204929bbb23f7712b19c9cd84ee774a7c845e5dad1873713945904666acb0f5b52012102fcd18fe4278faafebc53b6da5660745d2f018def26e4ac1c23f055893256eb61ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1c80200006a4730440220154b98a27af29babd05fbdbddcd83c2945c12e193111bb01a81ff7c6d8074b7a0220025d9ee492e11b4f35ad0fc65c817f1371828a4961c3702680c0c7d5b2ba0548012103421a402b70c808024d2b6e353822aa266272106b814b4c84ccba22211d2288dcffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1d00200006b483045022100fe1af213c6c257329c6b91478180f36b9ab517134359e2710335e02c1479d302022050a2063bdcf822ed723e48d10ba43dd04a3eb8ed5ac4638c9be5b2f935a331a8012103cc1cb2bfb5a8610d0b253b93f9bd07c2bde18e387b149f2947b753b36566c511ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1d30200006a47304402201d6935d87c82a1e0d6c2fa606d0bc8701d047db1f57edc75ab6032a48c18d60a022037b3c5c7262125313c39886615ca74893bb863688203a7143f34b0c74746c7c301210257ef3ad11cdfdd5206252442bcb4a3c8bb6aa5c333e9292d28a6b08acd627c68ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1e40200006b483045022100ba49330e9f406e4c86e9967c64131bd0700b141f3833c75dd0044ea4479ce8e602206ff81e4d19a934f76348973aac37c345fb105371f288c7e217ac5fdef3809c1c0121027186a3f30963c7d158c4fca8c002f8565d9d19e010800f352ff841d101068eccffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1ec0200006b483045022100c52c36c0eb07d44c8f16179629353c3ea91a50f2b8c29ca2389c87a96f5edb780220087db3618d5258513284139dce469eef56b20c0388b3b508aa08f060cc73988b012102368b25c7524d1dcc32833d493cadd47cb44078f321fbbf0ce3ec4695c1f60f88ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1f10200006a473044022027fa07b35fcaa0720e069251fa2c0f89fbd80aa24688deeb3ce6684d1e1a787002203aea48c806ac23d7ccd9cccacd8993e0258ef48f27010247b0e3ab3b6e269bfa012103a841b267fbd3eaa91bd3cfafb1e825bc3ce407aaec3dcf141c3a7f3ba73b85a0ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1f40200006a4730440220670673d5e0db628e220c73e17aa0111e24f6796090fd66605e48825beaadae7b02201e5554bf875da04100c60f310f6ff44ee37cedf6457efbb8e35eb459088832580121031127a9b77b881ab4ff268cd9845cf781f63aff8f7882e0a7f3e207a720072751ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1fd0200006a47304402206f2314f3361b7a931a18598d5dc3a05eaeb6fd032b88c41efbfc7bd0fd5707e2022046b6866073a3badc6615fc1e67897a945a9b4b097cfba7c679efec8906cfc18d012102dbd4392d0aa21a4ed840662efba31af122eb1469ae9a02c4c2f83a5c8095a7f3ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1fe0200006a473044022048eebdbb1590bb51df31a0e61a2fe84e28380fb9fc2f599abb0dd97c59014bc702204f809646714ea082bf56d0c70a3d9e0a4659610f27056415d9a2f523ef5da413012103c017e13a66a2fbb5773eb8c158fd91d87d51398ee06058d52874555e24d90439ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce12a0300006b48304502210094178aa187fb866720628d18efe0273d3d23f6d81478a73f600c647fdb2054d802204b18dc266e41da1626f763df02d7287384a41451b8cf87421ef765bb5dda37cb012103978b1b884a950a5c50b0ef7a9c3274d03469f06cd1c4b6a9efa35572442099f4ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1410300006b483045022100c7431c64b989d55da3bd961e9476f32fc15ea62ca7b564f3da0920ccfc2f219b02205b3826c561c8b19aaad27b16fd275c083eaf5e4db56f332e4fd21469b680185f0121022bccd2c3fe9a40ab0c9e6ae7cd4555920281bce457120b58a62f237a770f35a0ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1020000006a47304402207e2ceb28d1d5ec8a3a2bae661d8dd900da5c1efaf2c62d0479d550c4fe5e05d8022011ae069c65ae1f7471d41835b7b7f18513bb316fdb0662b280e892083c5e6032012103cec48e102fe0a049ebc494ddd3d14d3792b6735516ad9b50297c4733a17b90d5ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c10c0000006a47304402205e30558218a9e2de55a0c2c60fc64f63f79d6cd9f3755d04b7b2059cea909cb5022045ae6c4d510ab2bd2b36c0fb1b26849ce4aee47c68ded194adb2713752cf46d1012103ad415589158489b4849f08a35d5232ab97b8af419f54a51293eacaa207f1255fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1140000006a47304402207d0e11f83485cb2e11872e112dd9ebe3bf915e80dbf7fd32dae074b40746046d022068fda22c86fdd9221ae00ee47da62511dc4c4c1aa06b3fca3800f088b90756fe01210319587887e9c21c023db40d7fd0bcfc1acbaed6796d02c1d6e66a31d0adebaa16ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1160000006b483045022100c25b07d519298d806e2144113a123ee190d6500223226363dfc5a4f194157c2d02207515d1538d54f66a197dbdec6868d035d41080944cd83c654250ad97efa6a2aa012102cbc5aba426b7bc5ffb99f5c3dceb94a6aec3e538b745cf2ade901614831f660cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11a0000006a47304402204b583ab90021b1114c79234a0c2f808724ba758e7eecc264ca6267c5544a60a002206584514632f12f4d2ce46683acdacbfd9d80242f522a2d037441352c29bbe1ca012103dbe7ba93d1eb0dc93928d2f6ce4e8a58786c5a713db103041f08001bdf6fb10cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11b0000006b483045022100843a6ebeec93c84e1a7024818a549fd8a81fe84f508c6f8db826969f6831d431022057c163146db80b195ace0ca7db23281f80ad82255e3277bf17c60a501321f6d3012103f96fd1a1f4db52fc0457a3d13be145d0a6f332d4e70ad776a08522d749dba056ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11e0000006a47304402206033b437f9eaed1d69b525249b99c1fde9b08a230d877f08d9ed1bb0937ac53e022006583b02855dfd2f0758263f3e15cc8db2950267b1140132c49f4b2f063482d901210355de154c8c1798416b3a9ad0a253c3b6ac8cf3f86744f3116a5a024f8776a0b3ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1260000006b483045022100b7c8006e9ef1a5388a03f4515559c7be9d4a3523a872beb859bd04f3d1c094a902204a1a77c44d4dd31406c1b5a4a0c47ec7d6a8229f9dceee04ffadd5c6cf682f2a012102134f3dd1d9aa169e979cfc942b4acf53f98f9eebd6035274e63a26488ee18481ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c12a0000006b48304502210080bd1b73bc7d89b162e759832cf34e4ff19f859338d245fdc0be2b082f39c69e02207b93a46e8ee07f28e0617b6376c5657119cdfad9bc1c6365493adc7ac91398a5012103e5c650c07667218e554028e18c0ffea102484ad04ddb1840e5a8b1330dcdf97affffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c12b0000006b483045022100f85e9ed8178cc1197ebb4b35f391e698ed19a1ced00737f4e4069888dc3e2f8d02202eec34d757281cca45433ec7f3ccf1477ec52fa601e6196f074e76b61e9c64150121029d73cd3df300cc294c5e08f354ab262e75f33e2cafd0f0c5fe9d640b5aeef2b1ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1310000006a473044022072b09fafaeebfe781e3a15524dac07146624d7677a162d4bb506077ae2c349a402203bd79dce9df9bdb2331bb084f3170ef43427bffabbd78a40bf9a0daeb60f4fce0121031381cb42f1d3adcf86e68d1f293189b11390543b91ca52e8dceaa03f9b30fb0effffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1350000006a47304402203a693560347b2ffbda244b509b03f1e8c8cdd9a3a24ce49fe8d5a340a6263ca802205d6db80a6d2569e6d3a611f056fc2c6ee557f5cb21aac34a0dd28ff12d7c18a40121032aa3ecfcfa7a4240529f51d0ef4101164b4986c156f82f74426e7aedc9196beeffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1380000006a4730440220780114e1a5cfb1d0d438e6b749da50a71f72448d96f7db63f637a55d4e7d323c02203a7c9735335711a506902067493be57b64b5d94b1ed2a6c97253c70701acbf82012102f9b763a3b03e3a2efd7861ce9863c32e863e919e96573c923581e8f64fcd495cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1460000006a473044022048dfdca6c8d4388167141b9e66952ab7aa9bc84975ca9871d2439d0cbf32a2cd02207777703ccd32aee6c7fcea7fe737ceffd3ebe1a2c5f8c5e240da6436d89d3a0c01210243a7aca40e7cdecfca37b1166207c581a3fce3d19374a4d3b8476ad6d1c70681ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1480000006a473044022051306324185a84f72dc97c72505739d9397781134c16bee0bd677779a3d42038022051b351286993c783accac0ec07a983e7f4a54c5299e9505d05e4228bc9aa6ce30121025ea8074d10f85c04eef3b63930923fcbb122a5c9dfdbf41a56b47e91b3473c62ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c14d0000006a47304402207045360fdd9c9dd44bd4c2bd82bd845fc50c561dcde952fc9b671909ee180d93022063fa229ea02da39b564876efd4475e2b90f1241d096abf92a03979f75055177501210294a8388e3dae50e5270bbcc5d216e2436640ae94e79f72e11369581dac0ee8ebffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c14e0000006a473044022076ba9aeec5c747ca6d4e110d2874100bb09b6fa79dc2d1a7477186971358bb62022005a30b40fb4dde5c0c32b8009c01ee8381cd709fdc6966a62cc0b5fed44d54de0121026cb924cbcc18026ad8a1863a0ba8e138421ee71d94b1209b3fbe80f3ade72095ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1510000006b483045022100a5df0ab8703d3ee32fa5d9ff2e5bf6532a2c88069cd49e1f8104f7371f93403e02203bc72f5e763406e3d5a2431f46c73c24b7b90cae435186e6118dfe07f6a4b0a501210240f55a69fe7db3396c0527e192be91e194ab10fd66540e77edca56cdfba8b1dbffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1520000006b483045022100b47b3f57485805b68b588a71e926150f781934eb03fa03e820d5d6352edfc75b02200460e42c19d41056a5fd609c5be852cd24cfc2e1bbffde82d3ab7074ce32a336012103c3ad46bdb26dc757802c7fcf7ec3ad7c2d80c798371314a0b18cd7116ed8e79cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1540000006b483045022100d43332fddb8939cdc4bcc18f2aaa708a49617b8dee4ac192b02f268731c4028f02207e7136b3611dd6fabdc23da7df847b00427bb4de75b5d7fd78a24b3b0fd42490012103154ae5898aa507a8b85734bc65e55a05f8ef7403b5eb930d2b10c6baaeae5bfaffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1560000006a47304402205cb847fea5f862fbaa3eb029fb66a7c2169f034a7609b43b85d963f8a42c053c02205c5b15ee1ea0a04dc7967a155501701cc4491ccbfab121589b03e3d74ab42da70121033f10a61831dcba9c5a55a79d7e4889a24f71e2bd65f34ce770ec07654fe9c5c6ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16b0000006a4730440220085045b614c0a88a793a23d1896f1cb4ecbe0f99a690a9a5f5265c4d39effaf8022055c98ce76470351a17848cd8c7eddd588b17ac79fff41214de315bde5fa8cab501210254e690cb1831c658615c1eb7619d37baa29261662d643a0346019186edd5e8e8ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16e000000694630430220449129beeb6eb697147309bda4503bcd54cfdf40c16adacf362c0a3982005851021f759ad3a2062961de9039021fe544ae6dfd26fd823558b8aff3c03982cad8bb01210381e1b57ebcdb3b56c0da96dd3f40c4809533f3949d00740175af286551fd39e5ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16f0000006a4730440220791daab85a89c37bdfc66800cc0aa8f301d1d0e074efeb22d953db7ea4d6e051022064a53999ddcf17140eaeca5b6281e871d35158c51634b5705d551ae128669d6f0121037229e6a626c5643a8775db71891525f555ef31dd5e17faa2f1f359875c25dfdcffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1700000006a47304402206f903ddde3fd2229d0bd46da2e93d081c92496530bc797934a89365f716940fa02205ee7f7789a5756f15382f0ab6ad5930c429205e81d27be3662dd4d478f6f97ab01210257ef3ad11cdfdd5206252442bcb4a3c8bb6aa5c333e9292d28a6b08acd627c68ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c17e0000006b4830450221008e99d744660ae4ee80d61f3e289b6152717ae18c186741fbb5871d6e8c602ba102200a49efaf0264d612cb280d3228005ca4226c693c8651dd82ccc99353c6f56ca101210275f3d5d97e27c20ec966c8b3915802dab7d9fcf9aac1054de04eb4349ee23800ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1840000006b483045022100d0424db7363d25d79d94b39ad46932e85c59db92bc7d69bccc54bce100270ad302200a56e8aadba19c1d826cbe04f5ab6ba9936b276fb1940f934bf6d0123d4c1142012103bdfbdfea12ccbf3f46026490bf9ae6d6f179e08523edef0c65a2842366f83b9fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1870000006a473044022057a783d20b70cdb2cbfbb567da26ffa725bc127994b964bcc7882a454c5f222002201834c10a2b8673457dba323f96fc489acf754ae9e7870ba4b3a968fabc617cc7012102de203808d960a70c9c03fb19b8b454f5b39bf2db7e539b329aee1a224dc10c30ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1a20000006b483045022100eeb03c49d146f9562a3e1b71ddb5a3e67a623ee426f9388ca3c48f9af64edaef022078c5670fcdb07157ccfcbe96a9c3cb8a5716bd6041ad2d882b4e2c8d994199f201210244b5dc8420f26953076388f782a00cd4a5e7f8459fbe010e07e46209e2e16d46ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1a80000006a473044022052b259d0a727b435292de04e0e5e3934e220ff0795e6431223eaf2bb4a029e8102203bd8f0965fcdeaf61d1eb0cb5dd8b915baa564aaf8f6123c0872e87d024f1ce7012103ad0ea873e25c5df4784476028a1b9712b488fd43f3d1328a78b6087251b148d8ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1ac0000006b483045022100a39e46811b1e3155a7591191ffef7a1f71119767564d3da0bc86fd2bdfd89d9d02202704758039b9b8b44882cda103d04d81fcda07166844bab9c155609351c1209a012102383c6cf9f6f16dcb47445d984395f04b1a41ddd42cc66d0aa1b40b2a685d43b2ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1b30000006b483045022100c445164a1e32975beba08880f10f3579b3f43a1f4a994a183a2ba517de03d2e502206480f1c5a629ed1172d3f830f1dd2e99e501b6bc422bc0405b45d6f7b812a73d012102da7da607a3d5689f3b548b84158cd7d01b6a3d06ce46e21d30a89f2ae3b38d3bffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bc0000006a47304402205584beb0b3396b2e500d9b1b36a4a4a70d870a047629eeef9155d4701423a94f0220252ebec6fedab9c85a52b26bdab1d555fcbca9cb964366ae03cd717013f3abe2012103a841b267fbd3eaa91bd3cfafb1e825bc3ce407aaec3dcf141c3a7f3ba73b85a0ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1c10000006b483045022100d28f4547be7d4bf9a542f02215689ecf6ccc92819416828f15ddbdff6c8bd44302205a3c58569507c10eeeb772411d5ae70235b94e2a969ca3e44aaf395d7d8740c8012102f8c0685818898b45bab049f8a425553ca599649058bcf93f4bd9be88e2f70d68ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d60000006a47304402200814800f4e931a46e5992ffd6b8bfef5c801862287d1c41c4ad4dc2723fccf3a022005744606cb083b5af3b10f85367bb5014ccf9d9054eaca427c8c26bfb4afe90f012103be185088cee0178a35d7d9341fc759408cf97ac2735bb05fcfbf6884b1548e68ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1da0000006b483045022100ab5de2d01a7e345ff79eb6000b25e017a690b98a5b5267514c594fcaeeeeeb9c02203532baac3b2a93cb6aae13c9d2da6434a442d21d4b61f003b7fee0f2aec7a17b012102ab574812cea5df5f4ccb2bc7cb6a2ee3ff9188213cb664db475b749cb0991283ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1e60000006b483045022100f260eedda49b27f03f7e49f255936eadaa8207554f9c461adeffabffaf71b146022072a0cf027cd2466e63475dff2f454d7181656c1710cde87b4f713164b1902f1b012103c98ba4248f4a629155630c476814dbe4d51eb5670e728c8e4325a114951b9feaffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1ef0000006a4730440220713b7a56314d8528f41d7d1b2587335f5fea69b8713eb3748de7fa4763d1333c022072c3974b293ea92f9a95a5d8eeeea5053c40fb54d681398a4b4dd924d5a75f4201210290297b638a0a815a09ee946947567946ce8d40ad4ca4b814e42d4b86d64e5161ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1f30000006a473044022023848ce5ec8185a7399c8c1790dfa15adf617af23c207091498faad353516b3202200d0bba502ce4253f7bca5fce44ff1791c068da0fffaf756b907b3be50acef16c01210201a71c6842cbee9ff2e7c0aecf1042ce5d30103f4f73d8ef35447ba56fa78430ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1f60000006a47304402204f70057f1b142bb52097127782cbdde144c00045650e7280d906ab93d881a41c02200fa1f37648d9df168d28872618908a7fa4dc39de7745d80beb5e9386357d8c670121034e7dc9404e4663f804876b10ac0a7c67d5e5bf69042c155fe64c65ee255b0c37ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1fc0000006a47304402204d849d3f2a32b257f606b713fd655c409d7d504a2d91c724ebc30e55c564d7560220292d49489ccc115c1109e450930e0e9d98219ad631796a81fa6eec6dea8048c30121025830212d902083c9426c82faf3d87a2795420890c03e98190b091ea2f86cad59ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1fd0000006a47304402204c46627c53cf4ce553e27fd12b569a991a6358eb202ff9b13a8e12bbc5959d8002203e5b608b05451f9131de70dbac159f516c7510eadbcce56a57a2bc23d1d7065d012103b86eec845d655828ce9dc6238aa912c4c66567cb1ff8e301fbcf5c5cac889ae6ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1fe0000006b4830450221008d10e50561f19f1b2bc7aafaac9111a6dd707efd8a092a1dae9118e45b743a0a02206ab8a588881cd446df171c8ec2c0d4bd14c0d670750928a0c2a64164260bcc350121027375441fa3ede1ac7a84778934aa509bd445fefb207609420c34af415c016ff6ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1010100006b483045022100d4235e80da9c8c59f0ed10c80c5dda053cbd230f99a663b5ef845ad26399feef02200e11adee8d75ed0e9263eb234ee8ad4ae3258e1b4c0cd3c42e5b109ab2dd6507012102df66553dd06d7331d250d82c7516d0462bc7f6c0a0a5e96351eb7d3d5decab21ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c10a0100006a47304402200f1e1e7afd45f2332be4846d7324ff84781ad833946eab93f79c0cb79d5c59c8022046308a18e592ec3b42d72df8fe352e697e2aa22c3b90300f5b6c174144d89f61012102f3018b097fb866dae7a8c5489421ac92bb977be9c0b3a5f165c423859b0984bbffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c10c0100006b483045022100d7e544f3805719ffcfad7e4a7a4a1b54fee6795bf1d26b0b65e8d0972e53fdd5022005cd9336bfe305cdf92dd5a2eae29b61b7779e6ec100073d08c67691d938b85c012102a48b5b01a33b59a2a3eadf23d108ce1ca951ab4d5bc81c4e87c7284f70e28e48ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c10e0100006b483045022100861da85671b0c175dfd9ca8597c08462647053db7d43066c26693d87ff63f36c02202ceef07bd6e8b24ede21d7b9323716599fc96061d898dbc8cebae698296f2ca8012102b944e9570267305e26e166d0e782432bc5145c60d9b399eacff1b1b05497ace5ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c10f0100006b483045022100921cca5c7093879de45e06394e868176eeb82f82d50ba9ec1e0033fd27b5fd3802204720d7118edb84192f86fadde7812f371ca65d655a265ce575d27d2dbb7c9861012102178c8a3273c867bd874609bfbe96839bee20545eaaf07e9ff89777d2817f1cebffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1110100006b483045022100e7e7b5053768a8db37c2866c77f41eaca267ea91a35d1d8d8c9fab9fb80d5ff90220319f65acc061f2cbb4e7c003af9c635dfbc5031d91972768a5ae8f2027e8cafd01210395fda29e25b649eb29f8ff2c5553a494ef95093cf746a8b229826a1de3361daaffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1120100006b483045022100a56ed9e4f0c3851ab1070bed261761126800179d8360b555225fa38fb900842902204bd095ebe85b2d12ca4dea2e94394d1064b251b884adb2d0c6858333b64146500121028e1b5a54a6a54245bf21f0848d672d3f688d11e9328f944365b146e38efb4bffffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1130100006b483045022100eb5e4152e99af6dd5f42b7f6ac22882748f024263d4f391ec4ff6ad577c3443002207a4a57b7eb8537aa75e342fc2f5e43c2ed943e188188b299132aa50026a4e06a0121023ede75e5bc13b2103eb0d3c8c7dfb60b6c7b810f49ce005a55ae4b7d0eb1f658ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1140100006b483045022100c36c26937afcfae4f40a0ad928712715d43582799bf6b8bcd6594e20b34802f7022077b83f2ce8440dd7df61632615d66af4c8dcd422e2f122ab98a01878124fa5f6012102c059b935facfa01366100691c91328659bbdb885e3c802467cacd44e92bea4cdffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1190100006a47304402200bb4881eee4fc55e254fad94c67442dc8fc2f421acabb80d0e86ab6c3a74309c022060c1e4e4a141ee3133736165fcffb50413866713a1d4bf01fbabf3f0a5f67cbb0121036b80696a61486e2fe3bdfea251522ff9e66eb66a4c5162fdf60ac6c833ea90d4ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11a0100006a47304402205e54387f30877b358fbfcea2d0eec5af1d4e573d81a072795c0a085ef72930d1022078717ec3adb219af592d17d981ac0f4d2c055f8bd4b32c22ad951a2e19c2e8b40121035619b45c3b340326aef6829d231c44907d48f1e9a9c79f2ad67bfbac67391755ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11b0100006b483045022100e5f0dd15f2da589e52c26cb96455269d4d3d7317e0f4ac5106b2f2f9965ad54e02205336d9686d2f1ad47c7e712e24b064e365bb977eed6d68ed8d87e79fcc288aa4012103a1cdaec2cb6677a444b56fb6f4c7dfdad2f16e0e83da9d08bc0ab837d44ca694ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11c0100006a473044022014669f8b19daabe1e9c6e7c97dd3f9e8e1260b45e543110e229c4ac2df7d0a3202206b44929e72e8097388c38a154fbbf47f213838c446b3cefb6d1ad9990744f7940121030d170f347bc5ed046ce73ccf1a60d017ae7cee5f7254104bac52dd0de19ad91dffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1240100006a473044022011cf1d95fce0cae6d692cbe96527e73e78295edc21ac05a80d1140cb6a8bef2602204385a2586735d35bcca6438afff35e48ceb9489be857e342452097e098928754012102cd0581d13ebd3d022a63c8d86140e52bccf1b454f824ab7fefdfd6a338c0a4a7ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1250100006b483045022100a0429b5e1577cd8e80a7aeea28317e348175723bc32440e8e104eb4adcae9c4702200edc7c39f7747dbe44ed29838bf25bcdc7e8e2826346cb55d56db8e90c54594e0121020d934c98a189f626654c773dcb53de3de5690b48f0fc64ad92b25f8d08e9015fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1260100006a47304402204023db73553e1cb230d304ce893f408c2997b08767bfc5b831fd0138c499c4e0022078522c39530867bc8d7d53927b0a37107d36664f023781be79ad28880e8e95f2012102812793e164e39f5631e622575caaa9cac7bf43737f7f95302280566b8c7f31aeffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1270100006b4830450221008d55f32d80e593826162f59cc290e38d98268879b5eafeeefd78cc177b1a89a002203ed550ba71a006389458fd12a7f440aff31df0b388ee00ca27c04ed436ecb6af012103a52b0909c010f6df76c29f4e53ce078884d7a0edb027d3a680cf1ff2106ec18affffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1280100006a473044022068adbbcbc81e989b5684ae88f758d2fd17a2b0c58781fe956b2aea3b232284660220561d1725741ba4ace25906d21e203111aeb31c79dcdcacddc7460d2f588f71bf012102dbd4392d0aa21a4ed840662efba31af122eb1469ae9a02c4c2f83a5c8095a7f3ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1290100006a47304402207a0c11df27f422bfed97dd1d245057402708f6155697702296ff55ea31a2d757022069172e61307badaa12e341d224a867e3319e4aa6d9760a1f588df7a5241a68ec01210360e66e446a61398bc9232016e6a2f34e5c26f362479398702acd988ce66807f1ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1320100006a473044022040dcde34453812617c17211b377be1487a67ab5bbe791187e76ac55784c26aea02204c9b2fdd516436285524e7c1e5e36913ada279d16bc3d22496fbf16ae37e4e4c012103771ab78fab9c924f56d9bed1f4567ca8eaa7b84958575f7724d1b8949ceb2d36ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1330100006a473044022016d9389cfac10f2fa72ea449609909ce7c094f89e72c96dfdf0d71ece091e5f8022039bcb2c5231034c3feebf78b79297ee505a484722ebbb1293a8c1a41fb5689680121029c3a25dc611d682d85bd00a5104a920092865e1ff4ad3bd2de36b4832ac374cfffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1340100006a473044022045f4e7457cce177cdf5b6113647c1c9eb16ec6a5a7ef947b44f71695d5c510ff02206ca62fe434a06e469ec392ccaf68ca333fafbf1f0c9de14269e76487eae80f5a012102c686a2956d0d18adeb6af37438ef2392a7e1b0c070d253212d333013500c408affffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1360100006a4730440220793d34fff42b616bf53f9ff8bb8d27bb69598a8964b2312d5c6f878be539e33302201baf5b3ed160ef3879825e9ad2bbe39cd2620c363a685a2ccbe4b213368819520121039c596113a41cfd570dcd458350e7370af3986daa6e3953a1b5f6c4d9bd3114abffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c15c0100006a47304402207e52360bfeaae3173266e7a808c5e7ca770a5cf3f2b25b549f652a061344a10202201d44b1a75a19743a51fe49ac0f5ff822b7b97f05e5940d129e41b04d9eb12ddb0121021d6d6d74787f56298827ba2de6b362ed728437b43636605185bd2c7d38b7a2c6ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c15d0100006a47304402207c0b6d0f79c00ae00ca763c5b3bcfb8f0f4dada2f28f12c19a23b56459f6987d022044d97882c3af733e68a17575c617850c1cc6ec93ad703140f84dabc99b477c25012103b85351a7b2041a50095248f463f53e82bf504063491099fdc3b0c9a83190bf8fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c15f0100006a47304402200c238b48948ae5254c72bbc5f9980d6f78c6411c63a952f783f871070c4ebdb502204590781da41c8207df5689360644253908edb9169cb052692df4ccd9cc1cf46501210209af668e09809496c4acee142dece9a37ad00839805a6769376a18f60a3a8bb3ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1640100006b483045022100c698c263e1b40b5bbbed6f3a619af92ccc9bd3af5a39a1b8cdd148f2429ceef202203a37aa84af3a5c0dc0e0b583f111ef78ad3c37ab80371ba27edfd4a848bf57c40121030df38f26078d2072ae8c53866fcfce2398fbb3d1b39ae3ad0f79eb77de9facadffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1660100006a47304402202fb63395b7e996c618015cae5a1971cef6614b73e9f3a321f9daa727c6a1a95102203c1eb0ab003436e3b4d7c9a959d6d6affa5dc6440ed7871607a2e14e7e5bcdd30121022bccd2c3fe9a40ab0c9e6ae7cd4555920281bce457120b58a62f237a770f35a0ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1680100006a4730440220326370ca79173884eaab15f5cc9254b673c6c598260668aee5cc34cc1f5f4c9d02205a2abf73b8f401be110719a34c4f4d8244896f1919e8b030cd7aa11f23debfbf012103563639e27c2df8e945bfac8bed17d2f0320ead623aa358c251ac00f83e833dc7ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16b0100006b483045022100d68f87f24772d287d9daa82728a092c0ba0f3eacc7e4e5a839a242e619136abf02203434f2aabe1b6335448342662bc4a4ad8575bba36e6dcbd54edc0d01b13d7297012103e9ae7c902f748221a9bc6dc13dd3894c4160c7d821e6c7acce0560e92cff231affffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16d0100006b483045022100d186b892201252aae37849971a29980d1f7d91bccac00ffe561ed836272738ea022070629d0257acb9d21d44f109bea479188f22ece0f3f2da617f41145cf411b556012103c357a607dfbed1b44707ac9abbc0b67b515a3369a10748dc3c5164336a4072ceffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16e0100006b483045022100a301dd8f780545ba68d7615a447210482dc64eb920d88c02a534e2bf267d12a00220166f0418ede111363814c147cece1681ab21973b7e4bb6511f7ec3d4f7c87b540121030b8d0dce74c5e9ef271e8e1882729ee0a272d0daeca7fade9c47413a30b6861fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16f0100006a473044022076e277afdf7cbd3af104116935edfcac34ccb56057f83bfbe9fd053f57f4ea4902200810a644d1f0f06eebf67723b62f0bea2e80469057497e5b68153acdcf5c0779012102207ef56f0c83b6d2fdf865cfc9c8398a0e91d5ed6fbfdf5fb8607f1050fadc44ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1710100006b483045022100f9321e8653cdb00782ce4786c743f1bd77fcc3565d4776c10baccd49dfaca93f022072a1f854351fa4e4cfdb77f655172b1205a862228d39c00b027c9a7e93c7a48e012103561b995e7c0bef58f05c78d6debf651b47596fa8642791cb87256d46bdd15a55ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1720100006a47304402200feee05210cfc4dbc0f3bd7f7dd7b1c2c635c2fdbc372d2f36ae9ea266bf216302201e35c025dc26f0e112214921bfc82696767f7d97e82067ca288c41ffe4cbdb40012102e79e860ef42ad0f30a2f347b4c06dbe0d82a36ce559fa65044a7fc033372105dffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1740100006a4730440220232103647230a1e5dcae5fe4ba1abf81b2fdd4b50cf078c8468e2df6f4d24a1202207db933d6441b0e2f4db35af53bc59e1215b35b7c14706d8c7d2f4b4627ff8db5012103cc1cb2bfb5a8610d0b253b93f9bd07c2bde18e387b149f2947b753b36566c511ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1750100006b483045022100c8dcaa349c76ad8e9ae0a80851938dc5e866d1a8bce653661e8aaf6fddc83df9022032e73f147b77fe6b9f901809f8090c37be4cfab701eb911ce20dec54864b5030012102001c8add5f438e5bb88384cb5a0636eef778de49c72ebebb820d60ec450c72f3ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1760100006a473044022024d5ce69fcd58219ab80ae61331d10339a69b45176c1fd077b9455b6532997920220146cbfb6b989f754b52aa6b3b6863d290dd455aab7d594b9e85d2e33e44735da012103ff89a25c084b465f1c5d854078ceddd639920e4a06b1ac84dc033fee257752c3ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c17c0100006a47304402207487ace7f49476c32429c0819c95eecb2856313240a1fc409146d297899fef4e0220746cb7ce7d8c5773dd3afbb9d8d36b5225b1f3e6a720eab6467cc5069ea5541101210265d1581eb36fb426a10567e42a77c021f054af9baca4bc20cca40c4d7e7a6b72ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1800100006b483045022100860ad1fc2b92937080c9615405b8a11bd3ae2b37b2f5d8c14588e43730c77a1202203c1184bb3a112c107f1f1decb5ff7c2e0ae31c3b591039be61e028932a621b0b012103ec9213e95d4f572091411c9e7451deb5df05c3f2400015c69336d453446edf8cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1950100006a473044022015458b01c46adff34da2313a67069c9c1533608e83a68fb11dc094a413f3bda402205740331af5fae271efd7be64ae0c24e69b6c864900a6c373409b721c598a4eae01210360c328e5bf3421491d2bbcd68819e4646163a526916f74ebd0675673fe82454cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1a00100006b483045022100c3c6e55c4025f8338c30ad6581250e41ed82b4ed1124e26802daf36e280fa7f602201e999e26e3dd3ac67227dc2a26f6c2ed90188b84039e282ce649d366e5b61a36012102de3bb7d8edcc2e5cba3d9850c5691d91a322e2888fb6f111351420320501c7b2ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1ad0100006a47304402204b720ed603fbb7fb0a8dc371f9170356fef1161bdbe5dc6ae889edc00ea65b5a02207b2423b8c0f226449abbaabb86bfccef1d28cfb2074e17e876cfa063997ff1130121035983a0bb2f97c118c75867afa075c44cbc81f8b448c00243a6297724e75dd793ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1b80100006b483045022100db246ef1d851733fe1f567357304164f1014724f2c8e485da0e10086774ef09702205e5866f0b3e5a82e7d32dc5358f29934cd0ac7a07e7353f3cfe0d1a8db45ed54012103783e97757e436c200c24647d6dfc414bdd4d6f859562c5fbf3d57fea7e24dcf8ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1ba0100006a473044022021389dbd672f0f893d0b7bc4559357fd3d11e46ed0db9b38dab8d005e82b994d02202fe086ac26d12e6842982f9653553187b9af48d6b1db3f4efb38d9c331613a86012103ba0be2c463e5b5d894f771f899811862b765d09c735fc16eadd9c2ef97030851ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bc0100006b483045022100d55f97b555c5064e6e8902e8e1802b918f6755ac0909dde8ec2ebb81992cd13702204aada200f3bacdcc800609e33d4b4164951da0f463e6ba0c11797612ba83eef50121039a467d42aa858bb84b7115483e4aaa32a033b7bbc04969b1b283fe1eeda525afffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bf0100006b483045022100da28401d08c132142b96a330b96aa9dc2b4d994b3276d4acea2d5ce645d2618502200561adf94be34b23fe59363858752e0dd0548118f1b0e20bcc6509b0f9482cbc012103bda66744af00c2926e8a9fe7d4e4b10b44978e31b6c1c621a2dd2192ea1cdc89ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d00100006a473044022057ea948e707dea3d86eaf12eefe16bad4923448478389b44fae09ef0988bd1ad022037a2a9d83f6cdf079fe31291f13085d5a209aceff48146f29c277600a63ed076012102ed801ac57a9715ea9d33bae10cf77e955e97d3eb8ec3e0610b2e1618aea49743ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d20100006b483045022100c8d05c1ec13543217056e91f658d2d69ef2261e1a96346bdddc618dfa9bf634b022020022c382c6f2dbf51aa3249d03b406742b115c31a833ea7822977cfaca0e7f20121035c7cc3e6bfce86040d9133c267210955e6b85537eacd0634e5f10aabc1bdd017ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1dc0100006b4830450221008c42775f4e2ce3c3394c33030f3a25a64888776bd28a56bab8773e283da24b0e0220272b6ae63f1010080142c9282a617ef00276194859444d2db717f8bf0c8e2ff501210367285ed00b1ea1c032beb9515c6ccde95b57965c483871b83cccdb58c20857fdffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1dd0100006b483045022100849109c514040b23c75d81bed0585d316c0a2dde3d8926621792a3f6a6a59f3f022074cfb8eb92a2517d026c8253351c28d29e95350a886361ab3a29fe7e96139bd1012103966efefa3922def76bcb9c9da9ca320ff071df2253a95e554e88f0a43dbd1af5ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1df0100006b483045022100f5ed0d3c85aa5ffd649a8a8087982289e7010357789e945428c6c4b269e4654e02201260a7eb8fc1b02c6de2b144463927afb4e3c87fc0c65a6d43d1625e40895a2c01210281d386c40c59fb1ef1881f1b84bcc92427b8536ab222c52235bae910c9285dacffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1e40100006a473044022056b14b482e057b70b89003edadc9fc9a9ccb4e89017fc42d2e4ed1926902a84002203b1be778de305d62f03bf5b22bf80ca30fe66bd2073f15998ee3cd3ceab4cceb012102ff192b32ceb6ca7c147da931b3886549e18ec1d47a482ce5375235458d479a5effffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1e50100006a4730440220243de4b91d94bebac601f72fb64a89b5e541d628a5944817624ec04905d3098e02207ff99fe167804fbcaab1d56628b72faaa2c7e3e1fe0dd05f9a01c1d368a066f9012102a5c4276fb5e2b3218fc67f5c3fd87bfc9fc75f12bc0e8fb6ad1c50a6df0009eaffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1eb0100006a4730440220502bbae45580b9a5166cb4a1be1a6d7c02af0579d8ae74d46894c6a13d191aa202200b3ac854054a1f17414eac57a710d19d5a93d41d0e9bd12584c7374d077fc2b70121024f467b75f6c16df2f8239406df5646651b6be9e9f50b504b60ae9a1209a1e993ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1ee0100006b483045022100a55afab22a2d9931970e0cc320e3ab9cee62f3ca47a8adc4923b0ee9b144f01802204182cf9c8272e6a9fe3e58c4632f75a37fc3e82bea741003fa096aa3183182080121023a186f3c944d8349cd144d419f2f043eebcf260f5cf06557d87a11b731c0e76cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1f20100006b483045022100f9e3d0bbc090c85f2510f346b6dbd76af2f9be724768c3854b7f0ee9c1fa4eb102202c9a6abe8581e308dcaf1a714c93984fa94e48f85ba2149a17f13087abd725c8012102fda3f6006fffb7975d967c5b473fa64b712ae2b469095b3cfec51eb70d665204ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1f30100006b4830450221008a53b245e639f2d6aef246709156a30f546d9e3a91e9359c5d4cb9f3eb80b3c202205f2db7f30bb163243825281a0f57340f0b768c029a44787c8ca83a9b26bd01200121035d9ce97541161d79ba3346e6c755cef41cc110b2fa78a658c349b3ba8e7ddbe1ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1f80100006b483045022100c53db2e6181df4b401c79e3ccb97358121dfaea7fbde135db1e1c15f7649ba6b0220753f38bb138baaa5ae2d8bba4a5d36fd55120b17a2471694969b1dded9e61b730121028ac506e0e8d1a686e602f6ab99fcf9db7d91f10d9f677f67fd5e3f2f273b167fffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1030200006b483045022100be20c7168865b2b8c53f452b112643415963ec2628b3115c26e94310d6ffdd2d02204165e6f64532a35a77a8b712541fbe4e32b240d815a9782806a994c5dc195d8f012103fdd7c5ed26ba61578966971b16eba7a3864044610a345b54bde3987184fb2ca8ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1190200006b483045022100e4a31fd6b7622848ff706a3c02a6f1e06433e917887638e904b6dc55f04e617102206e513e2af1634ff2c959df22cf622b403b9379f055452ef8a36070523370515f012103628f06885c53e23474d28cd2610288270d191923617b0856e9e0bff0a807aeb8ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c11b0200006a47304402201db8da5f70a05b7daf6bcfbd742cce7b6bedc1bfbf9c467d4ee220f2ba3fd07502207b1926a925c0f5d60e7a0d1bab7a0cd8f3dab5108bd50e7114740b8079203dfc012102e55506f1a590c2ab666ac1ee6a4867d29d5d5e51df33272e78d5e8cc0c805373ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1270200006a47304402207231aa4d05e65edf095e4c5f4ff545e9a083a549b98d217b40a552ee90f445e302205a6a26ecb8934140f5068074b21965616203e0791f2c784924c1ddef19a9da6201210221c7ab81dbf119a938f75adab81d255c60bde3836b7c7707ee9a7bdd301e80b5ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1280200006a4730440220789b372f1ad5a63e97ffc30cff76d758c9a05961bc4e4260d85c66642b6ba1bb02205c66855819f78af7257b4772e9c7d27f344dfda87982877bfbee590b35c3aa84012103c08c0d0d0e4715e37f3f434e06fc3634a820e9dbb7db953efa1fa2b707ddd61bffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1290200006b483045022100c0be199a0cdb2dbc6f9e52f1a52068adb7565332af7447f9fc22417a4662a76b022019ce6043d0b72e429e3d7ab48416d1e3e1505c83cb44f8fde10bf21621ac43e2012102407e47a6ad48d7be1d7769a0825e1c80da8c6e138d4a3244d02b82c86b134b73ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c12b0200006b4830450221009d74913022239d6f4b700d43a3c2098075991168de7c69240fc5db51f82b550802200223e44184e664e6258a3b25e81897a4c71da2cedf85c12e4c4c6b554407c911012102acbb90364ef941aa87dd5364e8bb3f15a88203c1ab377566825fd747e0aa6cacffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c12d0200006b483045022100ab0103e735f39f93dd8d1cd844ee98b4eaa17b29dcac2d968904074c3df5ce2902200b8290665fa178e26f057582c17032b1aee584f2f4288bf41fabfd6b78d37208012103235173889e3df92f2bf3cf88b52fbadd58211cb3df76b9cb5f5f7046f2500301ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c12e0200006b4830450221009fd5ae1aa33964e5f9cb4179373a3937b712f2645c8cc4ecc6e9c867c5898754022058ea415c52cb550abf515d05a8edeb09ddc6e5593093d35e8748f19db4f11f4f012103c017e13a66a2fbb5773eb8c158fd91d87d51398ee06058d52874555e24d90439ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1340200006a47304402205215e412351ae943b95161e9a9b2c6f471abf7b1002604d4bc6455f64500b4d002202629325596d78f14279277392e3d02f8ea195f5efe7aece2c4d1c728aec765dc0121029d46352f694824dfcc800fb6781602a527d7ed003be2d6b1d64c8e6eef50df7affffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1360200006a47304402200256fcb3d766d4b74ae66b46710e321b4778f9532823b778863201f396e6688a0220049967c904dde6af5f38d659741f524680a89d164e1fd5a3beab580dcbf4507f012102765b7ef38aa3489505eb3927828dd8923aa0525d117a7ae20b1f59f96df0c7b1ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c15f0200006b483045022100866edb83dcff43cbe923d2d13c3dc4d320e0fd02c2277d44c0b3a99f8fd07527022031620880000c14c9450f92165f9a472c722afc97b4a2f248a2ef6abffdfc762301210261191a870744f836b3571a815a1b1ea13a7aa0ffacbf3d45943986ebe3768b8dffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1610200006a473044022051caaa02be3eaec5c4ddcf798a87925382d30f419b78fe988b6fb2993872e51802203ec0755e03ae821074c1b3297a0bdb8b5b1de6169e165b1c1d11714127e107a6012102e4562907fccfcf4b9a743e4715d5a9cc1ba203054c63a5f4d0ac660870d35ebfffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16d0200006b483045022100c67adb798d345237fc08b938c1a1ccc489846dfad538d0ad39981eed8504a3cb02202ea640592068c08ef55fe09b4f1cfd5764104b7cfa5bcf690cf5e1acd6b1d36f01210362ed038dbba6b24df044dd51557462b845547273183bbe3aa6c67c0cabf0ea4cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c16f0200006a4730440220767d431ce4646cb5e6ba4c29b3bd4a8d07f878272bd48b0600ec40c9a08e9d9f022041d543294659ed9e5e5a74c9e7745dacbe956aff0cfc0de9fdffa13e36dffc8a012103745777d16ff9d42b2d09eec3d5132c7a719764f1ffc215769ab6c7beab05181cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1700200006a47304402202e9b385df79d95668e1517024507f5967ce07dfddf420f63b7c5fa2960435e3302204898f0c107da783bedd2b3a2cd9212beac7ccbd14a5453156309481516154c3b012102b642f0057b3d76784e58d22088b8845f67e27eea8d9ca92b8f4fcfb23a0b16a1ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c17a0200006b483045022100f6d23136a92adc72a106b6524e80665b09af34d7d1d850bc4accd8be5963cea6022033bec0a03be7c42cea86bef491b3ae3466228e9cddb8e8567d2fa5de4306e7ee0121030f3468386c873a408e11fcc45534d6f8151b883f036f5f377eb79ad8b51bce56ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c17f0200006b48304502210083d075cde413642af7280886b056445615f1936da2e38b42abd9e2186710683802205981df2dad0940540f773c5e51b66a77cf740cb33d33f9356e12832769c3781301210229b48fcff732b7873b310126a69d54fae60ce316874d6c762ccc9e085f68841cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1810200006a47304402201bdf3f5ea0b4b7e6be3c6bc38f2e7ebe431426a1bdc1da4c0100dcfffe57c09f02204c585cb0d2588985ec1e82b7a79c93cbf1c86a8f28c054d841fc16c2c05efd75012102424ba81a01cb0b447a1458c5dbe7fc113adbe6ca5c53052ebd28752249493d8cffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1840200006a47304402206d6746a56ceb9d8cc5b36ab610cf7d58db9529da6f5f3eeec2665cbfd40b6d280220702182d024b8514c6c3a618d10be2bca52a4d637194eecaa42a9843d81552a3e012102d09c0636e4ef75d55f30e3ce8bfd0e15b8dad9f4125fc896269d8d94ccdcccbaffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c18e0200006a473044022006d85918f570198f86ed13374e5332e4816e183676eaf31d0a46d945b301f1b1022064d13f7021af415b835b7a70ab24af05fe1f1e4e168327edd245cfd154ea1c5e012102368b25c7524d1dcc32833d493cadd47cb44078f321fbbf0ce3ec4695c1f60f88ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1950200006a4730440220267fbaf726513478d1f5146da71c7c345a0aa15aa0350c06ddcfa8d68069cf490220453f6dbc8a0ffc78073a40e8db5fa1df6203824742c26ed0b8c5a8f18ce34b1c012102e177e59930592cf7f25ed9e65932249f4395e9088234a938aa9e8dd8fea737bbffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1b20200006a473044022067e3a5759cb8b59d734d79858039b62ac12b62965f3aff64a54852e43e17b0900220248436c0008e12193254a62a3108842f95972243dfce14bd4d95e5c602034889012102fef18983aeb87b4361a6d0df281dd301db5976bb29cdfa0f6eed403be5921941ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bb0200006a47304402200dcafb80d9ffffefd5f73db3184d4d7fe09f29e89e04b081fe1d5eacfaf98d3002206868357ee66de526ae9572fbbfd564fba9b276da79b1011d5bf6ba5c082d16ae01210329030722d978a8f6da9f3f3d1e27ac87fd71ae0526ce122193dd184987e9c843ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bd0200006b483045022100e2b32957e6c07bdbb52999069e58b939e734d0e3f44515366a3175249c015b57022014efe65a78004edb3782490336ec554085b555af814572df03adac484649e331012102373e53ce9f2bf9d2bf03a673096e5d5765d0f3ba47dbe2c6c47e89b053945b7dffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1bf0200006b483045022100fd07cede26bcc15221644053fbe40325ab099366c531d582eda989084bbaeea40220688f6776208625084293987941d68271bdfbe207aa4dba732733326b08a93c50012102bdca2c5703625f8a3a800d14cabb4b622dfe766e29cbc4e03f3e2faa227e4ceeffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d00200006b483045022100be9b2ec070fe903959a0cbfd1c1ef0de5768b01989c7aaa9821a6ef5e1e79eea022026ec2fc6b51b0b189434f619223d07e3b2ffc6eaa4fec751fefafa7d5a85e4cc01210217585e9d7a441b1a5cf6227bdb4249ab19d692920b3c400defbaf04ba3971106ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d20200006b483045022100a2038e751e69fa057e5ec349af69363bc0070c6ddd6eae299a29f8f64cd3c0670220475bb60545bd230940b2345b073695ea814f83d740a4f071260537fc31532075012102fcd18fe4278faafebc53b6da5660745d2f018def26e4ac1c23f055893256eb61ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d40200006b483045022100d7c7a4703f594d4bb4ef266cf109b61078e58c5f52e33866b21175d4e389ab3102201aa1d2c08f5e71e299368f18240088a8a1af242bc1ae2551bad79e856aa35a7b0121038347dc7409a829d9b7583c54132795c2fa4450bb21f109a14f523dcd54f316ceffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1d90200006a473044022022b9efad0130159aeeb0aaaf6be556bbca5c3b9e953add448207cd344856743c02207ab80178349832cb98a5776ceeb85f2556ebffd95ab98abba379901e247926e80121026596df661f5d6ce02be34806c12efbd77636e7c0e9e8685eec7e9162adf6ce7effffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1da0200006a47304402205dc46a72acd6f4f72332b005cb859215b5ab31bc70f9b2273032db774321904a02202a6c9424fe921a84f76d89ccbc16103c5ca624058f9592e4ac89894d3b3eb20b012102c3d8316da0c1250d9d9f22f225d72021344ba9ea3aef22dc9cb89d8d326baab4ffffffffe8205279b473e7aa25b6e1af1d08ff7d4e374edb9b51523bb3f2de8c6a0909c1de0200006a4730440220544c2abfb1f99e93284482bebfd3896b433636853f3ed8268f0f150f6efa287f0220026e69e3111ae67bb6fe6c7ae47670e1c0c7a065a57e13bf48ef8646ec999d310121021813cdd05350838ff535db25d1605c183c7b4141d0ee2ef2bad24671945f35ceffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d340000006b483045022100c651f4093a0619d99e15655d93a8680c552fba5d06a9241aee29398c2d1c3b01022036d1f06847034cd02646e4656c48980e4c1b324a22807ffa1dd874bf2975bfa9012103fab9fe19ad44ff70410f6ae2819cbf9191d026eb2aaa6dabbadbba01a11da13dffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d3a0000006a473044022011b6be5a307d93a09f666cf934bb3a92e1bca61c45814302be50300a576d6247022051d2a7c1bba62b8a79f63b53f32497ab1dea583290e928899869908963a290b30121037229e6a626c5643a8775db71891525f555ef31dd5e17faa2f1f359875c25dfdcffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d400000006a47304402204e3d105dff49e720553a1bf76ccee35012481f65e41b1eff98a48c3b01f0aa6602201055db4eed7d203640ceab2589994188eb8dc5bdfdaa3a26d938ade6624c30f1012102b82efa454258adfd0e5ba4b328b2bc5330983f705b793cb181482e79f80e9930ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d4b0000006b483045022100a11e6dc3fc67eccdf62858e8f5106cd281d2f70d592d04ad2078c972d08efb0c022042e0ab45565cfa5a11c3ff4d62f8b6dbc6f4a526d79dcda0fd7bc6f983c41eb10121032c416ccb3b041baef859872db424aa5364116abae839402eb16d2e66d5aca646ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d540000006a473044022020a0b9610bdcbed7c2b0e0dcb59a2de6273493ccd33ac080dee77b7abee881bf022045de7dcfcbccf289835e7b690f75b6285352227cac888ea673c99216db7e8a52012102467d9c0ba7fdcb7c5bcfb88c409da4abd7bb7f0f1392ea537375d308beb726caffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d5a0000006a4730440220214f53a525785f646828a726ab51041b3a19eaca305e27828d6e2b022bbcc3bd022069aba6a28acbb70c6abd5755fc0757e319049c99eaa62e464a423c33e9a9ea17012103125358e37ef869b7d243e2cdde883514386a2ed00e185a976c22b51a377cf1a9ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d5b0000006b48304502210088e40beac5270955ee2ab00d6eff4e06bbb03873eb8b2f3db4c73af0e9b56ca2022063c22e296096c54fe4563df30cbf7024d3bb3af0ca305ca62a45d78a34b5696d012102c51cc9443ac01d5afa5a175d610649191434827fe0275828993a80468c417529ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d600000006b4830450221008c76c753bff610210392a3ece465a6cfd6be7204aac61f5c74541beec233c850022067c4cc522d4bf20de28f176cfb3e058fa0464d4e35ceffb404b52358cfd060e90121028a152ff0467a7e0003e2df129e0f4afe783b8b80b590680550768282d091864dffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d630000006b483045022100f598201a78ae3776c193609007ac99f082450a213b0b4532dda08ba61c8ef73e02204ba4c2fd15fc4e96cb82cfc7d777e9d7962b56a02ddc52b449d50ae7c05c45410121030504f2b3f5ef6f01d3300ebfc4d477b76aad88f96b8e17015c032f17ab4b7941ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d650000006a4730440220508e44f9c0972c721e0e02f8faa6c03598189d4321b8d95e59a08bc396d9ceb202201150e0cdd633ab30c4561c4bb15381a37ea0d1cba72f576d26c000f42be618ac0121031acd4aa6584cc492552970924773f327f01a195a7eaa11ce7403e8bf33deca9dffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d660000006b483045022100c8399cab0f1fba3aa80e1073168fc8625a5eddbe0a6c55fd95617bb7187c3616022014c487e3fc2a34cd239cbaae3cb9a84948a2c429b57c22657b40ce183074dae601210204c81ba289892783af47a530bb90b1ed2a40b5b075ba78c571f4ad7a23ce8789ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d9c0000006a47304402200cef576689285a1002b9ab7708a892f822f42b41cbdf56faef4c7a798e787cfe0220406e0e6d705044b1a8286d47d9d498b7a0f189899dfea712063b22d6b65331eb012102de203808d960a70c9c03fb19b8b454f5b39bf2db7e539b329aee1a224dc10c30ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d9d0000006b483045022100897cbe00d0d33e17f7286e2675dfd331e97558e38973b2d8de294241b28d694b0220516caee45cfa6d4c52cdcd70f8d33369ecffa9dc3bfc591ff41226119fc29c51012103dc6a39ca42438d74f372f2e6c39b78cae0a6a0497ba9b324b37323a429c25693ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04da10000006a473044022050e956aa0b79ef3acf680428387385202191016fe91f8da2a26e8c12c58534de02206451fcfb7a2772e55520314fecf74a4dedb980d2a1a9acff91e3bcc1781ade2e0121022f7408dd4da48b2e180101b9a68bd33fa5f4b50641138539b41910ae7f06ecdfffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04daa0000006b483045022100acfcdb0296ccc93611637ac70d2f901f8f2a7e6bf8e7beafea7b7b3edb5e3c7e02202291b9068ea1ffe02f03165ee164f4644719f93605c14e3793af5dda30403db90121027d238c0007250e50e13826c5ba631692699cbefc723f1af81bf4fdd7c1567c40ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dab0000006a47304402204fc6836bbc8ebf419e42eff8d3e83839b36d5c828653f08ad7cdc44bb26c286b02207e51ba252e7fa8b39d32f82a6d334c05227ebea45277f26893d96d0f76d430ef012103a980c6a7e06e582eb8e3f9e2f74800ca9253a7a019e0ea3c1235e471268fc253ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04db20000006b4830450221009aa80d095b6157670e141401e1e9f66b739f28ac53a559bb47e231e257edfd4502204b77c18f1da1bff0208cac1c31b3c2cd4d36240a702a8cb192f40b63935c298d012102da7ce91a1f9f94c4e4d87e474512777e0b7d702961152176968ea999dbfc3ec3ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04db80000006b483045022100dfed5ff1d938f1c11b82669de0a05813aa618496e2640ae6a298794b347a24fd022042f1e30b9796768af4e8e7a55ebfbc340c9564dfe2d12ecfc3a64215aceb722a012102fda3f6006fffb7975d967c5b473fa64b712ae2b469095b3cfec51eb70d665204ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dba0000006b4830450221009bde25cc62278c354ecb751b0a60da5f6b384af9a26a2d3ccae35f9fe5c875a70220440973ed436bfe8fbc4454c5718d0ad7a8238a1e802c56d065d6c15bd7fb30c9012103bdfbdfea12ccbf3f46026490bf9ae6d6f179e08523edef0c65a2842366f83b9fffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dbe0000006a473044022070fe68a82fd2be9294aa2be9554474dd434491373933037ac84b6c404a4ade7302201c1ed802e861efeaedaa53ebeb6a4303325dd5c096a2aa7e94671740c0f6a080012103bc3019acc5d6c21e5a1f3fe7ffd43a66cbb19bb9522addaf13eef3a229dcbf04ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dbf0000006a47304402205375add2afa177cc967def4c9145187595cbb691737df1ea22b5ddbb1e38428002204bcb401bef7a6a08c59e2fe9de725b7f8fdf11b0e8477551c36ed84a886961bf0121029c3a25dc611d682d85bd00a5104a920092865e1ff4ad3bd2de36b4832ac374cfffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dc00000006a47304402201cbf699e95c22ca00d541b298c30be2908f86947eedaacf3a1bbc2823a0ae275022051c995b5b499c3481812308aa38301825a65309839bd7016803ef79a8484c1f60121033c07e5f15c4d4e4fa886adabdcff18f5160a0229be7f97ea925b10096c867f5cffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dc10000006a4730440220248fca32d208085984d21faeb86a6d8591aee8efdc01f7fbe7c0f38aab8f4ded022011adac25a8a4aadb1cb6ff0d897996f19e3886051a529577dac27473dc25f25b01210275f3d5d97e27c20ec966c8b3915802dab7d9fcf9aac1054de04eb4349ee23800ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dc50000006a473044022001354d0f1440d1b246c9689a8adaa6daadd7d0aa7ab93b99974d344206e706e00220096f649c9de140e47f1ae1825491ed97e7905d8f3cf4683080be95924a12f179012103d402e991d2209db833cc442d2f237c4597c1ec046a1ce786759ae5a25cb540a9ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04deb0000006b483045022100bb822ed9466b3f2e10b5bc5eed6ac5adab802b54e2cd9228c00f24697c92de40022075b2d8e65ef1562b0ee2653706728a0ae977b3171c7ad35f94e89d690fe6e092012103435b160c6b7532d7a6df4b1b32a67f02a42451fc8f2c2535a3350dbe0c889e5cffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04df50000006b483045022100aab73969efd8dcf674232af198dea3c6a7f08321d67e7e4d0d753cd892f7aa4702206821823c64e00720df6efdde856f46091e88d405c3bd8cd56d0593f4de0c09fc01210218cdd60d110982bf9e30a2880577a203d6bce3ac23f49c97db76b14756a8b13effffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dfc0000006a473044022039f7a7216086e4c7b8dc1f812240cf87245c3b3687595ba3ae448cfe9063497c02203a55bb226dbeed02039841f74f393945e1a297b576a1c0183f33b930583c3a6d0121030f5851d0ecf4f3f67f7a7766457647b9a5f576f2f277020707b8b8d7c0f29fabffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04dfe0000006b483045022100e5e44d7bbbafd43ef8cee9d0b93173b847b38061f714866bc70838bffa498d1402205c76cc970c91cbb23437b0c66f34005d8ec7f781dde92bd3c233ac18f0bccabd012103aaebf34aedec0cd42deb2937c160fdcb97bd2a6eb6e6e7b39172e87c8eedfdf6ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d030100006b483045022100fd49010e2bbd1556647ed0c2ea093640625a66e7c735734d1e9c03e86f45e52b0220113b6503de9e447d9a5d49d16c9ef6fbd1e33bca1334a499ebb51d1d3cddefdf0121033324938acd374e47c423e07ce826a7a5bffc6daf37626544b2d06647ec9e757effffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d070100006a473044022022f9d9ced8975da0c22a1d52df023f018f1c38c0f998be2d91059a5d4ec3765e022071572117af11cc8b5ca9e1aea9a3e2b9b4d490055db52f37ed54fdbd0acdf54e01210217f2ab02d668df006ccee4e2d7f1775886f9bc0e05988fa6ada6bec60b76cfdbffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d1a0100006b483045022100d453aaaadad61755a3f489db54da02c61f399a75f18f16c58d9c3154ec7c7e57022028e757bdad5aa8fafb435d3496dffb03e6774ee713a9c879194ba97b98d1f259012103235173889e3df92f2bf3cf88b52fbadd58211cb3df76b9cb5f5f7046f2500301ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d240100006a4730440220064ee21337cf7f595e06a9387ba3817a6b8f01819d83aed4e8200e57b7e469ce02207f91702bcbeec7c438d67f44dd5ff94f7de9a4f7f2298f540795d1f1349b50cc012103661abe9ca452dd39e739dcffe5a57fa01b09cbb16f0c77efb7e83203c60b0357ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d260100006a47304402205bfaa9df8db1f052c1d21b3167be884fb2f800260d0a02cb5cc8363b3e719ac202206a396d3c916cb21efffbb216bc790f12e8c21244bb1e460aec5c4400ab33103c01210265d1581eb36fb426a10567e42a77c021f054af9baca4bc20cca40c4d7e7a6b72ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d340100006b4830450221008f2f454314cd66d6a2e387cbb571dd0772441cf92e94584084684feb897d13cb0220072df0d79cbcc8d28f0f061400b6a00157a0b9fb1d45d1d0fdce2438e15e5913012102207ef56f0c83b6d2fdf865cfc9c8398a0e91d5ed6fbfdf5fb8607f1050fadc44ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d380100006a47304402203e68893a11b612efaf965fcd5ccaff70bb988d5a07cb0ceb307094c5bc914b7702204888ca05a7a3bbde208ba0819c3503cae767ecdde2fe9c4b8930069a179e55db01210290297b638a0a815a09ee946947567946ce8d40ad4ca4b814e42d4b86d64e5161ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d390100006b483045022100ddf9e0b0abe6e8fc21f838018111b4fa9749a5ad3e0261798b3d55730672433702207d95da6999e8ba05a496a9374bada56bd97af55a8f78ebf6e2388a79fc2aa5340121039a467d42aa858bb84b7115483e4aaa32a033b7bbc04969b1b283fe1eeda525afffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d3c0100006a47304402205f3f21bb10e840235baf505e18847d8df04a1c916022d1689ea763be8fd6652e02200f3a1295695a119ce2827f63f1a968218b4312d4e6eb371793dda3f66dc9371a012103bda66744af00c2926e8a9fe7d4e4b10b44978e31b6c1c621a2dd2192ea1cdc89ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d3e0100006b483045022100a72ad4071f5adc2eab9b47dfc6d74f3fcb3e2c7011b7f9b2c1eda0dc50ef28a0022005bfb847bfa5a052300fdda82ca941101534e5c2d8cc2d5ab8cf52a53c5ae34001210362ed038dbba6b24df044dd51557462b845547273183bbe3aa6c67c0cabf0ea4cffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d450100006b483045022100a53fdf11cdab6b2d4bc27b339b64f83d1827327eac22379a1f03aae5c4bb6cb202206fb1826649a8debc88e6281d6ccb3b5204ae1d5ceb24ae52716d5aa6858c46a7012102a48b5b01a33b59a2a3eadf23d108ce1ca951ab4d5bc81c4e87c7284f70e28e48ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d470100006b483045022100ecfc64cf2fcab3e5bb5c98110844795dcf75370193679af93fe05eb5ace40141022027cce8d27fb4a9453dfe4340a45e271281b137e19a7b3b0943e7b12588a3669501210395fda29e25b649eb29f8ff2c5553a494ef95093cf746a8b229826a1de3361daaffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d490100006a4730440220098c7979cbaeb1ca9a6816db7339d0f1a31c34fa1164e92adf388a8c7a4d18a802202670fef7b6c49785e889cd3e5e9043b8e854f876ac3d034b7f00044b793a04b8012102406168425a18fced174a6c8f6b7fc4afd5a145ab318c4b5217578d904fecc423ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d560100006b483045022100a4d52a574aadad59af87ee34f29f0afaa903b86bdd87202cc254fe8f30368ca60220178bc9f0527cf301c665dd6c363627e085f8c28b359c1f57b33b39c5694a205c012102f2a31ffb3afc4e87b31ceab7ea9e6ebb8224fd3d8513a612467493b0ca9f16e5ffffffff011c68ff8b2108ae7807e39103235fe872654d9cab4dc4b4c40248394ad3e04d570100006a4730440220762ddae95bb59e460e1e028debe18f0eacc07c3490631507786f59f28475b7d8022064ca70bab2ebd8554e387092dbcba1b4af516025c73ab6d6690e63a7a3275d4d012102ab2e84067502ae4213ded3ee19b1f8c12f70fa8422079a7899bdee45911e5601ffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb110000006a47304402207f6ed6a18010b4372cf9c108128201887c2aa8430d78dc127a5e207b7983c532022037fc6c49baf10acc7d13d244549dc5ef4f0ea147b8103dc427bd81859b04def9012103b1d2977a5cef19d66d6d12e74e069993023e4cd6cd3373e845be0e4c79290ee1ffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb2e0000006a47304402205b81e12831deca0232a712a53f69ad51c1a38ce4628df041579e369a5becb1ea022072df22adc97f93c2fdf917e86783b6ffb825b963673c364ece198381fcd3a1ed012103d5ef5cb73c67cde8a2ceccf5d41dcb665955ba4d7ae511e049295ac0c796a4aaffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb300000006b48304502210084b5f49374556b9e2182a298e5b49665aca25c49bdfa9f9bb06e40ac424c6e53022034842bef214565d8a5a8867a85b0967981261326a86a58bb0c509ad3d54d65d401210330f147db0faee2e800e1bf2eed4841793d0bd0d5fe692847fd7065af8b0e01fbffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb430000006b483045022100c60469f511d1e4666c3d43c010db849fef48977b2e7e72603a394709811d8f8802200ecc8b6cf9fa117040f7408fd60daa3faab6fb751e8a2990b34bf84307d6340201210229b48fcff732b7873b310126a69d54fae60ce316874d6c762ccc9e085f68841cffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb470000006a473044022008440936d645d817009e6a745d6071a0636676643891a6a7fd7f661226fef995022070cd3eb6618f212e40829eb071c7aac15b6c3df486e8d62a54aa9d89e81f8f68012103235173889e3df92f2bf3cf88b52fbadd58211cb3df76b9cb5f5f7046f2500301ffffffffd22123dbb9e97d97bda1ae9dd0aada7170e584067c2645a1e3470c81dd16bedb760000006b483045022100fe13e74bbe60522286dc6ada0755874e0bada1edec8d04c2dc6c479a8cd322b902204c5de0e514ec352897408f575d320e38f33cb356ce5dfd055fd0f72c023fb68b01210362ed038dbba6b24df044dd51557462b845547273183bbe3aa6c67c0cabf0ea4cffffffff723233eaee72e43c545516c55435bd2c81a1b508f1c906714551ca5ab07ba82d020000006b483045022100f4527f6bf203b2c964694706971520b527bac35ec78720283998f4f97b5959db02206f01a395c2149b27fe13253f6cad37e27c3237ba19c71db17621340fa62e6e7b0121025f6b53f4faa269f8fd0cb9c21a84782627e9d7dc495a37aef947e0f19e5b490effffffff017f47e200000000001976a914b5f78d55fcc7580519f10cbc467c111f80ff743e88ac0000000001000000019683987f834045a0e96549f563eced5d2e2a4cc20c4adba16f92b97521a7666d000000006a473044022010c169383471633e7346c31ab98dd19887ec2d5f683368012f7f1088f44ff114022050cce93b0eeeed2df872a3fe3dd31fa73c6d30dfe4ab8aa0e3ee4f8c29e8ca88012102392568f053515eaa3fabe6d8cd1f0771fb4a9ee076dd0d8638b714d6603d2040ffffffff02dad11000000000001976a914b250a838f20ebe174ebdf6176bbd40b0eb10d58b88ac40420f00000000001976a914f98cf91ab614dbbf94c591227ca604423125e7a288ac00000000010000000295fc49fa80593f458ca163a6c284040cf780044524b920fdd3002484fbfdf68a010000006a473044022056ced18a1ce4b3b90aa97f270c5684321017b777d5aa543f27ac2fd7ead5275a022028906086a7f2a10259229392590c7d09f6712795b3b80cd5972277f00493a7850121030cd3a60e9d5bbe20759835497421404f2b3e7651231bbde6c49886dcddabc738ffffffff4be714871033b0b7bff214d2ecd3841d20107f65e8095b29f54268e27030447a410000006b483045022100ee0d50095e08db2eba2ee7fe0531e0309886282a957e73edd04b7747f31172b902205926eff21df9a3c67674e221652bc084133c30b997c448b80e2599341a947ec90121033ff747cbbb4c9c450d9355c58ebe034611ac5dfeb6593a764e86df584be9427dffffffff0200f91500000000001976a914b0ae71a83c999f387a433f3a87fe77cb6b6c768a88ac64040000000000001976a91409f37a533d5432e1a60d9059a3a70655844d0c6b88ac000000000100000011d2d484d34717203f37a6fc47c38ee78b86d983ad542c55b28977bf2451d6c084000000006b483045022100ad32aa03fd4243cda4cf67f8d6181169cd3cfb19e3f417b1aef623f8fd44de0002204ee1de1955af1862da265fb1cf7b446f58f157fec62d0ce27d81622414c051b10121035e34ca1654e4563a705184aa8fb851f001d140c4ef66ce255ab02f6e3280763cffffffff68602e161b5af094ff4ecce669954978277155de6a0629f6a95ae2619c251263330000006b483045022100b98e67cb2c7e02f755d580fac80a247390526b5f22da2ce2c4479f29c1714a7b0220340996366d4ef1fd58b946b6d8fc2fd331b27dfdec97e8353f3acc59cd25e378012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff7d3bb57753bb999d054605ed53b82043f8f9f3c5f2c5dedc27c883df8b05351e810400006a473044022075aaba9c3a7fab43faf8565e10c1aa01e88f3b1f56923ac6e1ae093216cb51bc0220792f30636726898ee70332220bd2f2a31957fa7a68eb5a0009bf0c593affffba012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffffdcf6d5a683d8432a0c2bbaff8263be61902a8b1e5f6187338d4b45687ceffe1a5b0000006b483045022100daa29798d4ee06152746331703887974c3242541c9ec3d1941b02fa6c51e6ed2022064c68e93d453adfcbac582e749392c3763470a9143cd13577cde3a1a47998e8d012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff26ab92f05388883725239c6621241455546e50f83b483a60a58f747889fe5e4fbc0800006a4730440220202baa87fd0fe9aade6f3e3a946edbfa446fba9ddfe7c9bc681a3f90a7824bc202202cefa396b41a51e163c95fc5d0bc1c0620fd6807a8a24ef6a119f0cfe911da7e012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff281ca586e067a9cfb126b6851b1af50b7f3b722aa7f4607d7a3cd872acf844645d0500006b483045022100d76665ec77e0217d1ce8bdbab918d38add30e55bebca850a114f645c6424522e0220524ae9f86bf0a30c290c1a5880b38f5e94fccf12a7ddc043173d23ef4e68a22e012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff84b66e3431cea1a4727e9fc6ff3714ecd50896fa5d49448926ad21bcf6aec25e550000006a47304402201c7063faff2bdc59db866aca354a613b8235284e9a3fdf33448f0f9abaf4046e0220413d78169cb4a300e0832087829833390c4ec4c47d7ea6b28c5d48ce8e5bd2d6012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff103aea34301370c042607edc89ff90f192b6d79e99e290633764bbe4b5cb4bfc2d0000006b483045022100a904af251cf29fad607a6ce56e100e4b073184ad68abc45abe391c3991d5841402206e2c9ba87522192c3a73b56e33a2a5c2b231535307f03e4ff6f0c40f3f0d85fc012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffffd4cffe9a2f50bb1a08eb4ddfb1a31ba86de783b35eb68d7b982e8aecc22df625350000006a47304402200c44ee6f856f3d89cfb335fb608592bb6d31a30b14d500c059b6d1e35304f4a502203a59c6aca5e258d1565ed0619fd7fba1b1a61e30744ff654d3a9434fd05934da012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff72de34fd4f59dcef28fd6a60f2fcbf276fdb9ae494473bb0265b64bc5001f7104b0700006a47304402205797eb9a000e9cb19b258e4dfe927ef647013122aacbd017469b92243a58ff5902203595440f7095c434574f298a86e279c158aa5d5a3c7052388ebb18851a5db78a012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff893cd3ef8130644b74d8f936e82595ca18ec095ca47a23233f4fffeda7e58c52430000006b483045022100d3e0662d420df1d2bd8c3ae3690adc005a5e2ac1ce82a7ffdb2c7f04e2483929022067196650e670abfc141a22f6cdc2e3be1cbaa8f3d7e58180caa868fbe7c29c06012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff7741337671b30cf29649d5f375332bfc3af8fefc3fb4704c7be4f5618843fda3360000006a473044022061db9a1f59eae734e414e7b5d3a3fbafd7b2d6876958641f98ece8a89756c8f80220739f2a3faaeeda4fcf855d81cf46be3d4eb065599ddb6e3d236016c401358dc7012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffffbd756bb55d6c80e929071c9171bbfa929fd434dfb1c11d2abb07b9a399958838390000006b483045022100f68a3b94ce1618b614eaecd52381c90ac0690f96dcc6b73896a15e34ec18576302205c72b3bd30b028e80597bf9230ab8a17f9029b8780d9802decef90db8ca70225012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffffdd18874296cf22078d7e2763b6c65451a6046c2050f86b0e1dcea83c5e450966230500006a473044022013b0623171e46dff5650499955e3339ebae67ad08070d21dda98515660115878022005c5e1717ba46a4992c15b4f9c683443a56227b5477b60cd96526033a043e461012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff30d17fa1464f3ee104ac73d36415ee929bd00aa0771110230739f3766c0572d3ee0100006b483045022100bc7f78de139843473cefb5e359828d74a49f58e94eb500741abcb9a346fdcb04022018fd4c13bf96206546b7d61e5fb15bc0176774fde2a7e3ffa7a55d095b1c34eb012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff7535ad709eee6d0c61f5670afb1613303a85195c7e81f9717e3d06316900634e290200006b4830450221008209ada22fd6f580d385fcdd03769295a28eab3ef39870665ad39a47464560af0220153642331e1cfbfe8111db19c15aa09fb5e5d336bbde270d0ec0e9eb52300da6012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff0ac876832debadeaf7b7fdcbdd09cda529b7ea962e34a433c89addf557e09e97390000006b483045022100e3df4777911c982e60a97873af56ef90fbac0408807bada0cbbbf9c7eeb7387f022010e3113809d9d3091937d0465a5d1a612728d1393e34313a1c589144a6bb6c15012102d25ecbeb1898e8b050e508da1c1655594869512a6fb172000f690e612b0676daffffffff02d8030000000000001976a9145978eb0c5724b0724478fc0ec651cc603c27258288ac08c90100000000001976a9141651fef006ab0ad0f4014d3b0a127a945b947b0e88ac000000000100000006161bbf26e83f566300cc382d948a94252750b8cbcec13e9a669817a11fb61f49450000006b483045022100f6a96333a865bd4d1adf14080fe18c76c1db5a493131100847616ed44a5b74ec0220680ec2afdda4a31c413d73665d388ce542f6d5f9a430bfaa588e48f19ed7fe15012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff47be55af3052320ebf5257de244e1b6ad33b6fa3e14e5822049ca50cd5f82c17850000006b483045022100e432633fb1f043a59632e1eb4911db10536eadf9cdc19f4e09e70ddf4e274d810220131c9b14a5acce5815ad4bf92921bd377bb685ff3b7f947583fe2dec84efacb7012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff10bff1960f98239427ee5beca495269f38b03d08fd3a2d87b94e9d3020f9edb6bf0500006b483045022100b33699cc861f5f5eca33161f1777f208be0108bf4079ce52d14fd0d68c40319d02207e97fdd1f7a69da9c0dd5c098962ef642d7b81e1faa2580eaf38f207a852d671012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff90decc43b6d900d53c0c9fd1609c50b6b97b2853be27046b534864bf9eb3002e190000006a473044022066f974a70cc86edc2b8675853f7a0c024cf36a9fff804872a95967f54070515d022006520defc864b59fac6eaf8a3747096389bd9f907cd02153f280af6159920f39012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff8b41bfadb911a722fc423944953b4e2d5952b364b53f56e45af1ea3f8d007ce1210100006a47304402204ccde391a43155fa75165ea9f609f82637548283d047197ac64e40c854630b300220444e75376a8cfb1852edb39021b078e4ed29674c35e2f41a72ae10772bbf38da012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff3237743d3b1999927d4190e1c452d9ef98ed8d821d03f635b4b15e71e1dd5cd6680000006b483045022100b96d784a7b063b17d2adaaa4d11335df5d42e988703db6390b1ef020d4074911022064b1cb831a479d57f01c407ce68fac31a138eeef9adc75e4aa958c9e73134712012103fd3d2c65beef2b22b8ffd69f9abc4c737dbd71104fdc8c8effab6db1aff46343ffffffff013cb00100000000001976a91427276168ff506f57631e733e921d96a63d2fb4f988ac00000000'; - var x = Block.fromBuffer(networkBlock); - x.toBuffer().toString('hex').should.equal(networkBlock); - }); - - }); - - describe('#fromBufferReader', function() { - - it('should make a block from this known buffer', function() { - var block = Block.fromBufferReader(BufferReader(blockbuf)); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - }); - - describe('#toBuffer', function() { - - it('should recover a block from this known buffer', function() { - var block = Block.fromBuffer(blockbuf); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - }); - - describe('#toBufferWriter', function() { - - it('should recover a block from this known buffer', function() { - var block = Block.fromBuffer(blockbuf); - block.toBufferWriter().concat().toString('hex').should.equal(blockhex); - }); - - it('doesn\'t create a bufferWriter if one provided', function() { - var writer = new BufferWriter(); - var block = Block.fromBuffer(blockbuf); - block.toBufferWriter(writer).should.equal(writer); - }); - - }); - - describe('#toObject', function() { - - it('should recover a block from genesis block buffer', function() { - var block = Block.fromBuffer(blockOneBuf); - block.id.should.equal(blockOneId); - block.toObject().should.deep.equal({ - header: { - hash: '00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048', - version: 1, - prevHash: '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', - merkleRoot: '0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098', - time: 1231469665, - bits: 486604799, - nonce: 2573394689 - }, - transactions: [{ - hash: '0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098', - version: 1, - inputs: [{ - prevTxId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 4294967295, - sequenceNumber: 4294967295, - script: '04ffff001d0104' - }], - outputs: [{ - satoshis: 5000000000, - script: '410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c' + - '52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac' - }], - nLockTime: 0 - }] - }); - }); - - it('roundtrips correctly', function() { - var block = Block.fromBuffer(blockOneBuf); - var obj = block.toObject(); - var block2 = Block.fromObject(obj); - block2.toObject().should.deep.equal(block.toObject()); - }); - - }); - - describe('#_getHash', function() { - - it('should return the correct hash of the genesis block', function() { - var block = Block.fromBuffer(genesisbuf); - var blockhash = new Buffer(Array.apply([], new Buffer(genesisidhex, 'hex')).reverse()); - block._getHash().toString('hex').should.equal(blockhash.toString('hex')); - }); - }); - - describe('#id', function() { - - it('should return the correct id of the genesis block', function() { - var block = Block.fromBuffer(genesisbuf); - block.id.should.equal(genesisidhex); - }); - it('"hash" should be the same as "id"', function() { - var block = Block.fromBuffer(genesisbuf); - block.id.should.equal(block.hash); - }); - - }); - - describe('#inspect', function() { - - it('should return the correct inspect of the genesis block', function() { - var block = Block.fromBuffer(genesisbuf); - block.inspect().should.equal(''); - }); - - }); - - describe('#merkleRoot', function() { - - it('should describe as valid merkle root', function() { - var x = Block.fromRawBlock(dataRawBlockBinary); - var valid = x.validMerkleRoot(); - valid.should.equal(true); - }); - - it('should describe as invalid merkle root', function() { - var x = Block.fromRawBlock(dataRawBlockBinary); - x.transactions.push(new Transaction()); - var valid = x.validMerkleRoot(); - valid.should.equal(false); - }); - - it('should get a null hash merkle root', function() { - var x = Block.fromRawBlock(dataRawBlockBinary); - x.transactions = []; // empty the txs - var mr = x.getMerkleRoot(); - mr.should.deep.equal(Block.Values.NULL_HASH); - }); - - }); - -}); diff --git a/test/block/blockheader.js b/test/block/blockheader.js deleted file mode 100644 index 07e5008..0000000 --- a/test/block/blockheader.js +++ /dev/null @@ -1,302 +0,0 @@ -'use strict'; - -var bitcore = require('../..'); -var BN = require('../../lib/crypto/bn'); -var BufferReader = bitcore.encoding.BufferReader; -var BufferWriter = bitcore.encoding.BufferWriter; - -var BlockHeader = bitcore.BlockHeader; -var fs = require('fs'); -var should = require('chai').should(); - -// https://test-insight.bitpay.com/block/000000000b99b16390660d79fcc138d2ad0c89a0d044c4201a02bdf1f61ffa11 -var dataRawBlockBuffer = fs.readFileSync('test/data/blk86756-testnet.dat'); -var dataRawBlockBinary = fs.readFileSync('test/data/blk86756-testnet.dat', 'binary'); -var dataRawId = '000000000b99b16390660d79fcc138d2ad0c89a0d044c4201a02bdf1f61ffa11'; -var data = require('../data/blk86756-testnet'); - -describe('BlockHeader', function() { - - var version = data.version; - var prevblockidbuf = new Buffer(data.prevblockidhex, 'hex'); - var merklerootbuf = new Buffer(data.merkleroothex, 'hex'); - var time = data.time; - var bits = data.bits; - var nonce = data.nonce; - var bh = new BlockHeader({ - version: version, - prevHash: prevblockidbuf, - merkleRoot: merklerootbuf, - time: time, - bits: bits, - nonce: nonce - }); - var bhhex = data.blockheaderhex; - var bhbuf = new Buffer(bhhex, 'hex'); - - it('should make a new blockheader', function() { - BlockHeader(bhbuf).toBuffer().toString('hex').should.equal(bhhex); - }); - - it('should not make an empty block', function() { - (function() { - BlockHeader(); - }).should.throw('Unrecognized argument for BlockHeader'); - }); - - describe('#constructor', function() { - - it('should set all the variables', function() { - var bh = new BlockHeader({ - version: version, - prevHash: prevblockidbuf, - merkleRoot: merklerootbuf, - time: time, - bits: bits, - nonce: nonce - }); - should.exist(bh.version); - should.exist(bh.prevHash); - should.exist(bh.merkleRoot); - should.exist(bh.time); - should.exist(bh.bits); - should.exist(bh.nonce); - }); - - it('will throw an error if the argument object hash property doesn\'t match', function() { - (function() { - var bh = new BlockHeader({ - hash: '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', - version: version, - prevHash: prevblockidbuf, - merkleRoot: merklerootbuf, - time: time, - bits: bits, - nonce: nonce - }); - }).should.throw('Argument object hash property does not match block hash.'); - }); - - }); - - describe('version', function() { - it('is interpreted as an int32le', function() { - var hex = 'ffffffff00000000000000000000000000000000000000000000000000000000000000004141414141414141414141414141414141414141414141414141414141414141010000000200000003000000'; - var header = BlockHeader.fromBuffer(new Buffer(hex, 'hex')); - header.version.should.equal(-1); - header.timestamp.should.equal(1); - }); - }); - - - describe('#fromObject', function() { - - it('should set all the variables', function() { - var bh = BlockHeader.fromObject({ - version: version, - prevHash: prevblockidbuf.toString('hex'), - merkleRoot: merklerootbuf.toString('hex'), - time: time, - bits: bits, - nonce: nonce - }); - should.exist(bh.version); - should.exist(bh.prevHash); - should.exist(bh.merkleRoot); - should.exist(bh.time); - should.exist(bh.bits); - should.exist(bh.nonce); - }); - - }); - - describe('#toJSON', function() { - - it('should set all the variables', function() { - var json = bh.toJSON(); - should.exist(json.version); - should.exist(json.prevHash); - should.exist(json.merkleRoot); - should.exist(json.time); - should.exist(json.bits); - should.exist(json.nonce); - }); - - }); - - describe('#fromJSON', function() { - - it('should parse this known json string', function() { - - var jsonString = JSON.stringify({ - version: version, - prevHash: prevblockidbuf, - merkleRoot: merklerootbuf, - time: time, - bits: bits, - nonce: nonce - }); - - var json = new BlockHeader(JSON.parse(jsonString)); - should.exist(json.version); - should.exist(json.prevHash); - should.exist(json.merkleRoot); - should.exist(json.time); - should.exist(json.bits); - should.exist(json.nonce); - }); - - }); - - describe('#fromString/#toString', function() { - - it('should output/input a block hex string', function() { - var b = BlockHeader.fromString(bhhex); - b.toString().should.equal(bhhex); - }); - - }); - - describe('#fromBuffer', function() { - - it('should parse this known buffer', function() { - BlockHeader.fromBuffer(bhbuf).toBuffer().toString('hex').should.equal(bhhex); - }); - - }); - - describe('#fromBufferReader', function() { - - it('should parse this known buffer', function() { - BlockHeader.fromBufferReader(BufferReader(bhbuf)).toBuffer().toString('hex').should.equal(bhhex); - }); - - }); - - describe('#toBuffer', function() { - - it('should output this known buffer', function() { - BlockHeader.fromBuffer(bhbuf).toBuffer().toString('hex').should.equal(bhhex); - }); - - }); - - describe('#toBufferWriter', function() { - - it('should output this known buffer', function() { - BlockHeader.fromBuffer(bhbuf).toBufferWriter().concat().toString('hex').should.equal(bhhex); - }); - - it('doesn\'t create a bufferWriter if one provided', function() { - var writer = new BufferWriter(); - var blockHeader = BlockHeader.fromBuffer(bhbuf); - blockHeader.toBufferWriter(writer).should.equal(writer); - }); - - }); - - describe('#inspect', function() { - - it('should return the correct inspect of the genesis block', function() { - var block = BlockHeader.fromRawBlock(dataRawBlockBinary); - block.inspect().should.equal(''); - }); - - }); - - describe('#fromRawBlock', function() { - - it('should instantiate from a raw block binary', function() { - var x = BlockHeader.fromRawBlock(dataRawBlockBinary); - x.version.should.equal(2); - new BN(x.bits).toString('hex').should.equal('1c3fffc0'); - }); - - it('should instantiate from raw block buffer', function() { - var x = BlockHeader.fromRawBlock(dataRawBlockBuffer); - x.version.should.equal(2); - new BN(x.bits).toString('hex').should.equal('1c3fffc0'); - }); - - }); - - describe('#validTimestamp', function() { - - var x = BlockHeader.fromRawBlock(dataRawBlockBuffer); - - it('should validate timpstamp as true', function() { - var valid = x.validTimestamp(x); - valid.should.equal(true); - }); - - - it('should validate timestamp as false', function() { - x.time = Math.round(new Date().getTime() / 1000) + BlockHeader.Constants.MAX_TIME_OFFSET + 100; - var valid = x.validTimestamp(x); - valid.should.equal(false); - }); - - }); - - describe('#validProofOfWork', function() { - - it('should validate proof-of-work as true', function() { - var x = BlockHeader.fromRawBlock(dataRawBlockBuffer); - var valid = x.validProofOfWork(x); - valid.should.equal(true); - - }); - - it('should validate proof of work as false because incorrect proof of work', function() { - var x = BlockHeader.fromRawBlock(dataRawBlockBuffer); - var nonce = x.nonce; - x.nonce = 0; - var valid = x.validProofOfWork(x); - valid.should.equal(false); - x.nonce = nonce; - }); - - }); - - describe('#getDifficulty', function() { - it('should get the correct difficulty for block 86756', function() { - var x = BlockHeader.fromRawBlock(dataRawBlockBuffer); - x.bits.should.equal(0x1c3fffc0); - x.getDifficulty().should.equal(4); - }); - - it('should get the correct difficulty for testnet block 552065', function() { - var x = new BlockHeader({ - bits: 0x1b00c2a8 - }); - x.getDifficulty().should.equal(86187.62562209); - }); - - it('should get the correct difficulty for livenet block 373043', function() { - var x = new BlockHeader({ - bits: 0x18134dc1 - }); - x.getDifficulty().should.equal(56957648455.01001); - }); - - it('should get the correct difficulty for livenet block 340000', function() { - var x = new BlockHeader({ - bits: 0x1819012f - }); - x.getDifficulty().should.equal(43971662056.08958); - }); - - it('should use exponent notation if difficulty is larger than Javascript number', function() { - var x = new BlockHeader({ - bits: 0x0900c2a8 - }); - x.getDifficulty().should.equal(1.9220482782645836 * 1e48); - }); - }); - - it('coverage: caches the "_id" property', function() { - var blockHeader = BlockHeader.fromRawBlock(dataRawBlockBuffer); - blockHeader.id.should.equal(blockHeader.id); - }); - -}); diff --git a/test/block/merkleblock.js b/test/block/merkleblock.js deleted file mode 100644 index 4eb78e4..0000000 --- a/test/block/merkleblock.js +++ /dev/null @@ -1,230 +0,0 @@ -'use strict'; - -var should = require('chai').should(); - -var bitcore = require('../..'); -var MerkleBlock = bitcore.MerkleBlock; -var BufferReader = bitcore.encoding.BufferReader; -var BufferWriter = bitcore.encoding.BufferWriter; -var Transaction = bitcore.Transaction; -var data = require('../data/merkleblocks.js'); -var transactionVector = require('../data/tx_creation'); - - -describe('MerkleBlock', function() { - var blockhex = data.HEX[0]; - var blockbuf = new Buffer(blockhex,'hex'); - var blockJSON = JSON.stringify(data.JSON[0]); - var blockObject = JSON.parse(JSON.stringify(data.JSON[0])); - - describe('#constructor', function() { - it('should make a new merkleblock from buffer', function() { - var b = MerkleBlock(blockbuf); - b.toBuffer().toString('hex').should.equal(blockhex); - }); - - it('should make a new merkleblock from object', function() { - var b = MerkleBlock(blockObject); - b.toObject().should.deep.equal(blockObject); - }); - - it('should make a new merkleblock from JSON', function() { - var b = MerkleBlock(JSON.parse(blockJSON)); - JSON.stringify(b).should.equal(blockJSON); - }); - - it('should not make an empty block', function() { - (function() { - return new MerkleBlock(); - }).should.throw('Unrecognized argument for MerkleBlock'); - }); - }); - - describe('#fromObject', function() { - - it('should set these known values', function() { - var block = MerkleBlock.fromObject(JSON.parse(blockJSON)); - should.exist(block.header); - should.exist(block.numTransactions); - should.exist(block.hashes); - should.exist(block.flags); - }); - - it('should set these known values', function() { - var block = MerkleBlock(JSON.parse(blockJSON)); - should.exist(block.header); - should.exist(block.numTransactions); - should.exist(block.hashes); - should.exist(block.flags); - }); - - it('accepts an object as argument', function() { - var block = MerkleBlock(blockbuf); - MerkleBlock.fromObject(block.toObject()).should.exist(); - }); - - }); - - describe('#toJSON', function() { - - it('should recover these known values', function() { - var block = new MerkleBlock(JSON.parse(blockJSON)); - var b = JSON.parse(JSON.stringify(block)); - should.exist(block.header); - should.exist(block.numTransactions); - should.exist(block.hashes); - should.exist(block.flags); - should.exist(b.header); - should.exist(b.numTransactions); - should.exist(b.hashes); - should.exist(b.flags); - }); - - }); - - describe('#fromBuffer', function() { - - it('should make a block from this known buffer', function() { - var block = MerkleBlock.fromBuffer(blockbuf); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - }); - - describe('#fromBufferReader', function() { - - it('should make a block from this known buffer', function() { - var block = MerkleBlock.fromBufferReader(BufferReader(blockbuf)); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - }); - - describe('#toBuffer', function() { - - it('should recover a block from this known buffer', function() { - var block = MerkleBlock.fromBuffer(blockbuf); - block.toBuffer().toString('hex').should.equal(blockhex); - }); - - }); - - describe('#toBufferWriter', function() { - - it('should recover a block from this known buffer', function() { - var block = MerkleBlock.fromBuffer(blockbuf); - block.toBufferWriter().concat().toString('hex').should.equal(blockhex); - }); - - it('doesn\'t create a bufferWriter if one provided', function() { - var writer = new BufferWriter(); - var block = MerkleBlock.fromBuffer(blockbuf); - block.toBufferWriter(writer).should.equal(writer); - }); - - }); - - - describe('#validMerkleTree', function() { - - it('should validate good merkleblocks', function() { - data.JSON.forEach(function(data) { - var b = MerkleBlock(data); - b.validMerkleTree().should.equal(true); - }); - }); - - it('should not validate merkleblocks with too many hashes', function() { - var b = MerkleBlock(data.JSON[0]); - // Add too many hashes - var i = 0; - while(i <= b.numTransactions) { - b.hashes.push('bad' + i++); - } - b.validMerkleTree().should.equal(false); - }); - - it('should not validate merkleblocks with too few bit flags', function() { - var b = MerkleBlock(JSON.parse(blockJSON)); - b.flags.pop(); - b.validMerkleTree().should.equal(false); - }); - - }); - - describe('#filterdTxsHash', function() { - - it('should validate good merkleblocks', function() { - var hashOfFilteredTx = '6f64fd5aa9dd01f74c03656d376625cf80328d83d9afebe60cc68b8f0e245bd9' - var b = MerkleBlock(data.JSON[3]); - b.filterdTxsHash()[0].should.equal(hashOfFilteredTx); - }); - - it('should fail with merkleblocks with too many hashes', function() { - var b = MerkleBlock(data.JSON[0]); - // Add too many hashes - var i = 0; - while(i <= b.numTransactions) { - b.hashes.push('bad' + i++); - } - (function() { - b.filterdTxsHash(); - }).should.throw('This MerkleBlock contain an invalid Merkle Tree'); - }); - - it('should fail with merkleblocks with too few bit flags', function() { - var b = MerkleBlock(JSON.parse(blockJSON)); - b.flags.pop(); - (function() { - b.filterdTxsHash(); - }).should.throw('This MerkleBlock contain an invalid Merkle Tree'); - }); - - }); - - describe('#hasTransaction', function() { - - it('should find transactions via hash string', function() { - var jsonData = data.JSON[0]; - var txId = new Buffer(jsonData.hashes[1],'hex').toString('hex'); - var b = MerkleBlock(jsonData); - b.hasTransaction(txId).should.equal(true); - b.hasTransaction(txId + 'abcd').should.equal(false); - }); - - it('should find transactions via Transaction object', function() { - var jsonData = data.JSON[0]; - var txBuf = new Buffer(data.TXHEX[0][0],'hex'); - var tx = new Transaction().fromBuffer(txBuf); - var b = MerkleBlock(jsonData); - b.hasTransaction(tx).should.equal(true); - }); - - it('should not find non-existant Transaction object', function() { - // Reuse another transaction already in data/ dir - var serialized = transactionVector[0][7]; - var tx = new Transaction().fromBuffer(new Buffer(serialized, 'hex')); - var b = MerkleBlock(data.JSON[0]); - b.hasTransaction(tx).should.equal(false); - }); - - it('should not match with merkle nodes', function() { - var b = MerkleBlock(data.JSON[0]); - - var hashData = [ - ['3612262624047ee87660be1a707519a443b1c1ce3d248cbfc6c15870f6c5daa2', false], - ['019f5b01d4195ecbc9398fbf3c3b1fa9bb3183301d7a1fb3bd174fcfa40a2b65', true], - ['41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068', false], - ['20d2a7bc994987302e5b1ac80fc425fe25f8b63169ea78e68fbaaefa59379bbf', false] - ]; - - hashData.forEach(function check(d){ - b.hasTransaction(d[0]).should.equal(d[1]); - }); - - }); - - }); - -}); - diff --git a/test/crypto/bn.js b/test/crypto/bn.js deleted file mode 100644 index 085b40c..0000000 --- a/test/crypto/bn.js +++ /dev/null @@ -1,153 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var BN = bitcore.crypto.BN; - -describe('BN', function() { - it('should create a bn', function() { - var bn = new BN(50); - should.exist(bn); - bn.toString().should.equal('50'); - }); - - it('should parse this number', function() { - var bn = new BN(999970000); - bn.toString().should.equal('999970000'); - }); - - it('should parse numbers below and at bn.js internal word size', function() { - var bn = new BN(Math.pow(2, 26) - 1); - bn.toString().should.equal((Math.pow(2, 26) - 1).toString()); - bn = new BN(Math.pow(2, 26)); - bn.toString().should.equal((Math.pow(2, 26)).toString()); - }); - - describe('#add', function() { - - it('should add two small numbers together', function() { - var bn1 = new BN(50); - var bn2 = new BN(75); - var bn3 = bn1.add(bn2); - bn3.toString().should.equal('125'); - }); - - }); - - describe('#sub', function() { - - it('should subtract a small number', function() { - var bn1 = new BN(50); - var bn2 = new BN(25); - var bn3 = bn1.sub(bn2); - bn3.toString().should.equal('25'); - }); - - }); - - describe('#gt', function() { - - it('should say 1 is greater than 0', function() { - var bn1 = new BN(1); - var bn0 = new BN(0); - bn1.gt(bn0).should.equal(true); - }); - - it('should say a big number is greater than a small big number', function() { - var bn1 = new BN('24023452345398529485723980457'); - var bn0 = new BN('34098234283412341234049357'); - bn1.gt(bn0).should.equal(true); - }); - - it('should say a big number is great than a standard number', function() { - var bn1 = new BN('24023452345398529485723980457'); - var bn0 = new BN(5); - bn1.gt(bn0).should.equal(true); - }); - - }); - - describe('to/from ScriptNumBuffer', function() { - [0, 1, 10, 256, 1000, 65536, 65537, -1, -1000, -65536, -65537].forEach(function(n) { - it('rountrips correctly for ' + n, function() { - BN.fromScriptNumBuffer(new BN(n).toScriptNumBuffer()).toNumber().should.equal(n); - }); - }); - }); - - describe('#fromString', function() { - it('should make BN from a string', function() { - BN.fromString('5').toString().should.equal('5'); - }); - it('should work with hex string', function() { - BN.fromString('7fffff0000000000000000000000000000000000000000000000000000000000', 16) - .toString(16).should.equal('7fffff0000000000000000000000000000000000000000000000000000000000'); - }); - }); - - describe('#toString', function() { - it('should make a string', function() { - new BN(5).toString().should.equal('5'); - }); - }); - - describe('@fromBuffer', function() { - - it('should work with big endian', function() { - var bn = BN.fromBuffer(new Buffer('0001', 'hex'), { - endian: 'big' - }); - bn.toString().should.equal('1'); - }); - - it('should work with big endian 256', function() { - var bn = BN.fromBuffer(new Buffer('0100', 'hex'), { - endian: 'big' - }); - bn.toString().should.equal('256'); - }); - - it('should work with little endian if we specify the size', function() { - var bn = BN.fromBuffer(new Buffer('0100', 'hex'), { - size: 2, - endian: 'little' - }); - bn.toString().should.equal('1'); - }); - - }); - - describe('#toBuffer', function() { - - it('should create a 4 byte buffer', function() { - var bn = new BN(1); - bn.toBuffer({ - size: 4 - }).toString('hex').should.equal('00000001'); - }); - - it('should create a 4 byte buffer in little endian', function() { - var bn = new BN(1); - bn.toBuffer({ - size: 4, - endian: 'little' - }).toString('hex').should.equal('01000000'); - }); - - it('should create a 2 byte buffer even if you ask for a 1 byte', function() { - var bn = new BN('ff00', 16); - bn.toBuffer({ - size: 1 - }).toString('hex').should.equal('ff00'); - }); - - it('should create a 4 byte buffer even if you ask for a 1 byte', function() { - var bn = new BN('ffffff00', 16); - bn.toBuffer({ - size: 4 - }).toString('hex').should.equal('ffffff00'); - }); - - }); - -}); diff --git a/test/crypto/ecdsa.js b/test/crypto/ecdsa.js deleted file mode 100644 index 1ddae96..0000000 --- a/test/crypto/ecdsa.js +++ /dev/null @@ -1,325 +0,0 @@ -'use strict'; - -var ECDSA = require('../../lib/crypto/ecdsa'); -var Hash = require('../../lib/crypto/hash'); -var Privkey = require('../../lib/privatekey'); -var Pubkey = require('../../lib/publickey'); -var Signature = require('../../lib/crypto/signature'); -var BN = require('../../lib/crypto/bn'); -var point = require('../../lib/crypto/point'); -var should = require('chai').should(); -var vectors = require('../data/ecdsa'); - -describe('ECDSA', function() { - - it('instantiation', function() { - var ecdsa = new ECDSA(); - should.exist(ecdsa); - }); - - var ecdsa = new ECDSA(); - ecdsa.hashbuf = Hash.sha256(new Buffer('test data')); - ecdsa.privkey = new Privkey(BN.fromBuffer( - new Buffer('fee0a1f7afebf9d2a5a80c0c98a31c709681cce195cbcd06342b517970c0be1e', 'hex') - )); - ecdsa.privkey2pubkey(); - - describe('#set', function() { - it('sets hashbuf', function() { - should.exist(ECDSA().set({ - hashbuf: ecdsa.hashbuf - }).hashbuf); - }); - }); - - describe('#calci', function() { - it('calculates i correctly', function() { - ecdsa.randomK(); - ecdsa.sign(); - ecdsa.calci(); - should.exist(ecdsa.sig.i); - }); - - it('calulates this known i', function() { - var hashbuf = Hash.sha256(new Buffer('some data')); - var r = new BN('71706645040721865894779025947914615666559616020894583599959600180037551395766', 10); - var s = new BN('109412465507152403114191008482955798903072313614214706891149785278625167723646', 10); - var ecdsa = new ECDSA({ - privkey: new Privkey(BN.fromBuffer(Hash.sha256(new Buffer('test')))), - hashbuf: hashbuf, - sig: new Signature({ - r: r, - s: s - }) - }); - - ecdsa.calci(); - ecdsa.sig.i.should.equal(1); - }); - - }); - - describe('#fromString', function() { - - it('round trip with fromString', function() { - var str = ecdsa.toString(); - var ecdsa2 = new ECDSA.fromString(str); - should.exist(ecdsa2.hashbuf); - should.exist(ecdsa2.privkey); - }); - - }); - - describe('#randomK', function() { - - it('should generate a new random k when called twice in a row', function() { - ecdsa.randomK(); - var k1 = ecdsa.k; - ecdsa.randomK(); - var k2 = ecdsa.k; - (k1.cmp(k2) === 0).should.equal(false); - }); - - it('should generate a random k that is (almost always) greater than this relatively small number', function() { - ecdsa.randomK(); - var k1 = ecdsa.k; - var k2 = new BN(Math.pow(2, 32)).mul(new BN(Math.pow(2, 32))).mul(new BN(Math.pow(2, 32))); - k2.gt(k1).should.equal(false); - }); - - }); - - describe('#deterministicK', function() { - it('should generate the same deterministic k', function() { - ecdsa.deterministicK(); - ecdsa.k.toBuffer().toString('hex') - .should.equal('fcce1de7a9bcd6b2d3defade6afa1913fb9229e3b7ddf4749b55c4848b2a196e'); - }); - it('should generate the same deterministic k if badrs is set', function() { - ecdsa.deterministicK(0); - ecdsa.k.toBuffer().toString('hex') - .should.equal('fcce1de7a9bcd6b2d3defade6afa1913fb9229e3b7ddf4749b55c4848b2a196e'); - ecdsa.deterministicK(1); - ecdsa.k.toBuffer().toString('hex') - .should.not.equal('fcce1de7a9bcd6b2d3defade6afa1913fb9229e3b7ddf4749b55c4848b2a196e'); - ecdsa.k.toBuffer().toString('hex') - .should.equal('727fbcb59eb48b1d7d46f95a04991fc512eb9dbf9105628e3aec87428df28fd8'); - }); - it('should compute this test vector correctly', function() { - // test fixture from bitcoinjs - // https://github.com/bitcoinjs/bitcoinjs-lib/blob/10630873ebaa42381c5871e20336fbfb46564ac8/test/fixtures/ecdsa.json#L6 - var ecdsa = new ECDSA(); - ecdsa.hashbuf = Hash.sha256(new Buffer('Everything should be made as simple as possible, but not simpler.')); - ecdsa.privkey = new Privkey(new BN(1)); - ecdsa.privkey2pubkey(); - ecdsa.deterministicK(); - ecdsa.k.toBuffer().toString('hex') - .should.equal('ec633bd56a5774a0940cb97e27a9e4e51dc94af737596a0c5cbb3d30332d92a5'); - ecdsa.sign(); - ecdsa.sig.r.toString() - .should.equal('23362334225185207751494092901091441011938859014081160902781146257181456271561'); - ecdsa.sig.s.toString() - .should.equal('50433721247292933944369538617440297985091596895097604618403996029256432099938'); - }); - }); - - describe('#toPublicKey', function() { - it('should calculate the correct public key', function() { - ecdsa.k = new BN('114860389168127852803919605627759231199925249596762615988727970217268189974335', 10); - ecdsa.sign(); - ecdsa.sig.i = 0; - var pubkey = ecdsa.toPublicKey(); - pubkey.point.eq(ecdsa.pubkey.point).should.equal(true); - }); - - it('should calculate the correct public key for this signature with low s', function() { - ecdsa.k = new BN('114860389168127852803919605627759231199925249596762615988727970217268189974335', 10); - ecdsa.sig = Signature.fromString('3045022100ec3cfe0e335791ad278b4ec8eac93d0347' + - 'a97877bb1d54d35d189e225c15f6650220278cf15b05ce47fb37d2233802899d94c774d5480bba9f0f2d996baa13370c43'); - ecdsa.sig.i = 0; - var pubkey = ecdsa.toPublicKey(); - pubkey.point.eq(ecdsa.pubkey.point).should.equal(true); - }); - - it('should calculate the correct public key for this signature with high s', function() { - ecdsa.k = new BN('114860389168127852803919605627759231199925249596762615988727970217268189974335', 10); - ecdsa.sign(); - ecdsa.sig = Signature.fromString('3046022100ec3cfe0e335791ad278b4ec8eac93d0347' + - 'a97877bb1d54d35d189e225c15f665022100d8730ea4fa31b804c82ddcc7fd766269f33a079ea38e012c9238f2e2bcff34fe'); - ecdsa.sig.i = 1; - var pubkey = ecdsa.toPublicKey(); - pubkey.point.eq(ecdsa.pubkey.point).should.equal(true); - }); - - }); - - describe('#sigError', function() { - - it('should return an error if the hash is invalid', function() { - var ecdsa = new ECDSA(); - ecdsa.sigError().should.equal('hashbuf must be a 32 byte buffer'); - }); - - it('should return an error if r, s are invalid', function() { - var ecdsa = new ECDSA(); - ecdsa.hashbuf = Hash.sha256(new Buffer('test')); - var pk = Pubkey.fromDER(new Buffer('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49' + - '710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341', 'hex')); - ecdsa.pubkey = pk; - ecdsa.sig = new Signature(); - ecdsa.sig.r = new BN(0); - ecdsa.sig.s = new BN(0); - ecdsa.sigError().should.equal('r and s not in range'); - }); - - it('should return an error if the signature is incorrect', function() { - ecdsa.sig = Signature.fromString('3046022100e9915e6236695f093a4128ac2a956c40' + - 'ed971531de2f4f41ba05fac7e2bd019c02210094e6a4a769cc7f2a8ab3db696c7cd8d56bcdbfff860a8c81de4bc6a798b90827'); - ecdsa.sig.r = ecdsa.sig.r.add(new BN(1)); - ecdsa.sigError().should.equal('Invalid signature'); - }); - - }); - - describe('#sign', function() { - - it('should create a valid signature', function() { - ecdsa.randomK(); - ecdsa.sign(); - ecdsa.verify().verified.should.equal(true); - }); - - it('should should throw an error if hashbuf is not 32 bytes', function() { - var ecdsa2 = ECDSA().set({ - hashbuf: ecdsa.hashbuf.slice(0, 31), - privkey: ecdsa.privkey - }); - ecdsa2.randomK(); - ecdsa2.sign.bind(ecdsa2).should.throw('hashbuf must be a 32 byte buffer'); - }); - - it('should default to deterministicK', function() { - var ecdsa2 = new ECDSA(ecdsa); - ecdsa2.k = undefined; - var called = 0; - var deterministicK = ecdsa2.deterministicK.bind(ecdsa2); - ecdsa2.deterministicK = function() { - deterministicK(); - called++; - }; - ecdsa2.sign(); - called.should.equal(1); - }); - - it('should generate right K', function() { - var msg1 = new Buffer('52204d20fd0131ae1afd173fd80a3a746d2dcc0cddced8c9dc3d61cc7ab6e966', 'hex'); - var msg2 = [].reverse.call(new Buffer(msg1)) - var pk = new Buffer('16f243e962c59e71e54189e67e66cf2440a1334514c09c00ddcc21632bac9808', 'hex'); - var signature1 = ECDSA.sign(msg1, Privkey.fromBuffer(pk)).toBuffer().toString('hex'); - var signature2 = ECDSA.sign(msg2, Privkey.fromBuffer(pk), 'little').toBuffer().toString('hex'); - signature1.should.equal(signature2); - }); - - }); - - describe('#toString', function() { - it('should convert this to a string', function() { - var str = ecdsa.toString(); - (typeof str === 'string').should.equal(true); - }); - }); - - describe('signing and verification', function() { - describe('@sign', function() { - it('should produce a signature', function() { - var sig = ECDSA.sign(ecdsa.hashbuf, ecdsa.privkey); - (sig instanceof Signature).should.equal(true); - }); - it('should produce a signature, and be different when called twice', function() { - ecdsa.signRandomK(); - should.exist(ecdsa.sig); - var ecdsa2 = ECDSA(ecdsa); - ecdsa2.signRandomK(); - ecdsa.sig.toString().should.not.equal(ecdsa2.sig.toString()); - }); - }); - - describe('#verify', function() { - it('should verify a signature that was just signed', function() { - ecdsa.sig = Signature.fromString('3046022100e9915e6236695f093a4128ac2a956c' + - '40ed971531de2f4f41ba05fac7e2bd019c02210094e6a4a769cc7f2a8ab3db696c7cd8d56bcdbfff860a8c81de4bc6a798b90827'); - ecdsa.verify().verified.should.equal(true); - }); - it('should verify this known good signature', function() { - ecdsa.signRandomK(); - ecdsa.verify().verified.should.equal(true); - }); - it('should verify a valid signature, and unverify an invalid signature', function() { - var sig = ECDSA.sign(ecdsa.hashbuf, ecdsa.privkey); - ECDSA.verify(ecdsa.hashbuf, sig, ecdsa.pubkey).should.equal(true); - var fakesig = new Signature(sig.r.add(new BN(1)), sig.s); - ECDSA.verify(ecdsa.hashbuf, fakesig, ecdsa.pubkey).should.equal(false); - }); - it('should work with big and little endian', function() { - var sig = ECDSA.sign(ecdsa.hashbuf, ecdsa.privkey, 'big'); - ECDSA.verify(ecdsa.hashbuf, sig, ecdsa.pubkey, 'big').should.equal(true); - ECDSA.verify(ecdsa.hashbuf, sig, ecdsa.pubkey, 'little').should.equal(false); - sig = ECDSA.sign(ecdsa.hashbuf, ecdsa.privkey, 'little'); - ECDSA.verify(ecdsa.hashbuf, sig, ecdsa.pubkey, 'big').should.equal(false); - ECDSA.verify(ecdsa.hashbuf, sig, ecdsa.pubkey, 'little').should.equal(true); - }); - }); - - describe('vectors', function() { - - vectors.valid.forEach(function(obj, i) { - it('should validate valid vector ' + i, function() { - var ecdsa = ECDSA().set({ - privkey: new Privkey(BN.fromBuffer(new Buffer(obj.d, 'hex'))), - k: BN.fromBuffer(new Buffer(obj.k, 'hex')), - hashbuf: Hash.sha256(new Buffer(obj.message)), - sig: new Signature().set({ - r: new BN(obj.signature.r), - s: new BN(obj.signature.s), - i: obj.i - }) - }); - var ecdsa2 = ECDSA(ecdsa); - ecdsa2.k = undefined; - ecdsa2.sign(); - ecdsa2.calci(); - ecdsa2.k.toString().should.equal(ecdsa.k.toString()); - ecdsa2.sig.toString().should.equal(ecdsa.sig.toString()); - ecdsa2.sig.i.should.equal(ecdsa.sig.i); - ecdsa.verify().verified.should.equal(true); - }); - }); - - vectors.invalid.sigError.forEach(function(obj, i) { - it('should validate invalid.sigError vector ' + i + ': ' + obj.description, function() { - var ecdsa = ECDSA().set({ - pubkey: Pubkey.fromPoint(point.fromX(true, 1)), - sig: new Signature(new BN(obj.signature.r), new BN(obj.signature.s)), - hashbuf: Hash.sha256(new Buffer(obj.message)) - }); - ecdsa.sigError().should.equal(obj.exception); - }); - }); - - vectors.deterministicK.forEach(function(obj, i) { - it('should validate deterministicK vector ' + i, function() { - var hashbuf = Hash.sha256(new Buffer(obj.message)); - var privkey = Privkey(BN.fromBuffer(new Buffer(obj.privkey, 'hex')), 'mainnet'); - var ecdsa = ECDSA({ - privkey: privkey, - hashbuf: hashbuf - }); - ecdsa.deterministicK(0).k.toString('hex').should.equal(obj.k_bad00); - ecdsa.deterministicK(1).k.toString('hex').should.equal(obj.k_bad01); - ecdsa.deterministicK(15).k.toString('hex').should.equal(obj.k_bad15); - }); - }); - - }); - }); -}); diff --git a/test/crypto/hash.js b/test/crypto/hash.js deleted file mode 100644 index c079fee..0000000 --- a/test/crypto/hash.js +++ /dev/null @@ -1,139 +0,0 @@ -'use strict'; - -require('chai').should(); -var bitcore = require('../..'); -var Hash = bitcore.crypto.Hash; - -describe('Hash', function() { - var buf = new Buffer([0, 1, 2, 3, 253, 254, 255]); - var str = 'test string'; - - describe('@sha1', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.sha1(buf); - hash.toString('hex').should.equal('de69b8a4a5604d0486e6420db81e39eb464a17b2'); - hash = Hash.sha1(new Buffer(0)); - hash.toString('hex').should.equal('da39a3ee5e6b4b0d3255bfef95601890afd80709'); - }); - - it('throws an error when the input is not a buffer', function() { - Hash.sha1.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#sha256', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.sha256(buf); - hash.toString('hex').should.equal('6f2c7b22fd1626998287b3636089087961091de80311b9279c4033ec678a83e8'); - }); - - it('fails when the input is not a buffer', function() { - Hash.sha256.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#sha256hmac', function() { - - it('computes this known big key correctly', function() { - var key = new Buffer('b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad' + - 'b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad' + - 'b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad' + - 'b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad'); - var data = new Buffer(''); - Hash.sha256hmac(data, key).toString('hex') - .should.equal('fb1f87218671f1c0c4593a88498e02b6dfe8afd814c1729e89a1f1f6600faa23'); - }); - - it('computes this known empty test vector correctly', function() { - var key = new Buffer(''); - var data = new Buffer(''); - Hash.sha256hmac(data, key).toString('hex') - .should.equal('b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad'); - }); - - it('computes this known non-empty test vector correctly', function() { - var key = new Buffer('key'); - var data = new Buffer('The quick brown fox jumps over the lazy dog'); - Hash.sha256hmac(data, key).toString('hex') - .should.equal('f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8'); - }); - - }); - - describe('#sha256sha256', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.sha256sha256(buf); - hash.toString('hex').should.equal('be586c8b20dee549bdd66018c7a79e2b67bb88b7c7d428fa4c970976d2bec5ba'); - }); - - it('fails when the input is not a buffer', function() { - Hash.sha256sha256.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#sha256ripemd160', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.sha256ripemd160(buf); - hash.toString('hex').should.equal('7322e2bd8535e476c092934e16a6169ca9b707ec'); - }); - - it('fails when the input is not a buffer', function() { - Hash.sha256ripemd160.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#ripemd160', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.ripemd160(buf); - hash.toString('hex').should.equal('fa0f4565ff776fee0034c713cbf48b5ec06b7f5c'); - }); - - it('fails when the input is not a buffer', function() { - Hash.ripemd160.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#sha512', function() { - - it('calculates the hash of this buffer correctly', function() { - var hash = Hash.sha512(buf); - hash.toString('hex') - .should.equal('c0530aa32048f4904ae162bc14b9eb535eab6c465e960130005fedd' + - 'b71613e7d62aea75f7d3333ba06e805fc8e45681454524e3f8050969fe5a5f7f2392e31d0'); - }); - - it('fails when the input is not a buffer', function() { - Hash.sha512.bind(Hash, str).should.throw('Invalid Argument'); - }); - - }); - - describe('#sha512hmac', function() { - - it('calculates this known empty test vector correctly', function() { - var hex = 'b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4a' + - 'c6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d47'; - Hash.sha512hmac(new Buffer([]), new Buffer([])).toString('hex').should.equal(hex); - }); - - it('calculates this known non-empty test vector correctly', function() { - var hex = 'c40bd7c15aa493b309c940e08a73ffbd28b2e4cb729eb94480d727e4df577' + - 'b13cc403a78e6150d83595f3b17c4cc331f12ca5952691de3735a63c1d4c69a2bac'; - var data = new Buffer('test1'); - var key = new Buffer('test2'); - Hash.sha512hmac(data, key).toString('hex').should.equal(hex); - }); - - }); - -}); diff --git a/test/crypto/point.js b/test/crypto/point.js deleted file mode 100644 index 95f5b53..0000000 --- a/test/crypto/point.js +++ /dev/null @@ -1,173 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var Point = bitcore.crypto.Point; -var BN = bitcore.crypto.BN; - -describe('Point', function() { - - var valid = { - x: 'ac242d242d23be966085a2b2b893d989f824e06c9ad0395a8a52f055ba39abb2', - y: '4836ab292c105a711ed10fcfd30999c31ff7c02456147747e03e739ad527c380', - }; - - var invalidPair = { - x: 'ac242d242d23be966085a2b2b893d989f824e06c9ad0395a8a52f055ba39abb2', - y: '0000000000000000000000000000000000000000000000000000000000000000', - }; - - it('should create a point', function() { - var p = Point(valid.x, valid.y); - should.exist(p); - }); - - it('should create a point when called with "new"', function() { - var p = new Point(valid.x,valid.y); - should.exist(p); - }); - - describe('#getX', function() { - - it('should return x', function() { - var p = Point(valid.x,valid.y); - var x = p.getX(); - x.toString('hex', 64).should.equal(valid.x); - }); - - it('should be convertable to a buffer', function() { - var p = Point(valid.x,valid.y); - var a = p.getX().toBuffer({size: 32}); - a.length.should.equal(32); - a.should.deep.equal(new Buffer(valid.x, 'hex')); - }); - - }); - - describe('#getY', function() { - - it('should return y', function() { - var p = Point(valid.x,valid.y); - p.getY().toString('hex', 64).should.equal(valid.y); - }); - - it('should be convertable to a buffer', function() { - var p = Point(valid.x,valid.y); - var a = p.getY().toBuffer({size: 32}); - a.length.should.equal(32); - a.should.deep.equal(new Buffer(valid.y, 'hex')); - }); - - }); - - describe('#add', function() { - - it('should accurately add g to itself', function() { - var p1 = Point.getG(); - var p2 = Point.getG(); - var p3 = p1.add(p2); - p3.getX().toString().should.equal('89565891926547004231252920425935692360644145829622209'+ - '833684329913297188986597'); - p3.getY().toString().should.equal('12158399299693830322967808612713398636155367887041628'+ - '176798871954788371653930'); - }); - - }); - - describe('#mul', function() { - - it('should accurately multiply g by 2', function() { - var g = Point.getG(); - var b = g.mul(new BN(2)); - b.getX().toString().should.equal('8956589192654700423125292042593569236064414582962220983'+ - '3684329913297188986597'); - b.getY().toString().should.equal('1215839929969383032296780861271339863615536788704162817'+ - '6798871954788371653930'); - }); - - it('should accurately multiply g by n-1', function() { - var g = Point.getG(); - var n = Point.getN(); - var b = g.mul(n.sub(new BN(1))); - b.getX().toString().should.equal('55066263022277343669578718895168534326250603453777594175'+ - '500187360389116729240'); - b.getY().toString().should.equal('83121579216557378445487899878180864668798711284981320763'+ - '518679672151497189239'); - }); - - //not sure if this is technically accurate or not... - //normally, you should always multiply g by something less than n - //but it is the same result in OpenSSL - it('should accurately multiply g by n+1', function() { - var g = Point.getG(); - var n = Point.getN(); - var b = g.mul(n.add(new BN(1))); - b.getX().toString().should.equal('550662630222773436695787188951685343262506034537775941755'+ - '00187360389116729240'); - b.getY().toString().should.equal('326705100207588169780830851305070431844712733806592432759'+ - '38904335757337482424'); - }); - - }); - - describe('@fromX', function() { - - it('should return g', function() { - var g = Point.getG(); - var p = Point.fromX(false, g.getX()); - g.eq(p).should.equal(true); - }); - - }); - - describe('#validate', function() { - - it('should describe this point as valid', function() { - var p = Point(valid.x, valid.y); - should.exist(p.validate()); - }); - - it('should describe this point as invalid because of zero y', function() { - var x = 'ac242d242d23be966085a2b2b893d989f824e06c9ad0395a8a52f055ba39abb2'; - var y = '0000000000000000000000000000000000000000000000000000000000000000'; - (function() { - var p = Point(x, y); - }).should.throw('Invalid y value for curve.'); - }); - - - it('should describe this point as invalid because of invalid y', function() { - var x = 'ac242d242d23be966085a2b2b893d989f824e06c9ad0395a8a52f055ba39abb2'; - var y = '00000000000000000000000000000000000000000000000000000000000000FF'; - (function() { - var p = Point(x, y); - }).should.throw('Invalid y value for curve.'); - }); - - - it('should describe this point as invalid because out of curve bounds', function() { - - // point larger than max - var x = 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEDCE6AF48A03BBFD25E8CD0364141'; - // calculated y of x - var y = 'ed3970f129bc2ca7c7c6cf92fa7da4de6a1dfc9c14da4bf056aa868d3dd74034'; - - (function() { - // set the point - var p = Point(x, y); - }).should.throw('Point does not lie on the curve'); - }); - - it('should describe this point as invalid because out of curve bounds', function() { - - var x = '0000000000000000000000000000000000000000000000000000000000000000'; - - (function() { - // set the point - var p = Point.fromX(false, x); - }).should.throw('Invalid X'); - }); - - }); - -}); diff --git a/test/crypto/random.js b/test/crypto/random.js deleted file mode 100644 index cf08bc2..0000000 --- a/test/crypto/random.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -var bitcore = require('../..'); -var Random = bitcore.crypto.Random; - -describe('Random', function() { - - describe('@getRandomBuffer', function() { - - it('should return a buffer', function() { - var bytes = Random.getRandomBuffer(8); - bytes.length.should.equal(8); - Buffer.isBuffer(bytes).should.equal(true); - }); - - it('should not equate two 256 bit random buffers', function() { - var bytes1 = Random.getRandomBuffer(32); - var bytes2 = Random.getRandomBuffer(32); - bytes1.toString('hex').should.not.equal(bytes2.toString('hex')); - }); - - it('should generate 100 8 byte buffers in a row that are not equal', function() { - var hexs = []; - for (var i = 0; i < 100; i++) { - hexs[i] = Random.getRandomBuffer(8).toString('hex'); - } - for (i = 0; i < 100; i++) { - for (var j = i + 1; j < 100; j++) { - hexs[i].should.not.equal(hexs[j]); - } - } - }); - - }); - -}); diff --git a/test/crypto/signature.js b/test/crypto/signature.js deleted file mode 100644 index 5ea73c0..0000000 --- a/test/crypto/signature.js +++ /dev/null @@ -1,340 +0,0 @@ -'use strict'; - -var _ = require('lodash'); -var should = require('chai').should(); -var bitcore = require('../..'); -var BN = bitcore.crypto.BN; -var Signature = bitcore.crypto.Signature; -var JSUtil = bitcore.util.js; -var Interpreter = bitcore.Script.Interpreter; - -var sig_canonical = require('../data/bitcoind/sig_canonical'); -var sig_noncanonical = require('../data/bitcoind/sig_noncanonical'); - -describe('Signature', function() { - - it('should make a blank signature', function() { - var sig = new Signature(); - should.exist(sig); - }); - - it('should work with conveniently setting r, s', function() { - var r = new BN(); - var s = new BN(); - var sig = new Signature(r, s); - should.exist(sig); - sig.r.toString().should.equal(r.toString()); - sig.s.toString().should.equal(s.toString()); - }); - - describe('#set', function() { - - it('should set compressed', function() { - should.exist(Signature().set({ - compressed: true - })); - }); - - it('should set nhashtype', function() { - var sig = Signature().set({ - nhashtype: Signature.SIGHASH_ALL - }); - sig.nhashtype.should.equal(Signature.SIGHASH_ALL); - sig.set({ - nhashtype: Signature.SIGHASH_ALL | Signature.SIGHASH_ANYONECANPAY - }); - sig.nhashtype.should.equal(Signature.SIGHASH_ALL | Signature.SIGHASH_ANYONECANPAY); - }); - - }); - - describe('#fromCompact', function() { - - it('should create a signature from a compressed signature', function() { - var blank = new Buffer(32); - blank.fill(0); - var compressed = Buffer.concat([ - new Buffer([0 + 27 + 4]), - blank, - blank - ]); - var sig = Signature.fromCompact(compressed); - sig.r.cmp(BN.Zero).should.equal(0); - sig.s.cmp(BN.Zero).should.equal(0); - sig.compressed.should.equal(true); - }); - - it('should create a signature from an uncompressed signature', function() { - var sigHexaStr = '1cd5e61ab5bfd0d1450997894cb1a53e917f89d82eb43f06fa96f32c96e061aec12fc1188e8b' + - '0dc553a2588be2b5b68dbbd7f092894aa3397786e9c769c5348dc6'; - var sig = Signature.fromCompact(new Buffer(sigHexaStr, 'hex')); - var r = 'd5e61ab5bfd0d1450997894cb1a53e917f89d82eb43f06fa96f32c96e061aec1'; - var s = '2fc1188e8b0dc553a2588be2b5b68dbbd7f092894aa3397786e9c769c5348dc6'; - sig.r.toString('hex').should.equal(r); - sig.s.toString('hex').should.equal(s); - sig.compressed.should.equal(false); - }); - - }); - - describe('#fromDER', function() { - - var buf = new Buffer('3044022075fc517e541bd54769c080b64397e32161c850f6c1b2b67a5c433affbb3e62770220729e85cc46ffab881065ec07694220e71d4df9b2b8c8fd12c3122cf3a5efbcf2', 'hex'); - - it('should parse this DER format signature', function() { - var sig = Signature.fromDER(buf); - sig.r.toBuffer({ - size: 32 - }).toString('hex').should.equal('75fc517e541bd54769c080b64397e32161c850f6c1b2b67a5c433affbb3e6277'); - sig.s.toBuffer({ - size: 32 - }).toString('hex').should.equal('729e85cc46ffab881065ec07694220e71d4df9b2b8c8fd12c3122cf3a5efbcf2'); - }); - - }); - - describe('#fromString', function() { - - var buf = new Buffer('3044022075fc517e541bd54769c080b64397e32161c850f6c1b2b67a5c433affbb3e62770220729e85cc46ffab881065ec07694220e71d4df9b2b8c8fd12c3122cf3a5efbcf2', 'hex'); - - it('should parse this DER format signature in hex', function() { - var sig = Signature.fromString(buf.toString('hex')); - sig.r.toBuffer({ - size: 32 - }).toString('hex').should.equal('75fc517e541bd54769c080b64397e32161c850f6c1b2b67a5c433affbb3e6277'); - sig.s.toBuffer({ - size: 32 - }).toString('hex').should.equal('729e85cc46ffab881065ec07694220e71d4df9b2b8c8fd12c3122cf3a5efbcf2'); - }); - - }); - - describe('#toTxFormat', function() { - - it('should parse this known signature and rebuild it with updated zero-padded sighash types', function() { - var original = '30450221008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa02200993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e7201'; - var buf = new Buffer(original, 'hex'); - var sig = Signature.fromTxFormat(buf); - sig.nhashtype.should.equal(Signature.SIGHASH_ALL); - sig.set({ - nhashtype: Signature.SIGHASH_ALL | Signature.SIGHASH_ANYONECANPAY - }); - sig.toTxFormat().toString('hex').should.equal(original.slice(0, -2) + '81'); - sig.set({ - nhashtype: Signature.SIGHASH_SINGLE - }); - sig.toTxFormat().toString('hex').should.equal(original.slice(0, -2) + '03'); - }); - - }); - - describe('#fromTxFormat', function() { - - it('should convert from this known tx-format buffer', function() { - var buf = new Buffer('30450221008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa02200993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e7201', 'hex'); - var sig = Signature.fromTxFormat(buf); - sig.r.toString().should.equal('63173831029936981022572627018246571655303050627048489594159321588908385378810'); - sig.s.toString().should.equal('4331694221846364448463828256391194279133231453999942381442030409253074198130'); - sig.nhashtype.should.equal(Signature.SIGHASH_ALL); - }); - - it('should parse this known signature and rebuild it', function() { - var hex = '3044022007415aa37ce7eaa6146001ac8bdefca0ddcba0e37c5dc08c4ac99392124ebac802207d382307fd53f65778b07b9c63b6e196edeadf0be719130c5db21ff1e700d67501'; - var buf = new Buffer(hex, 'hex'); - var sig = Signature.fromTxFormat(buf); - sig.toTxFormat().toString('hex').should.equal(hex); - }); - - }); - - describe('#parseDER', function() { - - it('should parse this signature generated in node', function() { - var sighex = '30450221008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa02200993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e72'; - var sig = new Buffer(sighex, 'hex'); - var parsed = Signature.parseDER(sig); - parsed.header.should.equal(0x30); - parsed.length.should.equal(69); - parsed.rlength.should.equal(33); - parsed.rneg.should.equal(true); - parsed.rbuf.toString('hex').should.equal('008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa'); - parsed.r.toString().should.equal('63173831029936981022572627018246571655303050627048489594159321588908385378810'); - parsed.slength.should.equal(32); - parsed.sneg.should.equal(false); - parsed.sbuf.toString('hex').should.equal('0993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e72'); - parsed.s.toString().should.equal('4331694221846364448463828256391194279133231453999942381442030409253074198130'); - }); - - it('should parse this 69 byte signature', function() { - var sighex = '3043021f59e4705959cc78acbfcf8bd0114e9cc1b389a4287fb33152b73a38c319b50302202f7428a27284c757e409bf41506183e9e49dfb54d5063796dfa0d403a4deccfa'; - var sig = new Buffer(sighex, 'hex'); - var parsed = Signature.parseDER(sig); - parsed.header.should.equal(0x30); - parsed.length.should.equal(67); - parsed.rlength.should.equal(31); - parsed.rneg.should.equal(false); - parsed.rbuf.toString('hex').should.equal('59e4705959cc78acbfcf8bd0114e9cc1b389a4287fb33152b73a38c319b503'); - parsed.r.toString().should.equal('158826015856106182499128681792325160381907915189052224498209222621383996675'); - parsed.slength.should.equal(32); - parsed.sneg.should.equal(false); - parsed.sbuf.toString('hex').should.equal('2f7428a27284c757e409bf41506183e9e49dfb54d5063796dfa0d403a4deccfa'); - parsed.s.toString().should.equal('21463938592353267769710297084836796652964571266930856168996063301532842380538'); - }); - - it('should parse this 68 byte signature', function() { - var sighex = '3042021e17cfe77536c3fb0526bd1a72d7a8e0973f463add210be14063c8a9c37632022061bfa677f825ded82ba0863fb0c46ca1388dd3e647f6a93c038168b59d131a51'; - var sig = new Buffer(sighex, 'hex'); - var parsed = Signature.parseDER(sig); - parsed.header.should.equal(0x30); - parsed.length.should.equal(66); - parsed.rlength.should.equal(30); - parsed.rneg.should.equal(false); - parsed.rbuf.toString('hex').should.equal('17cfe77536c3fb0526bd1a72d7a8e0973f463add210be14063c8a9c37632'); - parsed.r.toString().should.equal('164345250294671732127776123343329699648286106708464198588053542748255794'); - parsed.slength.should.equal(32); - parsed.sneg.should.equal(false); - parsed.sbuf.toString('hex').should.equal('61bfa677f825ded82ba0863fb0c46ca1388dd3e647f6a93c038168b59d131a51'); - parsed.s.toString().should.equal('44212963026209759051804639008236126356702363229859210154760104982946304432721'); - }); - - it('should parse this signature from script_valid.json', function() { - var sighex = '304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef051'; - var sig = Buffer(sighex, 'hex'); - var parsed = Signature.parseDER(sig, false); - should.exist(parsed); - }); - - }); - - describe('#toDER', function() { - - it('should convert these known r and s values into a known signature', function() { - var r = new BN('63173831029936981022572627018246571655303050627048489594159321588908385378810'); - var s = new BN('4331694221846364448463828256391194279133231453999942381442030409253074198130'); - var sig = new Signature({ - r: r, - s: s - }); - var der = sig.toDER(r, s); - der.toString('hex').should.equal('30450221008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa02200993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e72'); - }); - - }); - - describe('#toString', function() { - it('should convert this signature in to hex DER', function() { - var r = new BN('63173831029936981022572627018246571655303050627048489594159321588908385378810'); - var s = new BN('4331694221846364448463828256391194279133231453999942381442030409253074198130'); - var sig = new Signature({ - r: r, - s: s - }); - var hex = sig.toString(); - hex.should.equal('30450221008bab1f0a2ff2f9cb8992173d8ad73c229d31ea8e10b0f4d4ae1a0d8ed76021fa02200993a6ec81755b9111762fc2cf8e3ede73047515622792110867d12654275e72'); - }); - }); - - - describe('@isTxDER', function() { - it('should know this is a DER signature', function() { - var sighex = '3042021e17cfe77536c3fb0526bd1a72d7a8e0973f463add210be14063c8a9c37632022061bfa677f825ded82ba0863fb0c46ca1388dd3e647f6a93c038168b59d131a5101'; - var sigbuf = new Buffer(sighex, 'hex'); - Signature.isTxDER(sigbuf).should.equal(true); - }); - - it('should know this is not a DER signature', function() { - //for more extensive tests, see the script interpreter - var sighex = '3042021e17cfe77536c3fb0526bd1a72d7a8e0973f463add210be14063c8a9c37632022061bfa677f825ded82ba0863fb0c46ca1388dd3e647f6a93c038168b59d131a5101'; - var sigbuf = new Buffer(sighex, 'hex'); - sigbuf[0] = 0x31; - Signature.isTxDER(sigbuf).should.equal(false); - }); - - - describe('bitcoind fixtures', function() { - var test_sigs = function(set, expected) { - var i = 0; - set.forEach(function(vector) { - if (!JSUtil.isHexa(vector)) { - // non-hex strings are ignored - return; - } - it('should be ' + (expected ? '' : 'in') + 'valid for fixture #' + i, function() { - var sighex = vector; - var interp = Interpreter(); - interp.flags = Interpreter.SCRIPT_VERIFY_DERSIG | - Interpreter.SCRIPT_VERIFY_STRICTENC; - var result = interp.checkSignatureEncoding(new Buffer(sighex, 'hex')); - result.should.equal(expected); - }); - i++; - }); - }; - test_sigs(sig_canonical, true); - test_sigs(sig_noncanonical, false); - }); - - }); - describe('#hasLowS', function() { - it('should detect high and low S', function() { - var r = new BN('63173831029936981022572627018246571655303050627048489594159321588908385378810'); - - var sig = new Signature({ - r: r, - s: new BN('7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A1', 'hex') - }); - sig.hasLowS().should.equal(false); - - var sig2 = new Signature({ - r: r, - s: new BN('7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0', 'hex') - }); - sig2.hasLowS().should.equal(true); - - var sig3 = new Signature({ - r: r, - s: new BN(1) - }); - sig3.hasLowS().should.equal(true); - - var sig4 = new Signature({ - r: r, - s: new BN(0) - }); - sig4.hasLowS().should.equal(false); - - }); - }); - - describe('#hasDefinedHashtype', function() { - it('should reject invalid sighash types and accept valid ones', function() { - var sig = new Signature(); - sig.hasDefinedHashtype().should.equal(false); - var testCases = [ - [undefined, false], - [null, false], - [0, false], - [1.1, false], - [-1, false], - [-1.1, false], - ['', false], - ['1', false], - [Signature.SIGHASH_ANYONECANPAY, false], - [Signature.SIGHASH_ANYONECANPAY | Signature.SIGHASH_ALL, true], - [Signature.SIGHASH_ANYONECANPAY | Signature.SIGHASH_NONE, true], - [Signature.SIGHASH_ANYONECANPAY | Signature.SIGHASH_SINGLE, true], - [Signature.SIGHASH_ALL, true], - [Signature.SIGHASH_NONE, true], - [Signature.SIGHASH_SINGLE, true], - [Signature.SIGHASH_SINGLE + 1, false], - [(Signature.SIGHASH_ANYONECANPAY | Signature.SIGHASH_SINGLE) + 1, false], - [(Signature.SIGHASH_ANYONECANPAY | Signature.SIGHASH_ALL) - 1, false], - ]; - _.each(testCases, function(testCase) { - sig.nhashtype = testCase[0]; - sig.hasDefinedHashtype().should.equal(testCase[1]); - }); - }); - }); - -}); diff --git a/test/data/bip69.json b/test/data/bip69.json deleted file mode 100644 index 7a46d81..0000000 --- a/test/data/bip69.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "inputs": [ - { - "description": "Ordered by txId, descending (reverse-byte-order ascending)", - "inputs": [ - { - "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "vout": 0 - }, - { - "txId": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "vout": 0 - }, - { - "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", - "vout": 0 - }, - { - "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbff", - "vout": 0 - }, - { - "txId": "ffbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", - "vout": 0 - } - ], - "expected": [0, 2, 3, 1, 4] - }, - { - "description": "Ordered by vout, ascending", - "inputs": [ - { - "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "vout": 1 - }, - { - "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "vout": 2 - }, - { - "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "vout": 0 - } - ], - "expected": [2, 0, 1] - }, - { - "description": "Ordered by txId, then vout", - "inputs": [ - { - "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "vout": 99 - }, - { - "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", - "vout": 99 - }, - { - "txId": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "vout": 0 - }, - { - "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", - "vout": 0 - } - ], - "expected": [0, 3, 1, 2] - }, - { - "description": "BIP69 test vector 1", - "inputs": [ - { "txId": "0e53ec5dfb2cb8a71fec32dc9a634a35b7e24799295ddd5278217822e0b31f57", "vout": 0 }, - { "txId": "26aa6e6d8b9e49bb0630aac301db6757c02e3619feb4ee0eea81eb1672947024", "vout": 1 }, - { "txId": "28e0fdd185542f2c6ea19030b0796051e7772b6026dd5ddccd7a2f93b73e6fc2", "vout": 0 }, - { "txId": "381de9b9ae1a94d9c17f6a08ef9d341a5ce29e2e60c36a52d333ff6203e58d5d", "vout": 1 }, - { "txId": "3b8b2f8efceb60ba78ca8bba206a137f14cb5ea4035e761ee204302d46b98de2", "vout": 0 }, - { "txId": "402b2c02411720bf409eff60d05adad684f135838962823f3614cc657dd7bc0a", "vout": 1 }, - { "txId": "54ffff182965ed0957dba1239c27164ace5a73c9b62a660c74b7b7f15ff61e7a", "vout": 1 }, - { "txId": "643e5f4e66373a57251fb173151e838ccd27d279aca882997e005016bb53d5aa", "vout": 0 }, - { "txId": "6c1d56f31b2de4bfc6aaea28396b333102b1f600da9c6d6149e96ca43f1102b1", "vout": 1 }, - { "txId": "7a1de137cbafb5c70405455c49c5104ca3057a1f1243e6563bb9245c9c88c191", "vout": 0 }, - { "txId": "7d037ceb2ee0dc03e82f17be7935d238b35d1deabf953a892a4507bfbeeb3ba4", "vout": 1 }, - { "txId": "a5e899dddb28776ea9ddac0a502316d53a4a3fca607c72f66c470e0412e34086", "vout": 0 }, - { "txId": "b4112b8f900a7ca0c8b0e7c4dfad35c6be5f6be46b3458974988e1cdb2fa61b8", "vout": 0 }, - { "txId": "bafd65e3c7f3f9fdfdc1ddb026131b278c3be1af90a4a6ffa78c4658f9ec0c85", "vout": 0 }, - { "txId": "de0411a1e97484a2804ff1dbde260ac19de841bebad1880c782941aca883b4e9", "vout": 1 }, - { "txId": "f0a130a84912d03c1d284974f563c5949ac13f8342b8112edff52971599e6a45", "vout": 0 }, - { "txId": "f320832a9d2e2452af63154bc687493484a0e7745ebd3aaf9ca19eb80834ad60", "vout": 0 } - ], - "expected": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] - }, - { - "description": "BIP69 test vector 2", - "inputs": [ - { "txId": "35288d269cee1941eaebb2ea85e32b42cdb2b04284a56d8b14dcc3f5c65d6055", "vout": 0 }, - { "txId": "35288d269cee1941eaebb2ea85e32b42cdb2b04284a56d8b14dcc3f5c65d6055", "vout": 1 } - ], - "expected": [0, 1] - } - ], - "outputs": [ - { - "description": "Ordered by Amount, ascending", - "outputs": [ - { - "script": "00000000", - "value": 3000 - }, - { - "script": "00000000", - "value": 2000 - }, - { - "script": "00000000", - "value": 1000 - } - ], - "expected": [2, 1, 0] - }, - { - "description": "Ordered by Script, ascending", - "outputs": [ - { - "script": "00000000", - "value": 1000 - }, - { - "script": "22222222", - "value": 1000 - }, - { - "script": "11111111", - "value": 1000 - } - ], - "expected": [0, 2, 1] - }, - { - "description": "Ordered by Amount, then Script", - "outputs": [ - { - "script": "11111111", - "value": 1000 - }, - { - "script": "11111111", - "value": 2000 - }, - { - "script": "00000000", - "value": 3000 - }, - { - "script": "00000000", - "value": 2000 - } - ], - "expected": [0, 3, 1, 2] - }, - { - "description": "Sorting is irrelevant for equivalent outputs", - "outputs": [ - { - "script": "00000000", - "value": 2000 - }, - { - "script": "11111111", - "value": 2000 - }, - { - "script": "00000000", - "value": 2000 - }, - { - "script": "11111111", - "value": 3000 - }, - { - "script": "22222222", - "value": 3000 - } - ], - "expected": [0, 2, 1, 3, 4] - }, - { - "description": "BIP69 test vector 1", - "outputs": [ - { - "script": "76a9144a5fba237213a062f6f57978f796390bdcf8d01588ac", - "value": 400057456 - }, - { - "script": "76a9145be32612930b8323add2212a4ec03c1562084f8488ac", - "value": 40000000000 - } - ], - "expected": [0, 1] - }, - { - "description": "BIP69 test vector 2", - "outputs": [ - { - "script": "41046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac", - "value": 100000000 - }, - { - "script": "41044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac", - "value": 2400000000 - } - ], - "expected": [0, 1] - } - ] -} diff --git a/test/data/bitcoind/base58_keys_invalid.json b/test/data/bitcoind/base58_keys_invalid.json deleted file mode 100644 index 615fe55..0000000 --- a/test/data/bitcoind/base58_keys_invalid.json +++ /dev/null @@ -1,152 +0,0 @@ -[ - [ - "" - ], - [ - "x" - ], - [ - "37qgekLpCCHrQuSjvX3fs496FWTGsHFHizjJAs6NPcR47aefnnCWECAhHV6E3g4YN7u7Yuwod5Y" - ], - [ - "dzb7VV1Ui55BARxv7ATxAtCUeJsANKovDGWFVgpTbhq9gvPqP3yv" - ], - [ - "MuNu7ZAEDFiHthiunm7dPjwKqrVNCM3mAz6rP9zFveQu14YA8CxExSJTHcVP9DErn6u84E6Ej7S" - ], - [ - "rPpQpYknyNQ5AEHuY6H8ijJJrYc2nDKKk9jjmKEXsWzyAQcFGpDLU2Zvsmoi8JLR7hAwoy3RQWf" - ], - [ - "4Uc3FmN6NQ6zLBK5QQBXRBUREaaHwCZYsGCueHauuDmJpZKn6jkEskMB2Zi2CNgtb5r6epWEFfUJq" - ], - [ - "7aQgR5DFQ25vyXmqZAWmnVCjL3PkBcdVkBUpjrjMTcghHx3E8wb" - ], - [ - "17QpPprjeg69fW1DV8DcYYCKvWjYhXvWkov6MJ1iTTvMFj6weAqW7wybZeH57WTNxXVCRH4veVs" - ], - [ - "KxuACDviz8Xvpn1xAh9MfopySZNuyajYMZWz16Dv2mHHryznWUp3" - ], - [ - "7nK3GSmqdXJQtdohvGfJ7KsSmn3TmGqExug49583bDAL91pVSGq5xS9SHoAYL3Wv3ijKTit65th" - ], - [ - "cTivdBmq7bay3RFGEBBuNfMh2P1pDCgRYN2Wbxmgwr4ki3jNUL2va" - ], - [ - "gjMV4vjNjyMrna4fsAr8bWxAbwtmMUBXJS3zL4NJt5qjozpbQLmAfK1uA3CquSqsZQMpoD1g2nk" - ], - [ - "emXm1naBMoVzPjbk7xpeTVMFy4oDEe25UmoyGgKEB1gGWsK8kRGs" - ], - [ - "7VThQnNRj1o3Zyvc7XHPRrjDf8j2oivPTeDXnRPYWeYGE4pXeRJDZgf28ppti5hsHWXS2GSobdqyo" - ], - [ - "1G9u6oCVCPh2o8m3t55ACiYvG1y5BHewUkDSdiQarDcYXXhFHYdzMdYfUAhfxn5vNZBwpgUNpso" - ], - [ - "31QQ7ZMLkScDiB4VyZjuptr7AEc9j1SjstF7pRoLhHTGkW4Q2y9XELobQmhhWxeRvqcukGd1XCq" - ], - [ - "DHqKSnpxa8ZdQyH8keAhvLTrfkyBMQxqngcQA5N8LQ9KVt25kmGN" - ], - [ - "2LUHcJPbwLCy9GLH1qXmfmAwvadWw4bp4PCpDfduLqV17s6iDcy1imUwhQJhAoNoN1XNmweiJP4i" - ], - [ - "7USRzBXAnmck8fX9HmW7RAb4qt92VFX6soCnts9s74wxm4gguVhtG5of8fZGbNPJA83irHVY6bCos" - ], - [ - "1DGezo7BfVebZxAbNT3XGujdeHyNNBF3vnficYoTSp4PfK2QaML9bHzAMxke3wdKdHYWmsMTJVu" - ], - [ - "2D12DqDZKwCxxkzs1ZATJWvgJGhQ4cFi3WrizQ5zLAyhN5HxuAJ1yMYaJp8GuYsTLLxTAz6otCfb" - ], - [ - "8AFJzuTujXjw1Z6M3fWhQ1ujDW7zsV4ePeVjVo7D1egERqSW9nZ" - ], - [ - "163Q17qLbTCue8YY3AvjpUhotuaodLm2uqMhpYirsKjVqnxJRWTEoywMVY3NbBAHuhAJ2cF9GAZ" - ], - [ - "2MnmgiRH4eGLyLc9eAqStzk7dFgBjFtUCtu" - ], - [ - "461QQ2sYWxU7H2PV4oBwJGNch8XVTYYbZxU" - ], - [ - "2UCtv53VttmQYkVU4VMtXB31REvQg4ABzs41AEKZ8UcB7DAfVzdkV9JDErwGwyj5AUHLkmgZeobs" - ], - [ - "cSNjAsnhgtiFMi6MtfvgscMB2Cbhn2v1FUYfviJ1CdjfidvmeW6mn" - ], - [ - "gmsow2Y6EWAFDFE1CE4Hd3Tpu2BvfmBfG1SXsuRARbnt1WjkZnFh1qGTiptWWbjsq2Q6qvpgJVj" - ], - [ - "nksUKSkzS76v8EsSgozXGMoQFiCoCHzCVajFKAXqzK5on9ZJYVHMD5CKwgmX3S3c7M1U3xabUny" - ], - [ - "L3favK1UzFGgdzYBF2oBT5tbayCo4vtVBLJhg2iYuMeePxWG8SQc" - ], - [ - "7VxLxGGtYT6N99GdEfi6xz56xdQ8nP2dG1CavuXx7Rf2PrvNMTBNevjkfgs9JmkcGm6EXpj8ipyPZ" - ], - [ - "2mbZwFXF6cxShaCo2czTRB62WTx9LxhTtpP" - ], - [ - "dB7cwYdcPSgiyAwKWL3JwCVwSk6epU2txw" - ], - [ - "HPhFUhUAh8ZQQisH8QQWafAxtQYju3SFTX" - ], - [ - "4ctAH6AkHzq5ioiM1m9T3E2hiYEev5mTsB" - ], - [ - "Hn1uFi4dNexWrqARpjMqgT6cX1UsNPuV3cHdGg9ExyXw8HTKadbktRDtdeVmY3M1BxJStiL4vjJ" - ], - [ - "Sq3fDbvutABmnAHHExJDgPLQn44KnNC7UsXuT7KZecpaYDMU9Txs" - ], - [ - "6TqWyrqdgUEYDQU1aChMuFMMEimHX44qHFzCUgGfqxGgZNMUVWJ" - ], - [ - "giqJo7oWqFxNKWyrgcBxAVHXnjJ1t6cGoEffce5Y1y7u649Noj5wJ4mmiUAKEVVrYAGg2KPB3Y4" - ], - [ - "cNzHY5e8vcmM3QVJUcjCyiKMYfeYvyueq5qCMV3kqcySoLyGLYUK" - ], - [ - "37uTe568EYc9WLoHEd9jXEvUiWbq5LFLscNyqvAzLU5vBArUJA6eydkLmnMwJDjkL5kXc2VK7ig" - ], - [ - "EsYbG4tWWWY45G31nox838qNdzksbPySWc" - ], - [ - "nbuzhfwMoNzA3PaFnyLcRxE9bTJPDkjZ6Rf6Y6o2ckXZfzZzXBT" - ], - [ - "cQN9PoxZeCWK1x56xnz6QYAsvR11XAce3Ehp3gMUdfSQ53Y2mPzx" - ], - [ - "1Gm3N3rkef6iMbx4voBzaxtXcmmiMTqZPhcuAepRzYUJQW4qRpEnHvMojzof42hjFRf8PE2jPde" - ], - [ - "2TAq2tuN6x6m233bpT7yqdYQPELdTDJn1eU" - ], - [ - "ntEtnnGhqPii4joABvBtSEJG6BxjT2tUZqE8PcVYgk3RHpgxgHDCQxNbLJf7ardf1dDk2oCQ7Cf" - ], - [ - "Ky1YjoZNgQ196HJV3HpdkecfhRBmRZdMJk89Hi5KGfpfPwS2bUbfd" - ], - [ - "2A1q1YsMZowabbvta7kTy2Fd6qN4r5ZCeG3qLpvZBMzCixMUdkN2Y4dHB1wPsZAeVXUGD83MfRED" - ] -] diff --git a/test/data/bitcoind/base58_keys_valid.json b/test/data/bitcoind/base58_keys_valid.json deleted file mode 100644 index 4a8d352..0000000 --- a/test/data/bitcoind/base58_keys_valid.json +++ /dev/null @@ -1,452 +0,0 @@ -[ - [ - "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", - "65a16059864a2fdbc7c99a4723a8395bc6f188eb", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou", - "74f209f6ea907e2ea48f74fae05782ae8a665257", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "mo9ncXisMeAoXwqcV5EWuyncbmCcQN4rVs", - "53c0307d6851aa0ce7825ba883c6bd9ad242b486", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2N2JD6wb56AfK4tfmM6PwdVmoYk2dCKf4Br", - "6349a418fc4578d10a372b54b45c280cc8c4382f", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr", - "eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD", - "55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "9213qJab2HNEpMpYNBa7wHGFKKbkDn24jpANDs2huN3yi4J11ko", - "36cb93b9ab1bdabf7fb9f2c04f1b9cc879933530ae7842398eef5a63a56800c2", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cTpB4YiyKiBcPxnefsDpbnDxFDffjqJob8wGCEDXxgQ7zQoMXJdH", - "b9f4892c9e8282028fea1d2667c4dc5213564d41fc5783896a0d843fc15089f3", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ", - "6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy", - "fcc5460dd6e2487c7d75b1963625da0e8f4c5975", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "n3ZddxzLvAY9o7184TB4c6FJasAybsw4HZ", - "f1d470f9b02370fdec2e6b708b08ac431bf7a5f7", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2NBFNJTktNa7GZusGbDbGKRZTxdK9VVez3n", - "c579342c2c4c9220205e2cdc285617040c924a0a", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc", - "a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi", - "7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "93DVKyFYwSN6wEo3E2fCrFPUp17FtrtNi2Lf7n4G3garFb16CRj", - "d6bca256b5abc5602ec2e1c121a08b0da2556587430bcf7e1898af2224885203", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cTDVKtMGVYWTHCb1AFjmVbEbWjvKpKqKgMaR3QJxToMSQAhmCeTN", - "a81ca4e8f90181ec4b61b6a7eb998af17b2cb04de8a03b504b9e34c4c61db7d9", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv", - "7987ccaa53d02c8873487ef919677cd3db7a6912", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks", - "63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "n3LnJXCqbPjghuVs8ph9CYsAe4Sh4j97wk", - "ef66444b5b17f14e8fae6e7e19b045a78c54fd79", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2NB72XtkjpnATMggui83aEtPawyyKvnbX2o", - "c3e55fceceaa4391ed2a9677f4a4d34eacd021a0", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9", - "e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT", - "8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "927CnUkUbasYtDwYwVn2j8GdTuACNnKkjZ1rpZd2yBB1CLcnXpo", - "44c4f6a096eac5238291a94cc24c01e3b19b8d8cef72874a079e00a242237a52", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cUcfCMRjiQf85YMzzQEk9d1s5A4K7xL5SmBCLrezqXFuTVefyhY7", - "d1de707020a9059d6d3abaf85e17967c6555151143db13dbb06db78df0f15c69", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu", - "adc1cc2081a27206fae25792f28bbc55b831549d", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk", - "188f91a931947eddd7432d6e614387e32b244709", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "mhaMcBxNh5cqXm4aTQ6EcVbKtfL6LGyK2H", - "1694f5bc1a7295b600f40018a618a6ea48eeb498", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2MxgPqX1iThW3oZVk9KoFcE5M4JpiETssVN", - "3b9b3fd7a50d4f08d1a5b0f62f644fa7115ae2f3", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR", - "091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8", - "ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "92xFEve1Z9N8Z641KQQS7ByCSb8kGjsDzw6fAmjHN1LZGKQXyMq", - "b4204389cef18bbe2b353623cbf93e8678fbc92a475b664ae98ed594e6cf0856", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cVM65tdYu1YK37tNoAyGoJTR13VBYFva1vg9FLuPAsJijGvG6NEA", - "e7b230133f1b5489843260236b06edca25f66adb1be455fbd38d4010d48faeef", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4", - "c4c1b72491ede1eedaca00618407ee0b772cad0d", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y", - "f6fe69bcb548a829cce4c57bf6fff8af3a5981f9", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "mizXiucXRCsEriQCHUkCqef9ph9qtPbZZ6", - "261f83568a098a8638844bd7aeca039d5f2352c0", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2NEWDzHWwY5ZZp8CQWbB7ouNMLqCia6YRda", - "e930e1834a4d234702773951d627cce82fbb5d2e", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg", - "d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi", - "b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "91cTVUcgydqyZLgaANpf1fvL55FH53QMm4BsnCADVNYuWuqdVys", - "037f4192c630f399d9271e26c575269b1d15be553ea1a7217f0cb8513cef41cb", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cQspfSzsgLeiJGB2u8vrAiWpCU4MxUT6JseWo2SjXy4Qbzn2fwDw", - "6251e205e8ad508bab5596bee086ef16cd4b239e0cc0c5d7c4e6035441e7d5de", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r", - "5eadaf9bb7121f0f192561a5a62f5e5f54210292", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3", - "3f210e7277c899c3a155cc1c90f4106cbddeec6e", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "myoqcgYiehufrsnnkqdqbp69dddVDMopJu", - "c8a3c2a09a298592c3e180f02487cd91ba3400b5", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "2N7FuwuUuoTBrDFdrAZ9KxBmtqMLxce9i1C", - "99b31df7c9068d1481b596578ddbb4d3bd90baeb", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": true - } - ], - [ - "5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4", - "c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2", - "07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": false - } - ], - [ - "93N87D6uxSBzwXvpokpzg8FFmfQPmvX4xHoWQe3pLdYpbiwT5YV", - "ea577acfb5d1d14d3b7b195c321566f12f87d2b77ea3a53f68df7ebf8604a801", - { - "isCompressed": false, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "cMxXusSihaX58wpJ3tNuuUcZEQGt6DKJ1wEpxys88FFaQCYjku9h", - "0b3b34f0958d8a268193a9814da92c3e8b58b4a4378a542863e34ac289cd830c", - { - "isCompressed": true, - "isPrivkey": true, - "isTestnet": true - } - ], - [ - "13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE", - "1ed467017f043e91ed4c44b4e8dd674db211c4e6", - { - "addrType": "pubkey", - "isPrivkey": false, - "isTestnet": false - } - ], - [ - "3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G", - "5ece0cadddc415b1980f001785947120acdb36fc", - { - "addrType": "script", - "isPrivkey": false, - "isTestnet": false - } - ] -] diff --git a/test/data/bitcoind/blocks.json b/test/data/bitcoind/blocks.json deleted file mode 100644 index 8f7ceb8..0000000 --- a/test/data/bitcoind/blocks.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "comment": "A random real block (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 transactions", - "transactions": 9, - "data": "0100000090f0a9f110702f808219ebea1173056042a714bad51b916cb6800000000000005275289558f51c9966699404ae2294730c3c9f9bda53523ce50e9b95e558da2fdb261b4d4c86041b1ab1bf930901000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07044c86041b0146ffffffff0100f2052a01000000434104e18f7afbe4721580e81e8414fc8c24d7cfacf254bb5c7b949450c3e997c2dc1242487a8169507b631eb3771f2b425483fb13102c4eb5d858eef260fe70fbfae0ac00000000010000000196608ccbafa16abada902780da4dc35dafd7af05fa0da08cf833575f8cf9e836000000004a493046022100dab24889213caf43ae6adc41cf1c9396c08240c199f5225acf45416330fd7dbd022100fe37900e0644bf574493a07fc5edba06dbc07c311b947520c2d514bc5725dcb401ffffffff0100f2052a010000001976a914f15d1921f52e4007b146dfa60f369ed2fc393ce288ac000000000100000001fb766c1288458c2bafcfec81e48b24d98ec706de6b8af7c4e3c29419bfacb56d000000008c493046022100f268ba165ce0ad2e6d93f089cfcd3785de5c963bb5ea6b8c1b23f1ce3e517b9f022100da7c0f21adc6c401887f2bfd1922f11d76159cbc597fbd756a23dcbb00f4d7290141042b4e8625a96127826915a5b109852636ad0da753c9e1d5606a50480cd0c40f1f8b8d898235e571fe9357d9ec842bc4bba1827daaf4de06d71844d0057707966affffffff0280969800000000001976a9146963907531db72d0ed1a0cfb471ccb63923446f388ac80d6e34c000000001976a914f0688ba1c0d1ce182c7af6741e02658c7d4dfcd388ac000000000100000002c40297f730dd7b5a99567eb8d27b78758f607507c52292d02d4031895b52f2ff010000008b483045022100f7edfd4b0aac404e5bab4fd3889e0c6c41aa8d0e6fa122316f68eddd0a65013902205b09cc8b2d56e1cd1f7f2fafd60a129ed94504c4ac7bdc67b56fe67512658b3e014104732012cb962afa90d31b25d8fb0e32c94e513ab7a17805c14ca4c3423e18b4fb5d0e676841733cb83abaf975845c9f6f2a8097b7d04f4908b18368d6fc2d68ecffffffffca5065ff9617cbcba45eb23726df6498a9b9cafed4f54cbab9d227b0035ddefb000000008a473044022068010362a13c7f9919fa832b2dee4e788f61f6f5d344a7c2a0da6ae740605658022006d1af525b9a14a35c003b78b72bd59738cd676f845d1ff3fc25049e01003614014104732012cb962afa90d31b25d8fb0e32c94e513ab7a17805c14ca4c3423e18b4fb5d0e676841733cb83abaf975845c9f6f2a8097b7d04f4908b18368d6fc2d68ecffffffff01001ec4110200000043410469ab4181eceb28985b9b4e895c13fa5e68d85761b7eee311db5addef76fa8621865134a221bd01f28ec9999ee3e021e60766e9d1f3458c115fb28650605f11c9ac000000000100000001cdaf2f758e91c514655e2dc50633d1e4c84989f8aa90a0dbc883f0d23ed5c2fa010000008b48304502207ab51be6f12a1962ba0aaaf24a20e0b69b27a94fac5adf45aa7d2d18ffd9236102210086ae728b370e5329eead9accd880d0cb070aea0c96255fae6c4f1ddcce1fd56e014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff02404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac002d3101000000001976a9141befba0cdc1ad56529371864d9f6cb042faa06b588ac000000000100000001b4a47603e71b61bc3326efd90111bf02d2f549b067f4c4a8fa183b57a0f800cb010000008a4730440220177c37f9a505c3f1a1f0ce2da777c339bd8339ffa02c7cb41f0a5804f473c9230220585b25a2ee80eb59292e52b987dad92acb0c64eced92ed9ee105ad153cdb12d001410443bd44f683467e549dae7d20d1d79cbdb6df985c6e9c029c8d0c6cb46cc1a4d3cf7923c5021b27f7a0b562ada113bc85d5fda5a1b41e87fe6e8802817cf69996ffffffff0280651406000000001976a9145505614859643ab7b547cd7f1f5e7e2a12322d3788ac00aa0271000000001976a914ea4720a7a52fc166c55ff2298e07baf70ae67e1b88ac00000000010000000586c62cd602d219bb60edb14a3e204de0705176f9022fe49a538054fb14abb49e010000008c493046022100f2bc2aba2534becbdf062eb993853a42bbbc282083d0daf9b4b585bd401aa8c9022100b1d7fd7ee0b95600db8535bbf331b19eed8d961f7a8e54159c53675d5f69df8c014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff03ad0e58ccdac3df9dc28a218bcf6f1997b0a93306faaa4b3a28ae83447b2179010000008b483045022100be12b2937179da88599e27bb31c3525097a07cdb52422d165b3ca2f2020ffcf702200971b51f853a53d644ebae9ec8f3512e442b1bcb6c315a5b491d119d10624c83014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff2acfcab629bbc8685792603762c921580030ba144af553d271716a95089e107b010000008b483045022100fa579a840ac258871365dd48cd7552f96c8eea69bd00d84f05b283a0dab311e102207e3c0ee9234814cfbb1b659b83671618f45abc1326b9edcc77d552a4f2a805c0014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffffdcdc6023bbc9944a658ddc588e61eacb737ddf0a3cd24f113b5a8634c517fcd2000000008b4830450221008d6df731df5d32267954bd7d2dda2302b74c6c2a6aa5c0ca64ecbabc1af03c75022010e55c571d65da7701ae2da1956c442df81bbf076cdbac25133f99d98a9ed34c014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffffe15557cd5ce258f479dfd6dc6514edf6d7ed5b21fcfa4a038fd69f06b83ac76e010000008b483045022023b3e0ab071eb11de2eb1cc3a67261b866f86bf6867d4558165f7c8c8aca2d86022100dc6e1f53a91de3efe8f63512850811f26284b62f850c70ca73ed5de8771fb451014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff01404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac00000000010000000166d7577163c932b4f9690ca6a80b6e4eb001f0a2fa9023df5595602aae96ed8d000000008a4730440220262b42546302dfb654a229cefc86432b89628ff259dc87edd1154535b16a67e102207b4634c020a97c3e7bbd0d4d19da6aa2269ad9dded4026e896b213d73ca4b63f014104979b82d02226b3a4597523845754d44f13639e3bf2df5e82c6aab2bdc79687368b01b1ab8b19875ae3c90d661a3d0a33161dab29934edeb36aa01976be3baf8affffffff02404b4c00000000001976a9144854e695a02af0aeacb823ccbc272134561e0a1688ac40420f00000000001976a914abee93376d6b37b5c2940655a6fcaf1c8e74237988ac0000000001000000014e3f8ef2e91349a9059cb4f01e54ab2597c1387161d3da89919f7ea6acdbb371010000008c49304602210081f3183471a5ca22307c0800226f3ef9c353069e0773ac76bb580654d56aa523022100d4c56465bdc069060846f4fbf2f6b20520b2a80b08b168b31e66ddb9c694e240014104976c79848e18251612f8940875b2b08d06e6dc73b9840e8860c066b7e87432c477e9a59a453e71e6d76d5fe34058b800a098fc1740ce3012e8fc8a00c96af966ffffffff02c0e1e400000000001976a9144134e75a6fcb6042034aab5e18570cf1f844f54788ac404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac00000000" - }, - { - "comment": "Random real block (000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6) with 4 transactions", - "transactions": 4, - "data": "0100000075616236cc2126035fadb38deb65b9102cc2c41c09cdf29fc051906800000000fe7d5e12ef0ff901f6050211249919b1c0653771832b3a80c66cea42847f0ae1d4d26e49ffff001d00f0a4410401000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d029105ffffffff0100f2052a010000004341046d8709a041d34357697dfcb30a9d05900a6294078012bf3bb09c6f9b525f1d16d5503d7905db1ada9501446ea00728668fc5719aa80be2fdfc8a858a4dbdd4fbac00000000010000000255605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d28350000000049483045022100aa46504baa86df8a33b1192b1b9367b4d729dc41e389f2c04f3e5c7f0559aae702205e82253a54bf5c4f65b7428551554b2045167d6d206dfe6a2e198127d3f7df1501ffffffff55605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d2835010000004847304402202329484c35fa9d6bb32a55a70c0982f606ce0e3634b69006138683bcd12cbb6602200c28feb1e2555c3210f1dddb299738b4ff8bbe9667b68cb8764b5ac17b7adf0001ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac0000000001000000025f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028000000004847304402205d6058484157235b06028c30736c15613a28bdb768ee628094ca8b0030d4d6eb0220328789c9a2ec27ddaec0ad5ef58efded42e6ea17c2e1ce838f3d6913f5e95db601ffffffff5f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028010000004a493046022100c45af050d3cea806cedd0ab22520c53ebe63b987b8954146cdca42487b84bdd6022100b9b027716a6b59e640da50a864d6dd8a0ef24c76ce62391fa3eabaf4d2886d2d01ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac000000000100000002e2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b0000000048473044022016e7a727a061ea2254a6c358376aaa617ac537eb836c77d646ebda4c748aac8b0220192ce28bf9f2c06a6467e6531e27648d2b3e2e2bae85159c9242939840295ba501ffffffffe2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b010000004a493046022100b7a1a755588d4190118936e15cd217d133b0e4a53c3c15924010d5648d8925c9022100aaef031874db2114f2d869ac2de4ae53908fbfea5b2b1862e181626bb9005c9f01ffffffff0200e1f505000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00000000" - }, - { - "comment": "A random real block (000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6) with 4 transactions", - "transactions": 4, - "data": "0100000075616236cc2126035fadb38deb65b9102cc2c41c09cdf29fc051906800000000fe7d5e12ef0ff901f6050211249919b1c0653771832b3a80c66cea42847f0ae1d4d26e49ffff001d00f0a4410401000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d029105ffffffff0100f2052a010000004341046d8709a041d34357697dfcb30a9d05900a6294078012bf3bb09c6f9b525f1d16d5503d7905db1ada9501446ea00728668fc5719aa80be2fdfc8a858a4dbdd4fbac00000000010000000255605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d28350000000049483045022100aa46504baa86df8a33b1192b1b9367b4d729dc41e389f2c04f3e5c7f0559aae702205e82253a54bf5c4f65b7428551554b2045167d6d206dfe6a2e198127d3f7df1501ffffffff55605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d2835010000004847304402202329484c35fa9d6bb32a55a70c0982f606ce0e3634b69006138683bcd12cbb6602200c28feb1e2555c3210f1dddb299738b4ff8bbe9667b68cb8764b5ac17b7adf0001ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac0000000001000000025f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028000000004847304402205d6058484157235b06028c30736c15613a28bdb768ee628094ca8b0030d4d6eb0220328789c9a2ec27ddaec0ad5ef58efded42e6ea17c2e1ce838f3d6913f5e95db601ffffffff5f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028010000004a493046022100c45af050d3cea806cedd0ab22520c53ebe63b987b8954146cdca42487b84bdd6022100b9b027716a6b59e640da50a864d6dd8a0ef24c76ce62391fa3eabaf4d2886d2d01ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac000000000100000002e2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b0000000048473044022016e7a727a061ea2254a6c358376aaa617ac537eb836c77d646ebda4c748aac8b0220192ce28bf9f2c06a6467e6531e27648d2b3e2e2bae85159c9242939840295ba501ffffffffe2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b010000004a493046022100b7a1a755588d4190118936e15cd217d133b0e4a53c3c15924010d5648d8925c9022100aaef031874db2114f2d869ac2de4ae53908fbfea5b2b1862e181626bb9005c9f01ffffffff0200e1f505000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00000000" - }, - { - "comment": "A random real block (000000000000dab0130bbcc991d3d7ae6b81aa6f50a798888dfe62337458dc45) with one tx", - "transactions": 1, - "data": "0100000079cda856b143d9db2c1caff01d1aecc8630d30625d10e8b4b8b0000000000000b50cc069d6a3e33e3ff84a5c41d9d3febe7c770fdcc96b2c3ff60abe184f196367291b4d4c86041b8fa45d630101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff08044c86041b020a02ffffffff0100f2052a01000000434104ecd3229b0571c3be876feaac0442a9f13c5a572742927af1dc623353ecf8c202225f64868137a18cdd85cbbb4c74fbccfd4f49639cf1bdc94a5672bb15ad5d4cac00000000" - }, - { - "comment": "A random real block (000000000000b731f2eef9e8c63173adfb07e41bd53eb0ef0a6b720d6cb6dea4) with 7 transactions", - "transactions": 7, - "data": "0100000082bb869cf3a793432a66e826e05a6fc37469f8efb7421dc880670100000000007f16c5962e8bd963659c793ce370d95f093bc7e367117b3c30c1f8fdd0d9728776381b4d4c86041b554b85290701000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07044c86041b0136ffffffff0100f2052a01000000434104eaafc2314def4ca98ac970241bcab022b9c1e1f4ea423a20f134c876f2c01ec0f0dd5b2e86e7168cefe0d81113c3807420ce13ad1357231a2252247d97a46a91ac000000000100000001bcad20a6a29827d1424f08989255120bf7f3e9e3cdaaa6bb31b0737fe048724300000000494830450220356e834b046cadc0f8ebb5a8a017b02de59c86305403dad52cd77b55af062ea10221009253cd6c119d4729b77c978e1e2aa19f5ea6e0e52b3f16e32fa608cd5bab753901ffffffff02008d380c010000001976a9142b4b8072ecbba129b6453c63e129e643207249ca88ac0065cd1d000000001976a9141b8dd13b994bcfc787b32aeadf58ccb3615cbd5488ac000000000100000003fdacf9b3eb077412e7a968d2e4f11b9a9dee312d666187ed77ee7d26af16cb0b000000008c493046022100ea1608e70911ca0de5af51ba57ad23b9a51db8d28f82c53563c56a05c20f5a87022100a8bdc8b4a8acc8634c6b420410150775eb7f2474f5615f7fccd65af30f310fbf01410465fdf49e29b06b9a1582287b6279014f834edc317695d125ef623c1cc3aaece245bd69fcad7508666e9c74a49dc9056d5fc14338ef38118dc4afae5fe2c585caffffffff309e1913634ecb50f3c4f83e96e70b2df071b497b8973a3e75429df397b5af83000000004948304502202bdb79c596a9ffc24e96f4386199aba386e9bc7b6071516e2b51dda942b3a1ed022100c53a857e76b724fc14d45311eac5019650d415c3abb5428f3aae16d8e69bec2301ffffffff2089e33491695080c9edc18a428f7d834db5b6d372df13ce2b1b0e0cbcb1e6c10000000049483045022100d4ce67c5896ee251c810ac1ff9ceccd328b497c8f553ab6e08431e7d40bad6b5022033119c0c2b7d792d31f1187779c7bd95aefd93d90a715586d73801d9b47471c601ffffffff0100714460030000001976a914c7b55141d097ea5df7a0ed330cf794376e53ec8d88ac0000000001000000045bf0e214aa4069a3e792ecee1e1bf0c1d397cde8dd08138f4b72a00681743447000000008b48304502200c45de8c4f3e2c1821f2fc878cba97b1e6f8807d94930713aa1c86a67b9bf1e40221008581abfef2e30f957815fc89978423746b2086375ca8ecf359c85c2a5b7c88ad01410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffffd669f7d7958d40fc59d2253d88e0f248e29b599c80bbcec344a83dda5f9aa72c000000008a473044022078124c8beeaa825f9e0b30bff96e564dd859432f2d0cb3b72d3d5d93d38d7e930220691d233b6c0f995be5acb03d70a7f7a65b6bc9bdd426260f38a1346669507a3601410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95fffffffff878af0d93f5229a68166cf051fd372bb7a537232946e0a46f53636b4dafdaa4000000008c493046022100c717d1714551663f69c3c5759bdbb3a0fcd3fab023abc0e522fe6440de35d8290221008d9cbe25bffc44af2b18e81c58eb37293fd7fe1c2e7b46fc37ee8c96c50ab1e201410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffff27f2b668859cd7f2f894aa0fd2d9e60963bcd07c88973f425f999b8cbfd7a1e2000000008c493046022100e00847147cbf517bcc2f502f3ddc6d284358d102ed20d47a8aa788a62f0db780022100d17b2d6fa84dcaf1c95d88d7e7c30385aecf415588d749afd3ec81f6022cecd701410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffff0100c817a8040000001976a914b6efd80d99179f4f4ff6f4dd0a007d018c385d2188ac000000000100000001834537b2f1ce8ef9373a258e10545ce5a50b758df616cd4356e0032554ebd3c4000000008b483045022100e68f422dd7c34fdce11eeb4509ddae38201773dd62f284e8aa9d96f85099d0b002202243bd399ff96b649a0fad05fa759d6a882f0af8c90cf7632c2840c29070aec20141045e58067e815c2f464c6a2a15f987758374203895710c2d452442e28496ff38ba8f5fd901dc20e29e88477167fe4fc299bf818fd0d9e1632d467b2a3d9503b1aaffffffff0280d7e636030000001976a914f34c3e10eb387efe872acb614c89e78bfca7815d88ac404b4c00000000001976a914a84e272933aaf87e1715d7786c51dfaeb5b65a6f88ac00000000010000000143ac81c8e6f6ef307dfe17f3d906d999e23e0189fda838c5510d850927e03ae7000000008c4930460221009c87c344760a64cb8ae6685a3eec2c1ac1bed5b88c87de51acd0e124f266c16602210082d07c037359c3a257b5c63ebd90f5a5edf97b2ac1c434b08ca998839f346dd40141040ba7e521fa7946d12edbb1d1e95a15c34bd4398195e86433c92b431cd315f455fe30032ede69cad9d1e1ed6c3c4ec0dbfced53438c625462afb792dcb098544bffffffff0240420f00000000001976a9144676d1b820d63ec272f1900d59d43bc6463d96f888ac40420f00000000001976a914648d04341d00d7968b3405c034adc38d4d8fb9bd88ac00000000010000000248cc917501ea5c55f4a8d2009c0567c40cfe037c2e71af017d0a452ff705e3f1000000008b483045022100bf5fdc86dc5f08a5d5c8e43a8c9d5b1ed8c65562e280007b52b133021acd9acc02205e325d613e555f772802bf413d36ba807892ed1a690a77811d3033b3de226e0a01410429fa713b124484cb2bd7b5557b2c0b9df7b2b1fee61825eadc5ae6c37a9920d38bfccdc7dc3cb0c47d7b173dbc9db8d37db0a33ae487982c59c6f8606e9d1791ffffffff41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068000000008b4830450221008513ad65187b903aed1102d1d0c47688127658c51106753fed0151ce9c16b80902201432b9ebcb87bd04ceb2de66035fbbaf4bf8b00d1cfe41f1a1f7338f9ad79d210141049d4cf80125bf50be1709f718c07ad15d0fc612b7da1f5570dddc35f2a352f0f27c978b06820edca9ef982c35fda2d255afba340068c5035552368bc7200c1488ffffffff0100093d00000000001976a9148edb68822f1ad580b043c7b3df2e400f8699eb4888ac00000000" - } -] diff --git a/test/data/bitcoind/script_invalid.json b/test/data/bitcoind/script_invalid.json deleted file mode 100644 index 86d39b5..0000000 --- a/test/data/bitcoind/script_invalid.json +++ /dev/null @@ -1,672 +0,0 @@ -[ -["Format is: [scriptPubKey, scriptSig, flags, ... comments]"], -["It is evaluated as if there was a crediting coinbase transaction with two 0"], -["pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,"], -["followed by a spending transaction which spends this output as only input (and"], -["correct prevout hash), using the given scriptSig. All nLockTimes are 0, all"], -["nSequences are max."], - -["", "DEPTH", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"], -[" ", "DEPTH", "P2SH,STRICTENC", "and multiple spaces should not change that."], -[" ", "DEPTH", "P2SH,STRICTENC"], -[" ", "DEPTH", "P2SH,STRICTENC"], - -["", "", "P2SH,STRICTENC"], -["", "NOP", "P2SH,STRICTENC"], -["", "NOP DEPTH", "P2SH,STRICTENC"], -["NOP", "", "P2SH,STRICTENC"], -["NOP", "DEPTH", "P2SH,STRICTENC"], -["NOP","NOP", "P2SH,STRICTENC"], -["NOP","NOP DEPTH", "P2SH,STRICTENC"], - -["DEPTH", "", "P2SH,STRICTENC"], - -["0x4c01","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA1 with not enough bytes"], -["0x4d0200ff","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA2 with not enough bytes"], -["0x4e03000000ffff","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA4 with not enough bytes"], - -["1", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved"], -["0x52", "0x5f ADD 0x60 EQUAL", "P2SH,STRICTENC", "0x51 through 0x60 push 1 through 16 onto stack"], -["0","NOP", "P2SH,STRICTENC"], -["1", "IF VER ELSE 1 ENDIF", "P2SH,STRICTENC", "VER non-functional"], -["0", "IF VERIF ELSE 1 ENDIF", "P2SH,STRICTENC", "VERIF illegal everywhere"], -["0", "IF ELSE 1 ELSE VERIF ENDIF", "P2SH,STRICTENC", "VERIF illegal everywhere"], -["0", "IF VERNOTIF ELSE 1 ENDIF", "P2SH,STRICTENC", "VERNOTIF illegal everywhere"], -["0", "IF ELSE 1 ELSE VERNOTIF ENDIF", "P2SH,STRICTENC", "VERNOTIF illegal everywhere"], - -["1 IF", "1 ENDIF", "P2SH,STRICTENC", "IF/ENDIF can't span scriptSig/scriptPubKey"], -["1 IF 0 ENDIF", "1 ENDIF", "P2SH,STRICTENC"], -["1 ELSE 0 ENDIF", "1", "P2SH,STRICTENC"], -["0 NOTIF", "123", "P2SH,STRICTENC"], - -["0", "DUP IF ENDIF", "P2SH,STRICTENC"], -["0", "IF 1 ENDIF", "P2SH,STRICTENC"], -["0", "DUP IF ELSE ENDIF", "P2SH,STRICTENC"], -["0", "IF 1 ELSE ENDIF", "P2SH,STRICTENC"], -["0", "NOTIF ELSE 1 ENDIF", "P2SH,STRICTENC"], - -["0 1", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 0", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 0", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 1", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], - -["0 0", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 1", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 1", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], - -["1", "IF RETURN ELSE ELSE 1 ENDIF", "P2SH,STRICTENC", "Multiple ELSEs"], -["1", "IF 1 ELSE ELSE RETURN ENDIF", "P2SH,STRICTENC"], - -["1", "ENDIF", "P2SH,STRICTENC", "Malformed IF/ELSE/ENDIF sequence"], -["1", "ELSE ENDIF", "P2SH,STRICTENC"], -["1", "ENDIF ELSE", "P2SH,STRICTENC"], -["1", "ENDIF ELSE IF", "P2SH,STRICTENC"], -["1", "IF ELSE ENDIF ELSE", "P2SH,STRICTENC"], -["1", "IF ELSE ENDIF ELSE ENDIF", "P2SH,STRICTENC"], -["1", "IF ENDIF ENDIF", "P2SH,STRICTENC"], -["1", "IF ELSE ELSE ENDIF ENDIF", "P2SH,STRICTENC"], - -["1", "RETURN", "P2SH,STRICTENC"], -["1", "DUP IF RETURN ENDIF", "P2SH,STRICTENC"], - -["1", "RETURN 'data'", "P2SH,STRICTENC", "canonical prunable txout format"], -["0 IF", "RETURN ENDIF 1", "P2SH,STRICTENC", "still prunable because IF/ENDIF can't span scriptSig/scriptPubKey"], - -["0", "VERIFY 1", "P2SH,STRICTENC"], -["1", "VERIFY", "P2SH,STRICTENC"], -["1", "VERIFY 0", "P2SH,STRICTENC"], - -["1 TOALTSTACK", "FROMALTSTACK 1", "P2SH,STRICTENC", "alt stack not shared between sig/pubkey"], - -["IFDUP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["DROP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["DUP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["1", "DUP 1 ADD 2 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], -["NOP", "NIP", "P2SH,STRICTENC"], -["NOP", "1 NIP", "P2SH,STRICTENC"], -["NOP", "1 0 NIP", "P2SH,STRICTENC"], -["NOP", "OVER 1", "P2SH,STRICTENC"], -["1", "OVER", "P2SH,STRICTENC"], -["0 1", "OVER DEPTH 3 EQUALVERIFY", "P2SH,STRICTENC"], -["19 20 21", "PICK 19 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["NOP", "0 PICK", "P2SH,STRICTENC"], -["1", "-1 PICK", "P2SH,STRICTENC"], -["19 20 21", "0 PICK 20 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["19 20 21", "1 PICK 21 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["19 20 21", "2 PICK 22 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["NOP", "0 ROLL", "P2SH,STRICTENC"], -["1", "-1 ROLL", "P2SH,STRICTENC"], -["19 20 21", "0 ROLL 20 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["19 20 21", "1 ROLL 21 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["19 20 21", "2 ROLL 22 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["NOP", "ROT 1", "P2SH,STRICTENC"], -["NOP", "1 ROT 1", "P2SH,STRICTENC"], -["NOP", "1 2 ROT 1", "P2SH,STRICTENC"], -["NOP", "0 1 2 ROT", "P2SH,STRICTENC"], -["NOP", "SWAP 1", "P2SH,STRICTENC"], -["1", "SWAP 1", "P2SH,STRICTENC"], -["0 1", "SWAP 1 EQUALVERIFY", "P2SH,STRICTENC"], -["NOP", "TUCK 1", "P2SH,STRICTENC"], -["1", "TUCK 1", "P2SH,STRICTENC"], -["1 0", "TUCK DEPTH 3 EQUALVERIFY SWAP 2DROP", "P2SH,STRICTENC"], -["NOP", "2DUP 1", "P2SH,STRICTENC"], -["1", "2DUP 1", "P2SH,STRICTENC"], -["NOP", "3DUP 1", "P2SH,STRICTENC"], -["1", "3DUP 1", "P2SH,STRICTENC"], -["1 2", "3DUP 1", "P2SH,STRICTENC"], -["NOP", "2OVER 1", "P2SH,STRICTENC"], -["1", "2 3 2OVER 1", "P2SH,STRICTENC"], -["NOP", "2SWAP 1", "P2SH,STRICTENC"], -["1", "2 3 2SWAP 1", "P2SH,STRICTENC"], - -["'a' 'b'", "CAT", "P2SH,STRICTENC", "CAT disabled"], -["'a' 'b' 0", "IF CAT ELSE 1 ENDIF", "P2SH,STRICTENC", "CAT disabled"], -["'abc' 1 1", "SUBSTR", "P2SH,STRICTENC", "SUBSTR disabled"], -["'abc' 1 1 0", "IF SUBSTR ELSE 1 ENDIF", "P2SH,STRICTENC", "SUBSTR disabled"], -["'abc' 2 0", "IF LEFT ELSE 1 ENDIF", "P2SH,STRICTENC", "LEFT disabled"], -["'abc' 2 0", "IF RIGHT ELSE 1 ENDIF", "P2SH,STRICTENC", "RIGHT disabled"], - -["NOP", "SIZE 1", "P2SH,STRICTENC"], - -["'abc'", "IF INVERT ELSE 1 ENDIF", "P2SH,STRICTENC", "INVERT disabled"], -["1 2 0 IF AND ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "AND disabled"], -["1 2 0 IF OR ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "OR disabled"], -["1 2 0 IF XOR ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "XOR disabled"], -["2 0 IF 2MUL ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "2MUL disabled"], -["2 0 IF 2DIV ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "2DIV disabled"], -["2 2 0 IF MUL ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "MUL disabled"], -["2 2 0 IF DIV ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "DIV disabled"], -["2 2 0 IF MOD ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "MOD disabled"], -["2 2 0 IF LSHIFT ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "LSHIFT disabled"], -["2 2 0 IF RSHIFT ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "RSHIFT disabled"], - -["0 1","EQUAL", "P2SH,STRICTENC"], -["1 1 ADD", "0 EQUAL", "P2SH,STRICTENC"], -["11 1 ADD 12 SUB", "11 EQUAL", "P2SH,STRICTENC"], - -["2147483648 0 ADD", "NOP", "P2SH,STRICTENC", "arithmetic operands must be in range [-2^31...2^31] "], -["-2147483648 0 ADD", "NOP", "P2SH,STRICTENC", "arithmetic operands must be in range [-2^31...2^31] "], -["2147483647 DUP ADD", "4294967294 NUMEQUAL", "P2SH,STRICTENC", "NUMEQUAL must be in numeric range"], -["'abcdef' NOT", "0 EQUAL", "P2SH,STRICTENC", "NOT is an arithmetic operand"], - -["2 DUP MUL", "4 EQUAL", "P2SH,STRICTENC", "disabled"], -["2 DUP DIV", "1 EQUAL", "P2SH,STRICTENC", "disabled"], -["2 2MUL", "4 EQUAL", "P2SH,STRICTENC", "disabled"], -["2 2DIV", "1 EQUAL", "P2SH,STRICTENC", "disabled"], -["7 3 MOD", "1 EQUAL", "P2SH,STRICTENC", "disabled"], -["2 2 LSHIFT", "8 EQUAL", "P2SH,STRICTENC", "disabled"], -["2 1 RSHIFT", "1 EQUAL", "P2SH,STRICTENC", "disabled"], - -["1","NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10 2 EQUAL", "P2SH,STRICTENC"], -["'NOP_1_to_10' NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10","'NOP_1_to_11' EQUAL", "P2SH,STRICTENC"], - -["Ensure 100% coverage of discouraged NOPS"], -["1", "NOP1", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP2", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP3", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP4", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP5", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP6", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP7", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP8", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP9", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], -["1", "NOP10", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], - -["NOP10", "1", "P2SH,DISCOURAGE_UPGRADABLE_NOPS", "Discouraged NOP10 in scriptSig"], - -["1 0x01 0xb9", "HASH160 0x14 0x15727299b05b45fdaf9ac9ecf7565cfe27c3e567 EQUAL", - "P2SH,DISCOURAGE_UPGRADABLE_NOPS", "Discouraged NOP10 in redeemScript"], - -["0x50","1", "P2SH,STRICTENC", "opcode 0x50 is reserved"], -["1", "IF 0xba ELSE 1 ENDIF", "P2SH,STRICTENC", "opcodes above NOP10 invalid if executed"], -["1", "IF 0xbb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xbc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xbd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xbe ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xbf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xc9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xca ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xcb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xcc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xcd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xce ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xcf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xd9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xda ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xdb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xdc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xe9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xea ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xeb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xec ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xed ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xee ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xef ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xf9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xfa ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xfb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xfc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xfd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xfe ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 0xff ELSE 1 ENDIF", "P2SH,STRICTENC"], - -["1 IF 1 ELSE", "0xff ENDIF", "P2SH,STRICTENC", "invalid because scriptSig and scriptPubKey are processed separately"], - -["NOP", "RIPEMD160", "P2SH,STRICTENC"], -["NOP", "SHA1", "P2SH,STRICTENC"], -["NOP", "SHA256", "P2SH,STRICTENC"], -["NOP", "HASH160", "P2SH,STRICTENC"], -["NOP", "HASH256", "P2SH,STRICTENC"], - -["NOP", -"'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'", -"P2SH,STRICTENC", -">520 byte push"], -["0", -"IF 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ENDIF 1", -"P2SH,STRICTENC", -">520 byte push in non-executed IF branch"], -["1", -"0x61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", -"P2SH,STRICTENC", -">201 opcodes executed. 0x61 is NOP"], -["0", -"IF 0x6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161 ENDIF 1", -"P2SH,STRICTENC", -">201 opcodes including non-executed IF branch. 0x61 is NOP"], -["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"1 2 3 4 5 6 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"P2SH,STRICTENC", -">1,000 stack size (0x6f is 3DUP)"], -["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"1 TOALTSTACK 2 TOALTSTACK 3 4 5 6 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"P2SH,STRICTENC", -">1,000 stack+altstack size"], -["NOP", -"0 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f 2DUP 0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", -"P2SH,STRICTENC", -"10,001-byte scriptPubKey"], - -["NOP1","NOP10", "P2SH,STRICTENC"], - -["1","VER", "P2SH,STRICTENC", "OP_VER is reserved"], -["1","VERIF", "P2SH,STRICTENC", "OP_VERIF is reserved"], -["1","VERNOTIF", "P2SH,STRICTENC", "OP_VERNOTIF is reserved"], -["1","RESERVED", "P2SH,STRICTENC", "OP_RESERVED is reserved"], -["1","RESERVED1", "P2SH,STRICTENC", "OP_RESERVED1 is reserved"], -["1","RESERVED2", "P2SH,STRICTENC", "OP_RESERVED2 is reserved"], -["1","0xba", "P2SH,STRICTENC", "0xba == OP_NOP10 + 1"], - -["2147483648", "1ADD 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers"], -["2147483648", "NEGATE 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers"], -["-2147483648", "1ADD 1", "P2SH,STRICTENC", "Because we use a sign bit, -2147483648 is also 5 bytes"], -["2147483647", "1ADD 1SUB 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers, even if the result is 4-bytes"], -["2147483648", "1SUB 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers, even if the result is 4-bytes"], - -["2147483648 1", "BOOLOR 1", "P2SH,STRICTENC", "We cannot do BOOLOR on 5-byte integers (but we can still do IF etc)"], -["2147483648 1", "BOOLAND 1", "P2SH,STRICTENC", "We cannot do BOOLAND on 5-byte integers"], - -["1", "1 ENDIF", "P2SH,STRICTENC", "ENDIF without IF"], -["1", "IF 1", "P2SH,STRICTENC", "IF without ENDIF"], -["1 IF 1", "ENDIF", "P2SH,STRICTENC", "IFs don't carry over"], - -["NOP", "IF 1 ENDIF", "P2SH,STRICTENC", "The following tests check the if(stack.size() < N) tests in each opcode"], -["NOP", "NOTIF 1 ENDIF", "P2SH,STRICTENC", "They are here to catch copy-and-paste errors"], -["NOP", "VERIFY 1", "P2SH,STRICTENC", "Most of them are duplicated elsewhere,"], - -["NOP", "TOALTSTACK 1", "P2SH,STRICTENC", "but, hey, more is always better, right?"], -["1", "FROMALTSTACK", "P2SH,STRICTENC"], -["1", "2DROP 1", "P2SH,STRICTENC"], -["1", "2DUP", "P2SH,STRICTENC"], -["1 1", "3DUP", "P2SH,STRICTENC"], -["1 1 1", "2OVER", "P2SH,STRICTENC"], -["1 1 1 1 1", "2ROT", "P2SH,STRICTENC"], -["1 1 1", "2SWAP", "P2SH,STRICTENC"], -["NOP", "IFDUP 1", "P2SH,STRICTENC"], -["NOP", "DROP 1", "P2SH,STRICTENC"], -["NOP", "DUP 1", "P2SH,STRICTENC"], -["1", "NIP", "P2SH,STRICTENC"], -["1", "OVER", "P2SH,STRICTENC"], -["1 1 1 3", "PICK", "P2SH,STRICTENC"], -["0", "PICK 1", "P2SH,STRICTENC"], -["1 1 1 3", "ROLL", "P2SH,STRICTENC"], -["0", "ROLL 1", "P2SH,STRICTENC"], -["1 1", "ROT", "P2SH,STRICTENC"], -["1", "SWAP", "P2SH,STRICTENC"], -["1", "TUCK", "P2SH,STRICTENC"], - -["NOP", "SIZE 1", "P2SH,STRICTENC"], - -["1", "EQUAL 1", "P2SH,STRICTENC"], -["1", "EQUALVERIFY 1", "P2SH,STRICTENC"], - -["NOP", "1ADD 1", "P2SH,STRICTENC"], -["NOP", "1SUB 1", "P2SH,STRICTENC"], -["NOP", "NEGATE 1", "P2SH,STRICTENC"], -["NOP", "ABS 1", "P2SH,STRICTENC"], -["NOP", "NOT 1", "P2SH,STRICTENC"], -["NOP", "0NOTEQUAL 1", "P2SH,STRICTENC"], - -["1", "ADD", "P2SH,STRICTENC"], -["1", "SUB", "P2SH,STRICTENC"], -["1", "BOOLAND", "P2SH,STRICTENC"], -["1", "BOOLOR", "P2SH,STRICTENC"], -["1", "NUMEQUAL", "P2SH,STRICTENC"], -["1", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], -["1", "NUMNOTEQUAL", "P2SH,STRICTENC"], -["1", "LESSTHAN", "P2SH,STRICTENC"], -["1", "GREATERTHAN", "P2SH,STRICTENC"], -["1", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["1", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], -["1", "MIN", "P2SH,STRICTENC"], -["1", "MAX", "P2SH,STRICTENC"], -["1 1", "WITHIN", "P2SH,STRICTENC"], - -["NOP", "RIPEMD160 1", "P2SH,STRICTENC"], -["NOP", "SHA1 1", "P2SH,STRICTENC"], -["NOP", "SHA256 1", "P2SH,STRICTENC"], -["NOP", "HASH160 1", "P2SH,STRICTENC"], -["NOP", "HASH256 1", "P2SH,STRICTENC"], - -["", -"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG", -"P2SH,STRICTENC", -"202 CHECKMULTISIGS, fails due to 201 op limit"], - -["1", -"0 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY", -"P2SH,STRICTENC"], - -["", -"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG", -"P2SH,STRICTENC", -"Fails due to 201 sig op limit"], - -["1", -"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY", -"P2SH,STRICTENC"], - - -["0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21", "21 CHECKMULTISIG 1", "P2SH,STRICTENC", "nPubKeys > 20"], -["0 'sig' 1 0", "CHECKMULTISIG 1", "P2SH,STRICTENC", "nSigs > nPubKeys"], - - -["NOP 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC", "Tests for Script.IsPushOnly()"], -["NOP1 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC"], - -["0 0x01 0x50", "HASH160 0x14 0xece424a6bb6ddf4db592c0faed60685047a361b1 EQUAL", "P2SH,STRICTENC", "OP_RESERVED in P2SH should fail"], -["0 0x01 VER", "HASH160 0x14 0x0f4d7845db968f2a81b530b6f3c1d6246d4c7e01 EQUAL", "P2SH,STRICTENC", "OP_VER in P2SH should fail"], - -["0x00", "'00' EQUAL", "P2SH,STRICTENC", "Basic OP_0 execution"], - -["MINIMALDATA enforcement for PUSHDATAs"], - -["0x4c 0x00", "DROP 1", "MINIMALDATA", "Empty vector minimally represented by OP_0"], -["0x01 0x81", "DROP 1", "MINIMALDATA", "-1 minimally represented by OP_1NEGATE"], -["0x01 0x01", "DROP 1", "MINIMALDATA", "1 to 16 minimally represented by OP_1 to OP_16"], -["0x01 0x02", "DROP 1", "MINIMALDATA"], -["0x01 0x03", "DROP 1", "MINIMALDATA"], -["0x01 0x04", "DROP 1", "MINIMALDATA"], -["0x01 0x05", "DROP 1", "MINIMALDATA"], -["0x01 0x06", "DROP 1", "MINIMALDATA"], -["0x01 0x07", "DROP 1", "MINIMALDATA"], -["0x01 0x08", "DROP 1", "MINIMALDATA"], -["0x01 0x09", "DROP 1", "MINIMALDATA"], -["0x01 0x0a", "DROP 1", "MINIMALDATA"], -["0x01 0x0b", "DROP 1", "MINIMALDATA"], -["0x01 0x0c", "DROP 1", "MINIMALDATA"], -["0x01 0x0d", "DROP 1", "MINIMALDATA"], -["0x01 0x0e", "DROP 1", "MINIMALDATA"], -["0x01 0x0f", "DROP 1", "MINIMALDATA"], -["0x01 0x10", "DROP 1", "MINIMALDATA"], - -["0x4c 0x48 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", - "PUSHDATA1 of 72 bytes minimally represented by direct push"], - -["0x4d 0xFF00 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", - "PUSHDATA2 of 255 bytes minimally represented by PUSHDATA1"], - -["0x4f 0x00100000 0x11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", - "PUSHDATA4 of 256 bytes minimally represented by PUSHDATA2"], - - -["MINIMALDATA enforcement for numeric arguments"], - -["0x01 0x00", "NOT DROP 1", "MINIMALDATA", "numequals 0"], -["0x02 0x0000", "NOT DROP 1", "MINIMALDATA", "numequals 0"], -["0x01 0x80", "NOT DROP 1", "MINIMALDATA", "0x80 (negative zero) numequals 0"], -["0x02 0x0080", "NOT DROP 1", "MINIMALDATA", "numequals 0"], -["0x02 0x0500", "NOT DROP 1", "MINIMALDATA", "numequals 5"], -["0x03 0x050000", "NOT DROP 1", "MINIMALDATA", "numequals 5"], -["0x02 0x0580", "NOT DROP 1", "MINIMALDATA", "numequals -5"], -["0x03 0x050080", "NOT DROP 1", "MINIMALDATA", "numequals -5"], -["0x03 0xff7f80", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffff"], -["0x03 0xff7f00", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xff7f"], -["0x04 0xffff7f80", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffffff"], -["0x04 0xffff7f00", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffff7f"], - -["Test every numeric-accepting opcode for correct handling of the numeric minimal encoding rule"], - -["1 0x02 0x0000", "PICK DROP", "MINIMALDATA"], -["1 0x02 0x0000", "ROLL DROP 1", "MINIMALDATA"], -["0x02 0x0000", "1ADD DROP 1", "MINIMALDATA"], -["0x02 0x0000", "1SUB DROP 1", "MINIMALDATA"], -["0x02 0x0000", "NEGATE DROP 1", "MINIMALDATA"], -["0x02 0x0000", "ABS DROP 1", "MINIMALDATA"], -["0x02 0x0000", "NOT DROP 1", "MINIMALDATA"], -["0x02 0x0000", "0NOTEQUAL DROP 1", "MINIMALDATA"], - -["0 0x02 0x0000", "ADD DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "ADD DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "SUB DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "SUB DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "BOOLAND DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "BOOLAND DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "BOOLOR DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "BOOLOR DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "NUMEQUAL DROP 1", "MINIMALDATA"], -["0x02 0x0000 1", "NUMEQUAL DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "NUMEQUALVERIFY 1", "MINIMALDATA"], -["0x02 0x0000 0", "NUMEQUALVERIFY 1", "MINIMALDATA"], -["0 0x02 0x0000", "NUMNOTEQUAL DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "NUMNOTEQUAL DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "LESSTHAN DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "LESSTHAN DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "GREATERTHAN DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "GREATERTHAN DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "LESSTHANOREQUAL DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "LESSTHANOREQUAL DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "GREATERTHANOREQUAL DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "GREATERTHANOREQUAL DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "MIN DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "MIN DROP 1", "MINIMALDATA"], -["0 0x02 0x0000", "MAX DROP 1", "MINIMALDATA"], -["0x02 0x0000 0", "MAX DROP 1", "MINIMALDATA"], - -["0x02 0x0000 0 0", "WITHIN DROP 1", "MINIMALDATA"], -["0 0x02 0x0000 0", "WITHIN DROP 1", "MINIMALDATA"], -["0 0 0x02 0x0000", "WITHIN DROP 1", "MINIMALDATA"], - -["0 0 0x02 0x0000", "CHECKMULTISIG DROP 1", "MINIMALDATA"], -["0 0x02 0x0000 0", "CHECKMULTISIG DROP 1", "MINIMALDATA"], -["0 0x02 0x0000 0 1", "CHECKMULTISIG DROP 1", "MINIMALDATA"], -["0 0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", "MINIMALDATA"], -["0 0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", "MINIMALDATA"], - - -["Order of CHECKMULTISIG evaluation tests, inverted by swapping the order of"], -["pubkeys/signatures so they fail due to the STRICTENC rules on validly encoded"], -["signatures and pubkeys."], -[ - "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", - "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0 2 CHECKMULTISIG NOT", - "STRICTENC", - "2-of-2 CHECKMULTISIG NOT with the first pubkey invalid, and both signatures validly encoded." -], -[ - "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0", - "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", - "STRICTENC", - "2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but first signature invalid." -], - -["Automatically generated test cases"], -[ - "0x47 0x3044022053205076a7bb12d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801", - "0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", - "", - "P2PK, bad sig" -], -[ - "0x47 0x30440220151ea78fa148b59f399b23731b634645ebc142f299ee9838d46fb78cf7e0bc0102200d62327dcd54ac6bcfb1516b035b1bf8eaea438c52c62d3450d1f3a8f030e0de01 0x21 0x03363d90d446b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", - "DUP HASH160 0x14 0xc0834c0c158f53be706d234c38fd52de7eece656 EQUALVERIFY CHECKSIG", - "", - "P2PKH, bad pubkey" -], -[ - "0x47 0x304402204710a85181663b32d25c70ec2bbd14adff5ddfff6cb50d09e155ef5f541fc86c0220056b0cc949be9386ecc5f6c2ac0493269031dbb185781db90171b54ac127790201", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", - "", - "P2PK anyonecanpay marked with normal hashtype" -], -[ - "0x47 0x304402202166fcd5e607de452d3c6f15e059505cf21654346592f9650ba906b9e8be88fa022005d976d28eb8de477102feba28807b3ad361e7fa24796d259c9d61452f7c318c01 0x23 0x210279be667ef9dcbbac54a06295ce870b07029bfcdb2dce28d959f2815b16f81798ac", - "HASH160 0x14 0x23b0ad3477f2178bc0b3eed26e4e6316f4e83aa1 EQUAL", - "P2SH", - "P2SH(P2PK), bad redeemscript" -], -[ - "0x47 0x3044022064cc90ca89ad721384b231653b945579359a24b928ef8539b331172628c9cc6102203e238869ab5dac3fc293db53c12e7dd3079e86cfde9024b689efc7227e4d671001 0x19 0x76a9147cf9c846cd4882efec4bf07e44ebdad495c94f4b88ac", - "HASH160 0x14 0x2df519943d5acc0ef5222091f9dfe3543f489a82 EQUAL", - "P2SH", - "P2SH(P2PKH), bad sig" -], -[ - "0 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", - "", - "3-of-3, 2 sigs" -], -[ - "0 0x47 0x304402205b7d2c2f177ae76cfbbf14d589c113b0b35db753d305d5562dd0b61cbf366cfb02202e56f93c4f08a27f986cd424ffc48a462c3202c4902104d4d0ff98ed28f4bf8001 0 0x4c69 0x52210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179821038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f515082103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff464053ae", - "HASH160 0x14 0xc9e4a896d149702d0d1695434feddd52e24ad78d EQUAL", - "P2SH", - "P2SH(2-of-3), 1 sig" -], -[ - "0x47 0x30440220001d6702bfa4f49c3a2542af9b1c2844a2eaac55f86f310f42d26a5dd17d6a8002202cdadbe608c00b50dd951c6ba0877d5b07a970f3e265c18697bc413a0a86f69901", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "DERSIG", - "P2PK with too much R padding" -], -[ - "0x48 0x304502207d2b258e959605e2ea50b46fea1325b7391ffb0c14a5b58ef8ad3851da3644380221007e75136df5f2e38216c4338b31c97e8307102edb97d611e06914e1f8fba68ead01", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "DERSIG", - "P2PK with too much S padding" -], -[ - "0x47 0x30440220d7a0417c3f6d1a15094d1cf2a3378ca0503eb8a57630953a9e2987e21ddd0a6502207a6266d686c99090920249991d3d42065b6d43eb70187b219c0db82e4f94d1a201", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "DERSIG", - "P2PK with too little R padding" -], -[ - "0x47 0x30440220003040725f724b0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", - "DERSIG", - "P2PK NOT with bad sig with too much R padding" -], -[ - "0x47 0x30440220003040725f724a0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", - "", - "P2PK NOT with too much R padding but no DERSIG" -], -[ - "0x47 0x30440220003040725f724a0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", - "DERSIG", - "P2PK NOT with too much R padding" -], -[ - "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", - "LOW_S", - "P2PK with high S" -], -[ - "0x47 0x30440220745d63eb70d45652128b450aa5ca7d9b513439963f261cb1c40a60f0785e7ee402204877785b38945ca9dbec78e1c1d4dd12148cc25c868bd27480023b49ae0f310501", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", - "STRICTENC", - "P2PK with hybrid pubkey" -], -[ - "0x47 0x30440220606f6f9f6cebc94ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", - "", - "P2PK NOT with hybrid pubkey but no STRICTENC" -], -[ - "0x47 0x30440220606f6f9f6cebc94ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", - "STRICTENC", - "P2PK NOT with hybrid pubkey" -], -[ - "0x47 0x30440220606f6f9f6cebc84ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", - "STRICTENC", - "P2PK NOT with invalid hybrid pubkey" -], -[ - "0 0x47 0x304402203cdcf66792fe97e3955655ede5dad004950e58b369831ffa7743132c507b272c022031fbcfb4a72b3e00217abf2f5557585f1f9891f12827d2f0a2ae2978e7f9f11001", - "1 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 2 CHECKMULTISIG", - "STRICTENC", - "1-of-2 with the first 1 hybrid pubkey" -], -[ - "0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", - "STRICTENC", - "P2PK with undefined hashtype" -], -[ - "0x47 0x304402207409b5b320296e5e2136a7b281a7f803028ca4ca44e2b83eebd46932677725de02202d4eea1c8d3c98e6f42614f54764e6e5e6542e213eb4d079737e9a8b6e9812ec05", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG NOT", - "STRICTENC", - "P2PK NOT with invalid sig and undefined hashtype" -], -[ - "1 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", - "NULLDUMMY", - "3-of-3 with nonzero dummy" -], -[ - "1 0x47 0x304402201bb2edab700a5d020236df174fefed78087697143731f659bea59642c759c16d022061f42cdbae5bcd3e8790f20bf76687443436e94a634321c16a72aa54cbc7c2ea01 0x47 0x304402204bb4a64f2a6e5c7fb2f07fef85ee56fde5e6da234c6a984262307a20e99842d702206f8303aaba5e625d223897e2ffd3f88ef1bcffef55f38dc3768e5f2e94c923f901 0x47 0x3044022040c2809b71fffb155ec8b82fe7a27f666bd97f941207be4e14ade85a1249dd4d02204d56c85ec525dd18e29a0533d5ddf61b6b1bb32980c2f63edf951aebf7a27bfe01", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG NOT", - "NULLDUMMY", - "3-of-3 NOT with invalid sig with nonzero dummy" -], -[ - "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 DUP", - "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", - "SIGPUSHONLY", - "2-of-2 with two identical keys and sigs pushed using OP_DUP" -], -[ - "0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 0x23 0x2103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640ac", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", - "", - "P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY" -], -[ - "0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 0x23 0x2103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640ac", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", - "SIGPUSHONLY", - "P2SH(P2PK) with non-push scriptSig" -], - -["The End"] -] diff --git a/test/data/bitcoind/script_valid.json b/test/data/bitcoind/script_valid.json deleted file mode 100644 index d3075de..0000000 --- a/test/data/bitcoind/script_valid.json +++ /dev/null @@ -1,821 +0,0 @@ -[ -["Format is: [scriptPubKey, scriptSig, flags, ... comments]"], -["It is evaluated as if there was a crediting coinbase transaction with two 0"], -["pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,"], -["followed by a spending transaction which spends this output as only input (and"], -["correct prevout hash), using the given scriptSig. All nLockTimes are 0, all"], -["nSequences are max."], - -["", "DEPTH 0 EQUAL", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"], -[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC", "and multiple spaces should not change that."], -[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC", "Similarly whitespace around and between symbols"], -["1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], -[" 1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], -["1 2 ", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], -[" 1 2 ", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], - -["1", "", "P2SH,STRICTENC"], -["0x02 0x01 0x00", "", "P2SH,STRICTENC", "all bytes are significant, not only the last one"], -["0x09 0x00000000 0x00000000 0x10", "", "P2SH,STRICTENC", "equals zero when cast to Int64"], - -["0x01 0x0b", "11 EQUAL", "P2SH,STRICTENC", "push 1 byte"], -["0x02 0x417a", "'Az' EQUAL", "P2SH,STRICTENC"], -["0x4b 0x417a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a", - "'Azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz' EQUAL", "P2SH,STRICTENC", "push 75 bytes"], - -["0x4c 0x01 0x07","7 EQUAL", "P2SH,STRICTENC", "0x4c is OP_PUSHDATA1"], -["0x4d 0x0100 0x08","8 EQUAL", "P2SH,STRICTENC", "0x4d is OP_PUSHDATA2"], -["0x4e 0x01000000 0x09","9 EQUAL", "P2SH,STRICTENC", "0x4e is OP_PUSHDATA4"], - -["0x4c 0x00","0 EQUAL", "P2SH,STRICTENC"], -["0x4d 0x0000","0 EQUAL", "P2SH,STRICTENC"], -["0x4e 0x00000000","0 EQUAL", "P2SH,STRICTENC"], -["0x4f 1000 ADD","999 EQUAL", "P2SH,STRICTENC"], -["0", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved (ok if not executed)"], -["0x51", "0x5f ADD 0x60 EQUAL", "P2SH,STRICTENC", "0x51 through 0x60 push 1 through 16 onto stack"], -["1","NOP", "P2SH,STRICTENC"], -["0", "IF VER ELSE 1 ENDIF", "P2SH,STRICTENC", "VER non-functional (ok if not executed)"], -["0", "IF RESERVED RESERVED1 RESERVED2 ELSE 1 ENDIF", "P2SH,STRICTENC", "RESERVED ok in un-executed IF"], - -["1", "DUP IF ENDIF", "P2SH,STRICTENC"], -["1", "IF 1 ENDIF", "P2SH,STRICTENC"], -["1", "DUP IF ELSE ENDIF", "P2SH,STRICTENC"], -["1", "IF 1 ELSE ENDIF", "P2SH,STRICTENC"], -["0", "IF ELSE 1 ENDIF", "P2SH,STRICTENC"], - -["1 1", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 0", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 1", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 0", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], - -["1 0", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 1", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], -["1 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], -["0 1", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], - -["0", "IF 0 ELSE 1 ELSE 0 ENDIF", "P2SH,STRICTENC", "Multiple ELSE's are valid and executed inverts on each ELSE encountered"], -["1", "IF 1 ELSE 0 ELSE ENDIF", "P2SH,STRICTENC"], -["1", "IF ELSE 0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["1", "IF 1 ELSE 0 ELSE 1 ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], -["'' 1", "IF SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ENDIF 0x14 0x68ca4fec736264c13b859bac43d5173df6871682 EQUAL", "P2SH,STRICTENC"], - -["1", "NOTIF 0 ELSE 1 ELSE 0 ENDIF", "P2SH,STRICTENC", "Multiple ELSE's are valid and execution inverts on each ELSE encountered"], -["0", "NOTIF 1 ELSE 0 ELSE ENDIF", "P2SH,STRICTENC"], -["0", "NOTIF ELSE 0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "NOTIF 1 ELSE 0 ELSE 1 ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], -["'' 0", "NOTIF SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ENDIF 0x14 0x68ca4fec736264c13b859bac43d5173df6871682 EQUAL", "P2SH,STRICTENC"], - -["0", "IF 1 IF RETURN ELSE RETURN ELSE RETURN ENDIF ELSE 1 IF 1 ELSE RETURN ELSE 1 ENDIF ELSE RETURN ENDIF ADD 2 EQUAL", "P2SH,STRICTENC", "Nested ELSE ELSE"], -["1", "NOTIF 0 NOTIF RETURN ELSE RETURN ELSE RETURN ENDIF ELSE 0 NOTIF 1 ELSE RETURN ELSE 1 ENDIF ELSE RETURN ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], - -["0", "IF RETURN ENDIF 1", "P2SH,STRICTENC", "RETURN only works if executed"], - -["1 1", "VERIFY", "P2SH,STRICTENC"], -["1 0x05 0x01 0x00 0x00 0x00 0x00", "VERIFY", "P2SH,STRICTENC", "values >4 bytes can be cast to boolean"], - -["10 0 11 TOALTSTACK DROP FROMALTSTACK", "ADD 21 EQUAL", "P2SH,STRICTENC"], -["'gavin_was_here' TOALTSTACK 11 FROMALTSTACK", "'gavin_was_here' EQUALVERIFY 11 EQUAL", "P2SH,STRICTENC"], - -["0 IFDUP", "DEPTH 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], -["1 IFDUP", "DEPTH 2 EQUALVERIFY 1 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], -["0 DROP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["0", "DUP 1 ADD 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], -["0 1", "NIP", "P2SH,STRICTENC"], -["1 0", "OVER DEPTH 3 EQUALVERIFY", "P2SH,STRICTENC"], -["22 21 20", "0 PICK 20 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "1 PICK 21 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "2 PICK 22 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "0 ROLL 20 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "1 ROLL 21 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "2 ROLL 22 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "ROT 22 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "ROT DROP 20 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "ROT DROP DROP 21 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "ROT ROT 21 EQUAL", "P2SH,STRICTENC"], -["22 21 20", "ROT ROT ROT 20 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 24 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT DROP 25 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2DROP 20 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2DROP DROP 21 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2DROP 2DROP 22 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2DROP 2DROP DROP 23 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2ROT 22 EQUAL", "P2SH,STRICTENC"], -["25 24 23 22 21 20", "2ROT 2ROT 2ROT 20 EQUAL", "P2SH,STRICTENC"], -["1 0", "SWAP 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], -["0 1", "TUCK DEPTH 3 EQUALVERIFY SWAP 2DROP", "P2SH,STRICTENC"], -["13 14", "2DUP ROT EQUALVERIFY EQUAL", "P2SH,STRICTENC"], -["-1 0 1 2", "3DUP DEPTH 7 EQUALVERIFY ADD ADD 3 EQUALVERIFY 2DROP 0 EQUALVERIFY", "P2SH,STRICTENC"], -["1 2 3 5", "2OVER ADD ADD 8 EQUALVERIFY ADD ADD 6 EQUAL", "P2SH,STRICTENC"], -["1 3 5 7", "2SWAP ADD 4 EQUALVERIFY ADD 12 EQUAL", "P2SH,STRICTENC"], -["0", "SIZE 0 EQUAL", "P2SH,STRICTENC"], -["1", "SIZE 1 EQUAL", "P2SH,STRICTENC"], -["127", "SIZE 1 EQUAL", "P2SH,STRICTENC"], -["128", "SIZE 2 EQUAL", "P2SH,STRICTENC"], -["32767", "SIZE 2 EQUAL", "P2SH,STRICTENC"], -["32768", "SIZE 3 EQUAL", "P2SH,STRICTENC"], -["8388607", "SIZE 3 EQUAL", "P2SH,STRICTENC"], -["8388608", "SIZE 4 EQUAL", "P2SH,STRICTENC"], -["2147483647", "SIZE 4 EQUAL", "P2SH,STRICTENC"], -["2147483648", "SIZE 5 EQUAL", "P2SH,STRICTENC"], -["549755813887", "SIZE 5 EQUAL", "P2SH,STRICTENC"], -["549755813888", "SIZE 6 EQUAL", "P2SH,STRICTENC"], -["9223372036854775807", "SIZE 8 EQUAL", "P2SH,STRICTENC"], -["-1", "SIZE 1 EQUAL", "P2SH,STRICTENC"], -["-127", "SIZE 1 EQUAL", "P2SH,STRICTENC"], -["-128", "SIZE 2 EQUAL", "P2SH,STRICTENC"], -["-32767", "SIZE 2 EQUAL", "P2SH,STRICTENC"], -["-32768", "SIZE 3 EQUAL", "P2SH,STRICTENC"], -["-8388607", "SIZE 3 EQUAL", "P2SH,STRICTENC"], -["-8388608", "SIZE 4 EQUAL", "P2SH,STRICTENC"], -["-2147483647", "SIZE 4 EQUAL", "P2SH,STRICTENC"], -["-2147483648", "SIZE 5 EQUAL", "P2SH,STRICTENC"], -["-549755813887", "SIZE 5 EQUAL", "P2SH,STRICTENC"], -["-549755813888", "SIZE 6 EQUAL", "P2SH,STRICTENC"], -["-9223372036854775807", "SIZE 8 EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "SIZE 26 EQUAL", "P2SH,STRICTENC"], - -["42", "SIZE 1 EQUALVERIFY 42 EQUAL", "P2SH,STRICTENC", "SIZE does not consume argument"], - -["2 -2 ADD", "0 EQUAL", "P2SH,STRICTENC"], -["2147483647 -2147483647 ADD", "0 EQUAL", "P2SH,STRICTENC"], -["-1 -1 ADD", "-2 EQUAL", "P2SH,STRICTENC"], - -["0 0","EQUAL", "P2SH,STRICTENC"], -["1 1 ADD", "2 EQUAL", "P2SH,STRICTENC"], -["1 1ADD", "2 EQUAL", "P2SH,STRICTENC"], -["111 1SUB", "110 EQUAL", "P2SH,STRICTENC"], -["111 1 ADD 12 SUB", "100 EQUAL", "P2SH,STRICTENC"], -["0 ABS", "0 EQUAL", "P2SH,STRICTENC"], -["16 ABS", "16 EQUAL", "P2SH,STRICTENC"], -["-16 ABS", "-16 NEGATE EQUAL", "P2SH,STRICTENC"], -["0 NOT", "NOP", "P2SH,STRICTENC"], -["1 NOT", "0 EQUAL", "P2SH,STRICTENC"], -["11 NOT", "0 EQUAL", "P2SH,STRICTENC"], -["0 0NOTEQUAL", "0 EQUAL", "P2SH,STRICTENC"], -["1 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], -["111 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], -["-111 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], -["1 1 BOOLAND", "NOP", "P2SH,STRICTENC"], -["1 0 BOOLAND", "NOT", "P2SH,STRICTENC"], -["0 1 BOOLAND", "NOT", "P2SH,STRICTENC"], -["0 0 BOOLAND", "NOT", "P2SH,STRICTENC"], -["16 17 BOOLAND", "NOP", "P2SH,STRICTENC"], -["1 1 BOOLOR", "NOP", "P2SH,STRICTENC"], -["1 0 BOOLOR", "NOP", "P2SH,STRICTENC"], -["0 1 BOOLOR", "NOP", "P2SH,STRICTENC"], -["0 0 BOOLOR", "NOT", "P2SH,STRICTENC"], -["16 17 BOOLOR", "NOP", "P2SH,STRICTENC"], -["11 10 1 ADD", "NUMEQUAL", "P2SH,STRICTENC"], -["11 10 1 ADD", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], -["11 10 1 ADD", "NUMNOTEQUAL NOT", "P2SH,STRICTENC"], -["111 10 1 ADD", "NUMNOTEQUAL", "P2SH,STRICTENC"], -["11 10", "LESSTHAN NOT", "P2SH,STRICTENC"], -["4 4", "LESSTHAN NOT", "P2SH,STRICTENC"], -["10 11", "LESSTHAN", "P2SH,STRICTENC"], -["-11 11", "LESSTHAN", "P2SH,STRICTENC"], -["-11 -10", "LESSTHAN", "P2SH,STRICTENC"], -["11 10", "GREATERTHAN", "P2SH,STRICTENC"], -["4 4", "GREATERTHAN NOT", "P2SH,STRICTENC"], -["10 11", "GREATERTHAN NOT", "P2SH,STRICTENC"], -["-11 11", "GREATERTHAN NOT", "P2SH,STRICTENC"], -["-11 -10", "GREATERTHAN NOT", "P2SH,STRICTENC"], -["11 10", "LESSTHANOREQUAL NOT", "P2SH,STRICTENC"], -["4 4", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["10 11", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["-11 11", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["-11 -10", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["11 10", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], -["4 4", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], -["10 11", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], -["-11 11", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], -["-11 -10", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], -["1 0 MIN", "0 NUMEQUAL", "P2SH,STRICTENC"], -["0 1 MIN", "0 NUMEQUAL", "P2SH,STRICTENC"], -["-1 0 MIN", "-1 NUMEQUAL", "P2SH,STRICTENC"], -["0 -2147483647 MIN", "-2147483647 NUMEQUAL", "P2SH,STRICTENC"], -["2147483647 0 MAX", "2147483647 NUMEQUAL", "P2SH,STRICTENC"], -["0 100 MAX", "100 NUMEQUAL", "P2SH,STRICTENC"], -["-100 0 MAX", "0 NUMEQUAL", "P2SH,STRICTENC"], -["0 -2147483647 MAX", "0 NUMEQUAL", "P2SH,STRICTENC"], -["0 0 1", "WITHIN", "P2SH,STRICTENC"], -["1 0 1", "WITHIN NOT", "P2SH,STRICTENC"], -["0 -2147483647 2147483647", "WITHIN", "P2SH,STRICTENC"], -["-1 -100 100", "WITHIN", "P2SH,STRICTENC"], -["11 -100 100", "WITHIN", "P2SH,STRICTENC"], -["-2147483647 -100 100", "WITHIN NOT", "P2SH,STRICTENC"], -["2147483647 -100 100", "WITHIN NOT", "P2SH,STRICTENC"], - -["2147483647 2147483647 SUB", "0 EQUAL", "P2SH,STRICTENC"], -["2147483647 DUP ADD", "4294967294 EQUAL", "P2SH,STRICTENC", ">32 bit EQUAL is valid"], -["2147483647 NEGATE DUP ADD", "-4294967294 EQUAL", "P2SH,STRICTENC"], - -["''", "RIPEMD160 0x14 0x9c1185a5c5e9fc54612808977ee8f548b2258d31 EQUAL", "P2SH,STRICTENC"], -["'a'", "RIPEMD160 0x14 0x0bdc9d2d256b3ee9daae347be6f4dc835a467ffe EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "RIPEMD160 0x14 0xf71c27109c692c1b56bbdceb5b9d2865b3708dbc EQUAL", "P2SH,STRICTENC"], -["''", "SHA1 0x14 0xda39a3ee5e6b4b0d3255bfef95601890afd80709 EQUAL", "P2SH,STRICTENC"], -["'a'", "SHA1 0x14 0x86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "SHA1 0x14 0x32d10c7b8cf96570ca04ce37f2a19d84240d3a89 EQUAL", "P2SH,STRICTENC"], -["''", "SHA256 0x20 0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 EQUAL", "P2SH,STRICTENC"], -["'a'", "SHA256 0x20 0xca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "SHA256 0x20 0x71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73 EQUAL", "P2SH,STRICTENC"], -["''", "DUP HASH160 SWAP SHA256 RIPEMD160 EQUAL", "P2SH,STRICTENC"], -["''", "DUP HASH256 SWAP SHA256 SHA256 EQUAL", "P2SH,STRICTENC"], -["''", "NOP HASH160 0x14 0xb472a266d0bd89c13706a4132ccfb16f7c3b9fcb EQUAL", "P2SH,STRICTENC"], -["'a'", "HASH160 NOP 0x14 0x994355199e516ff76c4fa4aab39337b9d84cf12b EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "HASH160 0x4c 0x14 0xc286a1af0947f58d1ad787385b1c2c4a976f9e71 EQUAL", "P2SH,STRICTENC"], -["''", "HASH256 0x20 0x5df6e0e2761359d30a8275058e299fcc0381534545f55cf43e41983f5d4c9456 EQUAL", "P2SH,STRICTENC"], -["'a'", "HASH256 0x20 0xbf5d3affb73efd2ec6c36ad3112dd933efed63c4e1cbffcfa88e2759c144f2d8 EQUAL", "P2SH,STRICTENC"], -["'abcdefghijklmnopqrstuvwxyz'", "HASH256 0x4c 0x20 0xca139bc10c2f660da42666f72e89a225936fc60f193c161124a672050c434671 EQUAL", "P2SH,STRICTENC"], - - -["1","NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10 1 EQUAL", "P2SH,STRICTENC"], -["'NOP_1_to_10' NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10","'NOP_1_to_10' EQUAL", "P2SH,STRICTENC"], - -["1", "NOP", "P2SH,STRICTENC,DISCOURAGE_UPGRADABLE_NOPS", "Discourage NOPx flag allows OP_NOP"], - -["0", "IF NOP10 ENDIF 1", "P2SH,STRICTENC,DISCOURAGE_UPGRADABLE_NOPS", - "Discouraged NOPs are allowed if not executed"], - -["0", "IF 0xba ELSE 1 ENDIF", "P2SH,STRICTENC", "opcodes above NOP10 invalid if executed"], -["0", "IF 0xbb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xbc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xbd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xbe ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xbf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xc9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xca ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xcb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xcc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xcd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xce ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xcf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xd9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xda ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xdb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xdc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xe9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xea ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xeb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xec ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xed ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xee ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xef ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf0 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf1 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf2 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf3 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf4 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf5 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf6 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf7 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf8 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xf9 ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xfa ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xfb ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xfc ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xfd ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xfe ELSE 1 ENDIF", "P2SH,STRICTENC"], -["0", "IF 0xff ELSE 1 ENDIF", "P2SH,STRICTENC"], - -["NOP", -"'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'", -"P2SH,STRICTENC", -"520 byte push"], -["1", -"0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", -"P2SH,STRICTENC", -"201 opcodes executed. 0x61 is NOP"], -["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"P2SH,STRICTENC", -"1,000 stack size (0x6f is 3DUP)"], -["1 TOALTSTACK 2 TOALTSTACK 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"1 2 3 4 5 6 7 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"P2SH,STRICTENC", -"1,000 stack size (altstack cleared between scriptSig/scriptPubKey)"], -["'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", -"'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f 2DUP 0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", -"P2SH,STRICTENC", -"Max-size (10,000-byte), max-push(520 bytes), max-opcodes(201), max stack size(1,000 items). 0x6f is 3DUP, 0x61 is NOP"], - -["0", -"IF 0x5050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050 ENDIF 1", -"P2SH,STRICTENC", -">201 opcodes, but RESERVED (0x50) doesn't count towards opcode limit."], - -["NOP","1", "P2SH,STRICTENC"], - -["1", "0x01 0x01 EQUAL", "P2SH,STRICTENC", "The following is useful for checking implementations of BN_bn2mpi"], -["127", "0x01 0x7F EQUAL", "P2SH,STRICTENC"], -["128", "0x02 0x8000 EQUAL", "P2SH,STRICTENC", "Leave room for the sign bit"], -["32767", "0x02 0xFF7F EQUAL", "P2SH,STRICTENC"], -["32768", "0x03 0x008000 EQUAL", "P2SH,STRICTENC"], -["8388607", "0x03 0xFFFF7F EQUAL", "P2SH,STRICTENC"], -["8388608", "0x04 0x00008000 EQUAL", "P2SH,STRICTENC"], -["2147483647", "0x04 0xFFFFFF7F EQUAL", "P2SH,STRICTENC"], -["2147483648", "0x05 0x0000008000 EQUAL", "P2SH,STRICTENC"], -["549755813887", "0x05 0xFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], -["549755813888", "0x06 0xFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], -["9223372036854775807", "0x08 0xFFFFFFFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], -["-1", "0x01 0x81 EQUAL", "P2SH,STRICTENC", "Numbers are little-endian with the MSB being a sign bit"], -["-127", "0x01 0xFF EQUAL", "P2SH,STRICTENC"], -["-128", "0x02 0x8080 EQUAL", "P2SH,STRICTENC"], -["-32767", "0x02 0xFFFF EQUAL", "P2SH,STRICTENC"], -["-32768", "0x03 0x008080 EQUAL", "P2SH,STRICTENC"], -["-8388607", "0x03 0xFFFFFF EQUAL", "P2SH,STRICTENC"], -["-8388608", "0x04 0x00008080 EQUAL", "P2SH,STRICTENC"], -["-2147483647", "0x04 0xFFFFFFFF EQUAL", "P2SH,STRICTENC"], -["-2147483648", "0x05 0x0000008080 EQUAL", "P2SH,STRICTENC"], -["-4294967295", "0x05 0xFFFFFFFF80 EQUAL", "P2SH,STRICTENC"], -["-549755813887", "0x05 0xFFFFFFFFFF EQUAL", "P2SH,STRICTENC"], -["-549755813888", "0x06 0x000000008080 EQUAL", "P2SH,STRICTENC"], -["-9223372036854775807", "0x08 0xFFFFFFFFFFFFFFFF EQUAL", "P2SH,STRICTENC"], - -["2147483647", "1ADD 2147483648 EQUAL", "P2SH,STRICTENC", "We can do math on 4-byte integers, and compare 5-byte ones"], -["2147483647", "1ADD 1", "P2SH,STRICTENC"], -["-2147483647", "1ADD 1", "P2SH,STRICTENC"], - -["1", "0x02 0x0100 EQUAL NOT", "P2SH,STRICTENC", "Not the same byte array..."], -["1", "0x02 0x0100 NUMEQUAL", "P2SH,STRICTENC", "... but they are numerically equal"], -["11", "0x4c 0x03 0x0b0000 NUMEQUAL", "P2SH,STRICTENC"], -["0", "0x01 0x80 EQUAL NOT", "P2SH,STRICTENC"], -["0", "0x01 0x80 NUMEQUAL", "P2SH,STRICTENC", "Zero numerically equals negative zero"], -["0", "0x02 0x0080 NUMEQUAL", "P2SH,STRICTENC"], -["0x03 0x000080", "0x04 0x00000080 NUMEQUAL", "P2SH,STRICTENC"], -["0x03 0x100080", "0x04 0x10000080 NUMEQUAL", "P2SH,STRICTENC"], -["0x03 0x100000", "0x04 0x10000000 NUMEQUAL", "P2SH,STRICTENC"], - -["NOP", "NOP 1", "P2SH,STRICTENC", "The following tests check the if(stack.size() < N) tests in each opcode"], -["1", "IF 1 ENDIF", "P2SH,STRICTENC", "They are here to catch copy-and-paste errors"], -["0", "NOTIF 1 ENDIF", "P2SH,STRICTENC", "Most of them are duplicated elsewhere,"], -["1", "VERIFY 1", "P2SH,STRICTENC", "but, hey, more is always better, right?"], - -["0", "TOALTSTACK 1", "P2SH,STRICTENC"], -["1", "TOALTSTACK FROMALTSTACK", "P2SH,STRICTENC"], -["0 0", "2DROP 1", "P2SH,STRICTENC"], -["0 1", "2DUP", "P2SH,STRICTENC"], -["0 0 1", "3DUP", "P2SH,STRICTENC"], -["0 1 0 0", "2OVER", "P2SH,STRICTENC"], -["0 1 0 0 0 0", "2ROT", "P2SH,STRICTENC"], -["0 1 0 0", "2SWAP", "P2SH,STRICTENC"], -["1", "IFDUP", "P2SH,STRICTENC"], -["NOP", "DEPTH 1", "P2SH,STRICTENC"], -["0", "DROP 1", "P2SH,STRICTENC"], -["1", "DUP", "P2SH,STRICTENC"], -["0 1", "NIP", "P2SH,STRICTENC"], -["1 0", "OVER", "P2SH,STRICTENC"], -["1 0 0 0 3", "PICK", "P2SH,STRICTENC"], -["1 0", "PICK", "P2SH,STRICTENC"], -["1 0 0 0 3", "ROLL", "P2SH,STRICTENC"], -["1 0", "ROLL", "P2SH,STRICTENC"], -["1 0 0", "ROT", "P2SH,STRICTENC"], -["1 0", "SWAP", "P2SH,STRICTENC"], -["0 1", "TUCK", "P2SH,STRICTENC"], - -["1", "SIZE", "P2SH,STRICTENC"], - -["0 0", "EQUAL", "P2SH,STRICTENC"], -["0 0", "EQUALVERIFY 1", "P2SH,STRICTENC"], - -["0", "1ADD", "P2SH,STRICTENC"], -["2", "1SUB", "P2SH,STRICTENC"], -["-1", "NEGATE", "P2SH,STRICTENC"], -["-1", "ABS", "P2SH,STRICTENC"], -["0", "NOT", "P2SH,STRICTENC"], -["-1", "0NOTEQUAL", "P2SH,STRICTENC"], - -["1 0", "ADD", "P2SH,STRICTENC"], -["1 0", "SUB", "P2SH,STRICTENC"], -["-1 -1", "BOOLAND", "P2SH,STRICTENC"], -["-1 0", "BOOLOR", "P2SH,STRICTENC"], -["0 0", "NUMEQUAL", "P2SH,STRICTENC"], -["0 0", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], -["-1 0", "NUMNOTEQUAL", "P2SH,STRICTENC"], -["-1 0", "LESSTHAN", "P2SH,STRICTENC"], -["1 0", "GREATERTHAN", "P2SH,STRICTENC"], -["0 0", "LESSTHANOREQUAL", "P2SH,STRICTENC"], -["0 0", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], -["-1 0", "MIN", "P2SH,STRICTENC"], -["1 0", "MAX", "P2SH,STRICTENC"], -["-1 -1 0", "WITHIN", "P2SH,STRICTENC"], - -["0", "RIPEMD160", "P2SH,STRICTENC"], -["0", "SHA1", "P2SH,STRICTENC"], -["0", "SHA256", "P2SH,STRICTENC"], -["0", "HASH160", "P2SH,STRICTENC"], -["0", "HASH256", "P2SH,STRICTENC"], -["NOP", "CODESEPARATOR 1", "P2SH,STRICTENC"], - -["NOP", "NOP1 1", "P2SH,STRICTENC"], -["NOP", "NOP2 1", "P2SH,STRICTENC"], -["NOP", "NOP3 1", "P2SH,STRICTENC"], -["NOP", "NOP4 1", "P2SH,STRICTENC"], -["NOP", "NOP5 1", "P2SH,STRICTENC"], -["NOP", "NOP6 1", "P2SH,STRICTENC"], -["NOP", "NOP7 1", "P2SH,STRICTENC"], -["NOP", "NOP8 1", "P2SH,STRICTENC"], -["NOP", "NOP9 1", "P2SH,STRICTENC"], -["NOP", "NOP10 1", "P2SH,STRICTENC"], - -["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "CHECKMULTISIG is allowed to have zero keys and/or sigs"], -["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Zero sigs means no sigs are checked"], -["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], - -["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "CHECKMULTISIG is allowed to have zero keys and/or sigs"], -["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Zero sigs means no sigs are checked"], -["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], - -["", "0 0 'a' 'b' 2 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Test from up to 20 pubkeys, all not checked"], -["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 2 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], -["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], - -["", -"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG", -"P2SH,STRICTENC", -"nOpCount is incremented by the number of keys evaluated in addition to the usual one op per op. In this case we have zero keys, so we can execute 201 CHECKMULTISIGS"], - -["1", -"0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY", -"P2SH,STRICTENC"], - -["", -"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG", -"P2SH,STRICTENC", -"Even though there are no signatures being checked nOpCount is incremented by the number of keys."], - -["1", -"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY", -"P2SH,STRICTENC"], - -["0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC", "Very basic P2SH"], -["0x4c 0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC"], - -["0x40 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242", -"0x4d 0x4000 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242 EQUAL", -"P2SH,STRICTENC", -"Basic PUSH signedness check"], - -["0x4c 0x40 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242", -"0x4d 0x4000 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242 EQUAL", -"P2SH,STRICTENC", -"Basic PUSHDATA1 signedness check"], - -["all PUSHDATA forms are equivalent"], - -["0x4c 0x4b 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "0x4b 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 EQUAL", "", "PUSHDATA1 of 75 bytes equals direct push of it"], -["0x4d 0xFF00 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "0x4c 0xFF 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 EQUAL", "", "PUSHDATA2 of 255 bytes equals PUSHDATA1 of it"], - -["0x00", "SIZE 0 EQUAL", "P2SH,STRICTENC", "Basic OP_0 execution"], - -["Numeric pushes"], - -["0x01 0x81", "0x4f EQUAL", "", "OP1_NEGATE pushes 0x81"], -["0x01 0x01", "0x51 EQUAL", "", "OP_1 pushes 0x01"], -["0x01 0x02", "0x52 EQUAL", "", "OP_2 pushes 0x02"], -["0x01 0x03", "0x53 EQUAL", "", "OP_3 pushes 0x03"], -["0x01 0x04", "0x54 EQUAL", "", "OP_4 pushes 0x04"], -["0x01 0x05", "0x55 EQUAL", "", "OP_5 pushes 0x05"], -["0x01 0x06", "0x56 EQUAL", "", "OP_6 pushes 0x06"], -["0x01 0x07", "0x57 EQUAL", "", "OP_7 pushes 0x07"], -["0x01 0x08", "0x58 EQUAL", "", "OP_8 pushes 0x08"], -["0x01 0x09", "0x59 EQUAL", "", "OP_9 pushes 0x09"], -["0x01 0x0a", "0x5a EQUAL", "", "OP_10 pushes 0x0a"], -["0x01 0x0b", "0x5b EQUAL", "", "OP_11 pushes 0x0b"], -["0x01 0x0c", "0x5c EQUAL", "", "OP_12 pushes 0x0c"], -["0x01 0x0d", "0x5d EQUAL", "", "OP_13 pushes 0x0d"], -["0x01 0x0e", "0x5e EQUAL", "", "OP_14 pushes 0x0e"], -["0x01 0x0f", "0x5f EQUAL", "", "OP_15 pushes 0x0f"], -["0x01 0x10", "0x60 EQUAL", "", "OP_16 pushes 0x10"], - -["Equivalency of different numeric encodings"], - -["0x02 0x8000", "128 NUMEQUAL", "", "0x8000 equals 128"], -["0x01 0x00", "0 NUMEQUAL", "", "0x00 numequals 0"], -["0x01 0x80", "0 NUMEQUAL", "", "0x80 (negative zero) numequals 0"], -["0x02 0x0080", "0 NUMEQUAL", "", "0x0080 numequals 0"], -["0x02 0x0500", "5 NUMEQUAL", "", "0x0500 numequals 5"], -["0x03 0xff7f80", "0x02 0xffff NUMEQUAL", "", ""], -["0x03 0xff7f00", "0x02 0xff7f NUMEQUAL", "", ""], -["0x04 0xffff7f80", "0x03 0xffffff NUMEQUAL", "", ""], -["0x04 0xffff7f00", "0x03 0xffff7f NUMEQUAL", "", ""], - -["Unevaluated non-minimal pushes are ignored"], - -["0 IF 0x4c 0x00 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA1 ignored"], -["0 IF 0x4d 0x0000 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA2 ignored"], -["0 IF 0x4c 0x00000000 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA4 ignored"], -["0 IF 0x01 0x81 ENDIF 1", "", "MINIMALDATA", "1NEGATE equiv"], -["0 IF 0x01 0x01 ENDIF 1", "", "MINIMALDATA", "OP_1 equiv"], -["0 IF 0x01 0x02 ENDIF 1", "", "MINIMALDATA", "OP_2 equiv"], -["0 IF 0x01 0x03 ENDIF 1", "", "MINIMALDATA", "OP_3 equiv"], -["0 IF 0x01 0x04 ENDIF 1", "", "MINIMALDATA", "OP_4 equiv"], -["0 IF 0x01 0x05 ENDIF 1", "", "MINIMALDATA", "OP_5 equiv"], -["0 IF 0x01 0x06 ENDIF 1", "", "MINIMALDATA", "OP_6 equiv"], -["0 IF 0x01 0x07 ENDIF 1", "", "MINIMALDATA", "OP_7 equiv"], -["0 IF 0x01 0x08 ENDIF 1", "", "MINIMALDATA", "OP_8 equiv"], -["0 IF 0x01 0x09 ENDIF 1", "", "MINIMALDATA", "OP_9 equiv"], -["0 IF 0x01 0x0a ENDIF 1", "", "MINIMALDATA", "OP_10 equiv"], -["0 IF 0x01 0x0b ENDIF 1", "", "MINIMALDATA", "OP_11 equiv"], -["0 IF 0x01 0x0c ENDIF 1", "", "MINIMALDATA", "OP_12 equiv"], -["0 IF 0x01 0x0d ENDIF 1", "", "MINIMALDATA", "OP_13 equiv"], -["0 IF 0x01 0x0e ENDIF 1", "", "MINIMALDATA", "OP_14 equiv"], -["0 IF 0x01 0x0f ENDIF 1", "", "MINIMALDATA", "OP_15 equiv"], -["0 IF 0x01 0x10 ENDIF 1", "", "MINIMALDATA", "OP_16 equiv"], - -["Numeric minimaldata rules are only applied when a stack item is numerically evaluated; the push itself is allowed"], - -["0x01 0x00", "1", "MINIMALDATA"], -["0x01 0x80", "1", "MINIMALDATA"], -["0x02 0x0180", "1", "MINIMALDATA"], -["0x02 0x0100", "1", "MINIMALDATA"], -["0x02 0x0200", "1", "MINIMALDATA"], -["0x02 0x0300", "1", "MINIMALDATA"], -["0x02 0x0400", "1", "MINIMALDATA"], -["0x02 0x0500", "1", "MINIMALDATA"], -["0x02 0x0600", "1", "MINIMALDATA"], -["0x02 0x0700", "1", "MINIMALDATA"], -["0x02 0x0800", "1", "MINIMALDATA"], -["0x02 0x0900", "1", "MINIMALDATA"], -["0x02 0x0a00", "1", "MINIMALDATA"], -["0x02 0x0b00", "1", "MINIMALDATA"], -["0x02 0x0c00", "1", "MINIMALDATA"], -["0x02 0x0d00", "1", "MINIMALDATA"], -["0x02 0x0e00", "1", "MINIMALDATA"], -["0x02 0x0f00", "1", "MINIMALDATA"], -["0x02 0x1000", "1", "MINIMALDATA"], - -["Valid version of the 'Test every numeric-accepting opcode for correct handling of the numeric minimal encoding rule' script_invalid test"], - -["1 0x02 0x0000", "PICK DROP", ""], -["1 0x02 0x0000", "ROLL DROP 1", ""], -["0x02 0x0000", "1ADD DROP 1", ""], -["0x02 0x0000", "1SUB DROP 1", ""], -["0x02 0x0000", "NEGATE DROP 1", ""], -["0x02 0x0000", "ABS DROP 1", ""], -["0x02 0x0000", "NOT DROP 1", ""], -["0x02 0x0000", "0NOTEQUAL DROP 1", ""], - -["0 0x02 0x0000", "ADD DROP 1", ""], -["0x02 0x0000 0", "ADD DROP 1", ""], -["0 0x02 0x0000", "SUB DROP 1", ""], -["0x02 0x0000 0", "SUB DROP 1", ""], -["0 0x02 0x0000", "BOOLAND DROP 1", ""], -["0x02 0x0000 0", "BOOLAND DROP 1", ""], -["0 0x02 0x0000", "BOOLOR DROP 1", ""], -["0x02 0x0000 0", "BOOLOR DROP 1", ""], -["0 0x02 0x0000", "NUMEQUAL DROP 1", ""], -["0x02 0x0000 1", "NUMEQUAL DROP 1", ""], -["0 0x02 0x0000", "NUMEQUALVERIFY 1", ""], -["0x02 0x0000 0", "NUMEQUALVERIFY 1", ""], -["0 0x02 0x0000", "NUMNOTEQUAL DROP 1", ""], -["0x02 0x0000 0", "NUMNOTEQUAL DROP 1", ""], -["0 0x02 0x0000", "LESSTHAN DROP 1", ""], -["0x02 0x0000 0", "LESSTHAN DROP 1", ""], -["0 0x02 0x0000", "GREATERTHAN DROP 1", ""], -["0x02 0x0000 0", "GREATERTHAN DROP 1", ""], -["0 0x02 0x0000", "LESSTHANOREQUAL DROP 1", ""], -["0x02 0x0000 0", "LESSTHANOREQUAL DROP 1", ""], -["0 0x02 0x0000", "GREATERTHANOREQUAL DROP 1", ""], -["0x02 0x0000 0", "GREATERTHANOREQUAL DROP 1", ""], -["0 0x02 0x0000", "MIN DROP 1", ""], -["0x02 0x0000 0", "MIN DROP 1", ""], -["0 0x02 0x0000", "MAX DROP 1", ""], -["0x02 0x0000 0", "MAX DROP 1", ""], - -["0x02 0x0000 0 0", "WITHIN DROP 1", ""], -["0 0x02 0x0000 0", "WITHIN DROP 1", ""], -["0 0 0x02 0x0000", "WITHIN DROP 1", ""], - -["0 0 0x02 0x0000", "CHECKMULTISIG DROP 1", ""], -["0 0x02 0x0000 0", "CHECKMULTISIG DROP 1", ""], -["0 0x02 0x0000 0 1", "CHECKMULTISIG DROP 1", ""], -["0 0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", ""], -["0 0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", ""], - -["CHECKMULTISIG evaluation order tests. CHECKMULTISIG evaluates signatures and"], -["pubkeys in a specific order, and will exit early if the number of signatures"], -["left to check is greater than the number of keys left. As STRICTENC fails the"], -["script when it reaches an invalidly encoded signature or pubkey, we can use it"], -["to test the exact order in which signatures and pubkeys are evaluated by"], -["distinguishing CHECKMULTISIG returning false on the stack and the script as a"], -["whole failing."], -["See also the corresponding inverted versions of these tests in script_invalid.json"], -[ - "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", - "2 0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", - "STRICTENC", - "2-of-2 CHECKMULTISIG NOT with the second pubkey invalid, and both signatures validly encoded. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid pubkey." -], -[ - "0 0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", - "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", - "STRICTENC", - "2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but second signature invalid. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid signature." -], - -["Automatically generated test cases"], -[ - "0x47 0x3044022053205076a7bb13d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801", - "0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", - "", - "P2PK" -], -[ - "0x47 0x304402206e05a6fe23c59196ffe176c9ddc31e73a9885638f9d1328d47c0c703863b8876022076feb53811aa5b04e0e79f938eb19906cc5e67548bc555a8e8b8b0fc603d840c01 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", - "DUP HASH160 0x14 0x1018853670f9f3b0582c5b9ee8ce93764ac32b93 EQUALVERIFY CHECKSIG", - "", - "P2PKH" -], -[ - "0x47 0x304402204710a85181663b32d25c70ec2bbd14adff5ddfff6cb50d09e155ef5f541fc86c0220056b0cc949be9386ecc5f6c2ac0493269031dbb185781db90171b54ac127790281", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", - "", - "P2PK anyonecanpay" -], -[ - "0x47 0x304402202166fcd5e607de452d3c6f15e059505cf21654346592f9650ba906b9e8be88fa022005d976d28eb8de477102feba28807b3ad361e7fa24796d259c9d61452f7c318c01 0x23 0x210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ac", - "HASH160 0x14 0x23b0ad3477f2178bc0b3eed26e4e6316f4e83aa1 EQUAL", - "P2SH", - "P2SH(P2PK)" -], -[ - "0x47 0x3044022064cc90ca89ad721384b231653b945579359a24b928ef8539b331172628c9cc6102203e238869ab5dac3fc293db53c12e7dd3079e86cfde9024b689efc7227e4d671001 0x19 0x76a9147cf9c846cd4882efec4bf07e44ebdad495c94f4b88ac", - "HASH160 0x14 0x2df519943d5acc0ef5222091f9dfe3543f489a82 EQUAL", - "", - "P2SH(P2PKH), bad sig but no VERIFY_P2SH" -], -[ - "0 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", - "", - "3-of-3" -], -[ - "0 0x47 0x304402205b7d2c2f177ae76cfbbf14d589c113b0b35db753d305d5562dd0b61cbf366cfb02202e56f93c4f08a27f986cd424ffc48a462c3202c4902104d4d0ff98ed28f4bf8001 0x47 0x304402204511cf05e85c2be07c6c176c5338a08ed3cb34212667f39613340881169986c002207cc48b27aa3691a20706a5773ec9923cadd20fedffd00c24457d85f83f0b51fe01 0x4c69 0x52210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179821038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f515082103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff464053ae", - "HASH160 0x14 0xc9e4a896d149702d0d1695434feddd52e24ad78d EQUAL", - "P2SH", - "P2SH(2-of-3)" -], -[ - "0x47 0x30440220001d6702bfa4f49c3a2542af9b1c2844a2eaac55f86f310f42d26a5dd17d6a8002202cdadbe608c00b50dd951c6ba0877d5b07a970f3e265c18697bc413a0a86f69901", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "", - "P2PK with too much R padding but no DERSIG" -], -[ - "0x48 0x304502207d2b258e959605e2ea50b46fea1325b7391ffb0c14a5b58ef8ad3851da3644380221007e75136df5f2e38216c4338b31c97e8307102edb97d611e06914e1f8fba68ead01", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "", - "P2PK with too much S padding but no DERSIG" -], -[ - "0x47 0x30440220d7a0417c3f6d1a15094d1cf2a3378ca0503eb8a57630953a9e2987e21ddd0a6502207a6266d686c99090920249991d3d42065b6d43eb70187b219c0db82e4f94d1a201", - "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", - "", - "P2PK with too little R padding but no DERSIG" -], -[ - "0x47 0x30440220003040725f724b0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", - "", - "P2PK NOT with bad sig with too much R padding but no DERSIG" -], -[ - "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", - "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", - "", - "P2PK with high S but no LOW_S" -], -[ - "0x47 0x30440220745d63eb70d45652128b450aa5ca7d9b513439963f261cb1c40a60f0785e7ee402204877785b38945ca9dbec78e1c1d4dd12148cc25c868bd27480023b49ae0f310501", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", - "", - "P2PK with hybrid pubkey but no STRICTENC" -], -[ - "0x47 0x30440220606f6f9f6cebc84ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", - "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", - "", - "P2PK NOT with invalid hybrid pubkey but no STRICTENC" -], -[ - "0 0x47 0x304402203a5ee39032637c431af0a3ac42e32e0627390bd44f6f98c9c04e6d714635ad0202207b42fcd889c3ae8a1b515608f38535f1f9be815176ee8d1b65a27c767cf37aed01", - "1 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", - "", - "1-of-2 with the second 1 hybrid pubkey and no STRICTENC" -], -[ - "0 0x47 0x304402203a5ee39032637c431af0a3ac42e32e0627390bd44f6f98c9c04e6d714635ad0202207b42fcd889c3ae8a1b515608f38535f1f9be815176ee8d1b65a27c767cf37aed01", - "1 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", - "STRICTENC", - "1-of-2 with the second 1 hybrid pubkey" -], -[ - "0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", - "", - "P2PK with undefined hashtype but no STRICTENC" -], -[ - "0x47 0x304402207409b5b320296e5e2136a7b281a7f803028ca4ca44e2b83eebd46932677725de02202d4eea1c8d3c98e6f42614f54764e6e5e6542e213eb4d079737e9a8b6e9812ec05", - "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG NOT", - "", - "P2PK NOT with invalid sig and undefined hashtype but no STRICTENC" -], -[ - "1 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", - "", - "3-of-3 with nonzero dummy but no NULLDUMMY" -], -[ - "1 0x47 0x304402201bb2edab700a5d020236df174fefed78087697143731f659bea59642c759c16d022061f42cdbae5bcd3e8790f20bf76687443436e94a634321c16a72aa54cbc7c2ea01 0x47 0x304402204bb4a64f2a6e5c7fb2f07fef85ee56fde5e6da234c6a984262307a20e99842d702206f8303aaba5e625d223897e2ffd3f88ef1bcffef55f38dc3768e5f2e94c923f901 0x47 0x3044022040c2809b71fffb155ec8b82fe7a27f666bd97f941207be4e14ade85a1249dd4d02204d56c85ec525dd18e29a0533d5ddf61b6b1bb32980c2f63edf951aebf7a27bfe01", - "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG NOT", - "", - "3-of-3 NOT with invalid sig and nonzero dummy but no NULLDUMMY" -], -[ - "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 DUP", - "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", - "", - "2-of-2 with two identical keys and sigs pushed using OP_DUP but no SIGPUSHONLY" -], -[ - "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01", - "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", - "SIGPUSHONLY", - "2-of-2 with two identical keys and sigs pushed" -], - -["The End"] -] diff --git a/test/data/bitcoind/sig_canonical.json b/test/data/bitcoind/sig_canonical.json deleted file mode 100644 index e43a086..0000000 --- a/test/data/bitcoind/sig_canonical.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "300602010002010001", - "3008020200ff020200ff01", - "304402203932c892e2e550f3af8ee4ce9c215a87f9bb831dcac87b2838e2c2eaa891df0c022030b61dd36543125d56b9f9f3a1f9353189e5af33cdda8d77a5209aec03978fa001", - "30450220076045be6f9eca28ff1ec606b833d0b87e70b2a630f5e3a496b110967a40f90a0221008fffd599910eefe00bc803c688c2eca1d2ba7f6b180620eaa03488e6585db6ba01", - "3046022100876045be6f9eca28ff1ec606b833d0b87e70b2a630f5e3a496b110967a40f90a0221008fffd599910eefe00bc803c688c2eca1d2ba7f6b180620eaa03488e6585db6ba01" -] diff --git a/test/data/bitcoind/sig_noncanonical.json b/test/data/bitcoind/sig_noncanonical.json deleted file mode 100644 index d9a6c1c..0000000 --- a/test/data/bitcoind/sig_noncanonical.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - "non-hex strings are ignored", - - "too short:", "30050201FF020001", - "too long:", "30470221005990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba6105022200002d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "hashtype:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed11", - "type:", "314402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "total length:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "S len oob:", "301F01205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb101", - "R+S:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed0001", - - "R type:", "304401205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "R len = 0:", "3024020002202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "R<0:", "304402208990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "R padded:", "30450221005990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - - - "S type:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610501202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "S len = 0:", "302402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba6105020001", - "S<0:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba61050220fd5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", - "S padded:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba61050221002d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01" -] diff --git a/test/data/bitcoind/tx_invalid.json b/test/data/bitcoind/tx_invalid.json deleted file mode 100644 index e304985..0000000 --- a/test/data/bitcoind/tx_invalid.json +++ /dev/null @@ -1,174 +0,0 @@ -[ -["The following are deserialized transactions which are invalid."], -["They are in the form"], -["[[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], -["serializedTransaction, verifyFlags]"], -["Objects that are only a single string (like this one) are ignored"], - -["0e1b5688cf179cd9f7cbda1fac0090f6e684bbf8cd946660120197c3f3681809 but with extra junk appended to the end of the scriptPubKey"], -[[["6ca7ec7b1847f6bdbd737176050e6a08d66ccd55bb94ad24f4018024107a5827", 0, "0x41 0x043b640e983c9690a14c039a2037ecc3467b27a0dcd58f19d76c7bc118d09fec45adc5370a1c5bf8067ca9f5557a4cf885fdb0fe0dcc9c3a7137226106fbc779a5 CHECKSIG VERIFY 1"]], -"010000000127587a10248001f424ad94bb55cd6cd6086a0e05767173bdbdf647187beca76c000000004948304502201b822ad10d6adc1a341ae8835be3f70a25201bbff31f59cbb9c5353a5f0eca18022100ea7b2f7074e9aa9cf70aa8d0ffee13e6b45dddabf1ab961bda378bcdb778fa4701ffffffff0100f2052a010000001976a914fc50c5907d86fed474ba5ce8b12a66e0a4c139d888ac00000000", "P2SH"], - -["This is the nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG from tx_valid.json"], -["but with the signature duplicated in the scriptPubKey with a non-standard pushdata prefix"], -["See FindAndDelete, which will only remove if it uses the same pushdata prefix as is standard"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], - -["Same as above, but with the sig in the scriptSig also pushed with the same non-standard OP_PUSHDATA"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006b4c473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], - -["An invalid P2SH Transaction"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000", "P2SH"], - -["Tests for CheckTransaction()"], - -["No outputs"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x05ab9e14d983742513f0f451e105ffb4198d1dd4 EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022100f16703104aab4e4088317c862daec83440242411b039d14280e03dd33b487ab802201318a7be236672c5c56083eb7a5a195bc57a40af7923ff8545016cd3b571e2a601232103c40e5d339df3f30bf753e7e04450ae4ef76c9e45587d1d993bdc4cd06f0651c7acffffffff0000000000", "P2SH"], - -["Negative output"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xae609aca8061d77c5e111f6bb62501a6bbe2bfdb EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d4830450220063222cbb128731fc09de0d7323746539166544d6c1df84d867ccea84bcc8903022100bf568e8552844de664cd41648a031554327aa8844af34b4f27397c65b92c04de0123210243ec37dee0e2e053a9c976f43147e79bc7d9dc606ea51010af1ac80db6b069e1acffffffff01ffffffffffffffff015100000000", "P2SH"], - -["MAX_MONEY + 1 output"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x32afac281462b822adbec5094b8d4d337dd5bd6a EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010140075af0750700015100000000", "P2SH"], - -["MAX_MONEY output + 1 output"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xb558cbf4930954aa6a344363a15668d7477ae716 EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510001000000000000015100000000", "P2SH"], - -["Duplicate inputs"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x236d0639db62b0773fd8ac34dc85ae19e9aba80a EQUAL"]], -"01000000020001000000000000000000000000000000000000000000000000000000000000000000006c47304402204bb1197053d0d7799bf1b30cd503c44b58d6240cccbdc85b6fe76d087980208f02204beeed78200178ffc6c74237bb74b3f276bbb4098b5605d814304fe128bf1431012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff0001000000000000000000000000000000000000000000000000000000000000000000006c47304402202306489afef52a6f62e90bf750bbcdf40c06f5c6b138286e6b6b86176bb9341802200dba98486ea68380f47ebb19a7df173b99e6bc9c681d6ccf3bde31465d1f16b3012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff010000000000000000015100000000", "P2SH"], - -["Coinbase of size 1"], -["Note the input is just required to make the tester happy"], -[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], -"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0151ffffffff010000000000000000015100000000", "P2SH"], - -["Coinbase of size 101"], -["Note the input is just required to make the tester happy"], -[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], -"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff655151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000", "P2SH"], - -["Null txin"], -[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "HASH160 0x14 0x02dae7dbbda56097959cba59b1989dd3e47937bf EQUAL"]], -"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6e49304602210086f39e028e46dafa8e1e3be63906465f4cf038fbe5ed6403dc3e74ae876e6431022100c4625c675cfc5c7e3a0e0d7eaec92ac24da20c73a88eb40d09253e51ac6def5201232103a183ddc41e84753aca47723c965d1b5c8b0e2b537963518355e6dd6cf8415e50acffffffff010000000000000000015100000000", "P2SH"], - -["Same as the transactions in valid with one input SIGHASH_ALL and one SIGHASH_ANYONECANPAY, but we set the _ANYONECANPAY sequence number, invalidating the SIGHASH_ALL signature"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], - ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], - "01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df10101000000000200000000000000000000000000000000000000000000000000000000000000000000484730440220201dc2d030e380e8f9cfb41b442d930fa5a685bb2c8db5906671f865507d0670022018d9e7a8d4c8d86a73c2a724ee38ef983ec249827e0e464841735955c707ece98101000000010100000000000000015100000000", "P2SH"], - -["CHECKMULTISIG with incorrect signature order"], -["Note the input is just required to make the tester happy"], -[[["b3da01dd4aae683c7aee4d5d8b52a540a508e1115f77cd7fa9a291243f501223", 0, "HASH160 0x14 0xb1ce99298d5f07364b57b1e5c9cc00be0b04a954 EQUAL"]], -"01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe000048304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f401483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000", "P2SH"], - - -["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], -["It is an OP_CHECKMULTISIG with the dummy value missing"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], - - -["CHECKMULTISIG SCRIPT_VERIFY_NULLDUMMY tests:"], - -["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], -["It is an OP_CHECKMULTISIG with the dummy value set to something other than an empty string"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a010047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], - -["As above, but using a OP_1"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], - -["As above, but using a OP_1NEGATE"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], - -["As above, but with the dummy byte missing"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], - - -["Empty stack when we try to run CHECKSIG"], -[[["ad503f72c18df5801ee64d76090afe4c607fb2b822e9b7b63c5826c50e22fc3b", 0, "0x21 0x027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5 CHECKSIG NOT"]], -"01000000013bfc220ec526583cb6b7e922b8b27f604cfe0a09764de61e80f58dc1723f50ad0000000000ffffffff0101000000000000002321027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5ac00000000", "P2SH"], - -["CHECKLOCKTIMEVERIFY tests"], - -["By-height locks, with argument just beyond tx nLockTime"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000fe64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], - -["By-time locks, with argument just beyond tx nLockTime (but within numerical boundries)"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000001 NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967295 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Argument missing"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Argument negative with by-blockheight nLockTime=0"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "-1 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Argument negative with by-blocktime nLockTime=500,000,000"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "-1 NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Input locked"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff0100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Another input being unlocked isn't sufficient; the CHECKLOCKTIMEVERIFY-using input must be unlocked"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"] , - ["0000000000000000000000000000000000000000000000000000000000000200", 1, "1"]], -"010000000200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00020000000000000000000000000000000000000000000000000000000000000100000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Argument/tx height/time mismatch, both versions"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Argument 2^32 with nLockTime=2^32-1"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967296 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Same, but with nLockTime=2^31-1"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "2147483648 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffff7f", "P2SH,CHECKLOCKTIMEVERIFY"], - -["6 byte non-minimally-encoded arguments are invalid even in their contents are valid"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x06 0x000000000000 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Failure due to failing CHECKLOCKTIMEVERIFY in scriptSig"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Failure due to failing CHECKLOCKTIMEVERIFY in redeemScript"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Failure due to empty stack before CHECKLOCKTIMEVERIFY in redeemScript"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000001b1010000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - - -["Make diffs cleaner by leaving a comment here without comma at the end"] -] diff --git a/test/data/bitcoind/tx_valid.json b/test/data/bitcoind/tx_valid.json deleted file mode 100644 index 438ca9c..0000000 --- a/test/data/bitcoind/tx_valid.json +++ /dev/null @@ -1,224 +0,0 @@ -[ -["The following are deserialized transactions which are valid."], -["They are in the form"], -["[[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], -["serializedTransaction, verifyFlags]"], -["Objects that are only a single string (like this one) are ignored"], - -["The following is 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], -["It is of particular interest because it contains an invalidly-encoded signature which OpenSSL accepts"], -["See http://r6.ca/blog/20111119T211504Z.html"], -["It is also the first OP_CHECKMULTISIG transaction in standard form"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000490047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], - -["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], -["It is an OP_CHECKMULTISIG with an arbitrary extra byte stuffed into the signature at pos length - 2"], -["The dummy byte is fine however, so the NULLDUMMY flag should be happy"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a0048304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2bab01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], - -["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], -["It is an OP_CHECKMULTISIG with the dummy value set to something other than an empty string"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a01ff47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], - -["As above, but using a OP_1"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], - -["As above, but using a OP_1NEGATE"], -[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], -"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], - -["The following is c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73"], -["It is of interest because it contains a 0-sequence as well as a signature of SIGHASH type 0 (which is not a real type)"], -[[["406b2b06bcd34d3c8733e6b79f7a394c8a431fbf4ff5ac705c93f4076bb77602", 0, "DUP HASH160 0x14 0xdc44b1164188067c3a32d4780f5996fa14a4f2d9 EQUALVERIFY CHECKSIG"]], -"01000000010276b76b07f4935c70acf54fbf1f438a4c397a9fb7e633873c4dd3bc062b6b40000000008c493046022100d23459d03ed7e9511a47d13292d3430a04627de6235b6e51a40f9cd386f2abe3022100e7d25b080f0bb8d8d5f878bba7d54ad2fda650ea8d158a33ee3cbd11768191fd004104b0e2c879e4daf7b9ab68350228c159766676a14f5815084ba166432aab46198d4cca98fa3e9981d0a90b2effc514b76279476550ba3663fdcaff94c38420e9d5000000000100093d00000000001976a9149a7b0f3b80c6baaeedce0a0842553800f832ba1f88ac00000000", "P2SH"], - -["A nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], - -["Same as above, but with the signature duplicated in the scriptPubKey with the proper pushdata prefix"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], - -["The following is f7fdd091fa6d8f5e7a8c2458f5c38faffff2d3f1406b6e4fe2c99dcc0d2d1cbb"], -["It caught a bug in the workaround for 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63 in an overly simple implementation"], -[[["b464e85df2a238416f8bdae11d120add610380ea07f4ef19c5f9dfd472f96c3d", 0, "DUP HASH160 0x14 0xbef80ecf3a44500fda1bc92176e442891662aed2 EQUALVERIFY CHECKSIG"], -["b7978cc96e59a8b13e0865d3f95657561a7f725be952438637475920bac9eb21", 1, "DUP HASH160 0x14 0xbef80ecf3a44500fda1bc92176e442891662aed2 EQUALVERIFY CHECKSIG"]], -"01000000023d6cf972d4dff9c519eff407ea800361dd0a121de1da8b6f4138a2f25de864b4000000008a4730440220ffda47bfc776bcd269da4832626ac332adfca6dd835e8ecd83cd1ebe7d709b0e022049cffa1cdc102a0b56e0e04913606c70af702a1149dc3b305ab9439288fee090014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff21ebc9ba20594737864352e95b727f1a565756f9d365083eb1a8596ec98c97b7010000008a4730440220503ff10e9f1e0de731407a4a245531c9ff17676eda461f8ceeb8c06049fa2c810220c008ac34694510298fa60b3f000df01caa244f165b727d4896eb84f81e46bcc4014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff01f0da5200000000001976a914857ccd42dded6df32949d4646dfa10a92458cfaa88ac00000000", "P2SH"], - -["The following tests for the presence of a bug in the handling of SIGHASH_SINGLE"], -["It results in signing the constant 1, instead of something generated based on the transaction,"], -["when the input doing the signing has an index greater than the maximum output index"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0xe52b482f2faa8ecbf0db344f93c84ac908557f33 EQUALVERIFY CHECKSIG"], ["0000000000000000000000000000000000000000000000000000000000000200", 0, "1"]], -"01000000020002000000000000000000000000000000000000000000000000000000000000000000000151ffffffff0001000000000000000000000000000000000000000000000000000000000000000000006b483045022100c9cdd08798a28af9d1baf44a6c77bcc7e279f47dc487c8c899911bc48feaffcc0220503c5c50ae3998a733263c5c0f7061b483e2b56c4c41b456e7d2f5a78a74c077032102d5c25adb51b61339d2b05315791e21bbe80ea470a49db0135720983c905aace0ffffffff010000000000000000015100000000", "P2SH"], - -["An invalid P2SH Transaction"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000", "NONE"], - -["A valid P2SH Transaction using the standard transaction type put forth in BIP 16"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x8febbed40483661de6958d957412f82deed8e2f7 EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100c66c9cdf4c43609586d15424c54707156e316d88b0a1534c9e6b0d4f311406310221009c0fe51dbc9c4ab7cc25d3fdbeccf6679fe6827f08edf2b4a9f16ee3eb0e438a0123210338e8034509af564c62644c07691942e0c056752008a173c89f60ab2a88ac2ebfacffffffff010000000000000000015100000000", "P2SH"], - -["Tests for CheckTransaction()"], -["MAX_MONEY output"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x32afac281462b822adbec5094b8d4d337dd5bd6a EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010040075af0750700015100000000", "P2SH"], - -["MAX_MONEY output + 0 output"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xb558cbf4930954aa6a344363a15668d7477ae716 EQUAL"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510000000000000000015100000000", "P2SH"], - -["Coinbase of size 2"], -["Note the input is just required to make the tester happy"], -[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], -"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff025151ffffffff010000000000000000015100000000", "P2SH"], - -["Coinbase of size 100"], -["Note the input is just required to make the tester happy"], -[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], -"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6451515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000", "P2SH"], - -["Simple transaction with first input is signed with SIGHASH_ALL, second with SIGHASH_ANYONECANPAY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], - ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], - "010000000200010000000000000000000000000000000000000000000000000000000000000000000049483045022100d180fd2eb9140aeb4210c9204d3f358766eb53842b2a9473db687fa24b12a3cc022079781799cd4f038b85135bbe49ec2b57f306b2bb17101b17f71f000fcab2b6fb01ffffffff0002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000", "P2SH"], - -["Same as above, but we change the sequence number of the first input to check that SIGHASH_ANYONECANPAY is being followed"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], - ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], - "01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df101010000000002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000", "P2SH"], - -["afd9c17f8913577ec3509520bd6e5d63e9c0fd2a5f70c787993b097ba6ca9fae which has several SIGHASH_SINGLE signatures"], -[[["63cfa5a09dc540bf63e53713b82d9ea3692ca97cd608c384f2aa88e51a0aac70", 0, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"], - ["04e8d0fcf3846c6734477b98f0f3d4badfb78f020ee097a0be5fe347645b817d", 1, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"], - ["ee1377aff5d0579909e11782e1d2f5f7b84d26537be7f5516dd4e43373091f3f", 1, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"]], - "010000000370ac0a1ae588aaf284c308d67ca92c69a39e2db81337e563bf40c59da0a5cf63000000006a4730440220360d20baff382059040ba9be98947fd678fb08aab2bb0c172efa996fd8ece9b702201b4fb0de67f015c90e7ac8a193aeab486a1f587e0f54d0fb9552ef7f5ce6caec032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff7d815b6447e35fbea097e00e028fb7dfbad4f3f0987b4734676c84f3fcd0e804010000006b483045022100c714310be1e3a9ff1c5f7cacc65c2d8e781fc3a88ceb063c6153bf950650802102200b2d0979c76e12bb480da635f192cc8dc6f905380dd4ac1ff35a4f68f462fffd032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff3f1f097333e4d46d51f5e77b53264db8f7f5d2e18217e1099957d0f5af7713ee010000006c493046022100b663499ef73273a3788dea342717c2640ac43c5a1cf862c9e09b206fcb3f6bb8022100b09972e75972d9148f2bdd462e5cb69b57c1214b88fc55ca638676c07cfc10d8032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff0380841e00000000001976a914bfb282c70c4191f45b5a6665cad1682f2c9cfdfb88ac80841e00000000001976a9149857cc07bed33a5cf12b9c5e0500b675d500c81188ace0fd1c00000000001976a91443c52850606c872403c0601e69fa34b26f62db4a88ac00000000", "P2SH"], - - ["ddc454a1c0c35c188c98976b17670f69e586d9c0f3593ea879928332f0a069e7, which spends an input that pushes using a PUSHDATA1 that is negative when read as signed"], - [[["c5510a5dd97a25f43175af1fe649b707b1df8e1a41489bac33a23087027a2f48", 0, "0x4c 0xae 0x606563686f2022553246736447566b58312b5a536e587574356542793066794778625456415675534a6c376a6a334878416945325364667657734f53474f36633338584d7439435c6e543249584967306a486956304f376e775236644546673d3d22203e20743b206f70656e73736c20656e63202d7061737320706173733a5b314a564d7751432d707269766b65792d6865785d202d64202d6165732d3235362d636263202d61202d696e207460 DROP DUP HASH160 0x14 0xbfd7436b6265aa9de506f8a994f881ff08cc2872 EQUALVERIFY CHECKSIG"]], - "0100000001482f7a028730a233ac9b48411a8edfb107b749e61faf7531f4257ad95d0a51c5000000008b483045022100bf0bbae9bde51ad2b222e87fbf67530fbafc25c903519a1e5dcc52a32ff5844e022028c4d9ad49b006dd59974372a54291d5764be541574bb0c4dc208ec51f80b7190141049dd4aad62741dc27d5f267f7b70682eee22e7e9c1923b9c0957bdae0b96374569b460eb8d5b40d972e8c7c0ad441de3d94c4a29864b212d56050acb980b72b2bffffffff0180969800000000001976a914e336d0017a9d28de99d16472f6ca6d5a3a8ebc9988ac00000000", "P2SH"], - -["Correct signature order"], -["Note the input is just required to make the tester happy"], -[[["b3da01dd4aae683c7aee4d5d8b52a540a508e1115f77cd7fa9a291243f501223", 0, "HASH160 0x14 0xb1ce99298d5f07364b57b1e5c9cc00be0b04a954 EQUAL"]], -"01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe0000483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa0148304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f4014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000", "P2SH"], - -["cc60b1f899ec0a69b7c3f25ddf32c4524096a9c5b01cbd84c6d0312a0c478984, which is a fairly strange transaction which relies on OP_CHECKSIG returning 0 when checking a completely invalid sig of length 0"], -[[["cbebc4da731e8995fe97f6fadcd731b36ad40e5ecb31e38e904f6e5982fa09f7", 0, "0x2102085c6600657566acc2d6382a47bc3f324008d2aa10940dd7705a48aa2a5a5e33ac7c2103f5d0fb955f95dd6be6115ce85661db412ec6a08abcbfce7da0ba8297c6cc0ec4ac7c5379a820d68df9e32a147cffa36193c6f7c43a1c8c69cda530e1c6db354bfabdcfefaf3c875379a820f531f3041d3136701ea09067c53e7159c8f9b2746a56c3d82966c54bbc553226879a5479827701200122a59a5379827701200122a59a6353798277537982778779679a68"]], -"0100000001f709fa82596e4f908ee331cb5e0ed46ab331d7dcfaf697fe95891e73dac4ebcb000000008c20ca42095840735e89283fec298e62ac2ddea9b5f34a8cbb7097ad965b87568100201b1b01dc829177da4a14551d2fc96a9db00c6501edfa12f22cd9cefd335c227f483045022100a9df60536df5733dd0de6bc921fab0b3eee6426501b43a228afa2c90072eb5ca02201c78b74266fac7d1db5deff080d8a403743203f109fbcabf6d5a760bf87386d20100ffffffff01c075790000000000232103611f9a45c18f28f06f19076ad571c344c82ce8fcfe34464cf8085217a2d294a6ac00000000", "P2SH"], - -["Empty pubkey"], -[[["229257c295e7f555421c1bfec8538dd30a4b5c37c1c8810bbe83cafa7811652c", 0, "0x00 CHECKSIG NOT"]], -"01000000012c651178faca83be0b81c8c1375c4b0ad38d53c8fe1b1c4255f5e795c25792220000000049483045022100d6044562284ac76c985018fc4a90127847708c9edb280996c507b28babdc4b2a02203d74eca3f1a4d1eea7ff77b528fde6d5dc324ec2dbfdb964ba885f643b9704cd01ffffffff010100000000000000232102c2410f8891ae918cab4ffc4bb4a3b0881be67c7a1e7faa8b5acf9ab8932ec30cac00000000", "P2SH"], - -["Empty signature"], -[[["9ca93cfd8e3806b9d9e2ba1cf64e3cc6946ee0119670b1796a09928d14ea25f7", 0, "0x21 0x028a1d66975dbdf97897e3a4aef450ebeb5b5293e4a0b4a6d3a2daaa0b2b110e02 CHECKSIG NOT"]], -"0100000001f725ea148d92096a79b1709611e06e94c63c4ef61cbae2d9b906388efd3ca99c000000000100ffffffff0101000000000000002321028a1d66975dbdf97897e3a4aef450ebeb5b5293e4a0b4a6d3a2daaa0b2b110e02ac00000000", "P2SH"], - -[[["444e00ed7840d41f20ecd9c11d3f91982326c731a02f3c05748414a4fa9e59be", 0, "1 0x00 0x21 0x02136b04758b0b6e363e7a6fbe83aaf527a153db2b060d36cc29f7f8309ba6e458 2 CHECKMULTISIG"]], -"0100000001be599efaa4148474053c2fa031c7262398913f1dc1d9ec201fd44078ed004e44000000004900473044022022b29706cb2ed9ef0cb3c97b72677ca2dfd7b4160f7b4beb3ba806aa856c401502202d1e52582412eba2ed474f1f437a427640306fd3838725fab173ade7fe4eae4a01ffffffff010100000000000000232103ac4bba7e7ca3e873eea49e08132ad30c7f03640b6539e9b59903cf14fd016bbbac00000000", "P2SH"], - -[[["e16abbe80bf30c080f63830c8dbf669deaef08957446e95940227d8c5e6db612", 0, "1 0x21 0x03905380c7013e36e6e19d305311c1b81fce6581f5ee1c86ef0627c68c9362fc9f 0x00 2 CHECKMULTISIG"]], -"010000000112b66d5e8c7d224059e946749508efea9d66bf8d0c83630f080cf30be8bb6ae100000000490047304402206ffe3f14caf38ad5c1544428e99da76ffa5455675ec8d9780fac215ca17953520220779502985e194d84baa36b9bd40a0dbd981163fa191eb884ae83fc5bd1c86b1101ffffffff010100000000000000232103905380c7013e36e6e19d305311c1b81fce6581f5ee1c86ef0627c68c9362fc9fac00000000", "P2SH"], - -[[["ebbcf4bfce13292bd791d6a65a2a858d59adbf737e387e40370d4e64cc70efb0", 0, "2 0x21 0x033bcaa0a602f0d44cc9d5637c6e515b0471db514c020883830b7cefd73af04194 0x21 0x03a88b326f8767f4f192ce252afe33c94d25ab1d24f27f159b3cb3aa691ffe1423 2 CHECKMULTISIG NOT"]], -"0100000001b0ef70cc644e0d37407e387e73bfad598d852a5aa6d691d72b2913cebff4bceb000000004a00473044022068cd4851fc7f9a892ab910df7a24e616f293bcb5c5fbdfbc304a194b26b60fba022078e6da13d8cb881a22939b952c24f88b97afd06b4c47a47d7f804c9a352a6d6d0100ffffffff0101000000000000002321033bcaa0a602f0d44cc9d5637c6e515b0471db514c020883830b7cefd73af04194ac00000000", "P2SH"], - -[[["ba4cd7ae2ad4d4d13ebfc8ab1d93a63e4a6563f25089a18bf0fc68f282aa88c1", 0, "2 0x21 0x037c615d761e71d38903609bf4f46847266edc2fb37532047d747ba47eaae5ffe1 0x21 0x02edc823cd634f2c4033d94f5755207cb6b60c4b1f1f056ad7471c47de5f2e4d50 2 CHECKMULTISIG NOT"]], -"0100000001c188aa82f268fcf08ba18950f263654a3ea6931dabc8bf3ed1d4d42aaed74cba000000004b0000483045022100940378576e069aca261a6b26fb38344e4497ca6751bb10905c76bb689f4222b002204833806b014c26fd801727b792b1260003c55710f87c5adbd7a9cb57446dbc9801ffffffff0101000000000000002321037c615d761e71d38903609bf4f46847266edc2fb37532047d747ba47eaae5ffe1ac00000000", "P2SH"], - - -["OP_CODESEPARATOR tests"], - -["Test that SignatureHash() removes OP_CODESEPARATOR with FindAndDelete()"], -[[["bc7fd132fcf817918334822ee6d9bd95c889099c96e07ca2c1eb2cc70db63224", 0, "CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIG"]], -"01000000012432b60dc72cebc1a27ce0969c0989c895bdd9e62e8234839117f8fc32d17fbc000000004a493046022100a576b52051962c25e642c0fd3d77ee6c92487048e5d90818bcf5b51abaccd7900221008204f8fb121be4ec3b24483b1f92d89b1b0548513a134e345c5442e86e8617a501ffffffff010000000000000000016a00000000", "P2SH"], -[[["83e194f90b6ef21fa2e3a365b63794fb5daa844bdc9b25de30899fcfe7b01047", 0, "CODESEPARATOR CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIG"]], -"01000000014710b0e7cf9f8930de259bdc4b84aa5dfb9437b665a3e3a21ff26e0bf994e183000000004a493046022100a166121a61b4eeb19d8f922b978ff6ab58ead8a5a5552bf9be73dc9c156873ea02210092ad9bc43ee647da4f6652c320800debcf08ec20a094a0aaf085f63ecb37a17201ffffffff010000000000000000016a00000000", "P2SH"], - -["Hashed data starts at the CODESEPARATOR"], -[[["326882a7f22b5191f1a0cc9962ca4b878cd969cf3b3a70887aece4d801a0ba5e", 0, "0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CODESEPARATOR CHECKSIG"]], -"01000000015ebaa001d8e4ec7a88703a3bcf69d98c874bca6299cca0f191512bf2a7826832000000004948304502203bf754d1c6732fbf87c5dcd81258aefd30f2060d7bd8ac4a5696f7927091dad1022100f5bcb726c4cf5ed0ed34cc13dadeedf628ae1045b7cb34421bc60b89f4cecae701ffffffff010000000000000000016a00000000", "P2SH"], - -["But only if execution has reached it"], -[[["a955032f4d6b0c9bfe8cad8f00a8933790b9c1dc28c82e0f48e75b35da0e4944", 0, "0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIGVERIFY CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIGVERIFY CODESEPARATOR 1"]], -"010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a900000000924830450221009c0a27f886a1d8cb87f6f595fbc3163d28f7a81ec3c4b252ee7f3ac77fd13ffa02203caa8dfa09713c8c4d7ef575c75ed97812072405d932bd11e6a1593a98b679370148304502201e3861ef39a526406bad1e20ecad06be7375ad40ddb582c9be42d26c3a0d7b240221009d0a3985e96522e59635d19cc4448547477396ce0ef17a58e7d74c3ef464292301ffffffff010000000000000000016a00000000", "P2SH"], - -["CHECKSIG is legal in scriptSigs"], -[[["ccf7f4053a02e653c36ac75c891b7496d0dc5ce5214f6c913d9cf8f1329ebee0", 0, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], -"0100000001e0be9e32f1f89c3d916c4f21e55cdcd096741b895cc76ac353e6023a05f4f7cc00000000d86149304602210086e5f736a2c3622ebb62bd9d93d8e5d76508b98be922b97160edc3dcca6d8c47022100b23c312ac232a4473f19d2aeb95ab7bdf2b65518911a0d72d50e38b5dd31dc820121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac4730440220508fa761865c8abd81244a168392876ee1d94e8ed83897066b5e2df2400dad24022043f5ee7538e87e9c6aef7ef55133d3e51da7cc522830a9c4d736977a76ef755c0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], - -["Same semantics for OP_CODESEPARATOR"], -[[["10c9f0effe83e97f80f067de2b11c6a00c3088a4bce42c5ae761519af9306f3c", 1, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], -"01000000013c6f30f99a5161e75a2ce4bca488300ca0c6112bde67f0807fe983feeff0c91001000000e608646561646265656675ab61493046022100ce18d384221a731c993939015e3d1bcebafb16e8c0b5b5d14097ec8177ae6f28022100bcab227af90bab33c3fe0a9abfee03ba976ee25dc6ce542526e9b2e56e14b7f10121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac493046022100c3b93edcc0fd6250eb32f2dd8a0bba1754b0f6c3be8ed4100ed582f3db73eba2022100bf75b5bd2eff4d6bf2bda2e34a40fcc07d4aa3cf862ceaa77b47b81eff829f9a01ab21038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], - -["Signatures are removed from the script they are in by FindAndDelete() in the CHECKSIG code; even multiple instances of one signature can be removed."], -[[["6056ebd549003b10cbbd915cea0d82209fe40b8617104be917a26fa92cbe3d6f", 0, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], -"01000000016f3dbe2ca96fa217e94b1017860be49f20820dea5c91bdcb103b0049d5eb566000000000fd1d0147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac47304402203757e937ba807e4a5da8534c17f9d121176056406a6465054bdd260457515c1a02200f02eccf1bec0f3a0d65df37889143c2e88ab7acec61a7b6f5aa264139141a2b0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], - -["That also includes ahead of the opcode being executed."], -[[["5a6b0021a6042a686b6b94abc36b387bef9109847774e8b1e51eb8cc55c53921", 1, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], -"01000000012139c555ccb81ee5b1e87477840991ef7b386bc3ab946b6b682a04a621006b5a01000000fdb40148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f2204148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390175ac4830450220646b72c35beeec51f4d5bc1cbae01863825750d7f490864af354e6ea4f625e9c022100f04b98432df3a9641719dbced53393022e7249fb59db993af1118539830aab870148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a580039017521038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], - -["Finally CHECKMULTISIG removes all signatures prior to hashing the script containing those signatures. In conjunction with the SIGHASH_SINGLE bug this lets us test whether or not FindAndDelete() is actually present in scriptPubKey/redeemScript evaluation by including a signature of the digest 0x01 We can compute in advance for our pubkey, embed it it in the scriptPubKey, and then also using a normal SIGHASH_ALL signature. If FindAndDelete() wasn't run, the 'bugged' signature would still be in the hashed script, and the normal signature would fail."], - -["Here's an example on mainnet within a P2SH redeemScript. Remarkably it's a standard transaction in <0.9"], -[[["b5b598de91787439afd5938116654e0b16b7a0d0f82742ba37564219c5afcbf9", 0, "DUP HASH160 0x14 0xf6f365c40f0739b61de827a44751e5e99032ed8f EQUALVERIFY CHECKSIG"], - ["ab9805c6d57d7070d9a42c5176e47bb705023e6b67249fb6760880548298e742", 0, "HASH160 0x14 0xd8dacdadb7462ae15cd906f1878706d0da8660e6 EQUAL"]], -"0100000002f9cbafc519425637ba4227f8d0a0b7160b4e65168193d5af39747891de98b5b5000000006b4830450221008dd619c563e527c47d9bd53534a770b102e40faa87f61433580e04e271ef2f960220029886434e18122b53d5decd25f1f4acb2480659fea20aabd856987ba3c3907e0121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffff42e7988254800876b69f24676b3e0205b77be476512ca4d970707dd5c60598ab00000000fd260100483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a53034930460221008431bdfa72bc67f9d41fe72e94c88fb8f359ffa30b33c72c121c5a877d922e1002210089ef5fc22dd8bfc6bf9ffdb01a9862d27687d424d1fefbab9e9c7176844a187a014c9052483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c7153aeffffffff01a08601000000000017a914d8dacdadb7462ae15cd906f1878706d0da8660e68700000000", "P2SH"], - -["Same idea, but with bare CHECKMULTISIG"], -[[["ceafe58e0f6e7d67c0409fbbf673c84c166e3c5d3c24af58f7175b18df3bb3db", 0, "DUP HASH160 0x14 0xf6f365c40f0739b61de827a44751e5e99032ed8f EQUALVERIFY CHECKSIG"], - ["ceafe58e0f6e7d67c0409fbbf673c84c166e3c5d3c24af58f7175b18df3bb3db", 1, "2 0x48 0x3045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 3 CHECKMULTISIG"]], -"0100000002dbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce000000006b4830450221009627444320dc5ef8d7f68f35010b4c050a6ed0d96b67a84db99fda9c9de58b1e02203e4b4aaa019e012e65d69b487fdf8719df72f488fa91506a80c49a33929f1fd50121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffffdbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce010000009300483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303ffffffff01a0860100000000001976a9149bc0bbdd3024da4d0c38ed1aecf5c68dd1d3fa1288ac00000000", "P2SH"], - -["CHECKLOCKTIMEVERIFY tests"], - -["By-height locks, with argument == 0 and == tx nLockTime"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], - -["By-time locks, with argument just beyond tx nLockTime (but within numerical boundries)"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967295 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Any non-maxint nSequence is fine"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000feffffff0100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["The argument can be calculated rather than created directly by a PUSHDATA"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 1ADD NOP2 1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Perhaps even by an ADD producing a 5-byte result that is out of bounds for other opcodes"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "2147483647 2147483647 ADD NOP2 1"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff", "P2SH,CHECKLOCKTIMEVERIFY"], - -["5 byte non-minimally-encoded arguments are valid"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x05 0x0000000000 NOP2 1"]], -"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Valid CHECKLOCKTIMEVERIFY in scriptSig"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1"]], -"01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000001000000", "P2SH,CHECKLOCKTIMEVERIFY"], - -["Valid CHECKLOCKTIMEVERIFY in redeemScript"], -[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], -"0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000001000000", "P2SH,CHECKLOCKTIMEVERIFY"], - - -["Make diffs cleaner by leaving a comment here without comma at the end"] -] diff --git a/test/data/blk86756-testnet.dat b/test/data/blk86756-testnet.dat deleted file mode 100644 index 207abdac05c64e3bd7eac65736d13bd32f24b5b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9500 zcmb7~byU>fy2fDu=>|b^Xb}aG?nb&n8l*v*fgz<^N>aK*Ku}P+Te=&hyIVl+40@E` zy=UFynYH-C#dr4mJRhF@?!CWTRBU8K5poz901OO_^!ow@cOJS(-}p_pCU8N*#_b>dU{Vnfdc89DN< z6UC%%qWzmpjwfRCd^`WDdh2X#K{7VUKw@_#!<{OJaAjrb-A06maHcOO)=~9=l4d{j z;a3t*#Q+pAZyip?!GeBV*=Q`gafT>?9`f`h0{SP-PgiK;fv6d2216?S*3PTH@;a(HfsN29&z=_7&AGV`0$&r(Tx-FH6Bo3Y^ZkiDrbzULL zPhfddokGb0x-EQIpoO92-~(H|bM1^$Nk97RY=j|mv*?)O1{Kj{lBWFY2@Q;N%&ZI_ z?_mIjTY5{z*oR!h#-D7V4grs-+ve-4W^~Cu4~KQFx1Aet?Z z#^U)?Q2@|2SF)@cZnwzNrZODlg_cc7?`bgQ*yiJx-gesiJ+1-(d?r_wwmpqeStqxR zP~Uhgc-)NpnCSAoYYEm7DZ#`Z0G0yqBvQ59E;hA*Q|r8oE~r(<*Nkw&jAas+xo^qi z4gM}K)F5`i#!kDE1$VjO;64ubQn+d~yDXE}T#6TSwhyR+un;QAQu3)d1iD|ZOKQin z4Nau3g}sE0R1qh)SFKwXr~Ss;^9-xCafOgarbtP|&`otXdEO#xGrW@=i>_o)De|tS zNGnb_S3n3ZhKTxX+HxeyWcS618ou7W(dL?m09~dkG;->rIiV}!mTAB(b^V#g(89OW z%~(;R#Be-l=x1Noa*LUczIYd36jU^@^W^sv9JcET0Pim>iUC9fK_uG^?{hk&?@-57 zfJs-oAcboU9v@VVK<=nzK{@&wE@Eq?T^cdgj#3Q$)BL24WmXnNSkmHKL+r8fKH}Ts z*}Bk`q2$7Mqc?}#XnSg=03dLzzubEh$aU^=VhYp9Uucq_c<{Kn)^|yzo?Gbul)*L>on^BMg{l zQ#~Vmo)PbsQ|tIZ1tIT`B-4k*%gLX&gZL3AirU362uc^-JdHZBMam5si+9*{8390s zrSb|YAo_ZvZ57@C0!FdjppbW5I>(6~k=2cy*oP&Eq*UW;YL}6n(xYkX?V_of8J$_H z@DsxR06dfVg=Uh@s9WX(A31&#O|+GJ{4Q2c!CZC~GrD&~@;STn`=Fx6_CL(0x`^l3 zky))%PS%u*-|t1Uvr1pxVSeS0%R@$!X0_X_p=xOEmh@@~r^C2jTgoL@KXYqZ7g=<$v59 zRsMj36AZG*zG?b|pv;7s@|Vov>FqdbAE!x};w~?LFK1?*!so{fUtd>J6^tBUqD9F0 zBk7fW(zOgOgDGzskx9GQ4u=S5oB){xj~Zo~eK}i%7Z?Dfs?V?t9x`R-%bmx66#t4n z%bK`8k8>}iYC|Y-W(-M&5aIibUfq~bU z|MVK3Iti?n`^TV0%|Vn)C3$fOel_1s3>~TJh{%+oRrOZxChF%%;y@PwP)z7GFhc0O z4CL^&gx&S!4n-L`4uZY{aE_WRxMCYE_b$7KZU3+Y|ak_2kK-kBsy7qc}#d0O0A3Rq7H5ztCOyB%qjNuIpkm@eT@_d^uKE^SeH+KL;v@!1K3ah`-ufS`SY(R zO(K=tQ`CZj4I7<CR-z@0a33Qxa zi&mLBa&=x=I9gLflRuw|gH$^F#*Pj!?-wG^=0e3)> zUV@0sI8Hz5q5Ej#JTvy-(-dtu2(ORtq6~yU>hv6$;r}H4W7QW8dS{I~X4L#@o7fk; zhFTAZ{+V<`OO>QkI4!zx5!zL2;(ngK>Ly``&=@ZBX z+pMjH=XBBQIF9;=HTyob?GhJe@QsD~Q|!M?dJQRVgnMe(zC~c~y@(dL?l?3zHCshZ zu!ga~a0Q9=YpA53NvC^V`i&>peF&wcAw%>0(PGn@iv3L=yiXr~Os^RGIwvIQLHA|E zkFI=n*q&CXJ|fNC9y*OQ0{PcqF67<&fQdZ%1)|9=)LcWfYW3hrg|0_Og(rYFH2$8T zmcdl}YL{$N2Zh`%^ruav(7LzF=pvJ%y6UqeTzxv{j4^L|T?ysL%6~4Sgg&bTG7nla zi!437>}=O8YaQ=n-hmzyB6|if>bzgpuJw^ws~P=p7pJ-~$ICl>=vhum{WBkEp)6Ih>X-I-5KXNM0P@LOHQGqE-o$u#XKSY_e`H)w z6{dP`in04Rn+@MnUj^dO{N4j(cl~6z&PpbahlxcYvP?_XnnG6`u()Bn+r0^hP={f& zCxh6ygvR9&40z;*n(eLRc*PwOn`mQ5o?}V+qYl3{0oB7_S3S2CnQ`+-Qm#mQcOb zzo@6r7#WVjfw3YY`uf$cB0`sns^x>agYgBiJ|5KJ&$&!|g%bNvXZh_{oam}?As&Ul;wKr4Csc;3W(_{p5E3d!um?H7p^fjUo{zEu^5@ws^kL3d|w zt*;QG5x*)1&^#XvbwwkP++XxKz1&nqt)VB|Pe<*BLf`TIfSF-6s{c3xbkHeQPfo&t zw(R>>XUbYh&c>&TX96ne*OoDCG0CQ6YQ`1s>5Uj~a`|T51)(L0NY&t>NT8)Gp}Qu8 z`o2I&h)7G~%VfA|ullJAY_fHN9MH}Mj*Ax0o1d@5M&HiGyoL>_9c6(I%^3@=_K>Vc-yXScXM=-P z>T@^|HvwwxDZE0tp-~1DgC}>WXGsT^yoB3qD=tj;GB3(INY;-!{dipY)j3=x9<30_ z1>K+hoXwJb25@Xj>C}Cw#bv`?(|#pylR0?2t%?_4;u{8%N%%n=rg?4H8}|j==MaCB zK;?RGJ{jcG<4(Y}&|(qpuk7x5AJRe@&3adZ4<#;U`UHr1^g%G!IF9f6xP8daNhdYg z#TGH44htN*PTWLW&rk_*v8#!`pb78-O}LrqhFb}%YIq2AkD=IqYLeC2?xL8#P`m8U z$N??$qZ3qRr+)LKmj<1y?9aZ2)rV*riT7Rzus!0Se>wZ&-Jk&?8Llr=!GU6Y7rI+W z<^Ax#&idVrdJlSv)pP3~J_x~t?8g`|Uk|UB-~O}1{QK1wDjW(FU=H7m2z0YAFeP(7 zUwA0Bz~iRhM$ASb+$lNCxqh^M@Ml*HLZLuxo~+k1Afz;LOKuS}Q6#}IHJyvZkw9!ysJWGL z&OqL|bltFbKFQj5kKnkV-aPf*8dTD+tj914T#HdUr-9ti&Lko^X=%rY1N^>}2 zO9u_i4I$Jw`x(=B58J|NO+*=nnI%%{vbpESM!b?4?dCX3&aU4=k}zkonFueps8}6h z^@G%GmxPg^s6;1JEksf82(0vF6XQ1Pcc~W{?Ih!-ie872CJu#>B3*?<*q;Aa)Oo}< zQU(y=Feeo8SgEvZ^M)dYw#e*p41xDYkAnTu-L2RhmYgMT zE-*=0%}Wc`)`;$&Z-O{n8Mh4tS7|)4O)&IN{&qYXd1BG8Rc5SIbx}-c_Q^7mv~AQM5rc zd2#23J#2-wr6NNBUU5!kBj90-Er1(A?i&;1vzBwqx74v_*`QIq?H{#dv0%ByB`exM zJJ}2|MO-F?pwfSCVf+&wbZfAOBaU=wDN%fv5w|iim%P(qoF)1^YvpNgacwF&ytHpPD|7rw+&4 zuh>n#6q!zId|G6$&Ll2m@DBAymTixN;E}?nn~eI?$z)U4*10L&~XOpbc=;9qd z_sdZn9)#?nwi`45k~%vrlQfuMJBvl+@ni}3)#p8F`pivYl5=o*obYsvw!v@ekhK!j zN&ehMVQTydA7bCBnKHwt(jG8_WZ|iM$%xbPGA;l}#=bYX+rhx3cf8qpQ}a#Z%}f6; zysz@Vad1>1tuaf+K-%7u*9h7}A))S>FWCb(KKIHW7ihG}f{v4MSanDvoXbGB)c^Bp zYRkz5rFA18}_vM@gq+xKhwA0~wvs28mg< zNu$xU&Z-GUK`b^0aF>ZUGry?*P_Ao*#ps~Y6Ri7f*3G)N!?jF$Ru&T)tiO2O82)~L zobpG?-evp7sL1g>Kbh#kSrSA(hXlhGyrJUbJ!qnSZf6A^nn?pAFs0AkGigLuV*T^H zJbN`6J0iMxH}DsISX2Q(qEZ#WaOS5d*-6!S^5TsrouE}w;$}_`lkHF$wV6yuh$O|V zI(Y6M+Q$}xt$i{j{84t1>TE%V&#@Ietj}C~L_%+=-+h(%@6SMyg=A1+w^{$>$x+d_ z=(84#DQ|UA9t%3s^;f!+_3v}t7Fxuk`(_axv+ya!lWHw6_m*c~;OkK~sx+x0MnQ-9 zxtfx8dpHbw^%l&2e7l0#uZQtHXVoj3oS|7)eU?2;+FK6--CL5zGdiXeJLtXN#iMNp z5KE*}ITAafDU}8HK_Fo-w1@u9&QUFOKwXPe>E#biLavQus)1e}pLiPDwi+$($6JyD zMJ<1_u4ep!-nZDgRT$`vVk7f#++&omCzz~i$5esa(K@~r4AE35_9`TqJl=^a)?8%b zAowxQxopVX_iO}xD^`ai&&qNL^_qD^`&+tbZ0_1yGG3|_FLReR|AE-ng1xp*b5@g3@XDd^{cWdWmW1 z5uaZe@a57Cwwx1{Nx#c?UxO7zzl?Mp%Qq)hJcJJOtHTUA2=o}v2Goix51AcUi@y%c zt4}2r5bNIVrlzXcBC&*8jAN&4dQ!-rjOLWThl`Jm*NsU~xZ0fjm8rXkR`x0ZVi9dU z-Jg-!`^jqM;U|6Bm^Y<15uSo_wi%J8J?X?c$U)HQY^sOc^(dYG=pp|`Ze^Vf;1O9? zUC+m1Ze$_r4bD{lZm6iA6OdsmO#VRFi3#W2G{emDkrJ=!4a=*LrFV}O=z$MPHV+`0 zGS_yhZa&35RKXlzpy-rpAZZP=?K&+ki&dyBIk9io{L3XCaQEmbn#|q7V&S~sE=aCu zhb#%B^VswIKO6ghc>Bdd#rSwtmrLsLYjMT24-!=s*q`y4oTOxpR2mvpndmg{V1FCo zgz>(5N3o%G8aAj?%HqKuYkpwBVWy6kLMNM*e;CAKQrVKcD=$L1OT18vY21&#oezQa{2sJImM~M5*YSWl7 zYn24t@tS)QFw|5V{qSQe6MQKzhv|o|3Gor-Hz^QNsm};}@U!0?J_+Ogkw#;ufyc{7 zz3*W6ZSTp32Zc3{Fhmq$n4m%yULfjNu)dQ5{>r)ElD2-i9M!kOA)^ZJqHOSOYyZzL zTJFBAahoS0JWsF-x{gNi^bTu!R1SJC(McX#)a}F-n`o(R}sWw0wdkwe%ZNN z@*a*Qno52s3=_<#EtVzdq_qsMOFsr;@vlxw|LM$pN7Rp6nfW>ehh0a@c*D{KFXUhz zVMg3$-3ZXv_(~bHGXaRGd`(NNxdyTIVwmZNS1VUv{NOi=r2XVk7DkgX4zb4ZAfjdx z=Qf&o^U|ZrH?L%W9PS_%U%*YRm>r2BD^t8rezADV{qCmSG)rjwhwN%TR+G;TU3#p_ zw{k(9f9Cz{;8aQjDQ>2}(!6g#e_tKOlQZ-ucT~t#Iswtot90z|57Y`B+{*8(ba?0xNav7mLa+AGnH)g&FF}r03N|*DOwfT~ZPhS- zU$d)(`d!z<*W6r6tj4S?5=Fx1t)~466CTcNrG|u?Mf!RSYWx^dNq9HUCL#`Sh?pHE zBx|bX%nmx9#O+nEdIf>cm{brkeRr=QCXS}CWJ+l5G0-v7;i3-LSi-{t0JPhq2y32! zNhUz)dPdb5pO0&0&tyniK*ma%e;`{&8wv|G!j$cbtIg7=ojTXwW#Ja`uG}>43MbvV z@R=uD*!t&e8tH)nwolcytoGi}Pu6UAhB+ZW8!! z^*;0D3K!8=aAG^uIMi0Wg(2lP8o#ud2<=Gycw3S0epx(oUGZ`Fm;E9u-k~?(6QQCP z^|JVK=fQe;S~LuIDjw^Tdm?J^yYx%f&(^u3^Vj0iFhuveGRoGmAAVUi`vL%(Rc&~R+M_q-G;0$+3(k?b?Pis=O)8w-2M22 z$B$Ok2sm01iE3y?sh_v!IV3IL^DwAuU5>=Iw${GkOEnV}yU_}j>x(<*_;E(&LS|p} zwZRV!+NdbU74Gg$%>dzyK!mvod7d{D0rKntG4mp~B^3lz)Yq?s4`r4UxWL9z%g%bs z*425;z9=KMi-XsI+XKWetTzi5sv6x*pbPTy2j5YLWDFDUVGIwM&h9 zPp4wt8^Eo`hG%;@IDpN|*oc9qD0Z4*9SvPmrQ`bBikcW9wL(cU>k8;A`8QOo2KQ!X zMkto4VaFH2ee@$7#&@u`bqmS@C$1w0Q?_F%x}4%iBl3+AO97LZ2))~iCTd1C_mNcIOeQL>2xu;x^uuxY zR{FyFy|&I*kr(TGlou+>@4i0*C4Fx~fL!lw$vMsxH6Pk+eNsO1l z8tcpOcix_og3)JR48<$e7C(jxv3XO1o|==6u<&%8LdmbX2Wyoi>n2{|}kp BWlR77 diff --git a/test/data/blk86756-testnet.js b/test/data/blk86756-testnet.js deleted file mode 100644 index 51ed9cd..0000000 --- a/test/data/blk86756-testnet.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = { - version: 2, - time: 1371410638, - bits: 473956288, - nonce: 3594009557, - prevblockidhex: '4baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c00000000', - merkleroothex: '97fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658', - blockheaderhex: '020000004baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c0000000097fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658ce10be51c0ff3f1cd53b38d6', - blockhex: '020000004baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c0000000097fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658ce10be51c0ff3f1cd53b38d61601000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0b03e45201062f503253482fffffffff034034152a010000001976a914ee9a7590f91e04832054f0645bbf243c9fac8e2288ac0000000000000000434104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac0000000000000000252458e99e66e2b90bd8b2a0e2bfcce91e1f09ee7621d95e9a728ca2372d45df3ded00000000000000000100000001d6e149959b6248eee5a17c23a518e5e5e399e98f7d42a2833810f3baf1525acf000000006b4830450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f012103449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6ffffffff02cb6a8233000000001976a9140487c481a671649e1db182ede98d093a335d671388ac25a21d9d000000001976a914590ea00fa3a18281d3020e7ba0c3a1d6aea663c088ac0000000001000000022a24c5dfbdb9dc5e1eb5d38dc9e8c5f8643aee53fcb0d2e44a04924b55c65c6b000000006a47304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef020121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff1186e9edc6526a3ab463d1f0123ae38e5593364d2f80de9d8031a48274b718ab000000006c49304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786ffffffff0260dc2c00000000001976a91468340b9145127d2529dd7ebc3a4567d5579997ac88acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000020f5000a056f91d03c489d7d1558f09c7bc330af3ca8e43706d5cb08fd6c60aad010000006a47304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d4012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff08d4577f5634796567fb0cd50abd1886df3555f71847a1977ba5bc75195405a7010000006a47304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee30121039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891ffffffff02d0b13700000000001976a9149a704e2c99955f50694de60f93cdd449473678aa88acc0c62d00000000001976a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac000000000100000002fc85133b1e259f6deec25953bccfa75df61fd23a471553c80c043c2ea716a675000000006a47304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff04297137bc2c9f486713e4e4fab43134da153e0f8ee8e852554090d02f2605a5000000006a47304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df012103ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531ffffffff0220753800000000001976a9144769612ee7c6e977df40a8cdfd837c85cc7a48f788acc0c62d00000000001976a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac0000000001000000021cb5734a303cefa1ace87b8cc386a573f1eed8370e14c0a830fd04249b7756a6000000006a473044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca60121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffffbabb329d773e9101e127f7c1e95533fb384c79260789dc06fdf73296c9ef352d000000006b4830450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786ffffffff0210fb3000000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac20cf2900000000001976a914e1144ff8ca0ac143b83ada244040bfe9c8d1d63888ac0000000001000000029a494e6072106a040e279b4566f25fc35441a84f6228812142eb5515688832f5000000006b483045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf0121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6affffffffec7d5d39d4db41d7d9ba0653b6c9758f20cf89a4c2e60bb27645a966889fdfd6000000006a473044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c7012103af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092bffffffff0220753800000000001976a914b1b9b659297859bd310ba8ba6f95573c635b191a88acc0c62d00000000001976a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac0000000001000000028c88435add45be7b1521756b8ee3bfc51558040c3922e11facff1d6cdc7fc841000000006a47304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a5830110121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffffbb1d138f7c9e8df06a87cd068fc303cb960c7b5670515a7759653fd3b71c6e7e000000006b4830450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b6012102718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214effffffff0230c11d00000000001976a914e22f515855329b13602778a1d681295e485390b888acd0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac000000000100000002948a4df70264c816b3c65bb1315bc20df2ee12baaba580818ed232a59dbe3282000000006b483045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f6054012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff8dddf5d111131865b48f2b141f635ac6c41f14adc748ea0cd6087fd69b60d573000000006b4830450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff0220cf2900000000001976a9147ff6d70c9f71e29f3b3b77e1acb0bae8d1af12d288ac10fb3000000000001976a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac0000000001000000027624f057be29a1d4d39112006d1a1acaca84b78f5e2323c3ae587365f91b6014000000006a47304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad012102926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcbffffffffed83ae0fa16dd5602ca174f1c845be1f1c370ce483925dda6e524e6f82b93bd8000000006c4930460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d46012102891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8ffffffff02c0c62d00000000001976a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288acd0933c00000000001976a914736d9e4703437b3f245cda14ab4ed2d52b0a622d88ac000000000100000002a34b87af6103eac5adaba08069aca7f19c6091f6b1f4b8ca788e54970cab2039010000006b483045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f160121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20fffffffffa973c9f57b44c4f70b181311ba1ab60c3f3c20663a3127d3c418b9bb3b175ef4000000006b48304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff0260dc2c00000000001976a914cc0d9d6d476efe8205891836f40e00caf2fde49288acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000026904c207207b72a9671e78f8e1284ae13b7b60c51b352142c849d338e8f3e8f1010000006a4730440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffffa3693948981b6fab5aeb9df82b1fc8e3fdbfeff8d934ce0617f4a9be699e06e7010000006c493046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd92012103de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0effffffff0260dc2c00000000001976a914ac64ed9c139e44fd8d1d9ad28d1d08fc8a8f70f888acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000023b45e99dd007030fd8511434235b70a7d29041eb1e72d3cb2dda7d1e769ec13c000000006b48304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c463012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff87cc87cf0be7989073235f455fe6524324bfe8cba5f4ee3c2a59c46fec3bf14a010000006b48304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c5012103803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4ffffffff0210dd3500000000001976a914bc1e95774ee2e36d2687714da14551132f0588b088acc0c62d00000000001976a914859819cb59368e07d4c95b5221fa4c466d66694988ac0000000001000000027848ce7fbc4f3b3e56a778607e046aa2b2cf891cdba8b61186095d4931b44c72000000006b483045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a49012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff0e33c08e14303d5660127f5d3792ca11c18321a276e71f53415af75a2319ee92010000006b483045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc0121036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0ffffffff02a03c3700000000001976a9144cc35fc2651b5b3e4f22dfa9b6ebef0ca1797fb088acc0c62d00000000001976a91449452bed77744157799ba71fdb43efbd66968ad188ac0000000001000000022a6cc52c8804088ddbc164cfa01e4d9ee7e839c7a8f5d2f1b59b70a50d253f24000000006b483045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a2012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff36262f4b7717eca333432cd9af776bb5ef4b29a2ea1b1cf877b49642db945c62010000006b483045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e73149940121022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374ffffffff02c0c62d00000000001976a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac70383900000000001976a9145ab29618ded8892f8189ca3ce81bef83d3ddda1688ac000000000100000002d724e595476277be4337bb8f39ca700b4f9df1bfb84089c4afd338e1079e9add010000006b483045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c177040121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6affffffffff40fb739e2271f4aaa851dd46fcd1895ddd7a98850ef191ba3b50325c29a4ed010000006b4830450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601210363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568effffffff02a01e3c00000000001976a914b0c1cda106bb5085bd9c0c9982773c7bd066fabc88acc0c62d00000000001976a914859819cb59368e07d4c95b5221fa4c466d66694988ac000000000100000002a9b95beed9491639bc0d1bb833005cf45429ef9a50505f9b91f3c7588feb87ef010000006c493046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff8eaaf0d722fe9deffbc6e9d543f406844c93d1dd1c073d739863c314d2adf4ef000000006a47304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501210251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438bffffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac90ab1e00000000001976a914b27f37b7cee282e7890f4f6df9b49574f35e855288ac000000000100000002fadecb6a5b1bd5f0688fc7dd049dadd956c30006e4dc57155f22c054c1550791000000006b48304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc0121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20fffffffff569ed0585b1d5261fe5a1839e99c23d0cd3b82972526c5bb5b812ceb493facc3010000006b48304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b4012102bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0effffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac504b1400000000001976a914a6a0900e3c77496dc68be8ee130a21b446b8266588ac0000000001000000023d9d0df887b3621c3c884515d1a4c0a22e2bc4aa02300493cb568189847265db010000006b483045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a10121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff70f6c965fcbae21ee712571b683b33e3b4d0e9c5d1fd685046db7176e3bf432e000000006b483045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801210221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162ffffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac50802000000000001976a91447830d334d04acd62668904b6fab06a90742e75088ac0000000001000000022e48318fb557623da627d1c3f81ab34b99a87ce701440dfb907ad6a8691b51f2000000006c493046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc980121020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988ffffffff675f09c92aa029f3283ee9a6b8bd6f022a1ea3bdccb1d33a09416ee9389e3ecb000000006b48304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff02d0933c00000000001976a914449c3ac7336a78f0c6401f51710949005d2c7ffa88acc0c62d00000000001976a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac00000000010000000233232e2ce65e394a2c7e46519fae48b9b711b5152f764a4d6454bfc0552f275a000000006c493046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cfffffffff7fc20459ede0aeba4e9224ac667212ff815c651ca4feaaf40880b9f9d82413a010000006c493046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b42012102078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477ffffffff0210fb3000000000001976a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac20cf2900000000001976a9147bdb65a92af2520836f77e5ebccc697d814149ce88ac000000000100000002dae9bc0142c15e33fe26a494d1233e80adf68b50a131f467eb13450caa56e43d000000006c493046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c9609442012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff6904c207207b72a9671e78f8e1284ae13b7b60c51b352142c849d338e8f3e8f1000000006c493046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d714012103dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2ffffffff02a03c3700000000001976a91467a341d7fe4de6a810c182ed27a09554e0b4405d88acc0c62d00000000001976a914f7f1f64a590896dccfb869ced060f058007f388b88ac00000000' -}; diff --git a/test/data/blk86756-testnet.json b/test/data/blk86756-testnet.json deleted file mode 100644 index 577e32c..0000000 --- a/test/data/blk86756-testnet.json +++ /dev/null @@ -1,684 +0,0 @@ -{ - "header":{ - "hash":"000000000b99b16390660d79fcc138d2ad0c89a0d044c4201a02bdf1f61ffa11", - "version":2, - "prevHash":"000000003c35b5e70b13d5b938fef4e998a977c17bea978390273b7c50a9aa4b", - "merkleRoot":"58e6d52d1eb00470ae1ab4d5a3375c0f51382c6f249fff84e9888286974cfc97", - "time":1371410638, - "bits":473956288, - "nonce":3594009557 - }, - "transactions":[ - { - "hash":"a6f7b4284fb753eab9b554283c4fe1f1d7e143e6cf3b975d0376d7c08ba4cdf5", - "version":1, - "inputs":[ - { - "prevTxId":"0000000000000000000000000000000000000000000000000000000000000000", - "outputIndex":4294967295, - "sequenceNumber":4294967295, - "script":"03e45201062f503253482f" - } - ], - "outputs":[ - { - "satoshis":5001000000, - "script":"76a914ee9a7590f91e04832054f0645bbf243c9fac8e2288ac" - }, - { - "satoshis":0, - "script":"4104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac" - }, - { - "satoshis":0, - "script":"2458e99e66e2b90bd8b2a0e2bfcce91e1f09ee7621d95e9a728ca2372d45df3ded00000000" - } - ], - "nLockTime":0 - }, - { - "hash":"60c2679c0e791b19638c975528bf5bd55d81e192003c7d1f3fda53fe534b0a7f", - "version":1, - "inputs":[ - { - "prevTxId":"cf5a52f1baf3103883a2427d8fe999e3e5e518a5237ca1e5ee48629b9549e1d6", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"4830450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f012103449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6", - "scriptString":"72 0x30450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f01 33 0x03449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6" - } - ], - "outputs":[ - { - "satoshis":864185035, - "script":"76a9140487c481a671649e1db182ede98d093a335d671388ac" - }, - { - "satoshis":2635964965, - "script":"76a914590ea00fa3a18281d3020e7ba0c3a1d6aea663c088ac" - } - ], - "nLockTime":0 - }, - { - "hash":"d35ce8868da34cdd63dad93b698867cee01e1e5c762a48059528b15eceba9278", - "version":1, - "inputs":[ - { - "prevTxId":"6b5cc6554b92044ae4d2b0fc53ee3a64f8c5e8c98dd3b51e5edcb9bddfc5242a", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef020121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"71 0x304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef0201 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"ab18b77482a431809dde802f4d3693558ee33a12f0d163b43a6a52c6ede98611", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"49304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786", - "scriptString":"73 0x304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad01 33 0x02b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786" - } - ], - "outputs":[ - { - "satoshis":2940000, - "script":"76a91468340b9145127d2529dd7ebc3a4567d5579997ac88ac" - }, - { - "satoshis":3010000, - "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"7801b9230e03ce29fcfcaf9648939ba522b5d0e303b7683c9babd658ae857903", - "version":1, - "inputs":[ - { - "prevTxId":"ad0ac6d68fb05c6d70438ecaf30a33bcc7098f55d1d789c4031df956a000500f", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"47304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d4012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"71 0x304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d401 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"a705541975bca57b97a14718f75535df8618bd0ad50cfb67657934567f57d408", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"47304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee30121039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891", - "scriptString":"71 0x304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee301 33 0x039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891" - } - ], - "outputs":[ - { - "satoshis":3650000, - "script":"76a9149a704e2c99955f50694de60f93cdd449473678aa88ac" - }, - { - "satoshis":3000000, - "script":"76a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"1367dbd80e679ccc7008ad5803d60fc60baa126a2490697197224dea823cc407", - "version":1, - "inputs":[ - { - "prevTxId":"75a616a72e3c040cc85315473ad21ff65da7cfbc5359c2ee6d9f251e3b1385fc", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"71 0x304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d01 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"a505262fd090405552e8e88e0f3e15da3431b4fae4e41367489f2cbc37712904", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df012103ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531", - "scriptString":"71 0x304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df01 33 0x03ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531" - } - ], - "outputs":[ - { - "satoshis":3700000, - "script":"76a9144769612ee7c6e977df40a8cdfd837c85cc7a48f788ac" - }, - { - "satoshis":3000000, - "script":"76a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"dcb4af4edae739299a633aca1f8d482d44e3d7b99bc4bac574cd470bdb6ad64c", - "version":1, - "inputs":[ - { - "prevTxId":"a656779b2404fd30a8c0140e37d8eef173a586c38c7be8aca1ef3c304a73b51c", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"473044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca60121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"71 0x3044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca601 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"2d35efc99632f7fd06dc890726794c38fb3355e9c1f727e101913e779d32bbba", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"4830450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786", - "scriptString":"72 0x30450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf01 33 0x02b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786" - } - ], - "outputs":[ - { - "satoshis":3210000, - "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" - }, - { - "satoshis":2740000, - "script":"76a914e1144ff8ca0ac143b83ada244040bfe9c8d1d63888ac" - } - ], - "nLockTime":0 - }, - { - "hash":"7a1dc3bb633c50f7f53d3d8b9d10a86da38483616841de7bd51b8cca3b564a1c", - "version":1, - "inputs":[ - { - "prevTxId":"f53288681555eb42218128624fa84154c35ff266459b270e046a1072604e499a", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"483045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf0121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a", - "scriptString":"72 0x3045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf01 33 0x023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a" - }, - { - "prevTxId":"d6df9f8866a94576b20be6c2a489cf208f75c9b65306bad9d741dbd4395d7dec", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"473044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c7012103af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092b", - "scriptString":"71 0x3044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c701 33 0x03af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092b" - } - ], - "outputs":[ - { - "satoshis":3700000, - "script":"76a914b1b9b659297859bd310ba8ba6f95573c635b191a88ac" - }, - { - "satoshis":3000000, - "script":"76a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac" - } - ], - "nLockTime":0 - }, - { - "hash":"7766eac176f9db586456b150b7f0f757fd2c8a9b6d7ae8d42977580effe1c964", - "version":1, - "inputs":[ - { - "prevTxId":"41c87fdc6c1dffac1fe122390c045815c5bfe38e6b7521157bbe45dd5a43888c", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a5830110121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"71 0x304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a58301101 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"7e6e1cb7d33f6559775a5170567b0c96cb03c38f06cd876af08d9e7c8f131dbb", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"4830450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b6012102718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214e", - "scriptString":"72 0x30450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b601 33 0x02718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214e" - } - ], - "outputs":[ - { - "satoshis":1950000, - "script":"76a914e22f515855329b13602778a1d681295e485390b888ac" - }, - { - "satoshis":3010000, - "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"819427319cedc05e63e092cbe5e72a3186bea072c01814dd8476d3ef85893ab8", - "version":1, - "inputs":[ - { - "prevTxId":"8232be9da532d28e8180a5abba12eef20dc25b31b15bc6b316c86402f74d8a94", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"483045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f6054012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", - "scriptString":"72 0x3045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f605401 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" - }, - { - "prevTxId":"73d5609bd67f08d60cea48c7ad141fc4c65a631f142b8fb465181311d1f5dd8d", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"4830450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", - "scriptString":"72 0x30450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" - } - ], - "outputs":[ - { - "satoshis":2740000, - "script":"76a9147ff6d70c9f71e29f3b3b77e1acb0bae8d1af12d288ac" - }, - { - "satoshis":3210000, - "script":"76a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"cbbf483ac272ed5f9cca3ceccf6f08ada34d87fd6a5ccb34ac14e13dfbd4cf1c", - "version":1, - "inputs":[ - { - "prevTxId":"14601bf9657358aec323235e8fb784caca1a1a6d001291d3d4a129be57f02476", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad012102926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcb", - "scriptString":"71 0x304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad01 33 0x02926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcb" - }, - { - "prevTxId":"d83bb9826f4e526eda5d9283e40c371c1fbe45c8f174a12c60d56da10fae83ed", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"4930460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d46012102891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8", - "scriptString":"73 0x30460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d4601 33 0x02891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8" - } - ], - "outputs":[ - { - "satoshis":3000000, - "script":"76a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac" - }, - { - "satoshis":3970000, - "script":"76a914736d9e4703437b3f245cda14ab4ed2d52b0a622d88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"a887d7d752368dbaf40d418fc26915bbcef06b6625739c17fd332914d7c57f94", - "version":1, - "inputs":[ - { - "prevTxId":"3920ab0c97548e78cab8f4b1f691609cf1a7ac6980a0abadc5ea0361af874ba3", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"483045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f160121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f", - "scriptString":"72 0x3045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f1601 33 0x032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f" - }, - { - "prevTxId":"f45e173bbbb918c4d327313a66203c3f0cb61aba1113180bf7c4447bf5c973a9", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"48304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", - "scriptString":"72 0x304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" - } - ], - "outputs":[ - { - "satoshis":2940000, - "script":"76a914cc0d9d6d476efe8205891836f40e00caf2fde49288ac" - }, - { - "satoshis":3010000, - "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"db164f27acf3d43e5e5dbed5c173902ecfb1010b992568d086712b62a5e331ef", - "version":1, - "inputs":[ - { - "prevTxId":"f1e8f3e838d349c84221351bc5607b3be14a28e1f8781e67a9727b2007c20469", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"4730440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", - "scriptString":"71 0x30440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" - }, - { - "prevTxId":"e7069e69bea9f41706ce34d9f8efbffde3c81f2bf89deb5aab6f1b98483969a3", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"493046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd92012103de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0e", - "scriptString":"73 0x3046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd9201 33 0x03de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0e" - } - ], - "outputs":[ - { - "satoshis":2940000, - "script":"76a914ac64ed9c139e44fd8d1d9ad28d1d08fc8a8f70f888ac" - }, - { - "satoshis":3010000, - "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"f9840db5cc0479fcd40701543af5db8ba6f127f8f4f0c04752f69278f436ea02", - "version":1, - "inputs":[ - { - "prevTxId":"3cc19e761e7dda2dcbd3721eeb4190d2a7705b23341451d80f0307d09de9453b", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"48304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c463012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"72 0x304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c46301 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"4af13bec6fc4592a3ceef4a5cbe8bf244352e65f455f23739098e70bcf87cc87", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"48304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c5012103803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4", - "scriptString":"72 0x304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c501 33 0x03803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4" - } - ], - "outputs":[ - { - "satoshis":3530000, - "script":"76a914bc1e95774ee2e36d2687714da14551132f0588b088ac" - }, - { - "satoshis":3000000, - "script":"76a914859819cb59368e07d4c95b5221fa4c466d66694988ac" - } - ], - "nLockTime":0 - }, - { - "hash":"48464b4a6f6f126c220ac43159f1ae9b6e516702126d00762c335d9deb6563ea", - "version":1, - "inputs":[ - { - "prevTxId":"724cb431495d098611b6a8db1c89cfb2a26a047e6078a7563e3b4fbc7fce4878", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"483045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a49012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"72 0x3045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a4901 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"92ee19235af75a41531fe776a22183c111ca92375d7f1260563d30148ec0330e", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"483045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc0121036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0", - "scriptString":"72 0x3045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc01 33 0x036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0" - } - ], - "outputs":[ - { - "satoshis":3620000, - "script":"76a9144cc35fc2651b5b3e4f22dfa9b6ebef0ca1797fb088ac" - }, - { - "satoshis":3000000, - "script":"76a91449452bed77744157799ba71fdb43efbd66968ad188ac" - } - ], - "nLockTime":0 - }, - { - "hash":"54b986c38ae88a0fdf5efb43d1f8db2d0c1331e746d25d676bc422e93cc1ff67", - "version":1, - "inputs":[ - { - "prevTxId":"243f250da5709bb5f1d2f5a8c739e8e79e4d1ea0cf64c1db8d0804882cc56c2a", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"483045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a2012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"72 0x3045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a201 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"625c94db4296b477f81c1beaa2294befb56b77afd92c4333a3ec17774b2f2636", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"483045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e73149940121022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374", - "scriptString":"72 0x3045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e731499401 33 0x022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374" - } - ], - "outputs":[ - { - "satoshis":3000000, - "script":"76a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac" - }, - { - "satoshis":3750000, - "script":"76a9145ab29618ded8892f8189ca3ce81bef83d3ddda1688ac" - } - ], - "nLockTime":0 - }, - { - "hash":"8422b9cdd10e63b7daf4c5a5ac6958c50d1f03f51bd76d1b0e1379c89110f354", - "version":1, - "inputs":[ - { - "prevTxId":"dd9a9e07e138d3afc48940b8bff19d4f0b70ca398fbb3743be77624795e524d7", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"483045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c177040121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a", - "scriptString":"72 0x3045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c1770401 33 0x023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a" - }, - { - "prevTxId":"eda4295c32503bba91f10e85987add5d89d1fc46dd51a8aaf471229e73fb40ff", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"4830450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601210363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568e", - "scriptString":"72 0x30450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601 33 0x0363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568e" - } - ], - "outputs":[ - { - "satoshis":3940000, - "script":"76a914b0c1cda106bb5085bd9c0c9982773c7bd066fabc88ac" - }, - { - "satoshis":3000000, - "script":"76a914859819cb59368e07d4c95b5221fa4c466d66694988ac" - } - ], - "nLockTime":0 - }, - { - "hash":"0172e18055af32e502eb6d29e2d7700747c9938de5c145ab652bc9999c51fbd9", - "version":1, - "inputs":[ - { - "prevTxId":"ef87eb8f58c7f3919b5f50509aef2954f45c0033b81b0dbc391649d9ee5bb9a9", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"493046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"73 0x3046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f01 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"eff4add214c36398733d071cddd1934c8406f443d5e9c6fbef9dfe22d7f0aa8e", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"47304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501210251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438b", - "scriptString":"71 0x304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501 33 0x0251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438b" - } - ], - "outputs":[ - { - "satoshis":3010000, - "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" - }, - { - "satoshis":2010000, - "script":"76a914b27f37b7cee282e7890f4f6df9b49574f35e855288ac" - } - ], - "nLockTime":0 - }, - { - "hash":"040efc4e5a76a012626d64106c14c9fcacc451061bb105c057d25a9020f67237", - "version":1, - "inputs":[ - { - "prevTxId":"910755c154c0225f1557dce40600c356d9ad9d04ddc78f68f0d51b5b6acbdefa", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"48304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc0121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f", - "scriptString":"72 0x304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc01 33 0x032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f" - }, - { - "prevTxId":"c3ac3f49eb2c815bbbc5262597823bcdd0239ce939185afe61521d5b58d09e56", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"48304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b4012102bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0e", - "scriptString":"72 0x304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b401 33 0x02bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0e" - } - ], - "outputs":[ - { - "satoshis":3010000, - "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" - }, - { - "satoshis":1330000, - "script":"76a914a6a0900e3c77496dc68be8ee130a21b446b8266588ac" - } - ], - "nLockTime":0 - }, - { - "hash":"6d0d9d9fefa0abe4892a304b6ea0da54a7e2fc87d9b8cf32e68e868f045dc955", - "version":1, - "inputs":[ - { - "prevTxId":"db657284898156cb93043002aac42b2ea2c0a4d11545883c1c62b387f80d9d3d", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"483045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a10121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"72 0x3045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a101 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"2e43bfe37671db465068fdd1c5e9d0b4e3333b681b5712e71ee2bafc65c9f670", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"483045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801210221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162", - "scriptString":"72 0x3045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801 33 0x0221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162" - } - ], - "outputs":[ - { - "satoshis":3010000, - "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" - }, - { - "satoshis":2130000, - "script":"76a91447830d334d04acd62668904b6fab06a90742e75088ac" - } - ], - "nLockTime":0 - }, - { - "hash":"cb44de025ed8fb7dab371789bd8328c7df7916058556ec0cd32bd856e3acdc86", - "version":1, - "inputs":[ - { - "prevTxId":"f2511b69a8d67a90fb0d4401e77ca8994bb31af8c3d127a63d6257b58f31482e", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"493046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc980121020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988", - "scriptString":"73 0x3046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc9801 33 0x020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988" - }, - { - "prevTxId":"cb3e9e38e96e41093ad3b1ccbda31e2a026fbdb8a6e93e28f329a02ac9095f67", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"48304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"72 0x304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a01 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - } - ], - "outputs":[ - { - "satoshis":3970000, - "script":"76a914449c3ac7336a78f0c6401f51710949005d2c7ffa88ac" - }, - { - "satoshis":3000000, - "script":"76a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac" - } - ], - "nLockTime":0 - }, - { - "hash":"69910ceb1bdb1551d5fef5979e698c665e1d5c8d365c3d9a0925bf05631e8ab0", - "version":1, - "inputs":[ - { - "prevTxId":"5a272f55c0bf54644d4a762f15b511b7b948ae9f51467e2c4a395ee62c2e2333", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"493046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", - "scriptString":"73 0x3046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c01 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" - }, - { - "prevTxId":"3a41829d9f0b8840afea4fca51c615f82f2167c64a22e9a4eb0ade9e4520fcf7", - "outputIndex":1, - "sequenceNumber":4294967295, - "script":"493046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b42012102078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477", - "scriptString":"73 0x3046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b4201 33 0x02078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477" - } - ], - "outputs":[ - { - "satoshis":3210000, - "script":"76a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac" - }, - { - "satoshis":2740000, - "script":"76a9147bdb65a92af2520836f77e5ebccc697d814149ce88ac" - } - ], - "nLockTime":0 - }, - { - "hash":"ca62089ca56d89d36f53d84bc035c839ab20e7d9284e3f93fb4cb408057b4601", - "version":1, - "inputs":[ - { - "prevTxId":"3de456aa0c4513eb67f431a1508bf6ad803e23d194a426fe335ec14201bce9da", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"493046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c9609442012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", - "scriptString":"73 0x3046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c960944201 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" - }, - { - "prevTxId":"f1e8f3e838d349c84221351bc5607b3be14a28e1f8781e67a9727b2007c20469", - "outputIndex":0, - "sequenceNumber":4294967295, - "script":"493046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d714012103dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2", - "scriptString":"73 0x3046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d71401 33 0x03dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2" - } - ], - "outputs":[ - { - "satoshis":3620000, - "script":"76a91467a341d7fe4de6a810c182ed27a09554e0b4405d88ac" - }, - { - "satoshis":3000000, - "script":"76a914f7f1f64a590896dccfb869ced060f058007f388b88ac" - } - ], - "nLockTime":0 - } - ] -} diff --git a/test/data/contract-hello.lua b/test/data/contract-hello.lua deleted file mode 100644 index 566760e..0000000 --- a/test/data/contract-hello.lua +++ /dev/null @@ -1,47 +0,0 @@ -mylib = require "mylib" ---脚本中必须以`mylib = require "mylib"`开头,注意一定要放在第一行,第一行如果留空会报异常。 - ---定义合约调用事件 -METHOD = { - CHECK_HELLOWORLD = 0x17, - SEND_HELLOWORLD = 0x18 -} - ---参考[4.3 API调试方法实例] ---用于输出log信息至文件 -LogMsg = function (msg) - local logTable = { - key = 0, - length = string.len(msg), - value = msg - } - mylib.LogPrint(logTable) -end - ---------------------------------------------------- - -Check = function() - LogMsg("Run CHECK_HELLOWORLD Method") -end - -Send = function() - LogMsg("Run SEND_HELLOWORLD Method") -end - ---参考[4.2开发常用方法] ---智能合约入口 -Main = function() - assert(#contract >=2, "Param length error (<2): " ..#contract ) - assert(contract[1] == 0xf0, "Param MagicNo error (~=0xf0): " .. contract[1]) - - if contract[2] == METHOD.CHECK_HELLOWORLD then - Check() - elseif contract[2] == METHOD.SEND_HELLOWORLD then - Send() - else - error('method# '..string.format("%02x", contract[2])..' not found') - end -end - -Main() - diff --git a/test/data/ecdsa.json b/test/data/ecdsa.json deleted file mode 100644 index 67ccd37..0000000 --- a/test/data/ecdsa.json +++ /dev/null @@ -1,230 +0,0 @@ -{ - "valid": [ - { - "d": "01", - "k": "ec633bd56a5774a0940cb97e27a9e4e51dc94af737596a0c5cbb3d30332d92a5", - "message": "Everything should be made as simple as possible, but not simpler.", - "i": 0, - "signature": { - "r": "23362334225185207751494092901091441011938859014081160902781146257181456271561", - "s": "50433721247292933944369538617440297985091596895097604618403996029256432099938" - } - }, - { - "d": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", - "k": "9dc74cbfd383980fb4ae5d2680acddac9dac956dca65a28c80ac9c847c2374e4", - "message": "Equations are more important to me, because politics is for the present, but an equation is something for eternity.", - "i": 0, - "signature": { - "r": "38341707918488238920692284707283974715538935465589664377561695343399725051885", - "s": "3180566392414476763164587487324397066658063772201694230600609996154610926757" - } - }, - { - "d": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", - "k": "fd27071f01648ebbdd3e1cfbae48facc9fa97edc43bbbc9a7fdc28eae13296f5", - "message": "Not only is the Universe stranger than we think, it is stranger than we can think.", - "i": 0, - "signature": { - "r": "115464191557905790016094131873849783294273568009648050793030031933291767741904", - "s": "50562520307781850052192542766631199590053690478900449960232079510155113443971" - } - }, - { - "d": "0000000000000000000000000000000000000000000000000000000000000001", - "k": "f0cd2ba5fc7c183de589f6416220a36775a146740798756d8d949f7166dcc87f", - "message": "How wonderful that we have met with a paradox. Now we have some hope of making progress.", - "i": 1, - "signature": { - "r": "87230998027579607140680851455601772643840468630989315269459846730712163783123", - "s": "53231320085894623106179381504478252331065330583563809963303318469380290929875" - } - }, - { - "d": "69ec59eaa1f4f2e36b639716b7c30ca86d9a5375c7b38d8918bd9c0ebc80ba64", - "k": "6bb4a594ad57c1aa22dbe991a9d8501daf4688bf50a4892ef21bd7c711afda97", - "message": "Computer science is no more about computers than astronomy is about telescopes.", - "i": 0, - "signature": { - "r": "51348483531757779992459563033975330355971795607481991320287437101831125115997", - "s": "6277080015686056199074771961940657638578000617958603212944619747099038735862" - } - }, - { - "d": "00000000000000000000000000007246174ab1e92e9149c6e446fe194d072637", - "k": "097b5c8ee22c3ea78a4d3635e0ff6fe85a1eb92ce317ded90b9e71aab2b861cb", - "message": "...if you aren't, at any given time, scandalized by code you wrote five or even three years ago, you're not learning anywhere near enough", - "i": 1, - "signature": { - "r": "113979859486826658566290715281614250298918272782414232881639314569529560769671", - "s": "6517071009538626957379450615706485096874328019806177698938278220732027419959" - } - }, - { - "d": "000000000000000000000000000000000000000000056916d0f9b31dc9b637f3", - "k": "19355c36c8cbcdfb2382e23b194b79f8c97bf650040fc7728dfbf6b39a97c25b", - "message": "The question of whether computers can think is like the question of whether submarines can swim.", - "i": 1, - "signature": { - "r": "93122007060065279508564838030979550535085999589142852106617159184757394422777", - "s": "3078539468410661027472930027406594684630312677495124015420811882501887769839" - } - } - ], - "invalid": { - "sigError": [ - { - "description": "The wrong signature", - "exception": "Invalid signature", - "d": "01", - "message": "foo", - "signature": { - "r": "38341707918488238920692284707283974715538935465589664377561695343399725051885", - "s": "3180566392414476763164587487324397066658063772201694230600609996154610926757" - } - }, - { - "description": "Invalid r value (< 0)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "-1", - "s": "2" - } - }, - { - "description": "Invalid r value (== 0)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "0", - "s": "2" - } - }, - { - "description": "Invalid r value (>= n)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "115792089237316195423570985008687907852837564279074904382605163141518161494337", - "s": "2" - } - }, - { - "description": "Invalid s value (< 0)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "2", - "s": "-1" - } - }, - { - "description": "Invalid s value (== 0)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "2", - "s": "0" - } - }, - { - "description": "Invalid s value (>= n)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "2", - "s": "115792089237316195423570985008687907852837564279074904382605163141518161494337" - } - }, - { - "description": "Invalid r, s values (r = s = -n)", - "exception": "r and s not in range", - "d": "01", - "message": "foo", - "signature": { - "r": "-115792089237316195423570985008687907852837564279074904382605163141518161494337", - "s": "-115792089237316195423570985008687907852837564279074904382605163141518161494337" - } - } - ] - }, - "deterministicK": [ - { - "message": "test data", - "privkey": "fee0a1f7afebf9d2a5a80c0c98a31c709681cce195cbcd06342b517970c0be1e", - "k_bad00": "fcce1de7a9bcd6b2d3defade6afa1913fb9229e3b7ddf4749b55c4848b2a196e", - "k_bad01": "727fbcb59eb48b1d7d46f95a04991fc512eb9dbf9105628e3aec87428df28fd8", - "k_bad15": "398f0e2c9f79728f7b3d84d447ac3a86d8b2083c8f234a0ffa9c4043d68bd258" - }, - { - "message": "Everything should be made as simple as possible, but not simpler.", - "privkey": "0000000000000000000000000000000000000000000000000000000000000001", - "k_bad00": "ec633bd56a5774a0940cb97e27a9e4e51dc94af737596a0c5cbb3d30332d92a5", - "k_bad01": "df55b6d1b5c48184622b0ead41a0e02bfa5ac3ebdb4c34701454e80aabf36f56", - "k_bad15": "def007a9a3c2f7c769c75da9d47f2af84075af95cadd1407393dc1e26086ef87" - }, - { - "message": "Satoshi Nakamoto", - "privkey": "0000000000000000000000000000000000000000000000000000000000000002", - "k_bad00": "d3edc1b8224e953f6ee05c8bbf7ae228f461030e47caf97cde91430b4607405e", - "k_bad01": "f86d8e43c09a6a83953f0ab6d0af59fb7446b4660119902e9967067596b58374", - "k_bad15": "241d1f57d6cfd2f73b1ada7907b199951f95ef5ad362b13aed84009656e0254a" - }, - { - "message": "Diffie Hellman", - "privkey": "7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f", - "k_bad00": "c378a41cb17dce12340788dd3503635f54f894c306d52f6e9bc4b8f18d27afcc", - "k_bad01": "90756c96fef41152ac9abe08819c4e95f16da2af472880192c69a2b7bac29114", - "k_bad15": "7b3f53300ab0ccd0f698f4d67db87c44cf3e9e513d9df61137256652b2e94e7c" - }, - { - "message": "Japan", - "privkey": "8080808080808080808080808080808080808080808080808080808080808080", - "k_bad00": "f471e61b51d2d8db78f3dae19d973616f57cdc54caaa81c269394b8c34edcf59", - "k_bad01": "6819d85b9730acc876fdf59e162bf309e9f63dd35550edf20869d23c2f3e6d17", - "k_bad15": "d8e8bae3ee330a198d1f5e00ad7c5f9ed7c24c357c0a004322abca5d9cd17847" - }, - { - "message": "Bitcoin", - "privkey": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", - "k_bad00": "36c848ffb2cbecc5422c33a994955b807665317c1ce2a0f59c689321aaa631cc", - "k_bad01": "4ed8de1ec952a4f5b3bd79d1ff96446bcd45cabb00fc6ca127183e14671bcb85", - "k_bad15": "56b6f47babc1662c011d3b1f93aa51a6e9b5f6512e9f2e16821a238d450a31f8" - }, - { - "message": "i2FLPP8WEus5WPjpoHwheXOMSobUJVaZM1JPMQZq", - "privkey": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", - "k_bad00": "6e9b434fcc6bbb081a0463c094356b47d62d7efae7da9c518ed7bac23f4e2ed6", - "k_bad01": "ae5323ae338d6117ce8520a43b92eacd2ea1312ae514d53d8e34010154c593bb", - "k_bad15": "3eaa1b61d1b8ab2f1ca71219c399f2b8b3defa624719f1e96fe3957628c2c4ea" - }, - { - "message": "lEE55EJNP7aLrMtjkeJKKux4Yg0E8E1SAJnWTCEh", - "privkey": "3881e5286abc580bb6139fe8e83d7c8271c6fe5e5c2d640c1f0ed0e1ee37edc9", - "k_bad00": "5b606665a16da29cc1c5411d744ab554640479dd8abd3c04ff23bd6b302e7034", - "k_bad01": "f8b25263152c042807c992eacd2ac2cc5790d1e9957c394f77ea368e3d9923bd", - "k_bad15": "ea624578f7e7964ac1d84adb5b5087dd14f0ee78b49072aa19051cc15dab6f33" - }, - { - "message": "2SaVPvhxkAPrayIVKcsoQO5DKA8Uv5X/esZFlf+y", - "privkey": "7259dff07922de7f9c4c5720d68c9745e230b32508c497dd24cb95ef18856631", - "k_bad00": "3ab6c19ab5d3aea6aa0c6da37516b1d6e28e3985019b3adb388714e8f536686b", - "k_bad01": "19af21b05004b0ce9cdca82458a371a9d2cf0dc35a813108c557b551c08eb52e", - "k_bad15": "117a32665fca1b7137a91c4739ac5719fec0cf2e146f40f8e7c21b45a07ebc6a" - }, - { - "message": "00A0OwO2THi7j5Z/jp0FmN6nn7N/DQd6eBnCS+/b", - "privkey": "0d6ea45d62b334777d6995052965c795a4f8506044b4fd7dc59c15656a28f7aa", - "k_bad00": "79487de0c8799158294d94c0eb92ee4b567e4dc7ca18addc86e49d31ce1d2db6", - "k_bad01": "9561d2401164a48a8f600882753b3105ebdd35e2358f4f808c4f549c91490009", - "k_bad15": "b0d273634129ff4dbdf0df317d4062a1dbc58818f88878ffdb4ec511c77976c0" - } - ] -} diff --git a/test/data/merkleblocks.js b/test/data/merkleblocks.js deleted file mode 100644 index c5be8d2..0000000 --- a/test/data/merkleblocks.js +++ /dev/null @@ -1,486 +0,0 @@ -'use strict'; - -module.exports = { - TXHEX: [ - [ // From Mainnet Block 100014 - // From: http://btc.blockr.io/api/v1/tx/raw/652b0aa4cf4f17bdb31f7a1d308331bba91f3b3cbf8f39c9cb5e19d4015b9f01 - "0100000001834537b2f1ce8ef9373a258e10545ce5a50b758df616cd4356e0032554ebd3c4000000008b483045022100e68f422dd7c34fdce11eeb4509ddae38201773dd62f284e8aa9d96f85099d0b002202243bd399ff96b649a0fad05fa759d6a882f0af8c90cf7632c2840c29070aec20141045e58067e815c2f464c6a2a15f987758374203895710c2d452442e28496ff38ba8f5fd901dc20e29e88477167fe4fc299bf818fd0d9e1632d467b2a3d9503b1aaffffffff0280d7e636030000001976a914f34c3e10eb387efe872acb614c89e78bfca7815d88ac404b4c00000000001976a914a84e272933aaf87e1715d7786c51dfaeb5b65a6f88ac00000000" - ], - ], - HEX: [ - // Mainnet Block 100014 - "01000000" + // Version - "82bb869cf3a793432a66e826e05a6fc37469f8efb7421dc88067010000000000" + // prevHash - "7f16c5962e8bd963659c793ce370d95f093bc7e367117b3c30c1f8fdd0d97287" + // MerkleRoot - "76381b4d" + // Time - "4c86041b" + // Bits - "554b8529" + // Nonce - "07000000" + // Transaction Count - "04" + // Hash Count - "3612262624047ee87660be1a707519a443b1c1ce3d248cbfc6c15870f6c5daa2" + // Hash1 - "019f5b01d4195ecbc9398fbf3c3b1fa9bb3183301d7a1fb3bd174fcfa40a2b65" + // Hash2 - "41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068" + // Hash3 - "20d2a7bc994987302e5b1ac80fc425fe25f8b63169ea78e68fbaaefa59379bbf" + // Hash4 - "01" + // Num Flag Bytes - "1d" // Flags - ], - JSON: [ - { // Mainnet Block 100014 - header: { - hash: "000000000000b731f2eef9e8c63173adfb07e41bd53eb0ef0a6b720d6cb6dea4", - version: 1, - prevHash: "0000000000016780c81d42b7eff86974c36f5ae026e8662a4393a7f39c86bb82", - merkleRoot: "8772d9d0fdf8c1303c7b1167e3c73b095fd970e33c799c6563d98b2e96c5167f", - time: 1293629558, - bits: 453281356, - nonce: 696601429 - }, - numTransactions: 7, - hashes: [ - "3612262624047ee87660be1a707519a443b1c1ce3d248cbfc6c15870f6c5daa2", - "019f5b01d4195ecbc9398fbf3c3b1fa9bb3183301d7a1fb3bd174fcfa40a2b65", - "41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068", - "20d2a7bc994987302e5b1ac80fc425fe25f8b63169ea78e68fbaaefa59379bbf" - ], - flags: [ 29 ] - }, - { // Mainnet Block 12363 - header: { - hash: "00000000ae81d8be56fcad40f7b2ca03612a9ab681ca5bc6628ab3c2d914ef9a", - version: 1, - prevHash: "00000000acc3e6a055e05edc7cd0cfac6187cd73adc3c06d408d05c95edaaef8", - merkleRoot: "67313e7a73b62faffe9380578a1a96727c1f0af62e61eb8aa050064007a008d0", - time: 1240800408, - nonce: 2506812214, - bits: 486604799, - }, - numTransactions: 1, - hashes: [ - "d008a007400650a08aeb612ef60a1f7c72961a8a578093feaf2fb6737a3e3167" - ], - flags: [ 0 ] - }, - { // Mainnet Block 280472 - flags : [ - 255, 85, 218, 225, 90, 173, 229, 43, 183, 195, 213, 229, 43, 108, 43, - 219, 226, 215, 217, 226, 61, 92, 253, 92, 237, 134, 215, 170, 174, 182, - 170, 237, 220, 251, 106, 235, 109, 109, 253, 219, 58, 159, 182, 221, - 190, 189, 181, 126, 251, 223, 223, 254, 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, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 15 - ], - numTransactions : 1159, - hashes : [ - "ad6c32eef89f29f29d43d14500dcb0ac35cba42626244a4dbded64e27d3cdbe4", - "31878bc4a8004d4d2457f7c93571a927de9f22fcacca0356f96fbed5500e1a93", - "252931be626437e48a264aac1f7d178e1ffe8e1c94812e4970f7ab19dfadf074", - "53bd172839306e615ee24552b3ff3c8e2ce2e5a9a6d0c9d1160f1c4bcd73cfde", - "21f3e6be36f0c770938b63505ee2a6065cf9ba5b3ba0d9e115ef9081fb386554", - "7b5bff18588f2f82c130ef92351b289d4a2e6a79dfd2c969ab626fe41d5f3341", - "4672cdcffcd1f3eb4ece0e6558d3d6cef9f42a142df6d46fa6daa4efe5e25a4c", - "f2ba2db60d57f29734fcf98099391a1404c5c1399eb87a6c00f8df9974d1e85d", - "25f5dea2941e8ff493ac7810a4e11cc2846720633469479e8ae29eecee0b2cd2", - "08c71bc1ea3583602db17a5681189f346472447df48bb0254eca8bcdc0e7f2fe", - "42ccdd6e22c0f9da824c6d036f02fe0e5d33368bfa701567bab3fb49acbd9d12", - "971b294ae8678ccc2b1e16c22eb44ded5ef1738dc85d509998982c8d6d742ac5", - "0332bacb6ca645b25682cda96b72c990729e2cf58b0845dc1364cf9785cd09de", - "26ea9fe5be9baddfa879b2e756d71f446779efceef157de30bf799bb632996d0", - "7abcc87284e324bb22d9f2f3365a1745dc9af5e525b659ed60f62d948883f4f5", - "cbcd1f8f2b6dab1253e74d15d1f04c95955e485e5fe462064291d88f84180578", - "fb703bcbdb66148eedb309291609b4e881e94bb9ec8dde1372fa11756ca2e7c5", - "8bd19b733b82e2d02801a55bfd59e262066704c5b09799391224c70862fabfa6", - "ceaeaa83b77263ca910511d385392613695c4882c7fb018c9d37a246b56132e8", - "8c1003d7a5086e57dbd29667668140c1624cc96e96ca97c60f5deb94f15e9a57", - "85945287f9867b8402a287571ea9849fdd5b381873bfc0a6ddd823ef6058f6a5", - "b8d9bb4aea6db726f91cc37040723de9b69048dc725cd0316f7ec7dc10c6d276", - "be9338992c7d0ec10a6364ab8afcde1cf42d45360cc1707208b8d29315742b84", - "7d8b1015509a837ca028c3ec40cddb8e59a96c036e30d18ce84922b8f34e0d1f", - "e9e502636caaa0aa6b978571e3facd5f7a25d25df889583c54e959331051810d", - "489a38d2430ebd638f945bbbc3117345dd2bda666be09bcf454b09272fcc6754", - "b0fe9b242568bbfdbd90932db48dfc42beb4ebdba110b4d7e98b198dfdca4a20", - "0518e5cec967cfdd27d3b3791202bc2e0520cce858f632da776caba97828cdc8", - "97f60954c04de156ceec938437b0eacacf9105bfbb9ea604852eb6454cbbb24d", - "946e2b6387d87d49c151ac2969877410a8f1d65fecc5a99071ec751a6fd7fe6f", - "34d717eb07d2845d9dc1aa0cd620e3ea8d7bd2f25daacc8a058eb9c6a393a896", - "5993d871822b19dfdaa04b7911a790327297132d063f0ce2112323a938904e1c", - "b46666bf125488c07d62af75af71661edc7ef83f17df71bde09c3ceaa574521f", - "6bb9ebc3d94a4d3d528afec8d79f13c5179248cc474d13a3d6f9d279afce0fd8", - "52da5e469bacd7282e515a65a6ca6599bcc8b5e56f7293121b8db41c22483133", - "d2d511a18e5e1a7c2fe485fcd6b3263cec624b1a4e182c8987404adf6434b652", - "9b2fe6183ee437f4c7ce0e368df73256d684b71f48f8f308f62b856604360581", - "30e3e6b952ccd05c32a6c5efefe908fab145a9d7676366c699bd521edd57424c", - "b60c41d49f1c8bb492449c76f63b64a42130579083d5dbfea8377a4a968aa5f1", - "731889fdb1d00f8bd5035071552ee432a0752822d6aca4c35d8f7f14d98b415c", - "b8b7fe24a3b116caab6bc686fb4dd9013027aa349e6e14cdd229c01e9a785444", - "26a8870eaa040d6e0489ee5028d1474d3a895e049f336c7e9ba531e24400393b", - "2a65c6d121dbc11d1c9e58ceedbeee70ff7f6f4c8cfaf5515b9e41c335ea9f03", - "c3724ee9b9c2897fda1c56ce9135ce95eacbb7f9e45a46882e082f2b50b7c19a", - "3168e28ac53cafe312eb0e8bdf454ec77e34390787eab7d78bfd8dfe33640804", - "b461a62a62d6ca50a10b32f09dda4a8f7c18073a86a048634f4331c8c54b4545", - "e9902fd47c94ee0eb0bc3e11836820e1763df3dd5dd0e5da978cbedffa04fbe4", - "01a1d6550ae60519fc796320703a6c3c72e133049845ee6cab9e3850ae6a4274", - "aac3276405f3cadc64a23a1007d85a203135ecb0a656cca11ba7f68ec1d7d8ba", - "cf0a4c57afb757c2a0cbb2d1fd39a10600063bf74695f13a4440fb6e5ade526b", - "feae17a192599d2647adf0218b39ef0e660742349d2395a0b106f6eb2d664796", - "503fc34490ad5de912e86bdb62ccd678d0b9d401cef010d48c935d455364744e", - "fd605fd1f8a121442d09748d3276dd5739a193256c318bce07f29b73e5e2797f", - "270ffccd7a0a1959e1a07d0c2d04cb5b0b1aeaea5abe5b56234c0295718c4269", - "7e7c89a24303966a0b3ec1afa006dec7abc0e46539beb74268534d5721590605", - "2f088d956302164764e6cdcacbcd3ff6545f150fcb2866107c4b4a22dff4444b", - "aa18717fbb5575f3c25195cd59e74c6f096e5622402294900eab58c86ef1f3f9", - "b125a208eb149e923cc70d29248d13549f46f9c353ae99b8818c54f1160efe81", - "d751efaacc03f71d0a306b08b11782d1a002e4211b6905c4524455fd9362bf5f", - "5d67344da8d35bcb0c099e90e9aec2a708a68b6ad9f6b7939cfe1d2eb872a14d", - "ff13ea7bc835d1046c39f50de61e229b154f5b9354e21afdb8202032928c03f9", - "568c957db832e8daa663afb3ebe50f9bc07a546c142a3b8dd8e3ae23c4f3e61b", - "c681f6304af1d4d636ffcc9a511534629f1116dc2209ca33f47aaf0a6a7a38ce", - "822063a0f81c69a738c4596d125847d8d174d33c73d89e5bb10d10e4c8657579", - "bdf5b3f862edd508694af8d64d8eb6dc980de6987f9a5f4012379de6827f4516", - "531177870b5efef4a0985dd48afa13fea0b8e6be87c658d147c2d84e48826e59", - "e523b181cb1aa4d3fcb1f424b609de93bd0a6388cf17a24dcfb76fccc60ecd0c", - "a11e5210eceef1a5dca92d15f08f106061799de1880a84ddd739ad7c162b7023", - "ed61b91c7439b7364820abaffb094bedeb859de42100ceb7a72b098a050fadb6", - "f089c202de5553fc4246fa0d6be72cf54506d7608a153e55806ca1dddfc42764", - "28c3e63756f72b27ae32d07b280bcf1edc13df039361617cb0f29eb17e8559ed", - "a9a1b2b3157d78e642e4b8f534bd1a97a9039ecde41baa1ab0953d7ca527b7d1", - "eece909a9ffaf785c96a29fd2f027048e767d03ca30acfa9813dd99ee3882608", - "fb56466712c8584cb48a5936da28c71773212b9fd2af4c378ccdd498aeefc789", - "4adaa4526cc5f25fd2be1874103da8ce75506d9c05cfadfef3aa684dc9ebc5bc", - "5db5c19d1836da8d44dfcf6a32a9884a39d9b24c1745b7ad07ee90edd165e7ba", - "a85d0a2d898ef48ca6ab120a86c6f58b11091b7f7c4f6faa931d0594db4ea695", - "3514809d3cd2cfc96f5c79e9d08533a7a7238d7ea29d07b6a66be8cdbb3b159c", - "3987a7cff18d70cfa10342c4bc714cd540d5eadcf553af4a93a431209ae0f4f2", - "288bc3cb0fdec441494ca970901cb84e807f522743eb9e53fb7a6b171b1f00df", - "356de5250f43bb8a97a079912fb6be18df2f50e928bff2c37121c01ebcf88c9d", - "dbd2daea97a3a335afc5a2c7207ca176cf01ba40caff06a823e646736d71f2a5", - "6be37d83809273e581a2b373a1778471e33599b695fdf3b7791f65030ef1b38a", - "c7c339fd0998e022c606b02b421031d25a319682b3fd7ff41a48d630b1b8bc9c", - "eeee90adecccafff27ec24f264399190afef7e4b78e6f2f92f0c2c7c47aabe3e", - "79cf1aed207b3603b197630c9d282a8b36de4a92ddb96c1d3ca61efa1c4b7021", - "5553b7a0fcb823ec9e5252c194fe5d8df716cef98bada8a50819f89989a00931", - "a7c060926f5b3219a7b7e131ab6547bd64809cf75b24053952a87e324addc8ac", - "e7649498c748a4cd00221ae6f729e16e29e4fd27d9c28d5ed95bcc6f00377872", - "998a4ead843602e37a210823c221b9755a7a21a7d5283e5db54bac51df16c3ac", - "3fbce6ff59cbb982e3df5ce2917274ca87828f811083eab4b41534d34472dec7", - "b9b417bd9a55634ca616edc371c9e8c09cb0611626b84ce3acfeeb32a1f2627f", - "c303c7dc74f66c512cc2d165ef89d57cee257359b3ee0e00edb3737348f88068", - "07aa9856735c0110c2f8190d3be1aab49f6c6edf4bf231c94428b5ca7509b91d", - "cd59eb7e808f543925e6ab47f794f0bcfc9d91fcb7758b7fa1df3abfbc3c3e9b", - "c549035e1d22855eb6c2bf371b2ac5846e0bef1d0f4700a5192ddc88de27a97a", - "0ac1249b989f412d714daf732137498f9b4bed4d790aae420e9b9b5b6022d6fc", - "83f5604c6f2c8fe5bfbd274f51ba754610b565fa93dd558771787728d1e17d19", - "b106d7fdeab23c1886978f7de80ef1ee2395177cbf26fa5940173369fa42b2dc", - "44a95badbd41ec197043f6907b32d759d935c3fe68af3d5080672cfcfad11d98", - "79843495d689579abe43332a2d0c265abe42dbe8fa94f822d2e6702af0e0a0a9", - "80ea7ea2beefedf6abf2c085a9c2f89ff9ae0da7f42bc1d1478ff641d449181a", - "67657bb03abea359ffc6166e12589162ecb30a5c37a0886e14b20d481652bdae", - "e2095adc5a1dfbf89b28dea1b3cf2d726984fa5343943513dba7b66c347321d6", - "24fa9fa1f60cda5b002b453c79600c458bc513f4f7ea31f2ee40af9a5b0c5533", - "3eeecf1563fc3cee96fc92dac5eba03fc95a7de585f402ef1c6125988393f8d4", - "e64d7d4bf18f87ac4c638b821bab5615fcfca45cfa2470d3e12693b5413618d8", - "2828ce70f254c1f8e18d92c4f28206fd9f2b42f3be1d67405df64d96324939b9", - "f2b24eed42be177653d2f95ec1885d78f3ef1ce32a0088bc4fa2671976156e4c", - "0946f3d99392b7161cd29c0e84acbabbcd7f5f9d58d3288b21151f8170239cf1", - "31290c1047285ab1a97728ad4e51896f890c18452a4fef561023b1aa58d8d197", - "82e79c4ef466cad39b3e08d4b3d05cfba17ea58a5ad4c2d2e0539114bcba88f1", - "8c35a97de4a9831eb2415be5a9883e3477cdf1cd19ed6a24984fa1b45d7e9f90", - "99d0d7783bcb87cd7e976fa6fdc28fd58dd688b087142d9767e432c1f298a261", - "5218233bba9cbc0527e131a3d9d5ea290821ddf58eb8c9b52918f5654804a0a5", - "f4fe4e1a4c22ad8d9725c8cf04b0b509a0ada3458da3ff3c12cbaa389cf8638f", - "ce133d2fa135f4f102b368cfd5ce02078dec518c9b170f4dbcc3ae823b16680f", - "8276e57b19b15fa200e0bf2cc3f221793a14e41b5a8eb3d5155be747747565f1", - "e08977c0b9b3b6d1c9f0dd33e075e9565b1ea67fdfb968a297d643ea56ede5a4", - "34df12dc797251aedb4196d1ed2a67e5febee79f89b35c503ceefabbfba43544", - "336454288c2a05f22211a3e7522624ba70fc3ad381ad43aa227185077be4806c", - "51975d2024c1eeae7d2b44a12a1af2891d234dcee2d0ff500ae03d341b57880b", - "02bba57b27d557180e9edf91a09950cd2340e8fb44a5cb787c5d0f3011a542f3", - "908420fed38c9785eebccf1204e07e3f9d4434ab299342ba489daec0cbf686d7", - "d187e9b16d142e22522ec7098c3412b61fecdf98f1cca554ab4c1a1d2ab489e1", - "7249f156f19b30541f6c816b5387a26cb803a63b41930f08ba3f0107e31208f6", - "497faeb327567a9af6056ec1a7fdbc8154dff2ebb9896df855a5090eaba2a03d", - "eb51ce48cf06179e1ad3135f8e3c8e6c21d3b856690b8a34f063bd348bcc77f7", - "17e156c54f3efa435e8a2fe19b9b6700dee338090a97599f23810aaf0db00d2a", - "f230f52bb22cc4af6373065cb15fc91ca1f6c74eaac3ccc6c1b88553aed581b2", - "bf2c9b5a78e3b1ef95c0fcb8efd85d6f3a3cb594f03b7917ac192023d0c7da30", - "ed438001c7fbd49ea89d1b6116e8ce8da19810631cb045d7093d2ef43ba8a486", - "f99e2575f6d7532e0dd296d126768942e5820a99428023959cd1505e239224fe", - "7147f6dd56c363a1f32cfe475c0a612b65d359154b93866fe516880537990f4e", - "0af258f3304e644b31abfd08b6fcc21159a7729712ed8d2e0856d368f54a4269", - "77608ddabf1f39cec2b3f9cb4cc4d36fd1b04f00a5765c779ee342e4d3c6e5ae", - "e74c05c43ecfb8e7182a334823ee134da43e2e1ab4f92e9c6f3e5e813f30e6d3", - "2b952ea819ab78b34136e4d3d698ca41a58d00e558675cffed4206a93a5f5ef9", - "8e82ae850e62ed480e4a55512dedbd065fb553a419214c87790420d8d2e1b3c8", - "8c560c3b6047002cef9654937b2c8e98fbf741b36e423bce5ff1ede18c7b43d2", - "99a9daa989002fed2ad6819b3c95fe0b04fd9ae0164eafe6f84c7dde3dac66d5", - "a599224017b1f90d4d94180a2cb782f95ca75b65b946522b52c035b13a5d518a", - "692186550a90b67eb0d057f95ca2e194c32222737a44e7ff64b840f7ef2f9ec6", - "3a1532b43af74c7ff2deceee0aea597d63b058fa9af5f491206886060adbbdd9", - "3b744e52f07254f53b70e85389e484c570eb476bea247e1e706ca3b357ccb113", - "7f9d11ef6cb1d0d78aa151aa4c0c6faf8a0cd7543751a4c6da40d9d6dd0e9e89", - "fd82c6589a3df264abce32d31578d46551d1c067c6b9316e47c041c303fa24ec", - "94943dd079fb25b56c6d28c00d3d87ba207ff957ea3328c05e53f95eeac4f16c", - "7519a0ea3b65c23d88d30f5cd84a552259e99ae2322a3cfba3314e9987583bb1", - "be599f62b04f2f77d5c844590b7ca1efd8677fc483f4455e7de901d315d56b5b", - "3bc6500d77b4b5e2882e810610ceac4280e87e6171baf242c890b157b1c3020d", - "3251411ad79102964f144282c1a71fa4e953f6afc8897c9622e14746e9c1a476", - "a79e5d72f0ae70cf43d6988742fe75abd45356ae8d42f2c93c933b0608b9ae70", - "c0eb798ad1cccd38bc8bcca1b1d9a03c394f11e513ac77afc16759ad688b847c", - "9dd585798374b2fd53f2ce173399cdd80c482cb432ac78d7b000aaa6e941ef42", - "7de291dacd196f97b4a031cd553082061cf16cb9b4c8544cfbb16cae7bdfb5d9", - "a923a968585828bf9e2d8874e7eb2165968cb4fcd309e383482e5f6c74bdb45c", - "f856c43a55434ed1727ffac57906f44d6ce73c0896a8f28b961dc0a75fa9b394", - "9e00caae373307a3070eafa659bcd614333dc56a834e81e042523f0419decc67", - "b7c1be14d0824b183ec39184a5b7eda29383796b3dea8d38daccfdfc6ae311c6", - "99640304779e8b265f8d8ae495d5bcd4f82927b623cc57cbb347a5c5c27b682d", - "43a8149510152a2967f5d2b16064312d4cb488d1b6866d5258e877b22e2a1f40", - "c0d28c084fc8188e512995263431561e8c1eb4b7842f1ea11a3cb8485151195e", - "3eba131992984494ba739e8dbecfda6c2fdbec127b094dd43d583a7fbaf6378c", - "8932c9acdec6135447870fd3c0ce74f1345f72dbc38942a42bf418045964b34c", - "e35943cb6de6851111b62d722456f589c2619531adf8268e5332da1afe544282", - "4a310270a3ceb81cc8af14e6d6c9e617d66d361e7d8960558f5cae2a061331b4", - "0d4306cf7404111bf247576a15fe0a66cef0417c47d1fd9e576c09650961c2f2", - "1e846b2677d149da1c012b055fe001c279535acdb83dfba6253b21b625d559ec", - "6dd565d87f2a6fd6c4944f38e9a240696454df79f5ea58e9887676fd74cea688", - "f07f97b58b5d4224b0c11e8ee2f3f9314209958c5da578e7db949b0f6542738e", - "14f5c29aae9fc1d709962dea0fee3070e0ac8eaede64d940d2f43a584a23cf5a", - "00268073af8e1f2f82d742be9d13076ca08173f6bcec3d89c96de3d7823a2f03", - "ef583223b4d2bd42387968c349d928a6f329f6f79912261730b52f90f7960bcc", - "23aea669fd0edf1439db8c121847775336b40340d5743d7ce73e3be8fe184a26", - "fbabfb448b25bfb43fb9df1091127e6c15ea3b6662eb714eaf0a167aa67415a8", - "0ebfc4c6fe4ea2b7700ae9132509253166bb215b8800e86a7633295b140c8ac7", - "778dae382d063c92dda40744b1af2063d0ab77ef46bbeebd5ab57686bb87c959", - "982800d89a84ecfc5a01b8d9a96b69448433a920d4713313f59726174f36a8d7", - "9e9dbdfb7f6198dd07e75ed2665130a941baf1b73601f777cafdfbfa59ee176c", - "e3090a666d5af8611fd8ddc7dd9f0290a5e0d0e40f440c1ed6713d41645465e5", - "b5a78ab61b943ebcdb1dc4e0533b68e0310c9bb37ed23f1c4773409c392f214a", - "bb73f7729212748081ac45731c15630ecd89652ad3b2a563de5aa6795ac0494f", - "a12a2ce969ee1d6261eb7be74cbeafdafcc867767e76b3f9433272681cae3939", - "9e9852c0087dcd88f1fac2383e884894611ec3fd19760316da106ab7b4594f17", - "6182ece2e1b252d838e81d52b2000aab1eef0c8b3efc51df77167929dc495a57", - "ae59c591c044e6f24c54662ae1b64b1e75e20510d2229f6b68bbd4547cf13326", - "4ebb82be6043b5122a86cb6b51434fc23082d2197b5eaff824b52e0295e54d80", - "33f559a179624c63ffe1b3739a5fd5825e117a1fd59003a168f9f892d1de3aa0", - "aac18754690516f5ce0e6c8a8974b0f9db560c6abcd943a09bcf3f3818e4a1ba", - "f73ecb180fe4f4107c6c8f4f3f81bdffa3909db577450ad8a10b7e61029b3e11", - "0fd732521ede730dc8bfb58ec1313f370a5887ec67f395dc048e132681a4cb07", - "bdcc038ebf3c3176dcbbd8b6b7bd8c7737ae279caba99e81f569dbeb29857a42", - "46e287c04d6662f4612f8ba3f88e9a129088b21ad83e8847401f9edfe4ab18ba", - "8d70e5307862c2c60c221a3acd586c9169ae54dbe1f2a108328cf84946007fab", - "8e0de399cb79028aceaa634392b64705cf97864e37f8e488effb2fc6f4a46531", - "57c5e60a4f2b3e82d95f9e78bf70d6a3c27d98873a10aa9eab7e2f279af22a38", - "b5f1729e763fb6f4dbf168fe0d20d03e1c39a9378a045891f0764bb800d6d32c", - "6dddabd46c2167fd89f0bb942a4e1405828b400bb3763a542013dadb3f7307ef", - "54fe8d2f742a0b59a33281aa38a2f1803acf36d538702d693f14099654c94551", - "30a2b9320396248bc3ca27e6976a06336f6ed55be72a2fec222ca8925b36ddee", - "2c13bb82bd5236bd32b087a3bfe291fc4829d0f09f2e701113859abd3ea1cc8c", - "67d852403b6ee6b8146c6a52c33d5585a0377fbb240e841fd30f3fe73f5bd165", - "4a863fa1f3602e380ced5b710b0c77c9f69fc7eda0f137c3b48732758c2e1386", - "30e84049ab91ea6716204a27139fcbc57fceea8ecab28e04bbf690e24f558bbd", - "9aa2e2dd7a770399718421f20fe27b2dc9923e9f6b57d1fa5add3617d24bfeab", - "1e31d7c86bf694f8856cb1c869c665baa452d445c9305bf4a709c37fd2665e82", - "61af97100797147e99daee9fd3b867847970b8fd7d95ef1d3bdfc1c7fa8bc949", - "ac049081dcde776e22911e892e05d1069b7795b7bd332cd88f208fbb72960886", - "8683457c0e857617c0ec755f448d306a2fdc1144de8698f1e33c1dda9d8bb964", - "3dff8d5494fa343f49be420f8d4876446a114ddd3475959c6ac26c51b9b01906", - "c41e7a4e855d7df1ea78e713dc1aa6218de3077a42db5662d80db125011d8620", - "baf74f03d301c85890748a90b06addc4bf4d5d008ec0fde0ae07b9bb8f9dd4a1", - "4185ae388931e194b63dc8ef22e51d4f449b759156a1453a387b6dd40447c00c", - "982021842949f144b1317d0b4961a0f2b40e181fa225a4ad87649f4144d2c880", - "b56c39853ee20c6223032e08507e8eb8cb690441e863bb69f6768afd660052b1", - "1a0f05b6165cfa23f19627024f0b37ca549edc203505b41dde07a9b88bbd7535", - "430cfc29ce4b35ad3b8835b12c688d60bd2bc7df1200074b3c539b7da5eb585e", - "774371f57e9ae885e19294de121a520c3001229e106fc596f2940e3ea1ff0ef3", - "47bc2e2bb4a810348ef348e26ac813d6d5a54baa3433f2abd1612b717d3da015", - "4b72a447be4322ba818576dab8a3ba31a9cefc20421770388fd4829ee934f028", - "6fc3d154fe6e2c509113a13f9e969f20499972b826cd15ac33dc1eb6baf7bfd2", - "2d48e4d127a962377c01058c26c61cd87b5345b6f2818463b5e41c711000caf2", - "a2282c6f0cb806627a207ee1d912c66333f9bc33e92127a278c720a4b0a0ad9e", - "9bce3752dc7a13fad93acc8ac931e764ce6c6909ad22bb087ef0b66beb0bb732", - "705436abdbcaa17582fabd4a86d4d2c2dbab89a07b2ec813b2d71a3e21ecfd27", - "3dbfd8fc113f4ac6524f55266cfa9970118bba6c468c15f4e1afde5041fb2fe4", - "7a6558e365bb9b1532cea9883c5560be5d1df01c4ee21f39ef26e85347a07c76", - "cd7bd7b7115b9973f0560584422296992dd5dee7016d5c3e49c88d9635ee4547", - "a48c74a64066aa0013d5cb76ba25ca73bb4f9ad2017214d566cccd71d2ad8f49", - "5a703dd802e7b0cd8660dcd1cdb4cbeca7ddce66ee89648538f1cec7f0e4ae16", - "c2dab8adf040a2fbcbad196d50b2357fb35432f9a4fe09377adc0ef71e0b9f7d", - "02dc0a4d4b25d732c7455547a555067181924632f99b5693397dc636b28423bf", - "6cfc763f0b00b2d469529582b38b6b9608e9406f0b6fb2e2aa2de4197eb16c5a", - "8828a15c1d52c1e3967fd652db870c8cc1a6aad787418c307f415611da3fcf0e", - "7f53dc6e2fdc3a61e5e296e75c2697da21f8f92bc346388f6a17c25ef7686ed6", - "becbaba75af9ace5c4899513cdbb1eca3b016c4c2968154eb0ec3bc5facf6e71", - "3f7859a6b06d096d20bc644889a226eaa5d747d860b9fa0d0cded49bdcbf8fe0", - "cd9250c8c2eb6c28ca2aaabf41d91b18f75edad3e9df82aad70272702fe2feae", - "d56bfb137e6d4150095d242cd0e63fc6cde099a3e670ce9a5d8f2e6ffba77a07", - "b3bd7ec83a8057aa609bb485c4e247e67e4cb923d4764765862db65b6af15307", - "1942bdf5f85eef33c1c64ad92469bf78bf7fac628a22feaf193d86adc62e8b93", - "cd313479b8467c29655be09d63d4c1208fbbd6607a19c9a13f6bf094d28812a4", - "0d31559805703d361e04e48283e62ed21dacebf8104fa7ccbcb5e59d468f70e1", - "ac1e224a387d2d9a6d6ef7c19451af3efa599753b9fe44b4e737b6d2e37fb551", - "9116da1e18ba243f3ed29a76197fa8e2d957d6f11169cc1275709e6cdc4a8756", - "b1ef2f49b0b26ec4ce558f5dec98416cf8bcabb9a8702784f3cdf00a5d676587", - "797aaaa86ab5d64bcc4e34d92eff8f63551e579b8fd66b7f01b662d218740e5f", - "c4e31b52cc3bc49bcaf2c632b9597c8e4f5f066b2bc8692ded5663c756b48387", - "2e4b5491eb23250e5e855acb6417b59da3da9ccdc1217e34cd04ca40030eb464", - "900c4d49c267c2d251768442f29fbc1c2aaef0cdf8f8855a9b68be9d7367f046", - "5f940e3736a9ca25f61c16230165594983a5bb1426789aafa2e24f7b7a127f3c", - "a372e58ff796ed4bc28a27aa04393b17060f97b9fea62272446ef389d534e727", - "799eeb62f4e6d0b192a6b8811913b6781043093853f4ad3dfd80ad40dc13cdf6", - "c5da9d51154df4a5904bb2b582bdbd1111cf720e6f03ef5f97f95423df58e147", - "92b302bc860da5db46234ee558fb1aff62ca70bc2b18f142eb5200131e14bc8a", - "aebf6338cb63544de46b9f45311918232722ca625bee66278ecd2f180b0be5ae", - "9a907c10d6033bc91fb1847766307267b8d029379b9859d9c80c209a7cf082a0", - "de28f5c0d46ad54b57c465d8a9e416b849bfd41472ee7d250a360e4d439b3251", - "f651d87f4cbd99f72a7459cf77d8425031627de145041a1689955adcacc88b60", - "4f8641f49563c14b43285257c71df4c60621a5320b8a0bb575bcdb85c1bc131b", - "0810ddc592b81998e465024698f3898c104ed8d13e9f675497c824a81111a28f", - "49050203987cc982c7ebb2620de5fde348a751e00c05ed358fc6b91ce0067baf", - "37694a5c185d87fab218d8b37c39c094fbe00098e3da83d1986a8e12123b8f72", - "9e6aa46a83ce984bf5fcf16fcc535335e3757c8f06774fa467b1c024140c30af", - "0b259dcf3bbd58a9a1369259cef787ea352a1c0ede4fbef2b7d1c785e9f44a02", - "74dfb52467dc994e6007d2e57900630f2d0e8e4ecc57c9097bf0c0cbd908575f", - "94d44a100ca284444dfb0106efcaf04107908975f2b301aa9bb3dd0b437380c6", - "47b11267b2c7be15ee78e744f2dd90ffd5e7a3c21bd3cf8a52df0e553ccdf9a8", - "8f15cdf786ed0c6df1489e8cd28031d1a3fae8f006ac30602ca9a0ec5725d410", - "110a9949642519b08293304865bf19a95f9590db6db8c0d677491715d7decefd", - "918e80b22117f5e587840cd3f6da607312a8792c4e8194f1a191bcd2f550b16b", - "85f9ac70add31496aa4b4bcc4443bc8c15d377e90af375fffc001b4380a2309c", - "5e57b6a99301201ea691dbfacfd7105c940c0374eabd14150ef09875cf5e5468", - "712093cbd1ad05d632da00dad2306d7aa09e48fe651021ecaf13c1e0122d3609", - "93758b69bbc55048f3f64ab02ba05b748a2301ba8fdabda5ad31c5132f3b17f7", - "6fa9a1fd4ec39f4691555ba3064cac5afaa9ee90604bc9c24b6b4c452b5dbd66", - "d062b6b04643123071223138c91a28e50e89ffd48f676c187a647c9ca2637c07", - "53e011f498d01672e4f15ac8c41e44f7aac84c7eb55f37e6d98e50e072133236", - "a29db89a18a11505801ca8146b38e596cda6a53ceb57e6bf05014f62b03a708b", - "0673a9faf5ab50c4c0d16d3d1c9493fd1c6972790f9da84c24b4316bac674d7d", - "fddae5c3c65653c5058ed34da5645b3889bf54bba81c7ab5acbe4d534eb7297a", - "3a87acd3df6a48b023f261a8b316e6b51ccab88bbc5f05ea2aa686e53eb75926", - "a640148dcb71dd66cae73f98727b204e6f8f7ac43132858c81313aa8e2162700", - "d06710316f1ae7ce8234e6ab9800c5a2eb9a62d758090eea1744e7bc7b0d5a07", - "4002aba5e583c3ca558def1aebcc2d01967cc32703fd28f27b79c35275c17e82", - "e33205319a12141ce884fa1802fb5d14806fa02993b6cab412563104ba2875f6", - "984036f284a988ba0b19eec68e485b8f86a592725c9bfa3d2c887f076d4dc669", - "5a6df37a1c8b1056d84940dd1c6352d93483dbfc0960d33ee23a58ccc9f50ed1", - "92b59222427a0caf431ada26da149218d7ed2fea050b11df2cb0a118dda11087", - "5ddf4869c2578c1ccfa3a17c4f728ac6cd9d8bb5b19def13335a8fffb3947e2a", - "3cffff6af9917186588a5291bd997f900ebbd997205a8597ed86b32c313d15f9", - "26212b92d9e7073dbfaf31e501d603f2a4a0a72e6d51eeba003f6c4769e199b9", - "8b9a2208d6e17986f28ce6df7e3f1d2e15cf25225b7852dadbf6771ee21a391d", - "b9ba75b8bc86ae75dff2b9cba3521f9158596bfc4471813688f5a2a471a94a7e", - "51431dbfbde822ef6ccde33a7d7988f34e5042a1ba0cca9b9ba6eb86e797b67e", - "19b8b5c3dc7427d3b4fbe20fc117fe2ffa0ea2101f60701cda8fe4de0b0af495", - "3ed134a30673821c38cced4cc3affec64de7ac890ef88c0f98fb72e59ebe7cdc", - "27bfdd5fd4cab4cccfdf4a2af342958f40d1f82f792896b461b35fc968b3dfd6", - "d4395b2c014b8d988cbe25ad50d02ab03a8fa47875d3ea28a4e37bdf48965530", - "0092d15bfd929deaa455dfe5be976707cbcc761eea63ce216b2457e0d70ad1ad", - "5b6934565705b73e362e79108a153375a6b43fb706b2480ceb0bd75673e8817f", - "122618aa4adf9ec938c48da1c586e059d2847d3d249df5fe613921d6cf4d1117", - "34106ad21d6c03450bd922cb2cd82f8087f4e0e78cc33b678552f96da0ccab6a", - "a46b6cb6e14305fcd0bc642e0930bdaef7c04b6bf3014e138b153ef24a9b3213", - "f71d42a86c0f3a9edd76158f1a1d0ae4a7f34ad836e5521ffd287cc00bfa430f", - "08541a74d5a6d7bcdcdfb04f932b35592ae31e860dea533ae75388ee4973e7d5", - "fe396de692968efa4617b7401edfaf4f75ba296e3321017adf3ccc9ac811b9a2", - "ad94d80fd601ba309e56b6195099794360f8091c8e77db843c113141aaaa9592", - "708744f24ca16598075fbf661c64ec10e735bd3154193fd3a8064d415ed2be20", - "cd7f5f414e2bbe5e05092d727505a2baea0058c9ed4d98f1bc69f60224d7683f", - "fa1045fcedf7041863cf6a2f3ff8dead976c01f3968e9fc0ab94dc14cc392377", - "3d88497ed93e4989b734e47a0a1e285901577ca3f0ab5c54d322dca6818f8dfc", - "ae739e369f8a632b8ef1cf4d98effc0a9154b091f23797f4f8624f34551752dc", - "d40cc8fb2938db8a0351c79d41fae7d3c7d8668a0c32ed4cd956c4cdc770b93f", - "b93950b8f2eccb0a713d3e96e4c9218d1993b9af8a7e8621dbebce519e6b6ad6", - "4f54da34c556e2a0e36d2fd0afed57b391998ccf54517bf6701c64167d3ab6b8", - "97beb30f09514b58013365ef00196667c79a82cf188f8f2417b2d06bbb610b0e", - "e37a52762caddcca8b095f782bbeff5fa20e04b123fd0f9658753b7e2a9943e6", - "9f171cc54a54340c757c468cf608af52a5e56e6a7da6813675520d32fa0272b6", - "777b198faf560d71bf276e7e98acf63d2ee0556b7ab8edf7c8547fb2c4d66e50", - "73cfc9e8632891d77c12e184f27478c19c3c49e78b92caf0bb07596277fca003", - "086ce6966f0ee6f8baaf00d5e3ef95314cca0a717f6596d4462b770d381d1427", - "4a43d62b2764e121390416a339232e6281dfc51b5b4a33c08fcf55f114e0f17e", - "d665b4bfe9fdbd04fc1bccefa1c56cd7634664277a1117e936e78ca5595462b6", - "6c7c0f93dab33466e3ba8b88a7e040081c1ca6d0804c715c2fcc225774bc8e89", - "41c740f4009bae19d4903f2b8a0ac687a9d13079c86ff3d9d532ed5f57f58987", - "535a8f16b8ede6a96cfb53799f1cc99add60b3fa8fcdd90cdf75df6132f6f637", - "0da3a7ac204385a5aa5128ad7d1060e25f13914fd0ffd243de1badd36d2f8dc5", - "ccfc0881c0d34e67d405ce8fbe9b9cd6b52e901312c3018e5b86f55bbc7ecc2e", - "2ad0c7bfcfc937c40ce40587aa420081dfac80c415bbd77f000a2bff22332bd0", - "6327f17b88e3ca7a0d76b2a2b149174159636cbee049ef8fd74ee838c586e12b", - "af47446bea26a8475dc65e1b4e311277a64df12f83ff48a7ad18eecc3e3766fb", - "5d9a44a90439991093e7303a776c495d318b5012cff8217c8623b4b3d44d9cd8", - "440f7e994a260ca4293745a431276c9c87e9cfccec2e7bd8e3d1492fc56a3e8e", - "0186122f88baad1fc4294795dca301240a6ef4d34999e59387e095a2ffbda869", - "411cd7fd695dd595e671afece2bfaadd9e34477fa66858c9643276e81dd16598", - "0b3d09cd01d2bbe2a24398c812eafcfff85e15a9debbab1f7af88eaf618ba2e5", - "3ebb9d27bd068459f386ea4966709b963cd38c828ae35ca4c0085f86dc9ba941", - "6df6a782e21c1f51844b6a01d334a75cbc5557679eb0d3ed24d403da431d21b3", - "b7a5eb26ea3373ef1e5eff05f0acbe8e633cda2d22216d7a1476768437b52027", - "f090be97792dce7e57ac104229b40b10ad306e7f16faec89705997e43b4e0ec4", - "6226b38f52683080de6ea3b0d49a2be57e46d8b38df20e4eba377d89e7555b43", - "595605106e9cd66abb02eb4389a922f26f4981672a9c814074d5f85176c2ce52", - "9bed6bb275376acbd52c871423858452c76f1e098f6b4c3bb0f581c43b1b78af", - "5a5d91cc51f19b2d053f70e68ed7f7809caec0ccc135a368b88e739af7498d21", - "37d0445b8ef3357db5b68226f16270505af0ca8d926d85c66f28b4683bb9f3ca", - "99e5fb26ba2d82674a216b1de505f0d137f3bff7094d70869afe75f1d305c9ac", - "88bc0a7fca01ab1e96b2dabd211605a6212bb5d45f59d7afa3eed9f7bc8cee2d", - "10871ee43797f3ecb4848dc419147c536466edbaca83bfff9c09ef47d2152eeb", - "86fa8cf2806d39a4bcf2a94ccf104d2b54fd72baab034fdbd6fbe7e0ea0dfb37", - "ea7ca070c12582f44c4b083d94aa3fc050bcbe5ce45f4b0d8f47437d223b8d38", - "c4861ea926ca6b8d17c35052c5dd11383583ea686ba3355910364dc6e1e771a6", - "0221bbe4da98b60cd39c2d4787893d5bf1f70e303e7d7fe6fd9dde6528541ddb", - "22a2206974c27030f99f35f259c44ffa64ef11b8e6330a3fcd1a68a8f686ffcd", - "089fe5d906bbf100a911891eac4dea621bf33d0ca79e63856918c0f14598fd48", - "be38f160ef5db2bc51789e67907f5b7955dbf6226b917507eedfd61d15e1b07a", - "ae727ffcd38a5c26ee1a1af45b9ac07a2c9b21550714b15edf909a6b5622ee78", - "4f6cc96186ec9524363c36dbf2caddc3a059d5210694fcd35f3ad3bf831290dc", - "8a0ad15c6a35e1b677adb1151d9b6df49b11fd2f7921b331b5135844ce8a2e5a", - "e4a7addaf81a40e00d9fb3967188ffeffdec0d7b61778dbc12f7f342fca79e5d", - "564acc06212018c0ee33d6109bd062433161a501d0e4a3eee423dafafb21a33f", - "f6332c5c8debbe2e49a1e431b1cfed8b0790943eecc9c3708a2f52204bc997c1", - "b06cfd8e8e17b9afa585ea76f5647b4d54b64f4ad1b41780075f4982daaa68bd", - "1f596a1cee4760ab7b507b18e4f7418e6230de72b9d619cc8f6ac0df5ffa88f4", - "2738eb6f6f0a436e43f04b3fedda30cea5c3b8e36eb94fd3a73b7841ea6e3a6a", - "b84fa9e606a6fd6ee381e2831f1b80a14a1626032fdc3678b121954c5d0ce98a", - "4c4acf3cefd0b466d418d3b7f58f9b41681f803a81878e6fad8409f430e8bf04", - "6fdceb9e02428d9175acbe04590b693a5c644eb8cae672f4c4d06d145ea8ab1a", - "823486c19fd887d93dc2d1478edf5773ba381f13f0ae6f287c1038e7c81aef1c", - "036bf6944a47791471e9a2cb86615de837f3aa234a7d1cd024026b3e1daee79e" - ], - header : { - hash: "00000000000000018eaf634bf13b7e5e50860b99466b91140538223c75b75049", - prevHash : "000000000000000124f6ce137a43bb288d63cc84f9847033cb84595ead05f9de", - merkleRoot : "792f40129c95aec653d2838ef4b031bf541f11c764ca6c3ecc2e20b396ce83cb", - time : 1389715824, - version : 2, - nonce : 322045839, - bits : 419587686, - } - }, - { // Mainnet FilteredBlock 399775 with filter: 6f64fd5aa9dd01f74c03656d376625cf80328d83d9afebe60cc68b8f0e245bd9 - "header": { - "hash": "0000000000000000011b04bc9f4f3856e299b53a335eb1c42be906237c860bb8", - "version": 4, - "prevHash": "0000000000000000015373947aa93c7cb16a308fb0a59644d4123072ad24ce5b", - "merkleRoot": "ac1841eb3b7d380ee114270e3b1c7df349f1e27e2f0f7891138199bc07e006f8", - "time": 1456274787, - "bits": 403093919, - "nonce": 736568686 - }, - "numTransactions": 3309, - "hashes": [ - "adaf1e41a5349a7e2b27e6f2b5fc1186d576d21b47531a410a654439f49bd5a9", - "0f64562b6d361757bfdc5926d28cafb7c45e4822b4ad5a14e65530d0c9d44cd2", - "c34dec8d5954d8c151c3a594a5a6d1f3a1ec8a1a6c470b27aea879b7757328fb", - "c044e5d998fe29cdbe88f87c97c3547f142f5b491cb909d9b0a8e9d3ab7fc984", - "51ecd2d2b02b0ca1a3b439eae3adf87ab37dd87f7be0c5b3437cd22350079101", - "684ebe37c6eaae2879249ff20b3769d5f2f7ad853a5363a4baee68c0c85777a5", - "e561fbeb0faff42f95f2dc8d57d432d4d1a9f84483597a0602e1edc3390f1e33", - "02c070afc743c885a6c8d94d15d6e9c3b991c636b4284258dd37686c8792fe44", - "6f64fd5aa9dd01f74c03656d376625cf80328d83d9afebe60cc68b8f0e245bd9", - "a296fef97b3da0825bac00c794ea234913421b7c1cbb8571978d8d5ba3b16de2", - "691c6855c5da434a06cb39a7e47d9337da0e39112ad975cc70cecc882233920a", - "6a9e7f8e6d1d8c326a774ff691bdf424252cee710f8e5d9da2c094e999c15efc", - "0723ffc695fef989e86784fa2b47097d55f6aac244631536d8d901f5cd9bf170" - ], - "flags": [171,86,23,0] - } - ] -}; diff --git a/test/data/messages.json b/test/data/messages.json deleted file mode 100644 index cc1fa33..0000000 --- a/test/data/messages.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "VERSION": { - "message": "f9beb4d976657273696f6e000000000065000000fc970f17721101000100000000000000ba62885400000000010000000000000000000000000000000000ffffba8886dceab0010000000000000000000000000000000000ffff05095522208de7e1c1ef80a1cea70f2f5361746f7368693a302e392e312fa317050001", - "payload": "721101000100000000000000ba62885400000000010000000000000000000000000000000000ffffba8886dceab0010000000000000000000000000000000000ffff05095522208de7e1c1ef80a1cea70f2f5361746f7368693a302e392e312fa317050001" - }, - "VERACK": { - "message": "f9beb4d976657261636b000000000000000000005df6e0e2", - "payload": "" - }, - "INV": { - "message": "f9beb4d9696e76000000000000000000890200006e4f18431201000000f97347795bf7490ddeba98c129086f54e06633936a49a2a398defb49e5edbb00010000009cb17394db9280b2d5e7d9f01456358384e7453300d48138ca1590e8cd86632f010000000f810b6071b9808117c4b82619b4ae0a7994ed5a0f2c050e50fd5742c3b4e90901000000962798bce9cbfcee9a8c6b5df4cf8bed944eb31ec975e8c1be79b7ab010a1cb501000000baa905bcfc9d2641ecd759724f796a7614e91c7492507b418ba8e077a6e57054010000009a5ac6dae146392edf8b6e96c30951ed7752f9095fab61728207db0f135b18a30100000050e5f153e3f0d89ea432d9a26f088a89b3ca38dbf3f0247ddf15f80779915da801000000c255841510a284b88ba696ed9edfeb4cdb34966271c30bc3bce9fd881106850f0100000000e45af8455894f72cccc4053e1f5e6076a673982b1f4ca5b2abc7b6496823ab01000000c7e6dc049e5b0fdc0f8fac8934e84e9b2f0c3036c7c02638cc05ee2575d6be1701000000aef6435c03c99ee83702aaaf106dc853dee5bcb6025f3af67d1ec72202c437ad010000005369fc3dc81403fe52f766ef585245af908404be1b46e2ef67c93b748ef467e3010000002400f16a63c411ae5e336175afc26515e548c7267c0debdb6aa46830399ba35f01000000ceb4fa6a8ca2713baee2214422b73da47a20934c83d25017bd80053e65ef3091010000000d899968e591703ddd6fd6ce073837588209f8b3b245ecf1bf93e77b9806a6c501000000bddeb56581ad7882d8f2abc78e5a48b3de02d923cd1cfc7525d2dfe80470248a01000000f286188c0947b023f0ba5dd1ea596751d50f67fbe31e64ead39dd711d3585b5801000000e17ad100ebffd2d5a630d37fd2496b2f5ab6ae5c8812da3c642fb6b8dd37f5fd", - "payload": "1201000000f97347795bf7490ddeba98c129086f54e06633936a49a2a398defb49e5edbb00010000009cb17394db9280b2d5e7d9f01456358384e7453300d48138ca1590e8cd86632f010000000f810b6071b9808117c4b82619b4ae0a7994ed5a0f2c050e50fd5742c3b4e90901000000962798bce9cbfcee9a8c6b5df4cf8bed944eb31ec975e8c1be79b7ab010a1cb501000000baa905bcfc9d2641ecd759724f796a7614e91c7492507b418ba8e077a6e57054010000009a5ac6dae146392edf8b6e96c30951ed7752f9095fab61728207db0f135b18a30100000050e5f153e3f0d89ea432d9a26f088a89b3ca38dbf3f0247ddf15f80779915da801000000c255841510a284b88ba696ed9edfeb4cdb34966271c30bc3bce9fd881106850f0100000000e45af8455894f72cccc4053e1f5e6076a673982b1f4ca5b2abc7b6496823ab01000000c7e6dc049e5b0fdc0f8fac8934e84e9b2f0c3036c7c02638cc05ee2575d6be1701000000aef6435c03c99ee83702aaaf106dc853dee5bcb6025f3af67d1ec72202c437ad010000005369fc3dc81403fe52f766ef585245af908404be1b46e2ef67c93b748ef467e3010000002400f16a63c411ae5e336175afc26515e548c7267c0debdb6aa46830399ba35f01000000ceb4fa6a8ca2713baee2214422b73da47a20934c83d25017bd80053e65ef3091010000000d899968e591703ddd6fd6ce073837588209f8b3b245ecf1bf93e77b9806a6c501000000bddeb56581ad7882d8f2abc78e5a48b3de02d923cd1cfc7525d2dfe80470248a01000000f286188c0947b023f0ba5dd1ea596751d50f67fbe31e64ead39dd711d3585b5801000000e17ad100ebffd2d5a630d37fd2496b2f5ab6ae5c8812da3c642fb6b8dd37f5fd" - }, - "ADDR": { - "message": "f9beb4d9616464720000000000000000b93a0000480bab8afdf5016816fa53010000000000000000000000000000000000ffff51403eea208ddb2a8854010000000000000000000000000000000000ffff707c60d9208d31413a54010000000000000000000000000000000000ffff5ed5fd13208d182c8854010000000000000000000000000000000000ffff505f3f81208d65ecb853010000000000000000000000000000000000ffff54d72104208dcca94054010000000000000000000000000000000000ffff40bbe1f2208d73238854010000000000000000000000000000000000ffff55d683cd208d5d258854010000000000000000000000000000000000ffffd523a66d208dcbea87540100000000000000200100005ef579fd2c9d47be4b56d671208db3e58754010000000000000000000000000000000000ffffae373156208d11e58754810000000000000000000000000000000000ffff51071276208d38f48754010000000000000000000000000000000000ffff6d4372e0208d4f448854010000000000000000000000000000000000ffffc556cbea208deb208854010000000000000000000000000000000000ffff450eb059208d97336054010000000000000000000000000000000000ffff4d60444a208dad608754010000000000000000000000000000000000ffff01abd3c3208d2cbe8754010000000000000000000000000000000000ffff7963d8b8208d9dfa8754010000000000000000000000000000000000ffffcebe862c208da7f66554010000000000000000000000000000000000ffff62f2a82e208d430d8854010000000000000000000000000000000000ffff6deb6956208d08148854010000000000000000000000000000000000ffff4b9804ef208d950e8854010000000000000000000000000000000000ffff6b8dd2e1208d1cfc8754010000000000000000000000000000000000ffffb2fe1dab208de7458754010000000000000000000000000000000000ffff32cccb82208d12625654010000000000000000000000000000000000ffff55e6f35a208dd7908354010000000000000000000000000000000000ffff4c642e6f208d17398854010000000000000000000000000000000000ffff45ea14df208dc72d8854010000000000000000000000000000000000ffffdaa48b96208d57fb8654010000000000000000000000000000000000ffff5f0080a9208d4e9a6d54010000000000000000000000000000000000ffff6d94e741208d7a418854010000000000000000000000000000000000ffff6d43b0c1208d5c098854010000000000000000000000000000000000ffff9c11e7ea208d442d8854010000000000000000000000000000000000ffffd0424482208db142fb53010000000000000000000000000000000000ffff54344a4a208d70158854010000000000000000000000000000000000ffff538f8201208d39288854010000000000000000000000000000000000ffff57daab71208d262f8854010000000000000000000000000000000000ffff57e045b1208d91430654010000000000000000000000000000000000ffff4212def5208d7c468854010000000000000000000000000000000000ffff62a4f53b208d9c3e8854010000000000000000000000000000000000ffff5b736bcc208d4d074f54010000000000000000000000000000000000ffff43af9d9b208deaca8754010000000000000000000000000000000000ffff4a8084a0208d74f68754010000000000000000000000000000000000ffff46304541208d5d098854010000000000000000000000000000000000ffff6eabb626208d08228854010000000000000000000000000000000000ffff1f07b030208d959a8254010000000000000000000000000000000000ffff4fa996b3208d4bac8754010000000000000000000000000000000000ffff43a0605b208de4038854010000000000000000000000000000000000ffff4cb41a5b208ddc308854010000000000000000000000000000000000ffffb72e6072208deac86f54010000000000000000000000000000000000ffffd5b815e2208d1b118854010000000000000000000000000000000000ffff3ff8d0a4208db1258854010000000000000000000000000000000000ffff5edd3a6a208d20268754010000000000000000000000000000000000ffff59ed3cfc208d83ed8754010000000000000000000000000000000000ffff4460baea208d71278854010000000000000000000000000000000000ffff4583b547208da7968754010000000000000000000000000000000000ffffd1c34463208d9d428854010000000000000000000000000000000000ffff43c15bc5208d33448854010000000000000000000000000000000000ffff2e0d8a5c208dfa2e7154010000000000000000000000000000000000ffffceff2bca208d47288854010000000000000000000000000000000000ffff5b8d0190208d0e847954010000000000000000000000000000000000ffff5501b8c2208d552f8854010000000000000000000000000000000000ffff5cf3b604208d8c2e8854010000000000000000000000000000000000ffff58666b0d208dcbdd8754010000000000000000000000000000000000ffff59a85cf9208d04208854010000000000000000000000000000000000ffff5f60abe0208dba238854010000000000000000000000000000000000ffff2e77ce67208d62c68754010000000000000000000000000000000000ffffcbae5658208d41108854010000000000000000000000000000000000ffff49329ec8208ddf1d8854010000000000000000000000000000000000ffff603ada12208df90c8854010000000000000000000000000000000000ffff51e0c21c208d5dff8754010000000000000000000000000000000000ffff904ca539208de0118854010000000000000000000000000000000000ffff5c0cecf7208d1b2d88540100000000000000200100005ef579fb18f317b2aba4edfc208dfaa27f54010000000000000000000000000000000000ffff54c65a7c208dc2db8754010000000000000000000000000000000000ffffad0b7981208d88a58754010000000000000000000000000000000000ffff188a1995208de0d78754010000000000000000000000000000000000ffff62a7a6bd208d18f66b54010000000000000000000000000000000000ffffdb4fbe80208dfcf78754010000000000000000000000000000000000ffff67145102208d3d3a8854010000000000000000000000000000000000ffff64259bd6208dcaa98654010000000000000000000000000000000000ffff32c737e1208d3a6a5c54010000000000000000000000000000000000ffff6d793f75208d22d38754010000000000000000000000000000000000ffff0595cc0d208da9ea8754010000000000000000000000000000000000ffff62ca37d3208d440e8854010000000000000000000000000000000000ffff123e1c11208dab428854010000000000000000000000000000000000ffff461df51f208d0f0b8854010000000000000000000000000000000000ffff59d36752208d631f8854010000000000000000000000000000000000ffff5ef8c640208dbc1d8854010000000000000000000000000000000000ffff5f5dc582208d04bf8754010000000000000000000000000000000000ffff0e6797e3208db8028854010000000000000000000000000000000000ffff3cf0c4a1208d6a0c8854010000000000000000000000000000000000ffff58bb5c55208d4f438854010000000000000000000000000000000000ffff5d326005208df6068854010000000000000000000000000000000000ffff5d5a5850208d40eb8754010000000000000000000000000000000000ffff5751ed86208dbad18754010000000000000000000000000000000000ffff63e51608208d99108854010000000000000000000000000000000000ffff36e299cd208d9a1e88540100000000000000200100005ef579fd38a43785a5d441b7208d13258854010000000000000000000000000000000000ffffb90de279208db3778754010000000000000000000000000000000000ffff67fcc80c208d3d358854010000000000000000000000000000000000ffffd00c40fc208dfd0d8854010000000000000000000000000000000000ffff5e89c2f3208dd6428854010000000000000000000000000000000000ffff1863e14a208d89e78754010000000000000000000000000000000000ffff43a11d76208d89ce8754010000000000000000000000000000000000ffff3edb6281208d03298854010000000000000000000000000000000000ffff6d5b26dd208d16df6e54010000000000000000000000000000000000ffffd9c3d176208d7c028854010000000000000000000000000000000000ffffbcc2db1f208d67fc8754010000000000000000000000000000000000ffff59910667208d86b18754010000000000000000000000000000000000ffff6c1482b9208d790b8854010000000000000000000000000000000000ffff0263150d208d89c44554010000000000000000000000000000000000ffff72fcd6b8208d331c8854010000000000000000000000000000000000ffff4c7dcfa8208d9fe98754010000000000000000000000000000000000ffffad08fd05208d0ecd8754010000000000000000000000000000000000ffff7c0fec89208d4af98754010000000000000000000000000000000000ffff2ea6a167208d270b8854010000000000000000000000000000000000ffff59d40fca208d11cf4054010000000000000000000000000000000000ffffb52ac058208d63358254010000000000000000000000000000000000ffff6bd9a130208dbde48754010000000000000000000000000000000000ffff4f915dc7208dece78754010000000000000000000000000000000000ffff5f8423ef208dba308854010000000000000000000000000000000000ffff904cba8c208d953d8854010000000000000000000000000000000000ffff8d1421e5208d5f188854010000000000000000000000000000000000ffff4e1bbfb6208d36fc8754010000000000000000000000000000000000ffff3205cfb6208d5e458854010000000000000000000000000000000000ffff493092c2208dd0878754010000000000000000000000000000000000ffff97caacde208dd99d8754010000000000000000000000000000000000ffffc05f3c38208da7018854010000000000000000000000000000000000ffffdcf5f82d208df0f42254010000000000000000000000000000000000ffff58bf997f208d94228854010000000000000000000000000000000000ffffbc8ee72d208de3448854010000000000000000000000000000000000ffff6d780f99208d32448854010000000000000000000000000000000000ffffbc64c76e208d0b3d8854010000000000000000000000000000000000ffff6c414312208d49138854010000000000000000000000000000000000ffff407e52c6208d2d128854010000000000000000000000000000000000ffff6dc987d8208d4acf8754010000000000000000000000000000000000ffffae151a25208de9dd8754010000000000000000000000000000000000ffff522d2d10208d17df8754010000000000000000000000000000000000ffff4d294737208ddbd48754010000000000000000000000000000000000ffff443703fd208d79108854010000000000000000000000000000000000ffff4bb5a154208d1df28753010000000000000000000000000000000000ffff4c44fc51208d5d496a53010000000000000000000000000000000000ffff530924b0208d180b8854010000000000000000000000000000000000ffffc15fced3208d53128854010000000000000000000000000000000000ffff5bc5b9e4208de21f8854010000000000000000000000000000000000ffff2e05fe1f208d31ab6554010000000000000000000000000000000000ffffae865915208d09248854010000000000000000000000000000000000ffff7d71a4b0208d120b8854010000000000000000000000000000000000ffff93e40150208d25d98754010000000000000000000000000000000000ffffc19f7a86208d99e78754010000000000000000000000000000000000ffff4d675993208d2b218854010000000000000000000000000000000000ffff5144776c208d5a208854010000000000000000000000000000000000ffff2e1cce5820f69e8f8154010000000000000000000000000000000000ffff58718848208d9edd6554010000000000000000000000000000000000ffff2ea758c5208d28c98754010000000000000000000000000000000000ffffc60bd694208d181d8854010000000000000000000000000000000000ffffba6b689e208d77868754010000000000000000000000000000000000ffff182016aa208de1698054010000000000000000000000000000000000ffff5cf5daa9208d823d8854010000000000000000000000000000000000ffffbe4d61c8208d2c3b8854010000000000000000000000000000000000ffff71647df2208da2248854010000000000000000000000000000000000ffff4ff359ca208da2dd8754010000000000000000000000000000000000ffff59f1e52b208da6e60d54010000000000000000000000000000000000ffff579596231159ad218854010000000000000000000000000000000000ffff5895f42d208d5ba78754010000000000000000000000000000000000ffff458ae8b0208ddc9b8754010000000000000000000000000000000000ffff18b507a5208d20eb5754010000000000000000000000000000000000ffff5181a537208daf1d8854010000000000000000000000000000000000ffffd5f51eba208d07f58754010000000000000000000000000000000000ffff6dec54bc208d4b3b8854010000000000000000000000000000000000ffff5c3e1991208d13b54054010000000000000000000000000000000000ffffb273845a208d4f338854010000000000000000000000000000000000ffffcfac797b208d4d898754010000000000000000000000000000000000ffffadaf880d208de72f8854010000000000000000000000000000000000ffffd956ef58208dc1e98754010000000000000000000000000000000000ffff980711cf208dfd8f7154010000000000000000000000000000000000ffff50aba98f208d59fe8754010000000000000000000000000000000000ffff5f2ae582208d3ffa8754010000000000000000000000000000000000ffffbca836db208d389b0054010000000000000000000000000000000000ffffded10925208deb154354010000000000000000000000000000000000ffff717532da208dadde7654010000000000000000000000000000000000ffff93afd0e5208d40458854010000000000000000000000000000000000ffff54ee8cb0208d08fa8754010000000000000000000000000000000000ffff3658eba9208d0df58754010000000000000000000000000000000000ffff72c6876e208d5d408854010000000000000000000000000000000000ffffa7582d7c208de8338854010000000000000000000000000000000000ffffad40d7ad208d6c2a8854010000000000000000000000000000000000ffffbc1833a3208d0fc28754010000000000000000000000000000000000ffffcbceb676208d98448854010000000000000000000000000000000000ffff0121ce6e208d77b58754010000000000000000000000000000000000ffff4b40d938208d853b8854010000000000000000000000000000000000ffff5648d643208d1c9c7854010000000000000000000000000000000000ffff6c3230db208d4e028754010000000000000000000000000000000000ffffd8e33c5d208daf738754010000000000000000000000000000000000ffffad4e9d56208dca438854010000000000000000000000000000000000ffff4f8a0353208d7b408854010000000000000000000000000000000000ffff0599e92a208dc62f8854010000000000000000000000000000000000ffff46236049208dc4d58754010000000000000000000000000000000000ffff4400384d208d0ddb4c54010000000000000000000000000000000000ffff71653b5a208d53388854010000000000000000000000000000000000ffff43bddf66208d7c388854010000000000000000000000000000000000ffff47edca96208d8c068854010000000000000000000000000000000000ffffdded3c2c208d89f60554010000000000000000000000000000000000ffff4e60d8d6208da5ff1154010000000000000000000000000000000000ffff55983c68208d72f58754010000000000000000000000000000000000ffffce47f56a208d7e2d8854010000000000000000000000000000000000ffff17e25c12208da7ca8754010000000000000000000000000000000000ffff051d0baa208d19af8754010000000000000000000000000000000000ffffad42d883208dffd68754010000000000000000000000000000000000ffff5418ff88208d87bf8754010000000000000000000000000000000000ffff4c1fe0dc208deef18754010000000000000000000000000000000000ffff4c71d406208d25868754010000000000000000000000000000000000ffffda67a475208d4d348854010000000000000000000000000000000000ffff5d561269208da5918754010000000000000000000000000000000000ffff42b163b3208dbfac3754010000000000000000000000000000000000ffffad4e01eb208d5c408854010000000000000000000000000000000000ffffcc0bb91e208d4a928754010000000000000000000000000000000000ffff531dba30208db9fd8754010000000000000000000000000000000000ffffa3f72b33208dade58754010000000000000000000000000000000000ffffd8b93aeb208db75d4d54010000000000000000000000000000000000ffffae1d5595208de8d18754010000000000000000000000000000000000ffff4405665c208d88e78754010000000000000000000000000000000000ffff6b96180a208dae667354010000000000000000000000000000000000ffff531f490a208d92f98754010000000000000000000000000000000000ffffd447e857208db1428854010000000000000000000000000000000000ffff36c6b4bb208dd42c8854010000000000000000000000000000000000ffff4b4aff14208df71acd53010000000000000000000000000000000000ffff62d17930208da0b88754010000000000000000000000000000000000ffff974bf913208d5faa7953010000000000000000000000000000000000ffff7419d269208d6c1e8854010000000000000000000000000000000000ffff48a72343208d9c2b8854010000000000000000000000000000000000ffff64431e87208de8908754010000000000000000000000000000000000ffff44660d45208d410b7d54010000000000000000000000000000000000ffff43a3340d208d5b298854010000000000000000000000000000000000ffff9ffda678208de7238854010000000000000000000000000000000000ffff189a3759208da5745354010000000000000000000000000000000000ffff57026e31208df23c885401000000000000002a010488006710000523fbe100000001208dddf48754010000000000000000000000000000000000ffffc1531c5b208d61888754010000000000000000000000000000000000ffff42cd8bc1208df92e8854010000000000000000000000000000000000ffff36e1e970208d0cf75754010000000000000000000000000000000000ffffad4e2420208d0f028854010000000000000000000000000000000000ffff6ec61b02208de6228854010000000000000000000000000000000000ffffdcaa807c208d1cac8754010000000000000000000000000000000000ffff6179416c208db6068854010000000000000000000000000000000000ffffd46121e4208d7ea58754010000000000000000000000000000000000ffff80a41679208d91216254010000000000000000000000000000000000ffff69ece091208d0bf78754010000000000000000000000000000000000ffff45320c0b208dd03c8854010000000000000000000000000000000000ffff4859a2a5208d8e308854010000000000000000000000000000000000ffff2e1ce15a208d30f36354010000000000000000000000000000000000ffff4b61ee15208d7aa05553010000000000000000000000000000000000ffffb129186b208dbb238854010000000000000000000000000000000000ffff581a7f6f208d41248754010000000000000000000000000000000000ffffb009055b208dee218854010000000000000000000000000000000000ffff2e7771f9208db4e78754010000000000000000000000000000000000ffff411bf6ee208db5178854010000000000000000000000000000000000ffffacff001b208dbcf487540100000000000000200100009d386ab83061cfabfe3513a3208d76048854010000000000000000000000000000000000ffff2e35dbc2208d83d28754010000000000000000000000000000000000ffffd91bb1d5208d5c3d8854010000000000000000000000000000000000ffff32a47969208df4bd875401000000000000002a0104f8012032250000000000000002208d1bfa8754010000000000000000000000000000000000ffff53a2f4b6208d141c4554010000000000000000000000000000000000ffffb27b8281208d580c7e54010000000000000000000000000000000000ffffc9ea1340208df7228854010000000000000000000000000000000000ffffd90a268d208d41e18754010000000000000000000000000000000000ffff555b8809208d66358854010000000000000000000000000000000000ffff5280ff23208deecd8754010000000000000000000000000000000000ffff84c6a102208df9bc8754010000000000000000000000000000000000ffffbbc96dae208d9d0a8854010000000000000000000000000000000000ffffb2a2d18a208da9458854010000000000000000000000000000000000ffffca16c30e208d2ca88754010000000000000000000000000000000000ffff6baab63e208d923b8854010000000000000000000000000000000000ffffd5b87bee208d12258854010000000000000000000000000000000000ffff59ee408b208d980e8854010000000000000000000000000000000000ffff2edfb0c4208d33378854010000000000000000000000000000000000ffff6caa7b42208d41176d53010000000000000000000000000000000000ffff1fa2df68208dd1c57f54010000000000000000000000000000000000ffffbeab679a208d17c78754010000000000000000000000000000000000ffff3f983f51208dbb278854010000000000000000000000000000000000ffff568dbc28208d5d5ad953010000000000000000000000000000000000ffff0ec112b7208da1b78754010000000000000000000000000000000000ffffbc287698208d99348854010000000000000000000000000000000000ffff5ff1a302208d23ef8454010000000000000000000000000000000000ffff7ba55d22208d90e98754010000000000000000000000000000000000ffff5ae14503208d58f48754010000000000000000000000000000000000ffffd45a3cae208d530c8854010000000000000000000000000000000000ffff18fb80c4208dc6138854010000000000000000000000000000000000ffff4e2fd6eb208d97208854010000000000000000000000000000000000ffff55ddd5b8208d74f88654010000000000000000000000000000000000ffff1809ad86208dc0278854010000000000000000000000000000000000ffff6ef2dfb6208d84338854010000000000000000000000000000000000ffff58d8114e208dcae78754010000000000000000000000000000000000ffffc21c474c208d61e78754010000000000000000000000000000000000ffffd5b3fc7a208d7a078854010000000000000000000000000000000000ffff32740193208de7547b54010000000000000000000000000000000000ffff8046aac3208db5328854010000000000000000000000000000000000ffff5b0c5366208d5f208854010000000000000000000000000000000000ffff6caa054a208d1d682854010000000000000000000000000000000000ffff69e3eb9d208d179e6b54010000000000000000000000000000000000ffff54aac628208ded2e8854010000000000000000000000000000000000ffff4166d226208d8e148854010000000000000000000000000000000000ffff54305af6208d1ed88754010000000000000000000000000000000000ffff3ed2b2a4208d78ec8554010000000000000000000000000000000000ffff6dd2e575208ddd3e7854010000000000000000000000000000000000ffff1b83a102208d421e8854010000000000000000000000000000000000ffff2eb51bf1208dc01f8854010000000000000000000000000000000000ffff58c66033208d08ce8754010000000000000000000000000000000000ffff5d57b84c208df22e8854010000000000000000000000000000000000ffffbf213e3d208d89cb8754010000000000000000000000000000000000ffff53d7ece1208da9d68754010000000000000000000000000000000000ffff71bef412208d38268854010000000000000000000000000000000000ffff84fc8a6f208d4f107254010000000000000000000000000000000000ffff57a072d9208d990f88540100000000000000200100009d3890d71029db21863020f9208df3c36854010000000000000000000000000000000000ffffbba6a6c4208d3ea71f54010000000000000000000000000000000000ffff3e61237b208d60a18754010000000000000000000000000000000000ffff53a56b4b208db2328854010000000000000000000000000000000000ffff44eef265208d2c0f8854010000000000000000000000000000000000ffff566553c0208dec268854010000000000000000000000000000000000ffff57a69ecd208d93148854010000000000000000000000000000000000ffff9b8f4433208d741b8854010000000000000000000000000000000000ffffae17c74c208ddab94f54010000000000000000000000000000000000ffffab19c63a208d5e886f54010000000000000000000000000000000000ffffbc67a037208d5c3ccc53010000000000000000000000000000000000ffff0e77c86e208d26fb8754010000000000000000000000000000000000ffffc1eae172208d61278854010000000000000000000000000000000000ffff5ce15439208d60df8754010000000000000000000000000000000000ffff2599fb3b208d52418854010000000000000000000000000000000000ffff028710e6208dae448854010000000000000000000000000000000000ffff18152eee208d6ff18754010000000000000000000000000000000000ffff542e396d208d8c248854010000000000000000000000000000000000ffff5519d6d8208d01e33e54010000000000000000000000000000000000ffff5027d563208d05cd8754010000000000000000000000000000000000ffff45a5a9c5208d7c1e8854010000000000000000000000000000000000ffff68c813c8208d38a48754010000000000000000000000000000000000ffff3a60a934208d73ec8754010000000000000000000000000000000000ffffae3db8f3208d096c8754010000000000000000000000000000000000ffff4cb88802208d55d38754010000000000000000000000000000000000ffffd31f082e208d0d8a8754010000000000000000000000000000000000ffff6c22c9bb208d81ba7754010000000000000000000000000000000000ffffca5f88da208d5df88754010000000000000000000000000000000000ffffc31abc05208db1d58754010000000000000000000000000000000000ffff5cf614c8208d2b257c54010000000000000000000000000000000000ffff45f9baa0208d38d78754010000000000000000000000000000000000ffff490e0608208d27e88754010000000000000000000000000000000000ffff17f1ccd0208d501c8854010000000000000000000000000000000000ffff5be834a7208d860b8854010000000000000000000000000000000000ffff640173bc208deada8754010000000000000000000000000000000000ffffdc98f8db208d983d3c54010000000000000000000000000000000000ffff021ab398208d99f28754010000000000000000000000000000000000ffff59a9e417208d19468854010000000000000000000000000000000000ffff91ff01a1208ddbf68754010000000000000000000000000000000000ffff50048949208d89118854010000000000000000000000000000000000ffffc8366923208dea3b8854010000000000000000000000000000000000ffffbcbbb5a9208d364a8854010000000000000000000000000000000000ffffc654bd58208dd52ef953010000000000000000000000000000000000ffff7cabb7bc208db086cc53010000000000000000000000000000000000ffff6c4004ea208d0ff48754010000000000000000000000000000000000ffff0536a3cb208d1c0b8854010000000000000000000000000000000000ffffd90bfef3208dbf188854010000000000000000000000000000000000ffff0252431f208dd1c78754010000000000000000000000000000000000ffff25732b19208dd6fa3954010000000000000000000000000000000000ffff6c1131dc208da6108854010000000000000000000000000000000000ffff1fb9b748208daf368854010000000000000000000000000000000000ffff1f2a2981208d9e2f8854010000000000000000000000000000000000ffffbc658482208d6a458854010000000000000000000000000000000000ffff568b843a208dcd428854010000000000000000000000000000000000ffff5d820794208d38258854010000000000000000000000000000000000ffff6440c630208d1cda8754010000000000000000000000000000000000ffff6e9f7be5208ddd388854010000000000000000000000000000000000ffff9f080244208d2e2d8854010000000000000000000000000000000000ffffbb70cf3d208d3e0c8854010000000000000000000000000000000000ffff3ec27a16208d89098854010000000000000000000000000000000000ffffb55fb2fb208d13468854010000000000000000000000000000000000ffff180ab1e5208dfc2a8854010000000000000000000000000000000000ffffd58a5c0e208db9188854010000000000000000000000000000000000ffff81ce808d208d03d06b54010000000000000000000000000000000000ffff4b496858208d319e8454010000000000000000000000000000000000ffff531fac9f208dc8d98754010000000000000000000000000000000000ffffc113e4ea208d06395754010000000000000000000000000000000000ffff7cabf0d6208d722b8854010000000000000000000000000000000000ffff545db4cd208dd91f8854010000000000000000000000000000000000ffff5f12a597208dfbd57054010000000000000000000000000000000000ffff3cf654e6208dd7358854010000000000000000000000000000000000ffffb4998e79208dd7018854010000000000000000000000000000000000ffffb45cc220208d86df5554010000000000000000000000000000000000ffff7660d462208decd28754010000000000000000000000000000000000ffff5b7bdfe2208dafe28754010000000000000000000000000000000000ffff2e76899e208d0c318854010000000000000000000000000000000000ffffc7bcb183208d35258854010000000000000000000000000000000000ffff3ab2d076208db5c38754010000000000000000000000000000000000ffff48b24d30208ddfd18754010000000000000000000000000000000000ffff904cb00c208d40478854010000000000000000000000000000000000ffff02a3b787208deb318854010000000000000000000000000000000000ffffd2564026208de63f8854010000000000000000000000000000000000ffff615d16c0208dbf1d8854010000000000000000000000000000000000ffffc6fff6f0208d4aee8754010000000000000000000000000000000000ffff56c74bc8208d68bc8754010000000000000000000000000000000000ffff31b581f9208ddcca8754010000000000000000000000000000000000ffff0e97397a208db2318854010000000000000000000000000000000000ffffc766348d208de1bd8754010000000000000000000000000000000000ffffd5927a3d208d2aff8754010000000000000000000000000000000000ffff5152d0a5208da7feb753010000000000000000000000000000000000ffff53fe1694208de7418854010000000000000000000000000000000000ffff189f3d99208de7b38754010000000000000000000000000000000000ffff64004655208dacabb653010000000000000000000000000000000000ffff55413231208d43b88754010000000000000000000000000000000000ffff796e1029208d03788754010000000000000000000000000000000000ffff49b90ff6208d04be8754010000000000000000000000000000000000ffffc327ce1c208d33648254010000000000000000000000000000000000ffff2e896478208d9e308854010000000000000000000000000000000000ffffd395d9bf208df13e8854010000000000000000000000000000000000ffff51bb88ed208dec8c5653010000000000000000000000000000000000ffff557f146e208df4538854010000000000000000000000000000000000ffff48d05928208d41bd8154010000000000000000000000000000000000ffff47384162208df6428854010000000000000000000000000000000000ffffc1566314208d753e8854010000000000000000000000000000000000ffff440c9b4f208d2f078854010000000000000000000000000000000000ffff56021a19208d7b0f4754010000000000000000000000000000000000ffff71653a84208dcee88754010000000000000000000000000000000000ffff5401a332208df4db8754010000000000000000000000000000000000ffff5a9db0e3208df8e38754010000000000000000000000000000000000ffff5d5208fa208d2e298854010000000000000000000000000000000000ffff4c61c0bc208d42ea8754010000000000000000000000000000000000ffff4c405ae7208deade8754010000000000000000000000000000000000ffffc009c823208d99358854010000000000000000000000000000000000ffff6cc2b493208df3fd8754010000000000000000000000000000000000ffff904c6007208d1fde8754010000000000000000000000000000000000ffff92732ae8208d666e8354010000000000000000000000000000000000ffff6daa9d16208d18f78754010000000000000000000000000000000000ffff4d6d8d8a208ddea9ce53010000000000000000000000000000000000ffff17e26f7d208d1ae48754010000000000000000000000000000000000ffffc32ebb89208dee258854010000000000000000000000000000000000ffff4a0f10e1208d290a8854010000000000000000000000000000000000ffff42731593208d7cb33354010000000000000000000000000000000000ffff532e8b97208dfd1e8854010000000000000000000000000000000000ffff6ee91680208d480a1354010000000000000000000000000000000000ffff60f220f6208d55838754010000000000000000000000000000000000ffff1f36d48f208d247e8754010000000000000000000000000000000000ffff44b5a49a208d0efa4954010000000000000000000000000000000000ffff63890597208d862e8854010000000000000000000000000000000000ffffc14d8751208d443c8854010000000000000000000000000000000000ffff70d16dba208d72fe8754010000000000000000000000000000000000ffff55983dd3208d236b6854010000000000000000000000000000000000ffff7aea27f9208d67e08754010000000000000000000000000000000000ffff1b20750d208df10a7154010000000000000000000000000000000000ffff7b9fe56e208db32d8854010000000000000000000000000000000000ffff7ba42d54208db3f58754010000000000000000000000000000000000ffff027b4eba208d70d68754010000000000000000000000000000000000ffffbc1b62b9208d97951454010000000000000000000000000000000000ffffb4b6af10208d251288540100000000000000200100009d386ab800773149c4d7e673208d7b168854010000000000000000000000000000000000ffff58969392208d91d18754010000000000000000000000000000000000ffff9ffd6d4e208d19008854010000000000000000000000000000000000ffff4e926cb8208dd1c98754010000000000000000000000000000000000ffff546cdb77208d6a0a8854010000000000000000000000000000000000ffff6caa8c15208d3a3a8854010000000000000000000000000000000000ffff62e28d6a208d3fe48754010000000000000000000000000000000000ffffd9850be7208dcb438854010000000000000000000000000000000000ffff6c2444b3208d78338854010000000000000000000000000000000000ffffb2df574a208d3b2d3054010000000000000000000000000000000000ffff4b529e67208d5b988754010000000000000000000000000000000000ffff36e152e6208d01ab8754010000000000000000000000000000000000ffff58b531bf208d7b038854010000000000000000000000000000000000ffff54717a6f208db0388854010000000000000000000000000000000000ffff4a694e98208d65418854010000000000000000000000000000000000ffffcef84b25208dcf218854010000000000000000000000000000000000ffff5364fed9208db6c68754010000000000000000000000000000000000ffff4d03decd208dc6158854010000000000000000000000000000000000ffffb9044c79208d65418854010000000000000000000000000000000000ffff56b2192f208d23308754010000000000000000000000000000000000ffffd973f7a4208d05158854010000000000000000000000000000000000ffff1b6d9975208d52cd8754010000000000000000000000000000000000ffffdf5b92ad208d3a128854010000000000000000000000000000000000ffff6d93787e208d351e8854010000000000000000000000000000000000ffffb6a4336f208d9bd58754010000000000000000000000000000000000ffff3ba7f521208dc3288854010000000000000000000000000000000000ffff6bbf20cc208d68998754010000000000000000000000000000000000ffff63b30032208d86848754010000000000000000000000000000000000ffffb52ef15c208dff108854010000000000000000000000000000000000ffff4d06718b208d226f0754010000000000000000000000000000000000ffff44248ba1208da3af7354010000000000000000000000000000000000ffff86f9d72c208d9fd68754010000000000000000000000000000000000ffff521f2444208dae428854010000000000000000000000000000000000ffffd445b025208dfafc8754010000000000000000000000000000000000ffffd447fa84208dbb358854010000000000000000000000000000000000ffff3ee2d196208da01a8854010000000000000000000000000000000000ffff45a615b2208d32edb053010000000000000000000000000000000000ffff6d6494da208d77ed8754010000000000000000000000000000000000ffff555dcc44208d09608754010000000000000000000000000000000000ffff45a5d222208d84558754010000000000000000000000000000000000ffffb01c30ab208d71fe8754010000000000000000000000000000000000ffffae5f68c2208de0acdf53010000000000000000000000000000000000ffffae737936208d29e18754010000000000000000000000000000000000ffffb00a63cb208d220b8854010000000000000000000000000000000000ffff9ec4d12f208db4408854010000000000000000000000000000000000ffff4c6d9bcc208d65a58754010000000000000000000000000000000000ffff5962c453208d2d628854010000000000000000000000000000000000ffff257191d50000", - "payload": "fdf5016816fa53010000000000000000000000000000000000ffff51403eea208ddb2a8854010000000000000000000000000000000000ffff707c60d9208d31413a54010000000000000000000000000000000000ffff5ed5fd13208d182c8854010000000000000000000000000000000000ffff505f3f81208d65ecb853010000000000000000000000000000000000ffff54d72104208dcca94054010000000000000000000000000000000000ffff40bbe1f2208d73238854010000000000000000000000000000000000ffff55d683cd208d5d258854010000000000000000000000000000000000ffffd523a66d208dcbea87540100000000000000200100005ef579fd2c9d47be4b56d671208db3e58754010000000000000000000000000000000000ffffae373156208d11e58754810000000000000000000000000000000000ffff51071276208d38f48754010000000000000000000000000000000000ffff6d4372e0208d4f448854010000000000000000000000000000000000ffffc556cbea208deb208854010000000000000000000000000000000000ffff450eb059208d97336054010000000000000000000000000000000000ffff4d60444a208dad608754010000000000000000000000000000000000ffff01abd3c3208d2cbe8754010000000000000000000000000000000000ffff7963d8b8208d9dfa8754010000000000000000000000000000000000ffffcebe862c208da7f66554010000000000000000000000000000000000ffff62f2a82e208d430d8854010000000000000000000000000000000000ffff6deb6956208d08148854010000000000000000000000000000000000ffff4b9804ef208d950e8854010000000000000000000000000000000000ffff6b8dd2e1208d1cfc8754010000000000000000000000000000000000ffffb2fe1dab208de7458754010000000000000000000000000000000000ffff32cccb82208d12625654010000000000000000000000000000000000ffff55e6f35a208dd7908354010000000000000000000000000000000000ffff4c642e6f208d17398854010000000000000000000000000000000000ffff45ea14df208dc72d8854010000000000000000000000000000000000ffffdaa48b96208d57fb8654010000000000000000000000000000000000ffff5f0080a9208d4e9a6d54010000000000000000000000000000000000ffff6d94e741208d7a418854010000000000000000000000000000000000ffff6d43b0c1208d5c098854010000000000000000000000000000000000ffff9c11e7ea208d442d8854010000000000000000000000000000000000ffffd0424482208db142fb53010000000000000000000000000000000000ffff54344a4a208d70158854010000000000000000000000000000000000ffff538f8201208d39288854010000000000000000000000000000000000ffff57daab71208d262f8854010000000000000000000000000000000000ffff57e045b1208d91430654010000000000000000000000000000000000ffff4212def5208d7c468854010000000000000000000000000000000000ffff62a4f53b208d9c3e8854010000000000000000000000000000000000ffff5b736bcc208d4d074f54010000000000000000000000000000000000ffff43af9d9b208deaca8754010000000000000000000000000000000000ffff4a8084a0208d74f68754010000000000000000000000000000000000ffff46304541208d5d098854010000000000000000000000000000000000ffff6eabb626208d08228854010000000000000000000000000000000000ffff1f07b030208d959a8254010000000000000000000000000000000000ffff4fa996b3208d4bac8754010000000000000000000000000000000000ffff43a0605b208de4038854010000000000000000000000000000000000ffff4cb41a5b208ddc308854010000000000000000000000000000000000ffffb72e6072208deac86f54010000000000000000000000000000000000ffffd5b815e2208d1b118854010000000000000000000000000000000000ffff3ff8d0a4208db1258854010000000000000000000000000000000000ffff5edd3a6a208d20268754010000000000000000000000000000000000ffff59ed3cfc208d83ed8754010000000000000000000000000000000000ffff4460baea208d71278854010000000000000000000000000000000000ffff4583b547208da7968754010000000000000000000000000000000000ffffd1c34463208d9d428854010000000000000000000000000000000000ffff43c15bc5208d33448854010000000000000000000000000000000000ffff2e0d8a5c208dfa2e7154010000000000000000000000000000000000ffffceff2bca208d47288854010000000000000000000000000000000000ffff5b8d0190208d0e847954010000000000000000000000000000000000ffff5501b8c2208d552f8854010000000000000000000000000000000000ffff5cf3b604208d8c2e8854010000000000000000000000000000000000ffff58666b0d208dcbdd8754010000000000000000000000000000000000ffff59a85cf9208d04208854010000000000000000000000000000000000ffff5f60abe0208dba238854010000000000000000000000000000000000ffff2e77ce67208d62c68754010000000000000000000000000000000000ffffcbae5658208d41108854010000000000000000000000000000000000ffff49329ec8208ddf1d8854010000000000000000000000000000000000ffff603ada12208df90c8854010000000000000000000000000000000000ffff51e0c21c208d5dff8754010000000000000000000000000000000000ffff904ca539208de0118854010000000000000000000000000000000000ffff5c0cecf7208d1b2d88540100000000000000200100005ef579fb18f317b2aba4edfc208dfaa27f54010000000000000000000000000000000000ffff54c65a7c208dc2db8754010000000000000000000000000000000000ffffad0b7981208d88a58754010000000000000000000000000000000000ffff188a1995208de0d78754010000000000000000000000000000000000ffff62a7a6bd208d18f66b54010000000000000000000000000000000000ffffdb4fbe80208dfcf78754010000000000000000000000000000000000ffff67145102208d3d3a8854010000000000000000000000000000000000ffff64259bd6208dcaa98654010000000000000000000000000000000000ffff32c737e1208d3a6a5c54010000000000000000000000000000000000ffff6d793f75208d22d38754010000000000000000000000000000000000ffff0595cc0d208da9ea8754010000000000000000000000000000000000ffff62ca37d3208d440e8854010000000000000000000000000000000000ffff123e1c11208dab428854010000000000000000000000000000000000ffff461df51f208d0f0b8854010000000000000000000000000000000000ffff59d36752208d631f8854010000000000000000000000000000000000ffff5ef8c640208dbc1d8854010000000000000000000000000000000000ffff5f5dc582208d04bf8754010000000000000000000000000000000000ffff0e6797e3208db8028854010000000000000000000000000000000000ffff3cf0c4a1208d6a0c8854010000000000000000000000000000000000ffff58bb5c55208d4f438854010000000000000000000000000000000000ffff5d326005208df6068854010000000000000000000000000000000000ffff5d5a5850208d40eb8754010000000000000000000000000000000000ffff5751ed86208dbad18754010000000000000000000000000000000000ffff63e51608208d99108854010000000000000000000000000000000000ffff36e299cd208d9a1e88540100000000000000200100005ef579fd38a43785a5d441b7208d13258854010000000000000000000000000000000000ffffb90de279208db3778754010000000000000000000000000000000000ffff67fcc80c208d3d358854010000000000000000000000000000000000ffffd00c40fc208dfd0d8854010000000000000000000000000000000000ffff5e89c2f3208dd6428854010000000000000000000000000000000000ffff1863e14a208d89e78754010000000000000000000000000000000000ffff43a11d76208d89ce8754010000000000000000000000000000000000ffff3edb6281208d03298854010000000000000000000000000000000000ffff6d5b26dd208d16df6e54010000000000000000000000000000000000ffffd9c3d176208d7c028854010000000000000000000000000000000000ffffbcc2db1f208d67fc8754010000000000000000000000000000000000ffff59910667208d86b18754010000000000000000000000000000000000ffff6c1482b9208d790b8854010000000000000000000000000000000000ffff0263150d208d89c44554010000000000000000000000000000000000ffff72fcd6b8208d331c8854010000000000000000000000000000000000ffff4c7dcfa8208d9fe98754010000000000000000000000000000000000ffffad08fd05208d0ecd8754010000000000000000000000000000000000ffff7c0fec89208d4af98754010000000000000000000000000000000000ffff2ea6a167208d270b8854010000000000000000000000000000000000ffff59d40fca208d11cf4054010000000000000000000000000000000000ffffb52ac058208d63358254010000000000000000000000000000000000ffff6bd9a130208dbde48754010000000000000000000000000000000000ffff4f915dc7208dece78754010000000000000000000000000000000000ffff5f8423ef208dba308854010000000000000000000000000000000000ffff904cba8c208d953d8854010000000000000000000000000000000000ffff8d1421e5208d5f188854010000000000000000000000000000000000ffff4e1bbfb6208d36fc8754010000000000000000000000000000000000ffff3205cfb6208d5e458854010000000000000000000000000000000000ffff493092c2208dd0878754010000000000000000000000000000000000ffff97caacde208dd99d8754010000000000000000000000000000000000ffffc05f3c38208da7018854010000000000000000000000000000000000ffffdcf5f82d208df0f42254010000000000000000000000000000000000ffff58bf997f208d94228854010000000000000000000000000000000000ffffbc8ee72d208de3448854010000000000000000000000000000000000ffff6d780f99208d32448854010000000000000000000000000000000000ffffbc64c76e208d0b3d8854010000000000000000000000000000000000ffff6c414312208d49138854010000000000000000000000000000000000ffff407e52c6208d2d128854010000000000000000000000000000000000ffff6dc987d8208d4acf8754010000000000000000000000000000000000ffffae151a25208de9dd8754010000000000000000000000000000000000ffff522d2d10208d17df8754010000000000000000000000000000000000ffff4d294737208ddbd48754010000000000000000000000000000000000ffff443703fd208d79108854010000000000000000000000000000000000ffff4bb5a154208d1df28753010000000000000000000000000000000000ffff4c44fc51208d5d496a53010000000000000000000000000000000000ffff530924b0208d180b8854010000000000000000000000000000000000ffffc15fced3208d53128854010000000000000000000000000000000000ffff5bc5b9e4208de21f8854010000000000000000000000000000000000ffff2e05fe1f208d31ab6554010000000000000000000000000000000000ffffae865915208d09248854010000000000000000000000000000000000ffff7d71a4b0208d120b8854010000000000000000000000000000000000ffff93e40150208d25d98754010000000000000000000000000000000000ffffc19f7a86208d99e78754010000000000000000000000000000000000ffff4d675993208d2b218854010000000000000000000000000000000000ffff5144776c208d5a208854010000000000000000000000000000000000ffff2e1cce5820f69e8f8154010000000000000000000000000000000000ffff58718848208d9edd6554010000000000000000000000000000000000ffff2ea758c5208d28c98754010000000000000000000000000000000000ffffc60bd694208d181d8854010000000000000000000000000000000000ffffba6b689e208d77868754010000000000000000000000000000000000ffff182016aa208de1698054010000000000000000000000000000000000ffff5cf5daa9208d823d8854010000000000000000000000000000000000ffffbe4d61c8208d2c3b8854010000000000000000000000000000000000ffff71647df2208da2248854010000000000000000000000000000000000ffff4ff359ca208da2dd8754010000000000000000000000000000000000ffff59f1e52b208da6e60d54010000000000000000000000000000000000ffff579596231159ad218854010000000000000000000000000000000000ffff5895f42d208d5ba78754010000000000000000000000000000000000ffff458ae8b0208ddc9b8754010000000000000000000000000000000000ffff18b507a5208d20eb5754010000000000000000000000000000000000ffff5181a537208daf1d8854010000000000000000000000000000000000ffffd5f51eba208d07f58754010000000000000000000000000000000000ffff6dec54bc208d4b3b8854010000000000000000000000000000000000ffff5c3e1991208d13b54054010000000000000000000000000000000000ffffb273845a208d4f338854010000000000000000000000000000000000ffffcfac797b208d4d898754010000000000000000000000000000000000ffffadaf880d208de72f8854010000000000000000000000000000000000ffffd956ef58208dc1e98754010000000000000000000000000000000000ffff980711cf208dfd8f7154010000000000000000000000000000000000ffff50aba98f208d59fe8754010000000000000000000000000000000000ffff5f2ae582208d3ffa8754010000000000000000000000000000000000ffffbca836db208d389b0054010000000000000000000000000000000000ffffded10925208deb154354010000000000000000000000000000000000ffff717532da208dadde7654010000000000000000000000000000000000ffff93afd0e5208d40458854010000000000000000000000000000000000ffff54ee8cb0208d08fa8754010000000000000000000000000000000000ffff3658eba9208d0df58754010000000000000000000000000000000000ffff72c6876e208d5d408854010000000000000000000000000000000000ffffa7582d7c208de8338854010000000000000000000000000000000000ffffad40d7ad208d6c2a8854010000000000000000000000000000000000ffffbc1833a3208d0fc28754010000000000000000000000000000000000ffffcbceb676208d98448854010000000000000000000000000000000000ffff0121ce6e208d77b58754010000000000000000000000000000000000ffff4b40d938208d853b8854010000000000000000000000000000000000ffff5648d643208d1c9c7854010000000000000000000000000000000000ffff6c3230db208d4e028754010000000000000000000000000000000000ffffd8e33c5d208daf738754010000000000000000000000000000000000ffffad4e9d56208dca438854010000000000000000000000000000000000ffff4f8a0353208d7b408854010000000000000000000000000000000000ffff0599e92a208dc62f8854010000000000000000000000000000000000ffff46236049208dc4d58754010000000000000000000000000000000000ffff4400384d208d0ddb4c54010000000000000000000000000000000000ffff71653b5a208d53388854010000000000000000000000000000000000ffff43bddf66208d7c388854010000000000000000000000000000000000ffff47edca96208d8c068854010000000000000000000000000000000000ffffdded3c2c208d89f60554010000000000000000000000000000000000ffff4e60d8d6208da5ff1154010000000000000000000000000000000000ffff55983c68208d72f58754010000000000000000000000000000000000ffffce47f56a208d7e2d8854010000000000000000000000000000000000ffff17e25c12208da7ca8754010000000000000000000000000000000000ffff051d0baa208d19af8754010000000000000000000000000000000000ffffad42d883208dffd68754010000000000000000000000000000000000ffff5418ff88208d87bf8754010000000000000000000000000000000000ffff4c1fe0dc208deef18754010000000000000000000000000000000000ffff4c71d406208d25868754010000000000000000000000000000000000ffffda67a475208d4d348854010000000000000000000000000000000000ffff5d561269208da5918754010000000000000000000000000000000000ffff42b163b3208dbfac3754010000000000000000000000000000000000ffffad4e01eb208d5c408854010000000000000000000000000000000000ffffcc0bb91e208d4a928754010000000000000000000000000000000000ffff531dba30208db9fd8754010000000000000000000000000000000000ffffa3f72b33208dade58754010000000000000000000000000000000000ffffd8b93aeb208db75d4d54010000000000000000000000000000000000ffffae1d5595208de8d18754010000000000000000000000000000000000ffff4405665c208d88e78754010000000000000000000000000000000000ffff6b96180a208dae667354010000000000000000000000000000000000ffff531f490a208d92f98754010000000000000000000000000000000000ffffd447e857208db1428854010000000000000000000000000000000000ffff36c6b4bb208dd42c8854010000000000000000000000000000000000ffff4b4aff14208df71acd53010000000000000000000000000000000000ffff62d17930208da0b88754010000000000000000000000000000000000ffff974bf913208d5faa7953010000000000000000000000000000000000ffff7419d269208d6c1e8854010000000000000000000000000000000000ffff48a72343208d9c2b8854010000000000000000000000000000000000ffff64431e87208de8908754010000000000000000000000000000000000ffff44660d45208d410b7d54010000000000000000000000000000000000ffff43a3340d208d5b298854010000000000000000000000000000000000ffff9ffda678208de7238854010000000000000000000000000000000000ffff189a3759208da5745354010000000000000000000000000000000000ffff57026e31208df23c885401000000000000002a010488006710000523fbe100000001208dddf48754010000000000000000000000000000000000ffffc1531c5b208d61888754010000000000000000000000000000000000ffff42cd8bc1208df92e8854010000000000000000000000000000000000ffff36e1e970208d0cf75754010000000000000000000000000000000000ffffad4e2420208d0f028854010000000000000000000000000000000000ffff6ec61b02208de6228854010000000000000000000000000000000000ffffdcaa807c208d1cac8754010000000000000000000000000000000000ffff6179416c208db6068854010000000000000000000000000000000000ffffd46121e4208d7ea58754010000000000000000000000000000000000ffff80a41679208d91216254010000000000000000000000000000000000ffff69ece091208d0bf78754010000000000000000000000000000000000ffff45320c0b208dd03c8854010000000000000000000000000000000000ffff4859a2a5208d8e308854010000000000000000000000000000000000ffff2e1ce15a208d30f36354010000000000000000000000000000000000ffff4b61ee15208d7aa05553010000000000000000000000000000000000ffffb129186b208dbb238854010000000000000000000000000000000000ffff581a7f6f208d41248754010000000000000000000000000000000000ffffb009055b208dee218854010000000000000000000000000000000000ffff2e7771f9208db4e78754010000000000000000000000000000000000ffff411bf6ee208db5178854010000000000000000000000000000000000ffffacff001b208dbcf487540100000000000000200100009d386ab83061cfabfe3513a3208d76048854010000000000000000000000000000000000ffff2e35dbc2208d83d28754010000000000000000000000000000000000ffffd91bb1d5208d5c3d8854010000000000000000000000000000000000ffff32a47969208df4bd875401000000000000002a0104f8012032250000000000000002208d1bfa8754010000000000000000000000000000000000ffff53a2f4b6208d141c4554010000000000000000000000000000000000ffffb27b8281208d580c7e54010000000000000000000000000000000000ffffc9ea1340208df7228854010000000000000000000000000000000000ffffd90a268d208d41e18754010000000000000000000000000000000000ffff555b8809208d66358854010000000000000000000000000000000000ffff5280ff23208deecd8754010000000000000000000000000000000000ffff84c6a102208df9bc8754010000000000000000000000000000000000ffffbbc96dae208d9d0a8854010000000000000000000000000000000000ffffb2a2d18a208da9458854010000000000000000000000000000000000ffffca16c30e208d2ca88754010000000000000000000000000000000000ffff6baab63e208d923b8854010000000000000000000000000000000000ffffd5b87bee208d12258854010000000000000000000000000000000000ffff59ee408b208d980e8854010000000000000000000000000000000000ffff2edfb0c4208d33378854010000000000000000000000000000000000ffff6caa7b42208d41176d53010000000000000000000000000000000000ffff1fa2df68208dd1c57f54010000000000000000000000000000000000ffffbeab679a208d17c78754010000000000000000000000000000000000ffff3f983f51208dbb278854010000000000000000000000000000000000ffff568dbc28208d5d5ad953010000000000000000000000000000000000ffff0ec112b7208da1b78754010000000000000000000000000000000000ffffbc287698208d99348854010000000000000000000000000000000000ffff5ff1a302208d23ef8454010000000000000000000000000000000000ffff7ba55d22208d90e98754010000000000000000000000000000000000ffff5ae14503208d58f48754010000000000000000000000000000000000ffffd45a3cae208d530c8854010000000000000000000000000000000000ffff18fb80c4208dc6138854010000000000000000000000000000000000ffff4e2fd6eb208d97208854010000000000000000000000000000000000ffff55ddd5b8208d74f88654010000000000000000000000000000000000ffff1809ad86208dc0278854010000000000000000000000000000000000ffff6ef2dfb6208d84338854010000000000000000000000000000000000ffff58d8114e208dcae78754010000000000000000000000000000000000ffffc21c474c208d61e78754010000000000000000000000000000000000ffffd5b3fc7a208d7a078854010000000000000000000000000000000000ffff32740193208de7547b54010000000000000000000000000000000000ffff8046aac3208db5328854010000000000000000000000000000000000ffff5b0c5366208d5f208854010000000000000000000000000000000000ffff6caa054a208d1d682854010000000000000000000000000000000000ffff69e3eb9d208d179e6b54010000000000000000000000000000000000ffff54aac628208ded2e8854010000000000000000000000000000000000ffff4166d226208d8e148854010000000000000000000000000000000000ffff54305af6208d1ed88754010000000000000000000000000000000000ffff3ed2b2a4208d78ec8554010000000000000000000000000000000000ffff6dd2e575208ddd3e7854010000000000000000000000000000000000ffff1b83a102208d421e8854010000000000000000000000000000000000ffff2eb51bf1208dc01f8854010000000000000000000000000000000000ffff58c66033208d08ce8754010000000000000000000000000000000000ffff5d57b84c208df22e8854010000000000000000000000000000000000ffffbf213e3d208d89cb8754010000000000000000000000000000000000ffff53d7ece1208da9d68754010000000000000000000000000000000000ffff71bef412208d38268854010000000000000000000000000000000000ffff84fc8a6f208d4f107254010000000000000000000000000000000000ffff57a072d9208d990f88540100000000000000200100009d3890d71029db21863020f9208df3c36854010000000000000000000000000000000000ffffbba6a6c4208d3ea71f54010000000000000000000000000000000000ffff3e61237b208d60a18754010000000000000000000000000000000000ffff53a56b4b208db2328854010000000000000000000000000000000000ffff44eef265208d2c0f8854010000000000000000000000000000000000ffff566553c0208dec268854010000000000000000000000000000000000ffff57a69ecd208d93148854010000000000000000000000000000000000ffff9b8f4433208d741b8854010000000000000000000000000000000000ffffae17c74c208ddab94f54010000000000000000000000000000000000ffffab19c63a208d5e886f54010000000000000000000000000000000000ffffbc67a037208d5c3ccc53010000000000000000000000000000000000ffff0e77c86e208d26fb8754010000000000000000000000000000000000ffffc1eae172208d61278854010000000000000000000000000000000000ffff5ce15439208d60df8754010000000000000000000000000000000000ffff2599fb3b208d52418854010000000000000000000000000000000000ffff028710e6208dae448854010000000000000000000000000000000000ffff18152eee208d6ff18754010000000000000000000000000000000000ffff542e396d208d8c248854010000000000000000000000000000000000ffff5519d6d8208d01e33e54010000000000000000000000000000000000ffff5027d563208d05cd8754010000000000000000000000000000000000ffff45a5a9c5208d7c1e8854010000000000000000000000000000000000ffff68c813c8208d38a48754010000000000000000000000000000000000ffff3a60a934208d73ec8754010000000000000000000000000000000000ffffae3db8f3208d096c8754010000000000000000000000000000000000ffff4cb88802208d55d38754010000000000000000000000000000000000ffffd31f082e208d0d8a8754010000000000000000000000000000000000ffff6c22c9bb208d81ba7754010000000000000000000000000000000000ffffca5f88da208d5df88754010000000000000000000000000000000000ffffc31abc05208db1d58754010000000000000000000000000000000000ffff5cf614c8208d2b257c54010000000000000000000000000000000000ffff45f9baa0208d38d78754010000000000000000000000000000000000ffff490e0608208d27e88754010000000000000000000000000000000000ffff17f1ccd0208d501c8854010000000000000000000000000000000000ffff5be834a7208d860b8854010000000000000000000000000000000000ffff640173bc208deada8754010000000000000000000000000000000000ffffdc98f8db208d983d3c54010000000000000000000000000000000000ffff021ab398208d99f28754010000000000000000000000000000000000ffff59a9e417208d19468854010000000000000000000000000000000000ffff91ff01a1208ddbf68754010000000000000000000000000000000000ffff50048949208d89118854010000000000000000000000000000000000ffffc8366923208dea3b8854010000000000000000000000000000000000ffffbcbbb5a9208d364a8854010000000000000000000000000000000000ffffc654bd58208dd52ef953010000000000000000000000000000000000ffff7cabb7bc208db086cc53010000000000000000000000000000000000ffff6c4004ea208d0ff48754010000000000000000000000000000000000ffff0536a3cb208d1c0b8854010000000000000000000000000000000000ffffd90bfef3208dbf188854010000000000000000000000000000000000ffff0252431f208dd1c78754010000000000000000000000000000000000ffff25732b19208dd6fa3954010000000000000000000000000000000000ffff6c1131dc208da6108854010000000000000000000000000000000000ffff1fb9b748208daf368854010000000000000000000000000000000000ffff1f2a2981208d9e2f8854010000000000000000000000000000000000ffffbc658482208d6a458854010000000000000000000000000000000000ffff568b843a208dcd428854010000000000000000000000000000000000ffff5d820794208d38258854010000000000000000000000000000000000ffff6440c630208d1cda8754010000000000000000000000000000000000ffff6e9f7be5208ddd388854010000000000000000000000000000000000ffff9f080244208d2e2d8854010000000000000000000000000000000000ffffbb70cf3d208d3e0c8854010000000000000000000000000000000000ffff3ec27a16208d89098854010000000000000000000000000000000000ffffb55fb2fb208d13468854010000000000000000000000000000000000ffff180ab1e5208dfc2a8854010000000000000000000000000000000000ffffd58a5c0e208db9188854010000000000000000000000000000000000ffff81ce808d208d03d06b54010000000000000000000000000000000000ffff4b496858208d319e8454010000000000000000000000000000000000ffff531fac9f208dc8d98754010000000000000000000000000000000000ffffc113e4ea208d06395754010000000000000000000000000000000000ffff7cabf0d6208d722b8854010000000000000000000000000000000000ffff545db4cd208dd91f8854010000000000000000000000000000000000ffff5f12a597208dfbd57054010000000000000000000000000000000000ffff3cf654e6208dd7358854010000000000000000000000000000000000ffffb4998e79208dd7018854010000000000000000000000000000000000ffffb45cc220208d86df5554010000000000000000000000000000000000ffff7660d462208decd28754010000000000000000000000000000000000ffff5b7bdfe2208dafe28754010000000000000000000000000000000000ffff2e76899e208d0c318854010000000000000000000000000000000000ffffc7bcb183208d35258854010000000000000000000000000000000000ffff3ab2d076208db5c38754010000000000000000000000000000000000ffff48b24d30208ddfd18754010000000000000000000000000000000000ffff904cb00c208d40478854010000000000000000000000000000000000ffff02a3b787208deb318854010000000000000000000000000000000000ffffd2564026208de63f8854010000000000000000000000000000000000ffff615d16c0208dbf1d8854010000000000000000000000000000000000ffffc6fff6f0208d4aee8754010000000000000000000000000000000000ffff56c74bc8208d68bc8754010000000000000000000000000000000000ffff31b581f9208ddcca8754010000000000000000000000000000000000ffff0e97397a208db2318854010000000000000000000000000000000000ffffc766348d208de1bd8754010000000000000000000000000000000000ffffd5927a3d208d2aff8754010000000000000000000000000000000000ffff5152d0a5208da7feb753010000000000000000000000000000000000ffff53fe1694208de7418854010000000000000000000000000000000000ffff189f3d99208de7b38754010000000000000000000000000000000000ffff64004655208dacabb653010000000000000000000000000000000000ffff55413231208d43b88754010000000000000000000000000000000000ffff796e1029208d03788754010000000000000000000000000000000000ffff49b90ff6208d04be8754010000000000000000000000000000000000ffffc327ce1c208d33648254010000000000000000000000000000000000ffff2e896478208d9e308854010000000000000000000000000000000000ffffd395d9bf208df13e8854010000000000000000000000000000000000ffff51bb88ed208dec8c5653010000000000000000000000000000000000ffff557f146e208df4538854010000000000000000000000000000000000ffff48d05928208d41bd8154010000000000000000000000000000000000ffff47384162208df6428854010000000000000000000000000000000000ffffc1566314208d753e8854010000000000000000000000000000000000ffff440c9b4f208d2f078854010000000000000000000000000000000000ffff56021a19208d7b0f4754010000000000000000000000000000000000ffff71653a84208dcee88754010000000000000000000000000000000000ffff5401a332208df4db8754010000000000000000000000000000000000ffff5a9db0e3208df8e38754010000000000000000000000000000000000ffff5d5208fa208d2e298854010000000000000000000000000000000000ffff4c61c0bc208d42ea8754010000000000000000000000000000000000ffff4c405ae7208deade8754010000000000000000000000000000000000ffffc009c823208d99358854010000000000000000000000000000000000ffff6cc2b493208df3fd8754010000000000000000000000000000000000ffff904c6007208d1fde8754010000000000000000000000000000000000ffff92732ae8208d666e8354010000000000000000000000000000000000ffff6daa9d16208d18f78754010000000000000000000000000000000000ffff4d6d8d8a208ddea9ce53010000000000000000000000000000000000ffff17e26f7d208d1ae48754010000000000000000000000000000000000ffffc32ebb89208dee258854010000000000000000000000000000000000ffff4a0f10e1208d290a8854010000000000000000000000000000000000ffff42731593208d7cb33354010000000000000000000000000000000000ffff532e8b97208dfd1e8854010000000000000000000000000000000000ffff6ee91680208d480a1354010000000000000000000000000000000000ffff60f220f6208d55838754010000000000000000000000000000000000ffff1f36d48f208d247e8754010000000000000000000000000000000000ffff44b5a49a208d0efa4954010000000000000000000000000000000000ffff63890597208d862e8854010000000000000000000000000000000000ffffc14d8751208d443c8854010000000000000000000000000000000000ffff70d16dba208d72fe8754010000000000000000000000000000000000ffff55983dd3208d236b6854010000000000000000000000000000000000ffff7aea27f9208d67e08754010000000000000000000000000000000000ffff1b20750d208df10a7154010000000000000000000000000000000000ffff7b9fe56e208db32d8854010000000000000000000000000000000000ffff7ba42d54208db3f58754010000000000000000000000000000000000ffff027b4eba208d70d68754010000000000000000000000000000000000ffffbc1b62b9208d97951454010000000000000000000000000000000000ffffb4b6af10208d251288540100000000000000200100009d386ab800773149c4d7e673208d7b168854010000000000000000000000000000000000ffff58969392208d91d18754010000000000000000000000000000000000ffff9ffd6d4e208d19008854010000000000000000000000000000000000ffff4e926cb8208dd1c98754010000000000000000000000000000000000ffff546cdb77208d6a0a8854010000000000000000000000000000000000ffff6caa8c15208d3a3a8854010000000000000000000000000000000000ffff62e28d6a208d3fe48754010000000000000000000000000000000000ffffd9850be7208dcb438854010000000000000000000000000000000000ffff6c2444b3208d78338854010000000000000000000000000000000000ffffb2df574a208d3b2d3054010000000000000000000000000000000000ffff4b529e67208d5b988754010000000000000000000000000000000000ffff36e152e6208d01ab8754010000000000000000000000000000000000ffff58b531bf208d7b038854010000000000000000000000000000000000ffff54717a6f208db0388854010000000000000000000000000000000000ffff4a694e98208d65418854010000000000000000000000000000000000ffffcef84b25208dcf218854010000000000000000000000000000000000ffff5364fed9208db6c68754010000000000000000000000000000000000ffff4d03decd208dc6158854010000000000000000000000000000000000ffffb9044c79208d65418854010000000000000000000000000000000000ffff56b2192f208d23308754010000000000000000000000000000000000ffffd973f7a4208d05158854010000000000000000000000000000000000ffff1b6d9975208d52cd8754010000000000000000000000000000000000ffffdf5b92ad208d3a128854010000000000000000000000000000000000ffff6d93787e208d351e8854010000000000000000000000000000000000ffffb6a4336f208d9bd58754010000000000000000000000000000000000ffff3ba7f521208dc3288854010000000000000000000000000000000000ffff6bbf20cc208d68998754010000000000000000000000000000000000ffff63b30032208d86848754010000000000000000000000000000000000ffffb52ef15c208dff108854010000000000000000000000000000000000ffff4d06718b208d226f0754010000000000000000000000000000000000ffff44248ba1208da3af7354010000000000000000000000000000000000ffff86f9d72c208d9fd68754010000000000000000000000000000000000ffff521f2444208dae428854010000000000000000000000000000000000ffffd445b025208dfafc8754010000000000000000000000000000000000ffffd447fa84208dbb358854010000000000000000000000000000000000ffff3ee2d196208da01a8854010000000000000000000000000000000000ffff45a615b2208d32edb053010000000000000000000000000000000000ffff6d6494da208d77ed8754010000000000000000000000000000000000ffff555dcc44208d09608754010000000000000000000000000000000000ffff45a5d222208d84558754010000000000000000000000000000000000ffffb01c30ab208d71fe8754010000000000000000000000000000000000ffffae5f68c2208de0acdf53010000000000000000000000000000000000ffffae737936208d29e18754010000000000000000000000000000000000ffffb00a63cb208d220b8854010000000000000000000000000000000000ffff9ec4d12f208db4408854010000000000000000000000000000000000ffff4c6d9bcc208d65a58754010000000000000000000000000000000000ffff5962c453208d2d628854010000000000000000000000000000000000ffff257191d50000" - }, - "PING": { - "message": "f9beb4d9706f6e67000000000000000008000000c6466f1e6b86480ae969867c", - "payload": "6b86480ae969867c" - } -} diff --git a/test/data/sighash.json b/test/data/sighash.json deleted file mode 100644 index d66a56a..0000000 --- a/test/data/sighash.json +++ /dev/null @@ -1,503 +0,0 @@ -[ - ["raw_transaction, script, input_index, hashType, signature_hash (result)"], - ["907c2bc503ade11cc3b04eb2918b6f547b0630ab569273824748c87ea14b0696526c66ba740200000004ab65ababfd1f9bdd4ef073c7afc4ae00da8a66f429c917a0081ad1e1dabce28d373eab81d8628de802000000096aab5253ab52000052ad042b5f25efb33beec9f3364e8a9139e8439d9d7e26529c3c30b6c3fd89f8684cfd68ea0200000009ab53526500636a52ab599ac2fe02a526ed040000000008535300516352515164370e010000000003006300ab2ec229", "", 2, 1864164639, "31af167a6cf3f9d5f6875caa4d31704ceb0eba078d132b78dab52c3b8997317e"], - ["a0aa3126041621a6dea5b800141aa696daf28408959dfb2df96095db9fa425ad3f427f2f6103000000015360290e9c6063fa26912c2e7fb6a0ad80f1c5fea1771d42f12976092e7a85a4229fdb6e890000000001abc109f6e47688ac0e4682988785744602b8c87228fcef0695085edf19088af1a9db126e93000000000665516aac536affffffff8fe53e0806e12dfd05d67ac68f4768fdbe23fc48ace22a5aa8ba04c96d58e2750300000009ac51abac63ab5153650524aa680455ce7b000000000000499e50030000000008636a00ac526563ac5051ee030000000003abacabd2b6fe000000000003516563910fb6b5", "65", 0, -1391424484, "48d6a1bd2cd9eec54eb866fc71209418a950402b5d7e52363bfb75c98e141175"], - ["6e7e9d4b04ce17afa1e8546b627bb8d89a6a7fefd9d892ec8a192d79c2ceafc01694a6a7e7030000000953ac6a51006353636a33bced1544f797f08ceed02f108da22cd24c9e7809a446c61eb3895914508ac91f07053a01000000055163ab516affffffff11dc54eee8f9e4ff0bcf6b1a1a35b1cd10d63389571375501af7444073bcec3c02000000046aab53514a821f0ce3956e235f71e4c69d91abe1e93fb703bd33039ac567249ed339bf0ba0883ef300000000090063ab65000065ac654bec3cc504bcf499020000000005ab6a52abac64eb060100000000076a6a5351650053bbbc130100000000056a6aab53abd6e1380100000000026a51c4e509b8", "acab655151", 0, 479279909, "2a3d95b09237b72034b23f2d2bb29fa32a58ab5c6aa72f6aafdfa178ab1dd01c"], - ["73107cbd025c22ebc8c3e0a47b2a760739216a528de8d4dab5d45cbeb3051cebae73b01ca10200000007ab6353656a636affffffffe26816dffc670841e6a6c8c61c586da401df1261a330a6c6b3dd9f9a0789bc9e000000000800ac6552ac6aac51ffffffff0174a8f0010000000004ac52515100000000", "5163ac63635151ac", 1, 1190874345, "06e328de263a87b09beabe222a21627a6ea5c7f560030da31610c4611f4a46bc"], - ["e93bbf6902be872933cb987fc26ba0f914fcfc2f6ce555258554dd9939d12032a8536c8802030000000453ac5353eabb6451e074e6fef9de211347d6a45900ea5aaf2636ef7967f565dce66fa451805c5cd10000000003525253ffffffff047dc3e6020000000007516565ac656aabec9eea010000000001633e46e600000000000015080a030000000001ab00000000", "5300ac6a53ab6a", 1, -886562767, "f03aa4fc5f97e826323d0daa03343ebf8a34ed67a1ce18631f8b88e5c992e798"], - ["50818f4c01b464538b1e7e7f5ae4ed96ad23c68c830e78da9a845bc19b5c3b0b20bb82e5e9030000000763526a63655352ffffffff023b3f9c040000000008630051516a6a5163a83caf01000000000553ab65510000000000", "6aac", 0, 946795545, "746306f322de2b4b58ffe7faae83f6a72433c22f88062cdde881d4dd8a5a4e2d"], - ["a93e93440250f97012d466a6cc24839f572def241c814fe6ae94442cf58ea33eb0fdd9bcc1030000000600636a0065acffffffff5dee3a6e7e5ad6310dea3e5b3ddda1a56bf8de7d3b75889fc024b5e233ec10f80300000007ac53635253ab53ffffffff0160468b04000000000800526a5300ac526a00000000", "ac00636a53", 1, 1773442520, "5c9d3a2ce9365bb72cfabbaa4579c843bb8abf200944612cf8ae4b56a908bcbd"], - ["ce7d371f0476dda8b811d4bf3b64d5f86204725deeaa3937861869d5b2766ea7d17c57e40b0100000003535265ffffffff7e7e9188f76c34a46d0bbe856bde5cb32f089a07a70ea96e15e92abb37e479a10100000006ab6552ab655225bcab06d1c2896709f364b1e372814d842c9c671356a1aa5ca4e060462c65ae55acc02d0000000006abac0063ac5281b33e332f96beebdbc6a379ebe6aea36af115c067461eb99d22ba1afbf59462b59ae0bd0200000004ab635365be15c23801724a1704000000000965006a65ac00000052ca555572", "53ab530051ab", 1, 2030598449, "c336b2f7d3702fbbdeffc014d106c69e3413c7c71e436ba7562d8a7a2871f181"], - ["d3b7421e011f4de0f1cea9ba7458bf3486bee722519efab711a963fa8c100970cf7488b7bb0200000003525352dcd61b300148be5d05000000000000000000", "535251536aac536a", 0, -1960128125, "29aa6d2d752d3310eba20442770ad345b7f6a35f96161ede5f07b33e92053e2a"], - ["04bac8c5033460235919a9c63c42b2db884c7c8f2ed8fcd69ff683a0a2cccd9796346a04050200000003655351fcad3a2c5a7cbadeb4ec7acc9836c3f5c3e776e5c566220f7f965cf194f8ef98efb5e3530200000007526a006552526526a2f55ba5f69699ece76692552b399ba908301907c5763d28a15b08581b23179cb01eac03000000075363ab6a516351073942c2025aa98a05000000000765006aabac65abd7ffa6030000000004516a655200000000", "53ac6365ac526a", 1, 764174870, "bf5fdc314ded2372a0ad078568d76c5064bf2affbde0764c335009e56634481b"], - ["c363a70c01ab174230bbe4afe0c3efa2d7f2feaf179431359adedccf30d1f69efe0c86ed390200000002ab51558648fe0231318b04000000000151662170000000000008ac5300006a63acac00000000", "", 0, 2146479410, "191ab180b0d753763671717d051f138d4866b7cb0d1d4811472e64de595d2c70"], - ["8d437a7304d8772210a923fd81187c425fc28c17a5052571501db05c7e89b11448b36618cd02000000026a6340fec14ad2c9298fde1477f1e8325e5747b61b7e2ff2a549f3d132689560ab6c45dd43c3010000000963ac00ac000051516a447ed907a7efffebeb103988bf5f947fc688aab2c6a7914f48238cf92c337fad4a79348102000000085352ac526a5152517436edf2d80e3ef06725227c970a816b25d0b58d2cd3c187a7af2cea66d6b27ba69bf33a0300000007000063ab526553f3f0d6140386815d030000000003ab6300de138f00000000000900525153515265abac1f87040300000000036aac6500000000", "51", 3, -315779667, "b6632ac53578a741ae8c36d8b69e79f39b89913a2c781cdf1bf47a8c29d997a5"], - ["fd878840031e82fdbe1ad1d745d1185622b0060ac56638290ec4f66b1beef4450817114a2c0000000009516a63ab53650051abffffffff37b7a10322b5418bfd64fb09cd8a27ddf57731aeb1f1f920ffde7cb2dfb6cdb70300000008536a5365ac53515369ecc034f1594690dbe189094dc816d6d57ea75917de764cbf8eccce4632cbabe7e116cd0100000003515352ffffffff035777fc000000000003515200abe9140300000000050063005165bed6d10200000000076300536363ab65195e9110", "635265", 0, 1729787658, "6e3735d37a4b28c45919543aabcb732e7a3e1874db5315abb7cc6b143d62ff10"], - ["f40a750702af06efff3ea68e5d56e42bc41cdb8b6065c98f1221fe04a325a898cb61f3d7ee030000000363acacffffffffb5788174aef79788716f96af779d7959147a0c2e0e5bfb6c2dba2df5b4b97894030000000965510065535163ac6affffffff0445e6fd0200000000096aac536365526a526aa6546b000000000008acab656a6552535141a0fd010000000000c897ea030000000008526500ab526a6a631b39dba3", "00abab5163ac", 1, -1778064747, "d76d0fc0abfa72d646df888bce08db957e627f72962647016eeae5a8412354cf"], - ["a63bc673049c75211aa2c09ecc38e360eaa571435fedd2af1116b5c1fa3d0629c269ecccbf0000000008ac65ab516352ac52ffffffffbf1a76fdda7f451a5f0baff0f9ccd0fe9136444c094bb8c544b1af0fa2774b06010000000463535253ffffffff13d6b7c3ddceef255d680d87181e100864eeb11a5bb6a3528cb0d70d7ee2bbbc02000000056a0052abab951241809623313b198bb520645c15ec96bfcc74a2b0f3db7ad61d455cc32db04afc5cc702000000016309c9ae25014d9473020000000004abab6aac3bb1e803", "", 3, -232881718, "6e48f3da3a4ac07eb4043a232df9f84e110485d7c7669dd114f679c27d15b97e"], - ["4c565efe04e7d32bac03ae358d63140c1cfe95de15e30c5b84f31bb0b65bb542d637f49e0f010000000551abab536348ae32b31c7d3132030a510a1b1aacf7b7c3f19ce8dc49944ef93e5fa5fe2d356b4a73a00100000009abac635163ac00ab514c8bc57b6b844e04555c0a4f4fb426df139475cd2396ae418bc7015820e852f711519bc202000000086a00510000abac52488ff4aec72cbcfcc98759c58e20a8d2d9725aa4a80f83964e69bc4e793a4ff25cd75dc701000000086a52ac6aac5351532ec6b10802463e0200000000000553005265523e08680100000000002f39a6b0", "", 3, 70712784, "c6076b6a45e6fcfba14d3df47a34f6aadbacfba107e95621d8d7c9c0e40518ed"], - ["1233d5e703403b3b8b4dae84510ddfc126b4838dcb47d3b23df815c0b3a07b55bf3098110e010000000163c5c55528041f480f40cf68a8762d6ed3efe2bd402795d5233e5d94bf5ddee71665144898030000000965525165655151656affffffff6381667e78bb74d0880625993bec0ea3bd41396f2bcccc3cc097b240e5e92d6a01000000096363acac6a63536365ffffffff04610ad60200000000065251ab65ab52e90d680200000000046351516ae30e98010000000008abab52520063656a671856010000000004ac6aac514c84e383", "6aabab636300", 1, -114996813, "aeb8c5a62e8a0b572c28f2029db32854c0b614dbecef0eaa726abebb42eebb8d"], - ["0c69702103b25ceaed43122cc2672de84a3b9aa49872f2a5bb458e19a52f8cc75973abb9f102000000055365656aacffffffff3ffb1cf0f76d9e3397de0942038c856b0ebbea355dc9d8f2b06036e19044b0450100000000ffffffff4b7793f4169617c54b734f2cd905ed65f1ce3d396ecd15b6c426a677186ca0620200000008655263526551006a181a25b703240cce0100000000046352ab53dee22903000000000865526a6a516a51005e121602000000000852ab52ababac655200000000", "6a516aab63", 1, -2040012771, "a6e6cb69f409ec14e10dd476f39167c29e586e99bfac93a37ed2c230fcc1dbbe"], - ["fd22692802db8ae6ab095aeae3867305a954278f7c076c542f0344b2591789e7e33e4d29f4020000000151ffffffffb9409129cfed9d3226f3b6bab7a2c83f99f48d039100eeb5796f00903b0e5e5e0100000006656552ac63abd226abac0403e649000000000007abab51ac5100ac8035f10000000000095165006a63526a52510d42db030000000007635365ac6a63ab24ef5901000000000453ab6a0000000000", "536a52516aac6a", 1, 309309168, "7ca0f75e6530ec9f80d031fc3513ca4ecd67f20cb38b4dacc6a1d825c3cdbfdb"], - ["a43f85f701ffa54a3cc57177510f3ea28ecb6db0d4431fc79171cad708a6054f6e5b4f89170000000008ac6a006a536551652bebeaa2013e779c05000000000665ac5363635100000000", "ac", 0, 2028978692, "58294f0d7f2e68fe1fd30c01764fe1619bcc7961d68968944a0e263af6550437"], - ["c2b0b99001acfecf7da736de0ffaef8134a9676811602a6299ba5a2563a23bb09e8cbedf9300000000026300ffffffff042997c50300000000045252536a272437030000000007655353ab6363ac663752030000000002ab6a6d5c900000000000066a6a5265abab00000000", "52ac525163515251", 0, -894181723, "8b300032a1915a4ac05cea2f7d44c26f2a08d109a71602636f15866563eaafdc"], - ["82f9f10304c17a9d954cf3380db817814a8c738d2c811f0412284b2c791ec75515f38c4f8c020000000265ab5729ca7db1b79abee66c8a757221f29280d0681355cb522149525f36da760548dbd7080a0100000001510b477bd9ce9ad5bb81c0306273a3a7d051e053f04ecf3a1dbeda543e20601a5755c0cfae030000000451ac656affffffff71141a04134f6c292c2e0d415e6705dfd8dcee892b0d0807828d5aeb7d11f5ef0300000001520b6c6dc802a6f3dd0000000000056aab515163bfb6800300000000015300000000", "", 3, -635779440, "d55ed1e6c53510f2608716c12132a11fb5e662ec67421a513c074537eeccc34b"], - ["8edcf5a1014b604e53f0d12fe143cf4284f86dc79a634a9f17d7e9f8725f7beb95e8ffcd2403000000046aabac52ffffffff01c402b5040000000005ab6a63525100000000", "6351525251acabab6a", 0, 1520147826, "2765bbdcd3ebb8b1a316c04656b28d637f80bffbe9b040661481d3dc83eea6d6"], - ["2074bad5011847f14df5ea7b4afd80cd56b02b99634893c6e3d5aaad41ca7c8ee8e5098df003000000026a6affffffff018ad59700000000000900ac656a526551635300000000", "65635265", 0, -1804671183, "663c999a52288c9999bff36c9da2f8b78d5c61b8347538f76c164ccba9868d0a"], - ["7100b11302e554d4ef249ee416e7510a485e43b2ba4b8812d8fe5529fe33ea75f36d392c4403000000020000ffffffff3d01a37e075e9a7715a657ae1bdf1e44b46e236ad16fd2f4c74eb9bf370368810000000007636553ac536365ffffffff01db696a0400000000065200ac656aac00000000", "63005151", 0, -1210499507, "b9c3aee8515a4a3b439de1ffc9c156824bda12cb75bfe5bc863164e8fd31bd7a"], - ["02c1017802091d1cb08fec512db7b012fe4220d57a5f15f9e7676358b012786e1209bcff950100000004acab6352ffffffff799bc282724a970a6fea1828984d0aeb0f16b67776fa213cbdc4838a2f1961a3010000000951516a536552ab6aabffffffff016c7b4b03000000000865abac5253ac5352b70195ad", "65655200516a", 0, -241626954, "be567cb47170b34ff81c66c1142cb9d27f9b6898a384d6dfc4fce16b75b6cb14"], - ["cb3178520136cd294568b83bb2520f78fecc507898f4a2db2674560d72fd69b9858f75b3b502000000066aac00515100ffffffff03ab005a01000000000563526363006e3836030000000001abfbda3200000000000665ab0065006500000000", "ab516a0063006a5300", 0, 1182109299, "2149e79c3f4513da4e4378608e497dcfdfc7f27c21a826868f728abd2b8a637a"], - ["18a4b0c004702cf0e39686ac98aab78ad788308f1d484b1ddfe70dc1997148ba0e28515c310300000000ffffffff05275a52a23c59da91129093364e275da5616c4070d8a05b96df5a2080ef259500000000096aac51656a6aac53ab66e64966b3b36a07dd2bb40242dd4a3743d3026e7e1e0d9e9e18f11d068464b989661321030000000265ac383339c4fae63379cafb63b0bab2eca70e1f5fc7d857eb5c88ccd6c0465093924bba8b2a000000000300636ab5e0545402bc2c4c010000000000cd41c002000000000000000000", "abac635253656a00", 3, 2052372230, "32db877b6b1ca556c9e859442329406f0f8246706522369839979a9f7a235a32"], - ["1d9c5df20139904c582285e1ea63dec934251c0f9cf5c47e86abfb2b394ebc57417a81f67c010000000353515222ba722504800d3402000000000353656a3c0b4a0200000000000fb8d20500000000076300ab005200516462f30400000000015200000000", "ab65", 0, -210854112, "edf73e2396694e58f6b619f68595b0c1cdcb56a9b3147845b6d6afdb5a80b736"], - ["4504cb1904c7a4acf375ddae431a74de72d5436efc73312cf8e9921f431267ea6852f9714a01000000066a656a656553a2fbd587c098b3a1c5bd1d6480f730a0d6d9b537966e20efc0e352d971576d0f87df0d6d01000000016321aeec3c4dcc819f1290edb463a737118f39ab5765800547522708c425306ebfca3f396603000000055300ac656a1d09281d05bfac57b5eb17eb3fa81ffcedfbcd3a917f1be0985c944d473d2c34d245eb350300000007656a51525152ac263078d9032f470f0500000000066aac00000052e12da60200000000003488410200000000076365006300ab539981e432", "52536a52526a", 1, -31909119, "f0a2deee7fd8a3a9fad6927e763ded11c940ee47e9e6d410f94fda5001f82e0c"], - ["14bc7c3e03322ec0f1311f4327e93059c996275302554473104f3f7b46ca179bfac9ef753503000000016affffffff9d405eaeffa1ca54d9a05441a296e5cc3a3e32bb8307afaf167f7b57190b07e00300000008abab51ab5263abab45533aa242c61bca90dd15d46079a0ab0841d85df67b29ba87f2393cd764a6997c372b55030000000452005263ffffffff0250f40e02000000000651516a0063630e95ab0000000000046a5151ac00000000", "6a65005151", 0, -1460947095, "aa418d096929394c9147be8818d8c9dafe6d105945ab9cd7ec682df537b5dd79"], - ["2b3bd0dd04a1832f893bf49a776cd567ec4b43945934f4786b615d6cb850dfc0349b33301a000000000565ac000051cf80c670f6ddafab63411adb4d91a69c11d9ac588898cbfb4cb16061821cc104325c895103000000025163ffffffffa9e2d7506d2d7d53b882bd377bbcc941f7a0f23fd15d2edbef3cd9df8a4c39d10200000009ac63006a52526a5265ffffffff44c099cdf10b10ce87d4b38658d002fd6ea17ae4a970053c05401d86d6e75f99000000000963ab53526a5252ab63ffffffff035af69c01000000000100ba9b8b0400000000004cead10500000000026a520b77d667", "ab52abac526553", 3, -1955078165, "eb9ceecc3b401224cb79a44d23aa8f428e29f1405daf69b4e01910b848ef1523"], - ["35df11f004a48ba439aba878fe9df20cc935b4a761c262b1b707e6f2b33e2bb7565cd68b130000000000ffffffffb2a2f99abf64163bb57ca900500b863f40c02632dfd9ea2590854c5fb4811da90200000006ac006363636affffffffaf9d89b2a8d2670ca37c8f7c140600b81259f2e037cb4590578ec6e37af8bf200000000005abac6a655270a4751eb551f058a93301ffeda2e252b6614a1fdd0e283e1d9fe53c96c5bbaafaac57b8030000000153ffffffff020d9f3b02000000000100ed7008030000000004abac000000000000", "abac", 3, 593793071, "88fdee1c2d4aeead71d62396e28dc4d00e5a23498eea66844b9f5d26d1f21042"], - ["a08ff466049fb7619e25502ec22fedfb229eaa1fe275aa0b5a23154b318441bf547989d0510000000005ab5363636affffffff2b0e335cb5383886751cdbd993dc0720817745a6b1c9b8ab3d15547fc9aafd03000000000965656a536a52656a532b53d10584c290d3ac1ab74ab0a19201a4a039cb59dc58719821c024f6bf2eb26322b33f010000000965ac6aac0053ab6353ffffffff048decba6ebbd2db81e416e39dde1f821ba69329725e702bcdea20c5cc0ecc6402000000086363ab5351ac6551466e377b0468c0fa00000000000651ab53ac6a513461c6010000000008636a636365535100eeb3dc010000000006526a52ac516a43f362010000000005000063536500000000", "0063516a", 1, -1158911348, "f6a1ecb50bd7c2594ebecea5a1aa23c905087553e40486dade793c2f127fdfae"], - ["5ac2f17d03bc902e2bac2469907ec7d01a62b5729340bc58c343b7145b66e6b97d434b30fa000000000163ffffffff44028aa674192caa0d0b4ebfeb969c284cb16b80c312d096efd80c6c6b094cca000000000763acabac516a52ffffffff10c809106e04b10f9b43085855521270fb48ab579266e7474657c6c625062d2d030000000351636595a0a97004a1b69603000000000465ab005352ad68010000000008636a5263acac5100da7105010000000002acab90325200000000000000000000", "6a6aab516a63526353", 2, 1518400956, "f7efb74b1dcc49d316b49c632301bc46f98d333c427e55338be60c7ef0d953be"], - ["aeb2e11902dc3770c218b97f0b1960d6ee70459ecb6a95eff3f05295dc1ef4a0884f10ba460300000005516352526393e9b1b3e6ae834102d699ddd3845a1e159aa7cf7635edb5c02003f7830fee3788b795f20100000009ab006a526553ac006ad8809c570469290e0400000000050000abab00b10fd5040000000008ab655263abac53ab630b180300000000009d9993040000000002516300000000", "5351ababac6a65", 0, 1084852870, "f2286001af0b0170cbdad92693d0a5ebaa8262a4a9d66e002f6d79a8c94026d1"], - ["9860ca9a0294ff4812534def8c3a3e3db35b817e1a2ddb7f0bf673f70eab71bb79e90a2f3100000000086a636551acac5165ffffffffed4d6d3cd9ff9b2d490e0c089739121161a1445844c3e204296816ab06e0a83702000000035100ac88d0db5201c3b59a050000000005ac6a0051ab00000000", "535263ab006a526aab", 1, -962088116, "30df2473e1403e2b8e637e576825f785528d998af127d501556e5f7f5ed89a2a"], - ["4ddaa680026ec4d8060640304b86823f1ac760c260cef81d85bd847952863d629a3002b54b0200000008526365636a656aab65457861fc6c24bdc760c8b2e906b6656edaf9ed22b5f50e1fb29ec076ceadd9e8ebcb6b000000000152ffffffff033ff04f00000000000551526a00657a1d900300000000002153af040000000003006a6300000000", "ab526a53acabab", 0, 1055317633, "7f21b62267ed52462e371a917eb3542569a4049b9dfca2de3c75872b39510b26"], - ["01e76dcd02ad54cbc8c71d68eaf3fa7c883b65d74217b30ba81f1f5144ef80b706c0dc82ca000000000352ab6a078ec18bcd0514825feced2e8b8ea1ccb34429fae41c70cc0b73a2799e85603613c6870002000000086363ab6365536a53ffffffff043acea90000000000016ad20e1803000000000100fa00830200000000056352515351e864ee00000000000865535253ab6a6551d0c46672", "6a6365abacab", 0, -1420559003, "8af0b4cbdbc011be848edf4dbd2cde96f0578d662cfebc42252495387114224a"], - ["fa00b26402670b97906203434aa967ce1559d9bd097d56dbe760469e6032e7ab61accb54160100000006635163630052fffffffffe0d3f4f0f808fd9cfb162e9f0c004601acf725cd7ea5683bbdc9a9a433ef15a0200000005ab52536563d09c7bef049040f305000000000153a7c7b9020000000004ac63ab52847a2503000000000553ab00655390ed80010000000005006553ab52860671d4", "536565ab52", 0, 799022412, "40ed8e7bbbd893e15f3cce210ae02c97669818de5946ca37eefc7541116e2c78"], - ["cb5c06dc01b022ee6105ba410f0eb12b9ce5b5aa185b28532492d839a10cef33d06134b91b010000000153ffffffff02cec0530400000000005e1e4504000000000865656551acacac6a00000000", "ab53", 0, -1514251329, "136beb95459fe6b126cd6cefd54eb5d971524b0e883e41a292a78f78015cb8d5"], - ["f10a0356031cd569d652dbca8e7a4d36c8da33cdff428d003338602b7764fe2c96c505175b010000000465ac516affffffffbb54563c71136fa944ee20452d78dc87073ac2365ba07e638dce29a5d179da600000000003635152ffffffff9a411d8e2d421b1e6085540ee2809901e590940bbb41532fa38bd7a16b68cc350100000007535251635365636195df1603b61c45010000000002ab65bf6a310400000000026352fcbba10200000000016aa30b7ff0", "5351", 0, 1552495929, "9eb8adf2caecb4bf9ac59d7f46bd20e83258472db2f569ee91aba4cf5ee78e29"], - ["c3325c9b012f659466626ca8f3c61dfd36f34670abc054476b7516a1839ec43cd0870aa0c0000000000753525265005351e7e3f04b0112650500000000000363ac6300000000", "acac", 0, -68961433, "5ca70e727d91b1a42b78488af2ed551642c32d3de4712a51679f60f1456a8647"], - ["2333e54c044370a8af16b9750ac949b151522ea6029bacc9a34261599549581c7b4e5ece470000000007510052006563abffffffff80630fc0155c750ce20d0ca4a3d0c8e8d83b014a5b40f0b0be0dd4c63ac28126020000000465000000ffffffff1b5f1433d38cdc494093bb1d62d84b10abbdae57e3d04e82e600857ab3b1dc990300000003515100b76564be13e4890a908ea7508afdad92ec1b200a9a67939fadce6eb7a29eb4550a0a28cb0300000001acffffffff02926c930300000000016373800201000000000153d27ee740", "ab6365ab516a53", 3, 598653797, "2be27a686eb7940dd32c44ff3a97c1b28feb7ab9c5c0b1593b2d762361cfc2db"], - ["b500ca48011ec57c2e5252e5da6432089130603245ffbafb0e4c5ffe6090feb629207eeb0e010000000652ab6a636aab8302c9d2042b44f40500000000015278c05a050000000004ac5251524be080020000000007636aac63ac5252c93a9a04000000000965ab6553636aab5352d91f9ddb", "52005100", 0, -2024394677, "49c8a6940a461cc7225637f1e512cdd174c99f96ec05935a59637ededc77124c"], - ["f52ff64b02ee91adb01f3936cc42e41e1672778962b68cf013293d649536b519bc3271dd2c00000000020065afee11313784849a7c15f44a61cd5fd51ccfcdae707e5896d131b082dc9322a19e12858501000000036aac654e8ca882022deb7c020000000006006a515352abd3defc0000000000016300000000", "63520063", 0, 1130989496, "7f208df9a5507e98c62cebc5c1e2445eb632e95527594929b9577b53363e96f6"], - ["ab7d6f36027a7adc36a5cf7528fe4fb5d94b2c96803a4b38a83a675d7806dda62b380df86a0000000003000000ffffffff5bc00131e29e22057c04be854794b4877dda42e416a7a24706b802ff9da521b20000000007ac6a0065ac52ac957cf45501b9f06501000000000500ac6363ab25f1110b", "00526500536a635253", 0, 911316637, "5fa09d43c8aef6f6fa01c383a69a5a61a609cd06e37dce35a39dc9eae3ddfe6c"], - ["f940888f023dce6360263c850372eb145b864228fdbbb4c1186174fa83aab890ff38f8c9a90300000000ffffffff01e80ccdb081e7bbae1c776531adcbfb77f2e5a7d0e5d0d0e2e6c8758470e85f00000000020053ffffffff03b49088050000000004656a52ab428bd604000000000951630065ab63ac636a0cbacf0400000000070063ac5265ac53d6e16604", "ac63", 0, 39900215, "713ddeeefcfe04929e7b6593c792a4efbae88d2b5280d1f0835d2214eddcbad6"], - ["530ecd0b01ec302d97ef6f1b5a6420b9a239714013e20d39aa3789d191ef623fc215aa8b940200000005ac5351ab6a3823ab8202572eaa04000000000752ab6a51526563fd8a270100000000036a006581a798f0", "525153656a0063", 0, 1784562684, "fe42f73a8742676e640698222b1bd6b9c338ff1ccd766d3d88d7d3c6c6ac987e"], - ["5d781d9303acfcce964f50865ddfddab527ea971aee91234c88e184979985c00b4de15204b0100000003ab6352a009c8ab01f93c8ef2447386c434b4498538f061845862c3f9d5751ad0fce52af442b3a902000000045165ababb909c66b5a3e7c81b3c45396b944be13b8aacfc0204f3f3c105a66fa8fa6402f1b5efddb01000000096a65ac636aacab656ac3c677c402b79fa4050000000004006aab5133e35802000000000751ab635163ab0078c2e025", "6aac51636a6a005265", 0, -882306874, "551ce975d58647f10adefb3e529d9bf9cda34751627ec45e690f135ef0034b95"], - ["25ee54ef0187387564bb86e0af96baec54289ca8d15e81a507a2ed6668dc92683111dfb7a50100000004005263634cecf17d0429aa4d000000000007636a6aabab5263daa75601000000000251ab4df70a01000000000151980a890400000000065253ac6a006377fd24e3", "65ab", 0, 797877378, "069f38fd5d47abff46f04ee3ae27db03275e9aa4737fa0d2f5394779f9654845"], - ["a9c57b1a018551bcbc781b256642532bbc09967f1cbe30a227d352a19365d219d3f11649a3030000000451655352b140942203182894030000000006ab00ac6aab654add350400000000003d379505000000000553abacac00e1739d36", "5363", 0, -1069721025, "6da32416deb45a0d720a1dbe6d357886eabc44029dd5db74d50feaffbe763245"], - ["05c4fb94040f5119dc0b10aa9df054871ed23c98c890f1e931a98ffb0683dac45e98619fdc0200000007acab6a525263513e7495651c9794c4d60da835d303eb4ee6e871f8292f6ad0b32e85ef08c9dc7aa4e03c9c010000000500ab52acacfffffffffee953259cf14ced323fe8d567e4c57ba331021a1ef5ac2fa90f7789340d7c550100000007ac6aacac6a6a53ffffffff08d9dc820d00f18998af247319f9de5c0bbd52a475ea587f16101af3afab7c210100000003535363569bca7c0468e34f00000000000863536353ac51ac6584e319010000000006650052ab6a533debea030000000003ac0053ee7070020000000006ac52005253ac00000000", "6351005253", 2, 1386916157, "76c4013c40bfa1481badd9d342b6d4b8118de5ab497995fafbf73144469e5ff0"], - ["c95ab19104b63986d7303f4363ca8f5d2fa87c21e3c5d462b99f1ebcb7c402fc012f5034780000000009006aac63ac65655265ffffffffbe91afa68af40a8700fd579c86d4b706c24e47f7379dad6133de389f815ef7f501000000046aac00abffffffff1520db0d81be4c631878494668d258369f30b8f2b7a71e257764e9a27f24b48701000000076a515100535300b0a989e1164db9499845bac01d07a3a7d6d2c2a76e4c04abe68f808b6e2ef5068ce6540e0100000009ac53636a63ab65656affffffff0309aac6050000000005ab6563656a6067e8020000000003ac536aec91c8030000000009655251ab65ac6a53acc7a45bc5", "63526a65abac", 1, 512079270, "fb7eca81d816354b6aedec8cafc721d5b107336657acafd0d246049556f9e04b"], - ["ca66ae10049533c2b39f1449791bd6d3f039efe0a121ab7339d39ef05d6dcb200ec3fb2b3b020000000465006a53ffffffff534b8f97f15cc7fb4f4cea9bf798472dc93135cd5b809e4ca7fe4617a61895980100000000ddd83c1dc96f640929dd5e6f1151dab1aa669128591f153310d3993e562cc7725b6ae3d903000000046a52536582f8ccddb8086d8550f09128029e1782c3f2624419abdeaf74ecb24889cc45ac1a64492a0100000002516a4867b41502ee6ccf03000000000752acacab52ab6a4b7ba80000000000075151ab0052536300000000", "6553", 2, -62969257, "8085e904164ab9a8c20f58f0d387f6adb3df85532e11662c03b53c3df8c943cb"], - ["ba646d0b0453999f0c70cb0430d4cab0e2120457bb9128ed002b6e9500e9c7f8d7baa20abe0200000001652a4e42935b21db02b56bf6f08ef4be5adb13c38bc6a0c3187ed7f6197607ba6a2c47bc8a03000000040052516affffffffa55c3cbfc19b1667594ac8681ba5d159514b623d08ed4697f56ce8fcd9ca5b0b00000000096a6a5263ac655263ab66728c2720fdeabdfdf8d9fb2bfe88b295d3b87590e26a1e456bad5991964165f888c03a0200000006630051ac00acffffffff0176fafe0100000000070063acac65515200000000", "63", 1, 2002322280, "9db4e320208185ee70edb4764ee195deca00ba46412d5527d9700c1cf1c3d057"], - ["2ddb8f84039f983b45f64a7a79b74ff939e3b598b38f436def7edd57282d0803c7ef34968d02000000026a537eb00c4187de96e6e397c05f11915270bcc383959877868ba93bac417d9f6ed9f627a7930300000004516551abffffffffacc12f1bb67be3ae9f1d43e55fda8b885340a0df1175392a8bbd9f959ad3605003000000025163ffffffff02ff0f4700000000000070bd99040000000003ac53abf8440b42", "", 2, -393923011, "0133f1a161363b71dfb3a90065c7128c56bd0028b558b610142df79e055ab5c7"], - ["b21fc15403b4bdaa994204444b59323a7b8714dd471bd7f975a4e4b7b48787e720cbd1f5f00000000000ffffffff311533001cb85c98c1d58de0a5fbf27684a69af850d52e22197b0dc941bc6ca9030000000765ab6363ab5351a8ae2c2c7141ece9a4ff75c43b7ea9d94ec79b7e28f63e015ac584d984a526a73fe1e04e0100000007526352536a5365ffffffff02a0a9ea030000000002ab52cfc4f300000000000465525253e8e0f342", "000000", 1, 1305253970, "d1df1f4bba2484cff8a816012bb6ec91c693e8ca69fe85255e0031711081c46a"], - ["d1704d6601acf710b19fa753e307cfcee2735eada0d982b5df768573df690f460281aad12d0000000007656300005100acffffffff0232205505000000000351ab632ca1bc0300000000016300000000", "ac65ab65ab51", 0, 165179664, "40b4f03c68288bdc996011b0f0ddb4b48dc3be6762db7388bdc826113266cd6c"], - ["d2f6c096025cc909952c2400bd83ac3d532bfa8a1f8f3e73c69b1fd7b8913379793f3ce92202000000076a00ab6a53516ade5332d81d58b22ed47b2a249ab3a2cb3a6ce9a6b5a6810e18e3e1283c1a1b3bd73e3ab00300000002acabffffffff01a9b2d40500000000056352abab00dc4b7f69", "ab0065", 0, -78019184, "2ef025e907f0fa454a2b48a4f3b81346ba2b252769b5c35d742d0c8985e0bf5e"], - ["3e6db1a1019444dba461247224ad5933c997256d15c5d37ade3d700506a0ba0a57824930d7010000000852ab6500ab00ac00ffffffff03389242020000000001aba8465a0200000000086a6a636a5100ab52394e6003000000000953ac51526351000053d21d9800", "abababacab53ab65", 0, 1643661850, "1f8a3aca573a609f4aea0c69522a82fcb4e15835449da24a05886ddc601f4f6a"], - ["f821a042036ad43634d29913b77c0fc87b4af593ac86e9a816a9d83fd18dfcfc84e1e1d57102000000076a63ac52006351ffffffffbcdaf490fc75086109e2f832c8985716b3a624a422cf9412fe6227c10585d21203000000095252abab5352ac526affffffff2efed01a4b73ad46c7f7bc7fa3bc480f8e32d741252f389eaca889a2e9d2007e000000000353ac53ffffffff032ac8b3020000000009636300000063516300d3d9f2040000000006510065ac656aafa5de0000000000066352ab5300ac9042b57d", "525365", 1, 667065611, "0d17a92c8d5041ba09b506ddf9fd48993be389d000aad54f9cc2a44fcc70426b"], - ["58e3f0f704a186ef55d3919061459910df5406a9121f375e7502f3be872a449c3f2bb058380100000000f0e858da3ac57b6c973f889ad879ffb2bd645e91b774006dfa366c74e2794aafc8bbc871010000000751ac65516a515131a68f120fd88ca08687ceb4800e1e3fbfea7533d34c84fef70cc5a96b648d580369526d000000000600ac00515363f6191d5b3e460fa541a30a6e83345dedfa3ed31ad8574d46d7bbecd3c9074e6ba5287c24020000000151e3e19d6604162602010000000004005100ac71e17101000000000065b5e90300000000040053ab53f6b7d101000000000200ac00000000", "6563ab", 1, -669018604, "8221d5dfb75fc301a80e919e158e0b1d1e86ffb08870a326c89408d9bc17346b"], - ["efec1cce044a676c1a3d973f810edb5a9706eb4cf888a240f2b5fb08636bd2db482327cf500000000005ab51656a52ffffffff46ef019d7c03d9456e5134eb0a7b5408d274bd8e33e83df44fab94101f7c5b650200000009ac5100006353630051407aadf6f5aaffbd318fdbbc9cae4bd883e67d524df06bb006ce2f7c7e2725744afb76960100000005536aab53acec0d64eae09e2fa1a7c4960354230d51146cf6dc45ee8a51f489e20508a785cbe6ca86fc000000000651536a516300ffffffff014ef598020000000006636aac655265a6ae1b75", "53516a5363526563ab", 2, -1823982010, "13e8b5ab4e5b2ceeff0045c625e19898bda2d39fd7af682e2d1521303cfe1154"], - ["3c436c2501442a5b700cbc0622ee5143b34b1b8021ea7bbc29e4154ab1f5bdfb3dff9d640501000000086aab5251ac5252acffffffff0170b9a20300000000066aab6351525114b13791", "63acabab52ab51ac65", 0, -2140612788, "87ddf1f9acb6640448e955bd1968f738b4b3e073983af7b83394ab7557f5cd61"], - ["d62f183e037e0d52dcf73f9b31f70554bce4f693d36d17552d0e217041e01f15ad3840c838000000000963acac6a6a6a63ab63ffffffffabdfb395b6b4e63e02a763830f536fc09a35ff8a0cf604021c3c751fe4c88f4d0300000006ab63ab65ac53aa4d30de95a2327bccf9039fb1ad976f84e0b4a0936d82e67eafebc108993f1e57d8ae39000000000165ffffffff04364ad30500000000036a005179fd84010000000007ab636aac6363519b9023030000000008510065006563ac6acd2a4a02000000000000000000", "52", 1, 595020383, "da8405db28726dc4e0f82b61b2bfd82b1baa436b4e59300305cc3b090b157504"], - ["44c200a5021238de8de7d80e7cce905606001524e21c8d8627e279335554ca886454d692e6000000000500acac52abbb8d1dc876abb1f514e96b21c6e83f429c66accd961860dc3aed5071e153e556e6cf076d02000000056553526a51870a928d0360a580040000000004516a535290e1e302000000000851ab6a00510065acdd7fc5040000000007515363ab65636abb1ec182", "6363", 0, -785766894, "ed53cc766cf7cb8071cec9752460763b504b2183442328c5a9761eb005c69501"], - ["d682d52d034e9b062544e5f8c60f860c18f029df8b47716cabb6c1b4a4b310a0705e754556020000000400656a0016eeb88eef6924fed207fba7ddd321ff3d84f09902ff958c815a2bf2bb692eb52032c4d803000000076365ac516a520099788831f8c8eb2552389839cfb81a9dc55ecd25367acad4e03cfbb06530f8cccf82802701000000085253655300656a53ffffffff02d543200500000000056a510052ac03978b05000000000700ac51525363acfdc4f784", "", 2, -696035135, "e1a256854099907050cfee7778f2018082e735a1f1a3d91437584850a74c87bb"], - ["e8c0dec5026575ddf31343c20aeeca8770afb33d4e562aa8ee52eeda6b88806fdfd4fe0a97030000000953acabab65ab516552ffffffffdde122c2c3e9708874286465f8105f43019e837746686f442666629088a970e0010000000153ffffffff01f98eee0100000000025251fe87379a", "63", 1, 633826334, "abe441209165d25bc6d8368f2e7e7dc21019056719fef1ace45542aa2ef282e2"], - ["b288c331011c17569293c1e6448e33a64205fc9dc6e35bc756a1ac8b97d18e912ea88dc0770200000007635300ac6aacabfc3c890903a3ccf8040000000004656500ac9c65c9040000000009ab6a6aabab65abac63ac5f7702000000000365005200000000", "526a63", 0, 1574937329, "0dd1bd5c25533bf5f268aa316ce40f97452cca2061f0b126a59094ca5b65f7a0"], - ["fc0a092003cb275fa9a25a72cf85d69c19e4590bfde36c2b91cd2c9c56385f51cc545530210000000004ab530063ffffffff729b006eb6d14d6e5e32b1c376acf1c62830a5d9246da38dbdb4db9f51fd1c74020000000463636500ffffffff0ae695c6d12ab7dcb8d3d4b547b03f178c7268765d1de9af8523d244e3836b12030000000151ffffffff0115c1e20100000000066a6aabac6a6a1ff59aec", "ab0053ac", 0, 931831026, "73fe22099c826c34a74edf45591f5d7b3a888c8178cd08facdfd96a9a681261c"], - ["0fcae7e004a71a4a7c8f66e9450c0c1785268679f5f1a2ee0fb3e72413d70a9049ecff75de020000000452005251ffffffff99c8363c4b95e7ec13b8c017d7bb6e80f7c04b1187d6072961e1c2479b1dc0320200000000ffffffff7cf03b3d66ab53ed740a70c5c392b84f780fff5472aee82971ac3bfeeb09b2df0200000006ab5265636a0058e4fe9257d7c7c7e82ff187757c6eadc14cceb6664dba2de03a018095fd3006682a5b9600000000056353536a636de26b2303ff76de010000000001acdc0a2e020000000001ab0a53ed020000000007530063ab51510088417307", "ac6aacab5165535253", 2, -902160694, "eea96a48ee572aea33d75d0587ce954fcfb425531a7da39df26ef9a6635201be"], - ["612701500414271138e30a46b7a5d95c70c78cc45bf8e40491dac23a6a1b65a51af04e6b94020000000451655153ffffffffeb72dc0e49b2fad3075c19e1e6e4b387f1365dca43d510f6a02136318ddecb7f0200000003536352e115ffc4f9bae25ef5baf534a890d18106fb07055c4d7ec9553ba89ed1ac2101724e507303000000080063006563acabac2ff07f69a080cf61a9d19f868239e6a4817c0eeb6a4f33fe254045d8af2bca289a8695de0300000000430736c404d317840500000000086a00abac5351ab65306e0503000000000963ab0051536aabab6a6c8aca01000000000565516351ab5dcf960100000000016a00000000", "ab", 2, -604581431, "5ec805e74ee934aa815ca5f763425785ae390282d46b5f6ea076b6ad6255a842"], - ["6b68ba00023bb4f446365ea04d68d48539aae66f5b04e31e6b38b594d2723ab82d44512460000000000200acffffffff5dfc6febb484fff69c9eeb7c7eb972e91b6d949295571b8235b1da8955f3137b020000000851ac6352516a535325828c8a03365da801000000000800636aabac6551ab0f594d03000000000963ac536365ac63636a45329e010000000005abac53526a00000000", "005151", 0, 1317038910, "42f5ba6f5fe1e00e652a08c46715871dc4b40d89d9799fd7c0ea758f86eab6a7"], - ["aff5850c0168a67296cc790c1b04a9ed9ad1ba0469263a9432fcb53676d1bb4e0eea8ea1410100000005ac65526a537d5fcb1d01d9c26d0200000000065265ab5153acc0617ca1", "51ab650063", 0, 1712981774, "8449d5247071325e5f8edcc93cb9666c0fecabb130ce0e5bef050575488477eb"], - ["e6d6b9d8042c27aec99af8c12b6c1f7a80453e2252c02515e1f391da185df0874e133696b50300000006ac5165650065ffffffff6a4b60a5bfe7af72b198eaa3cde2e02aa5fa36bdf5f24ebce79f6ecb51f3b554000000000652656aababac2ec4c5a6cebf86866b1fcc4c5bd5f4b19785a8eea2cdfe58851febf87feacf6f355324a80100000001537100145149ac1e287cef62f6f5343579189fad849dd33f25c25bfca841cb696f10c5a34503000000046a636a63df9d7c4c018d96e20100000000015100000000", "53ab", 1, -1924777542, "f98f95d0c5ec3ac3e699d81f6c440d2e7843eab15393eb023bc5a62835d6dcea"], - ["046ac25e030a344116489cc48025659a363da60bc36b3a8784df137a93b9afeab91a04c1ed020000000951ab0000526a65ac51ffffffff6c094a03869fde55b9a8c4942a9906683f0a96e2d3e5a03c73614ea3223b2c29020000000500ab636a6affffffff3da7aa5ecef9071600866267674b54af1740c5aeb88a290c459caa257a2683cb0000000004ab6565ab7e2a1b900301b916030000000005abac63656308f4ed03000000000852ab53ac63ac51ac73d620020000000003ab00008deb1285", "6a", 2, 1299505108, "f79e6b776e2592bad45ca328c54abf14050c241d8f822d982c36ea890fd45757"], - ["bd515acd0130b0ac47c2d87f8d65953ec7d657af8d96af584fc13323d0c182a2e5f9a96573000000000652ac51acac65ffffffff0467aade000000000003655363dc577d050000000006515252ab5300137f60030000000007535163530065004cdc860500000000036a5265241bf53e", "acab", 0, 621090621, "771d4d87f1591a13d77e51858c16d78f1956712fe09a46ff1abcabbc1e7af711"], - ["ff1ae37103397245ac0fa1c115b079fa20930757f5b6623db3579cb7663313c2dc4a3ffdb300000000076353656a000053ffffffff83c59e38e5ad91216ee1a312d15b4267bae2dd2e57d1a3fd5c2f0f809eeb5d46010000000800abab6a6a53ab51ffffffff9d5e706c032c1e0ca75915f8c6686f64ec995ebcd2539508b7dd8abc3e4d7d2a01000000006b2bdcda02a8fe070500000000045253000019e31d04000000000700ab63acab526a00000000", "53656aab6a525251", 0, 881938872, "726bb88cdf3af2f7603a31f33d2612562306d08972a4412a55dbbc0e3363721c"], - ["ff5400dd02fec5beb9a396e1cbedc82bedae09ed44bae60ba9bef2ff375a6858212478844b03000000025253ffffffff01e46c203577a79d1172db715e9cc6316b9cfc59b5e5e4d9199fef201c6f9f0f000000000900ab6552656a5165acffffffff02e8ce62040000000002515312ce3e00000000000251513f119316", "", 0, 1541581667, "1e0da47eedbbb381b0e0debbb76e128d042e02e65b11125e17fd127305fc65cd"], - ["28e3daa603c03626ad91ffd0ff927a126e28d29db5012588b829a06a652ea4a8a5732407030200000004ab6552acffffffff8e643146d3d0568fc2ad854fd7864d43f6f16b84e395db82b739f6f5c84d97b40000000004515165526b01c2dc1469db0198bd884e95d8f29056c48d7e74ff9fd37a9dec53e44b8769a6c99c030200000009ab006a516a53630065eea8738901002398000000000007ac5363516a51abeaef12f5", "52ab52515253ab", 2, 1687390463, "55591346aec652980885a558cc5fc2e3f8d21cbd09f314a798e5a7ead5113ea6"], - ["b54bf5ac043b62e97817abb892892269231b9b220ba08bc8dbc570937cd1ea7cdc13d9676c010000000451ab5365a10adb7b35189e1e8c00b86250f769319668189b7993d6bdac012800f1749150415b2deb0200000003655300ffffffff60b9f4fb9a7e17069fd00416d421f804e2ef2f2c67de4ca04e0241b9f9c1cc5d0200000003ab6aacfffffffff048168461cce1d40601b42fbc5c4f904ace0d35654b7cc1937ccf53fe78505a0100000008526563525265abacffffffff01dbf4e6040000000007acac656553636500000000", "63", 2, 882302077, "f5b38b0f06e246e47ce622e5ee27d5512c509f8ac0e39651b3389815eff2ab93"], - ["ebf628b30360bab3fa4f47ce9e0dcbe9ceaf6675350e638baff0c2c197b2419f8e4fb17e16000000000452516365ac4d909a79be207c6e5fb44fbe348acc42fc7fe7ef1d0baa0e4771a3c4a6efdd7e2c118b0100000003acacacffffffffa6166e9101f03975721a3067f1636cc390d72617be72e5c3c4f73057004ee0ee010000000863636a6a516a5252c1b1e82102d8d54500000000000153324c900400000000015308384913", "0063516a51", 1, -1658428367, "eb2d8dea38e9175d4d33df41f4087c6fea038a71572e3bad1ea166353bf22184"], - ["d6a8500303f1507b1221a91adb6462fb62d741b3052e5e7684ea7cd061a5fc0b0e93549fa50100000004acab65acfffffffffdec79bf7e139c428c7cfd4b35435ae94336367c7b5e1f8e9826fcb0ebaaaea30300000000ffffffffd115fdc00713d52c35ea92805414bd57d1e59d0e6d3b79a77ee18a3228278ada020000000453005151ffffffff040231510300000000085100ac6a6a000063c6041c0400000000080000536a6563acac138a0b04000000000263abd25fbe03000000000900656a00656aac510000000000", "ac526aac6a00", 1, -2007972591, "13d12a51598b34851e7066cd93ab8c5212d60c6ed2dae09d91672c10ccd7f87c"], - ["658cb1c1049564e728291a56fa79987a4ed3146775fce078bd2e875d1a5ca83baf6166a82302000000056a656351ab2170e7d0826cbdb45fda0457ca7689745fd70541e2137bb4f52e7b432dcfe2112807bd720300000007006a0052536351ffffffff8715ca2977696abf86d433d5c920ef26974f50e9f4a20c584fecbb68e530af5101000000009e49d864155bf1d3c757186d29f3388fd89c7f55cc4d9158b4cf74ca27a35a1dd93f945502000000096a535353ac656351510d29fa870230b809040000000006ab6a6a526a633b41da050000000004ab6a6a65ed63bf62", "52acabac", 2, -1774073281, "53ab197fa7e27b8a3f99ff48305e67081eb90e95d89d7e92d80cee25a03a6689"], - ["e92492cc01aec4e62df67ea3bc645e2e3f603645b3c5b353e4ae967b562d23d6e043badecd0100000003acab65ffffffff02c7e5ea040000000002ab52e1e584010000000005536365515195d16047", "6551", 0, -424930556, "93c34627f526d73f4bea044392d1a99776b4409f7d3d835f23b03c358f5a61c2"], - ["02e242db04be2d8ced9179957e98cee395d4767966f71448dd084426844cbc6d15f2182e85030000000200650c8ffce3db9de9c3f9cdb9104c7cb26647a7531ad1ebf7591c259a9c9985503be50f8de30000000007ac6a51636a6353ffffffffa2e33e7ff06fd6469987ddf8a626853dbf30c01719efb259ae768f051f803cd30300000000fffffffffd69d8aead941683ca0b1ee235d09eade960e0b1df3cd99f850afc0af1b73e070300000001ab60bb602a011659670100000000076363526300acac00000000", "6353ab515251", 3, 1451100552, "bbc9069b8615f3a52ac8a77359098dcc6c1ba88c8372d5d5fe080b99eb781e55"], - ["b28d5f5e015a7f24d5f9e7b04a83cd07277d452e898f78b50aae45393dfb87f94a26ef57720200000008ababac630053ac52ffffffff046475ed040000000008ab5100526363ac65c9834a04000000000251abae26b30100000000040000ac65ceefb900000000000000000000", "ac6551ac6a536553", 0, -1756558188, "5848d93491044d7f21884eef7a244fe7d38886f8ae60df49ce0dfb2a342cd51a"], - ["efb8b09801f647553b91922a5874f8e4bb2ed8ddb3536ed2d2ed0698fac5e0e3a298012391030000000952ac005263ac52006affffffff04cdfa0f050000000007ac53ab51abac65b68d1b02000000000553ab65ac00d057d50000000000016a9e1fda010000000007ac63ac536552ac00000000", "6aac", 0, 1947322973, "603a9b61cd30fcea43ef0a5c18b88ca372690b971b379ee9e01909c336280511"], - ["68a59fb901c21946797e7d07a4a3ea86978ce43df0479860d7116ac514ba955460bae78fff0000000001abffffffff03979be80100000000036553639300bc040000000008006552006a656565cfa78d0000000000076552acab63ab5100000000", "ab65ab", 0, 995583673, "3b320dd47f2702452a49a1288bdc74a19a4b849b132b6cad9a1d945d87dfbb23"], - ["67761f2a014a16f3940dcb14a22ba5dc057fcffdcd2cf6150b01d516be00ef55ef7eb07a830100000004636a6a51ffffffff01af67bd050000000008526553526300510000000000", "6a00", 0, 1570943676, "079fa62e9d9d7654da8b74b065da3154f3e63c315f25751b4d896733a1d67807"], - ["e20fe96302496eb436eee98cd5a32e1c49f2a379ceb71ada8a48c5382df7c8cd88bdc47ced03000000016556aa0e180660925a841b457aed0aae47fca2a92fa1d7afeda647abf67198a3902a7c80dd00000000085152ac636a535265bd18335e01803c810100000000046500ac52f371025e", "6363ab", 1, -651254218, "2921a0e5e3ba83c57ba57c25569380c17986bf34c366ec216d4188d5ba8b0b47"], - ["4e1bd9fa011fe7aa14eee8e78f27c9fde5127f99f53d86bc67bdab23ca8901054ee8a8b6eb0300000009ac535153006a6a0063ffffffff044233670500000000000a667205000000000652ab636a51abe5bf35030000000003535351d579e505000000000700630065ab51ac3419ac30", "52abac52", 0, -1807563680, "4aae6648f856994bed252d319932d78db55da50d32b9008216d5366b44bfdf8a"], - ["ec02fbee03120d02fde12574649660c441b40d330439183430c6feb404064d4f507e704f3c0100000000ffffffffe108d99c7a4e5f75cc35c05debb615d52fac6e3240a6964a29c1704d98017fb60200000002ab63fffffffff726ec890038977adfc9dadbeaf5e486d5fcb65dc23acff0dd90b61b8e2773410000000002ac65e9dace55010f881b010000000005ac00ab650000000000", "51ac525152ac6552", 2, -1564046020, "3f988922d8cd11c7adff1a83ce9499019e5ab5f424752d8d361cf1762e04269b"], - ["23dbdcc1039c99bf11938d8e3ccec53b60c6c1d10c8eb6c31197d62c6c4e2af17f52115c3a0300000008636352000063ababffffffff17823880e1df93e63ad98c29bfac12e36efd60254346cac9d3f8ada020afc0620300000003ab63631c26f002ac66e86cd22a25e3ed3cb39d982f47c5118f03253054842daadc88a6c41a2e1500000000096a00ab636a53635163195314de015570fd0100000000096a5263acab5200005300000000", "ababac6a6553", 1, 11586329, "bd36a50e0e0a4ecbf2709e68daef41eddc1c0c9769efaee57910e99c0a1d1343"], - ["33b03bf00222c7ca35c2f8870bbdef2a543b70677e413ce50494ac9b22ea673287b6aa55c50000000005ab00006a52ee4d97b527eb0b427e4514ea4a76c81e68c34900a23838d3e57d0edb5410e62eeb8c92b6000000000553ac6aacac42e59e170326245c000000000009656553536aab516aabb1a10603000000000852ab52ab6a516500cc89c802000000000763ac6a63ac516300000000", "", 0, 557416556, "41bead1b073e1e9fee065dd612a617ca0689e8f9d3fed9d0acfa97398ebb404c"], - ["813eda1103ac8159850b4524ef65e4644e0fc30efe57a5db0c0365a30446d518d9b9aa8fdd0000000003656565c2f1e89448b374b8f12055557927d5b33339c52228f7108228149920e0b77ef0bcd69da60000000006abac00ab63ab82cdb7978d28630c5e1dc630f332c4245581f787936f0b1e84d38d33892141974c75b4750300000004ac53ab65ffffffff0137edfb02000000000000000000", "0063", 1, -1948560575, "71dfcd2eb7f2e6473aed47b16a6d5fcbd0af22813d892e9765023151e07771ec"], - ["9e45d9aa0248c16dbd7f435e8c54ae1ad086de50c7b25795a704f3d8e45e1886386c653fbf01000000025352fb4a1acefdd27747b60d1fb79b96d14fb88770c75e0da941b7803a513e6d4c908c6445c7010000000163ffffffff014069a8010000000001520a794fb3", "51ac005363", 1, -719113284, "0d31a221c69bd322ef7193dd7359ddfefec9e0a1521d4a8740326d46e44a5d6a"], - ["36e42018044652286b19a90e5dd4f8d9f361d0760d080c5c5add1970296ff0f1de630233c8010000000200ac39260c7606017d2246ee14ddb7611586178067e6a4be38e788e33f39a3a95a55a13a6775010000000352ac638bea784f7c2354ed02ea0b93f0240cdfb91796fa77649beee6f7027caa70778b091deee700000000066a65ac656363ffffffff4d9d77ab676d711267ef65363f2d192e1bd55d3cd37f2280a34c72e8b4c559d700000000056a006aab00001764e1020d30220100000000085252516aacab0053472097040000000009635353ab6a636a5100a56407a1", "006a536551ab53ab", 0, 827296034, "daec2af5622bbe220c762da77bab14dc75e7d28aa1ade9b7f100798f7f0fd97a"], - ["5e06159a02762b5f3a5edcdfc91fd88c3bff08b202e69eb5ba74743e9f4291c4059ab008200000000001ac348f5446bb069ef977f89dbe925795d59fb5d98562679bafd61f5f5f3150c3559582992d0000000008ab5165515353abac762fc67703847ec6010000000000e200cf040000000002abaca64b86010000000008520000515363acabb82b491b", "ab53525352ab6a", 0, -61819505, "75a7db0df41485a28bf6a77a37ca15fa8eccc95b5d6014a731fd8adb9ada0f12"], - ["a1948872013b543d6d902ccdeead231c585195214ccf5d39f136023855958436a43266911501000000086aac006a6a6a51514951c9b2038a538a04000000000452526563c0f345050000000007526a5252ac526af9be8e03000000000752acac51ab006306198db2", "ab6353", 0, -326384076, "ced7ef84aad4097e1eb96310e0d1c8e512cfcb392a01d9010713459b23bc0cf4"], - ["c3efabba03cb656f154d1e159aa4a1a4bf9423a50454ebcef07bc3c42a35fb8ad84014864d0000000000d1cc73d260980775650caa272e9103dc6408bdacaddada6b9c67c88ceba6abaa9caa2f7d020000000553536a5265ffffffff9f946e8176d9b11ff854b76efcca0a4c236d29b69fb645ba29d406480427438e01000000066a0065005300ffffffff040419c0010000000003ab6a63cdb5b6010000000009006300ab5352656a63f9fe5e050000000004acac5352611b980100000000086a00acac00006a512d7f0c40", "0053", 0, -59089911, "c503001c16fbff82a99a18d88fe18720af63656fccd8511bca1c3d0d69bd7fc0"], - ["efb55c2e04b21a0c25e0e29f6586be9ef09f2008389e5257ebf2f5251051cdc6a79fce2dac020000000351006affffffffaba73e5b6e6c62048ba5676d18c33ccbcb59866470bb7911ccafb2238cfd493802000000026563ffffffffe62d7cb8658a6eca8a8babeb0f1f4fa535b62f5fc0ec70eb0111174e72bbec5e0300000009abababac516365526affffffffbf568789e681032d3e3be761642f25e46c20322fa80346c1146cb47ac999cf1b0300000000b3dbd55902528828010000000001ab0aac7b0100000000015300000000", "acac52", 3, 1638140535, "e84444d91580da41c8a7dcf6d32229bb106f1be0c811b2292967ead5a96ce9d4"], - ["91d3b21903629209b877b3e1aef09cd59aca6a5a0db9b83e6b3472aceec3bc2109e64ab85a0200000003530065ffffffffca5f92de2f1b7d8478b8261eaf32e5656b9eabbc58dcb2345912e9079a33c4cd010000000700ab65ab00536ad530611da41bbd51a389788c46678a265fe85737b8d317a83a8ff7a839debd18892ae5c80300000007ab6aac65ab51008b86c501038b8a9a05000000000263525b3f7a040000000007ab535353ab00abd4e3ff04000000000665ac51ab65630b7b656f", "6551525151516a00", 2, 499657927, "ef4bd7622eb7b2bbbbdc48663c1bc90e01d5bde90ff4cb946596f781eb420a0c"], - ["5d5c41ad0317aa7e40a513f5141ad5fc6e17d3916eebee4ddb400ddab596175b41a111ead20100000005536a5265acffffffff900ecb5e355c5c9f278c2c6ea15ac1558b041738e4bffe5ae06a9346d66d5b2b00000000080000ab636a65ab6affffffff99f4e08305fa5bd8e38fb9ca18b73f7a33c61ff7b3c68e696b30a04fea87f3ca000000000163d3d1760d019fc13a00000000000000000000", "ab53acabab6aac6a52", 2, 1007461922, "4012f5ff2f1238a0eb84854074670b4703238ebc15bfcdcd47ffa8498105fcd9"], - ["ceecfa6c02b7e3345445b82226b15b7a097563fa7d15f3b0c979232b138124b62c0be007890200000009abac51536a63525253ffffffffbae481ccb4f15d94db5ec0d8854c24c1cc8642bd0c6300ede98a91ca13a4539a0200000001ac50b0813d023110f5020000000006acabac526563e2b0d0040000000009656aac0063516a536300000000", "0063526500", 0, -1862053821, "e1600e6df8a6160a79ac32aa40bb4644daa88b5f76c0d7d13bf003327223f70c"], - ["ae62d5fd0380c4083a26642159f51af24bf55dc69008e6b7769442b6a69a603edd980a33000000000005ab5100ab53ffffffff49d048324d899d4b8ed5e739d604f5806a1104fede4cb9f92cc825a7fa7b4bfe0200000005536a000053ffffffff42e5cea5673c650881d0b4005fa4550fd86de5f21509c4564a379a0b7252ac0e0000000007530000526a53525f26a68a03bfacc3010000000000e2496f000000000009ab5253acac52636563b11cc600000000000700510065526a6a00000000", "abab", 1, -1600104856, "05cf0ec9c61f1a15f651a0b3c5c221aa543553ce6c804593f43bb5c50bb91ffb"], - ["f06f64af04fdcb830464b5efdb3d5ee25869b0744005375481d7b9d7136a0eb8828ad1f0240200000003516563fffffffffd3ba192dabe9c4eb634a1e3079fca4f072ee5ceb4b57deb6ade5527053a92c5000000000165ffffffff39f43401a36ba13a5c6dd7f1190e793933ae32ee3bf3e7bfb967be51e681af760300000009650000536552636a528e34f50b21183952cad945a83d4d56294b55258183e1627d6e8fb3beb8457ec36cadb0630000000005abab530052334a7128014bbfd10100000000085352ab006a63656afc424a7c", "53650051635253ac00", 2, 313255000, "d309da5afd91b7afa257cfd62df3ca9df036b6a9f4b38f5697d1daa1f587312b"], - ["6dfd2f98046b08e7e2ef5fff153e00545faf7076699012993c7a30cb1a50ec528281a9022f030000000152ffffffff1f535e4851920b968e6c437d84d6ecf586984ebddb7d5db6ae035bd02ba222a8010000000651006a53ab51605072acb3e17939fa0737bc3ee43bc393b4acd58451fc4ffeeedc06df9fc649828822d5010000000253525a4955221715f27788d302382112cf60719be9ae159c51f394519bd5f7e70a4f9816c7020200000009526a6a51636aab656a36d3a5ff0445548e0100000000086a6a00516a52655167030b050000000004ac6a63525cfda8030000000000e158200000000000010000000000", "535263ac6a65515153", 3, 585774166, "72b7da10704c3ca7d1deb60c31b718ee12c70dc9dfb9ae3461edce50789fe2ba"], - ["187eafed01389a45e75e9dda526d3acbbd41e6414936b3356473d1f9793d161603efdb45670100000002ab00ffffffff04371c8202000000000563630063523b3bde02000000000753516563006300e9e765010000000005516aac656a373f9805000000000665525352acab08d46763", "ab", 0, 122457992, "393aa6c758e0eed15fa4af6d9e2d7c63f49057246dbb92b4268ec24fc87301ca"], - ["7d50b977035d50411d814d296da9f7965ddc56f3250961ca5ba805cadd0454e7c521e31b0300000000003d0416c2cf115a397bacf615339f0e54f6c35ffec95aa009284d38390bdde1595cc7aa7c0100000005ab52ac5365ffffffff4232c6e796544d5ac848c9dc8d25cfa74e32e847a5fc74c74d8f38ca51188562030000000653ac51006a51ffffffff016bd8bb00000000000465ab5253163526f3", "51ab526a00005353", 1, -1311316785, "60b7544319b42e4159976c35c32c2644f0adf42eff13be1dc2f726fc0b6bb492"], - ["2a45cd1001bf642a2315d4a427eddcc1e2b0209b1c6abd2db81a800c5f1af32812de42032702000000050051525200ffffffff032177db050000000005530051abac49186f000000000004ab6aab00645c0000000000000765655263acabac00000000", "6a65", 0, -1774715722, "6a9ac3f7da4c7735fbc91f728b52ecbd602233208f96ac5592656074a5db118a"], - ["479358c202427f3c8d19e2ea3def6d6d3ef2281b4a93cd76214f0c7d8f040aa042fe19f71f0300000001abffffffffa2709be556cf6ecaa5ef530df9e4d056d0ed57ce96de55a5b1f369fa40d4e74a020000000700006a51635365c426be3f02af578505000000000363ab63fd8f590500000000065153abac53632dfb14b3", "520063ab51", 1, -763226778, "cfe147982afacde044ce66008cbc5b1e9f0fd9b8ed52b59fc7c0fecf95a39b0e"], - ["76179a8e03bec40747ad65ab0f8a21bc0d125b5c3c17ad5565556d5cb03ade7c83b4f32d98030000000151ffffffff99b900504e0c02b97a65e24f3ad8435dfa54e3c368f4e654803b756d011d24150200000003ac5353617a04ac61bb6cf697cfa4726657ba35ed0031432da8c0ffb252a190278830f9bd54f0320100000006656551005153c8e8fc8803677c77020000000007ac6553535253ac70f442030000000001535be0f20200000000026300bf46cb3a", "6aab52", 1, -58495673, "35e94b3776a6729d20aa2f3ddeeb06d3aad1c14cc4cde52fd21a4efc212ea16c"], - ["75ae53c2042f7546223ce5d5f9e00a968ddc68d52e8932ef2013fa40ce4e8c6ed0b6195cde01000000056563ac630079da0452c20697382e3dba6f4fc300da5f52e95a9dca379bb792907db872ba751b8024ee0300000009655151536500005163ffffffffe091b6d43f51ff00eff0ccfbc99b72d3aff208e0f44b44dfa5e1c7322cfc0c5f01000000075200005363ab63ffffffff7e96c3b83443260ac5cfd18258574fbc4225c630d3950df812bf51dceaeb0f9103000000065365655165639a6bf70b01b3e14305000000000563530063ac00000000", "6300ab00ac", 2, 982422189, "ee4ea49d2aae0dbba05f0b9785172da54408eb1ec67d36759ff7ed25bfc28766"], - ["1cdfa01e01e1b8078e9c2b0ca5082249bd18fdb8b629ead659adedf9a0dd5a04031871ba120200000008525351536565ab6affffffff011e28430200000000076a5363636aac52b2febd4a", "abacac63656300", 0, 387396350, "299dcaac2bdaa627eba0dfd74767ee6c6f27c9200b49da8ff6270b1041669e7e"], - ["cc28c1810113dfa6f0fcd9c7d9c9a30fb6f1d774356abeb527a8651f24f4e6b25cf763c4e00300000003ab636affffffff02dfc6050000000000080053636351ab0052afd56903000000000453ab5265f6c90d99", "006551abacacac", 0, 1299280838, "a4c0773204ab418a939e23f493bd4b3e817375d133d307609e9782f2cc38dbcf"], - ["ca816e7802cd43d66b9374cd9bf99a8da09402d69c688d8dcc5283ace8f147e1672b757e020200000005516aabab5240fb06c95c922342279fcd88ba6cd915933e320d7becac03192e0941e0345b79223e89570300000004005151ac353ecb5d0264dfbd010000000005ac6aacababd5d70001000000000752ac53ac6a5151ec257f71", "63ac", 1, 774695685, "cc180c4f797c16a639962e7aec58ec4b209853d842010e4d090895b22e7a7863"], - ["b42b955303942fedd7dc77bbd9040aa0de858afa100f399d63c7f167b7986d6c2377f66a7403000000066aac00525100ffffffff0577d04b64880425a3174055f94191031ad6b4ca6f34f6da9be7c3411d8b51fc000000000300526a6391e1cf0f22e45ef1c44298523b516b3e1249df153590f592fcb5c5fc432dc66f3b57cb03000000046a6aac65ffffffff0393a6c9000000000004516a65aca674ac0400000000046a525352c82c370000000000030053538e577f89", "", 1, -1237094944, "566953eb806d40a9fb684d46c1bf8c69dea86273424d562bd407b9461c8509af"], - ["92c9fe210201e781b72554a0ed5e22507fb02434ddbaa69aff6e74ea8bad656071f1923f3f02000000056a63ac6a514470cef985ba83dcb8eee2044807bedbf0d983ae21286421506ae276142359c8c6a34d68020000000863ac63525265006aa796dd0102ca3f9d05000000000800abab52ab535353cd5c83010000000007ac00525252005322ac75ee", "5165", 0, 97879971, "6e6307cef4f3a9b386f751a6f40acebab12a0e7e17171d2989293cbec7fd45c2"], - ["ccca1d5b01e40fe2c6b3ee24c660252134601dab785b8f55bd6201ffaf2fddc7b3e2192325030000000365535100496d4703b4b66603000000000665535253ac633013240000000000015212d2a502000000000951abac636353636a5337b82426", "0052", 0, -1691630172, "577bf2b3520b40aef44899a20d37833f1cded6b167e4d648fc5abe203e43b649"], - ["bc1a7a3c01691e2d0c4266136f12e391422f93655c71831d90935fbda7e840e50770c61da20000000008635253abac516353ffffffff031f32aa020000000003636563786dbc0200000000003e950f00000000000563516a655184b8a1de", "51536a", 0, -1627072905, "730bc25699b46703d7718fd5f5c34c4b5f00f594a9968ddc247fa7d5175124ed"], - ["076d209e02d904a6c40713c7225d23e7c25d4133c3c3477828f98c7d6dbd68744023dbb66b030000000753ab00536565acffffffff10975f1b8db8861ca94c8cc7c7cff086ddcd83e10b5fffd4fc8f2bdb03f9463c0100000000ffffffff029dff76010000000006526365530051a3be6004000000000000000000", "515253ac65acacac", 1, -1207502445, "66c488603b2bc53f0d22994a1f0f66fb2958203102eba30fe1d37b27a55de7a5"], - ["690fd1f80476db1f9eebe91317f2f130a60cbc1f4feadd9d6474d438e9cb7f91e4994600af0300000004ab536a63a15ce9fa6622d0c4171d895b42bff884dc6e8a7452f827fdc68a29c3c88e6fdee364eaf50000000002ab52ffffffff022dc39d3c0956b24d7f410b1e387859e7a72955f45d6ffb1e884d77888d18fe0300000005ac6a63656afffffffff10b06bce1800f5c49153d24748fdefb0bf514c12863247d1042d56018c3e25c03000000086a63ac6365536a52ffffffff031f162f0500000000060000655265abffbcd40500000000045151ac001a9c8c05000000000652ac53656a6300000000", "ac51ab63acac", 0, -67986012, "051c0df7ac688c2c930808dabde1f50300aea115f2bb3334f4753d5169b51e46"], - ["49ac2af00216c0307a29e83aa5de19770e6b20845de329290bd69cf0e0db7aed61ae41b39002000000035163ac8b2558ef84635bfc59635150e90b61fc753d34acfd10d97531043053e229cd720133cd95000000000463516a51ffffffff02458471040000000008abab636a51ac0065545aa80000000000096a6553516a5263ac6a00000000", "51526300ab5363", 1, 1449668540, "ddfd902bba312a06197810da96a0ddccb595f96670b28ded7dba88d8cd0469b8"], - ["fa4d868b024b010bd5dce46576c2fb489aa60bb797dac3c72a4836f49812c5c564c258414f03000000007a9b3a585e05027bdd89edbadf3c85ac61f8c3a04c773fa746517ae600ff1a9d6b6c02fb0200000004515163abffffffff01b17d020500000000046a65520000000000", "536565ab65635363", 0, -1718953372, "96c2b32f0a00a5925db7ba72d0b5d39922f30ea0f7443b22bc1b734808513c47"], - ["cac6382d0462375e83b67c7a86c922b569a7473bfced67f17afd96c3cd2d896cf113febf9e0300000003006a53ffffffffaa4913b7eae6821487dd3ca43a514e94dcbbf350f8cc4cafff9c1a88720711b800000000096a6a525300acac6353ffffffff184fc4109c34ea27014cc2c1536ef7ed1821951797a7141ddacdd6e429fae6ff01000000055251655200ffffffff9e7b79b4e6836e290d7b489ead931cba65d1030ccc06f20bd4ca46a40195b33c030000000008f6bc8304a09a2704000000000563655353511dbc73050000000000cf34c500000000000091f76e0000000000085200ab00005100abd07208cb", "0063656a", 2, -1488731031, "bf078519fa87b79f40abc38f1831731422722c59f88d86775535f209cb41b9b1"], - ["1711146502c1a0b82eaa7893976fefe0fb758c3f0e560447cef6e1bde11e42de91a125f71c030000000015bd8c04703b4030496c7461482481f290c623be3e76ad23d57a955807c9e851aaaa20270300000000d04abaf20326dcb7030000000001632225350400000000075263ac00520063dddad9020000000000af23d148", "52520053510063", 0, 1852122830, "e33d5ee08c0f3c130a44d7ce29606450271b676f4a80c52ab9ffab00cecf67f8"], - ["8d5b124d0231fbfc640c706ddb1d57bb49a18ba8ca0e1101e32c7e6e65a0d4c7971d93ea360100000008acabac0000abac65ffffffff8fe0fd7696597b845c079c3e7b87d4a44110c445a330d70342a5501955e17dd70100000004ab525363ef22e8a90346629f030000000009516a00ac63acac51657bd57b05000000000200acfd4288050000000009acab5352ab00ab636300000000", "53ac526553ab65", 0, 1253152975, "8b57a7c3170c6c02dd14ae1d392ce3d828197b20e9145c89c1cfd5de050e1562"], - ["38146dc502c7430e92b6708e9e107b61cd38e5e773d9395e5c8ad8986e7e4c03ee1c1e1e760100000000c8962ce2ac1bb3b1285c0b9ba07f4d2e5ce87c738c42ac0548cd8cec1100e6928cd6b0b6010000000763ab636aab52527cccefbd04e5f6f8020000000006006aabacac65ab2c4a00000000000351635209a6f40100000000026aacce57dc040000000008ab5353ab516a516a00000000", "ab", 0, -1205978252, "3cb5b030e7da0b60ccce5b4a7f3793e6ca56f03e3799fe2d6c3cc22d6d841dcb"], - ["22d81c740469695a6a83a9a4824f77ecff8804d020df23713990afce2b72591ed7de98500502000000065352526a6a6affffffff90dc85e118379b1005d7bbc7d2b8b0bab104dad7eaa49ff5bead892f17d8c3ba010000000665656300ab51ffffffff965193879e1d5628b52005d8560a35a2ba57a7f19201a4045b7cbab85133311d0200000003ac005348af21a13f9b4e0ad90ed20bf84e4740c8a9d7129632590349afc03799414b76fd6e826200000000025353ffffffff04a0d40d04000000000060702700000000000652655151516ad31f1502000000000365ac0069a1ac0500000000095100655300ab53525100000000", "51636a52ac", 0, -1644680765, "add7f5da27262f13da6a1e2cc2feafdc809bd66a67fb8ae2a6f5e6be95373b6f"], - ["a27dcbc801e3475174a183586082e0914c314bc9d79d1570f29b54591e5e0dff07fbb45a7f0000000004ac53ab51ffffffff027347f5020000000005535351ab63d0e5c9030000000009ac65ab6a63515200ab7cd632ed", "ac63636553", 0, -686435306, "883a6ea3b2cc53fe8a803c229106366ca14d25ffbab9fef8367340f65b201da6"], - ["b123ed2204410d4e8aaaa8cdb95234ca86dad9ff77fb4ae0fd4c06ebed36794f0215ede0040100000002ac63ffffffff3b58b81b19b90d8f402701389b238c3a84ff9ba9aeea298bbf15b41a6766d27a01000000056a6553ab00151824d401786153b819831fb15926ff1944ea7b03d884935a8bde01ed069d5fd80220310200000000ffffffffa9c9d246f1eb8b7b382a9032b55567e9a93f86c77f4e32c092aa1738f7f756c30100000002ab65ffffffff011a2b48000000000000ed44d1fb", "630051ab63", 2, -1118263883, "b5dab912bcabedff5f63f6dd395fc2cf030d83eb4dd28214baba68a45b4bfff0"], - ["1339051503e196f730955c5a39acd6ed28dec89b4dadc3f7c79b203b344511270e5747fa9900000000045151636affffffff378c6090e08a3895cedf1d25453bbe955a274657172491fd2887ed5c9aceca7b0100000000ffffffffcf7cc3c36ddf9d4749edfa9cefed496d2f86e870deb814bfcd3b5637a5496461030000000451006300ffffffff04dcf3fa010000000008526a63005263acabb41d84040000000004abac5153800eff020000000005656a535365106c5e00000000000000000000", "abac5300", 2, 2013719928, "7fc74de39ce6ca46ca25d760d3cec7bb21fd14f7efe1c443b5aa294f2cb5f546"], - ["0728c606014c1fd6005ccf878196ba71a54e86cc8c53d6db500c3cc0ac369a26fac6fcbc210000000005ab53ac5365ba9668290182d7870100000000066a000053655100000000", "65", 0, 1789961588, "ab6baa6da3b2bc853868d166f8996ad31d63ef981179f9104f49968fd61c8427"], - ["a1134397034bf4067b6c81c581e2b73fb63835a08819ba24e4e92df73074bf773c94577df7000000000465525251ffffffff8b6608feaa3c1f35f49c6330a769716fa01c5c6f6e0cdc2eb10dfc99bbc21e77010000000952656aac005352655180a0bda4bc72002c2ea8262e26e03391536ec36867258cab968a6fd6ec7523b64fa1d8c001000000056a53ac6353ffffffff04dbeeed05000000000553650052abcd5d0e01000000000463abab51104b2e0500000000066aac53ac5165283ca7010000000004535252ab00000000", "ab515151516552ab", 1, -324598676, "91178482112f94d1c8e929de443e4b9c893e18682998d393ca9ca77950412586"], - ["bcdafbae04aa18eb75855aeb1f5124f30044741351b33794254a80070940cb10552fa4fa8e0300000001acd0423fe6e3f3f88ae606f2e8cfab7a5ef87caa2a8f0401765ff9a47d718afcfb40c0099b0000000008ac6565ab53ac6aac645308009d680202d600e492b31ee0ab77c7c5883ebad5065f1ce87e4dfe6453e54023a0010000000151ffffffffb9d818b14245899e1d440152827c95268a676f14c3389fc47f5a11a7b38b1bde03000000026300ffffffff03cda22102000000000751ac535263005100a4d20400000000045200536ac8bef405000000000700ab51ab6563ac00000000", "6553516a526aab", 1, -2111409753, "5e1849e7368cf4f042718586d9bd831d61479b775bab97aba9f450042bd9876a"], - ["ed3bb93802ddbd08cb030ef60a2247f715a0226de390c9c1a81d52e83f8674879065b5f87d0300000003ab6552ffffffff04d2c5e60a21fb6da8de20bf206db43b720e2a24ce26779bca25584c3f765d1e0200000008ab656a6aacab00ab6e946ded025a811d04000000000951abac6352ac00ab5143cfa3030000000005635200636a00000000", "5352ac650065535300", 1, -668727133, "e9995065e1fddef72a796eef5274de62012249660dc9d233a4f24e02a2979c87"], - ["59f4629d030fa5d115c33e8d55a79ea3cba8c209821f979ed0e285299a9c72a73c5bba00150200000002636affffffffd8aca2176df3f7a96d0dc4ee3d24e6cecde1582323eec2ebef9a11f8162f17ac0000000007ab6565acab6553ffffffffeebc10af4f99c7a21cbc1d1074bd9f0ee032482a71800f44f26ee67491208e0403000000065352ac656351ffffffff0434e955040000000004ab515152caf2b305000000000365ac007b1473030000000003ab530033da970500000000060051536a5253bb08ab51", "", 2, 396340944, "0e9c47973ef2c292b2252c623f465bbb92046fe0b893eebf4e1c9e02cb01c397"], - ["286e3eb7043902bae5173ac3b39b44c5950bc363f474386a50b98c7bdab26f98dc83449c4a020000000752ac6a00510051ffffffff4339cd6a07f5a5a2cb5815e5845da70300f5c7833788363bf7fe67595d3225520100000000fffffffff9c2dd8b06ad910365ffdee1a966f124378a2b8021065c8764f6138bb1e951380200000005ab5153ac6affffffff0370202aba7a68df85436ea7c945139513384ef391fa33d16020420b8ad40e9a000000000900ab5165526353abacffffffff020c1907000000000004abac526a1b490b040000000000df1528f7", "5353ab", 3, -1407529517, "32154c09174a9906183abf26538c39e78468344ca0848bbd0785e24a3565d932"], - ["2e245cf80179e2e95cd1b34995c2aff49fe4519cd7cee93ad7587f7f7e8105fc2dff206cd30200000009006a63516a6553ab52350435a201d5ed2d02000000000352ab6558552c89", "00ab53", 0, -233917810, "4605ae5fd3d50f9c45d37db7118a81a9ef6eb475d2333f59df5d3e216f150d49"], - ["33a98004029d262f951881b20a8d746c8c707ea802cd2c8b02a33b7e907c58699f97e42be80100000007ac53536552abacdee04cc01d205fd8a3687fdf265b064d42ab38046d76c736aad8865ca210824b7c622ecf02000000070065006a536a6affffffff01431c5d010000000000270d48ee", "", 1, 921554116, "ff9d7394002f3f196ea25472ea6c46f753bd879a7244795157bb7235c9322902"], - ["aac18f2b02b144ed481557c53f2146ae523f24fcde40f3445ab0193b6b276c315dc2894d2300000000075165650000636a233526947dbffc76aec7db1e1baa6868ad4799c76e14794dcbaaec9e713a83967f6a65170200000005abac6551ab27d518be01b652a30000000000015300000000", "52ac5353", 1, 1559377136, "59fc2959bb7bb24576cc8a237961ed95bbb900679d94da6567734c4390cb6ef5"], - ["5ab79881033555b65fe58c928883f70ce7057426fbdd5c67d7260da0fe8b1b9e6a2674cb850300000009ac516aac6aac006a6affffffffa5be9223b43c2b1a4d120b5c5b6ec0484f637952a3252181d0f8e813e76e11580200000000e4b5ceb8118cb77215bbeedc9a076a4d087bb9cd1473ea32368b71daeeeacc451ec209010000000005acac5153aced7dc34e02bc5d11030000000005ac5363006a54185803000000000552ab00636a00000000", "5100", 1, 1927062711, "e9f53d531c12cce1c50abed4ac521a372b4449b6a12f9327c80020df6bff66c0"], - ["6c2c8fac0124b0b7d4b610c3c5b91dee32b7c927ac71abdf2d008990ca1ac40de0dfd530660300000006ababac5253656bd7eada01d847ec000000000004ac52006af4232ec8", "6a6a6a0051", 0, -340809707, "fb51eb9d7e47d32ff2086205214f90c7c139e08c257a64829ae4d2b301071c6a"], - ["6e3880af031735a0059c0bb5180574a7dcc88e522c8b56746d130f8d45a52184045f96793e0100000008acabac6a526a6553fffffffffe05f14cdef7d12a9169ec0fd37524b5fcd3295f73f48ca35a36e671da4a2f560000000008006a526a6351ab63ffffffffdfbd869ac9e472640a84caf28bdd82e8c6797f42d03b99817a705a24fde2736600000000010090a090a503db956b04000000000952ac53ab6a536a63ab358390010000000009656a5200525153ac65353ee204000000000763530052526aaba6ad83fb", "535151ab6300", 2, 222014018, "57a34ddeb1bf36d28c7294dda0432e9228a9c9e5cc5c692db98b6ed2e218d825"], - ["8df1cd19027db4240718dcaf70cdee33b26ea3dece49ae6917331a028c85c5a1fb7ee3e475020000000865ab6a00510063636157988bc84d8d55a8ba93cdea001b9bf9d0fa65b5db42be6084b5b1e1556f3602f65d4d0100000005ac00ab0052206c852902b2fb54030000000008ac5252536aacac5378c4a5050000000007acabac535163532784439e", "acab6a", 0, 1105620132, "edb7c74223d1f10f9b3b9c1db8064bc487321ff7bb346f287c6bc2fad83682de"], - ["0e803682024f79337b25c98f276d412bc27e56a300aa422c42994004790cee213008ff1b8303000000080051ac65ac655165f421a331892b19a44c9f88413d057fea03c3c4a6c7de4911fe6fe79cf2e9b3b10184b1910200000005525163630096cb1c670398277204000000000253acf7d5d502000000000963536a6a636a5363ab381092020000000002ac6a911ccf32", "6565", 1, -1492094009, "f0672638a0e568a919e9d8a9cbd7c0189a3e132940beeb52f111a89dcc2daa2c"], - ["7d71669d03022f9dd90edac323cde9e56354c6804c6b8e687e9ae699f46805aafb8bcaa636000000000253abffffffff698a5fdd3d7f2b8b000c68333e4dd58fa8045b3e2f689b889beeb3156cecdb490300000009525353abab0051acabc53f0aa821cdd69b473ec6e6cf45cf9b38996e1c8f52c27878a01ec8bb02e8cb31ad24e500000000055353ab0052ffffffff0447a23401000000000565ab53ab5133aaa0030000000006515163656563057d110300000000056a6aacac52cf13b5000000000003526a5100000000", "6a6a51", 1, -1349253507, "722efdd69a7d51d3d77bed0ac5544502da67e475ea5857cd5af6bdf640a69945"], - ["9ff618e60136f8e6bb7eabaaac7d6e2535f5fba95854be6d2726f986eaa9537cb283c701ff02000000026a65ffffffff012d1c0905000000000865ab00ac6a516a652f9ad240", "51515253635351ac", 0, 1571304387, "659cd3203095d4a8672646add7d77831a1926fc5b66128801979939383695a79"], - ["9fbd43ac025e1462ecd10b1a9182a8e0c542f6d1089322a41822ab94361e214ed7e1dfdd8a020000000263519d0437581538e8e0b6aea765beff5b4f3a4a202fca6e5d19b34c141078c6688f71ba5b8e0100000003ac6552ffffffff02077774050000000009655153655263acab6a0ae4e10100000000035152524c97136b", "635152ab", 0, 1969622955, "d82d4ccd9b67810f26a378ad9592eb7a30935cbbd27e859b00981aefd0a72e08"], - ["0117c92004314b84ed228fc11e2999e657f953b6de3b233331b5f0d0cf40d5cc149b93c7b30300000005515263516a083e8af1bd540e54bf5b309d36ba80ed361d77bbf4a1805c7aa73667ad9df4f97e2da410020000000600ab6351ab524d04f2179455e794b2fcb3d214670001c885f0802e4b5e015ed13a917514a7618f5f332203000000086a536aab51000063ecf029e65a4a009a5d67796c9f1eb358b0d4bd2620c8ad7330fb98f5a802ab92d0038b1002000000036a6551a184a88804b04490000000000009ab6a5152535165526a33d1ab020000000001518e92320000000000002913df04000000000952abac6353525353ac8b19bfdf", "000051ab0000", 0, 489433059, "8eebac87e60da524bbccaf285a44043e2c9232868dda6c6271a53c153e7f3a55"], - ["e7f5482903f98f0299e0984b361efb2fddcd9979869102281e705d3001a9d283fe9f3f3a1e02000000025365ffffffffcc5c7fe82feebad32a22715fc30bc584efc9cd9cadd57e5bc4b6a265547e676e0000000001ab579d21235bc2281e08bf5e7f8f64d3afb552839b9aa5c77cf762ba2366fffd7ebb74e49400000000055263ab63633df82cf40100982e05000000000453ac535300000000", "acacab", 2, -1362931214, "046de666545330e50d53083eb78c9336416902f9b96c77cc8d8e543da6dfc7e4"], - ["09adb2e90175ca0e816326ae2dce7750c1b27941b16f6278023dbc294632ab97977852a09d030000000465ab006affffffff027739cf0100000000075151ab63ac65ab8a5bb601000000000653ac5151520011313cdc", "ac", 0, -76831756, "478ee06501b4965b40bdba6cbaad9b779b38555a970912bb791b86b7191c54bc"], - ["f973867602e30f857855cd0364b5bbb894c049f44abbfd661d7ae5dbfeaafca89fac8959c20100000005ab52536a51ffffffffbeceb68a4715f99ba50e131884d8d20f4a179313691150adf0ebf29d05f8770303000000066352ab00ac63ffffffff021fddb90000000000036a656322a177000000000008526500ac5100acac84839083", "52acab53ac", 0, 1407879325, "db0329439490efc64b7104d6d009b03fbc6fac597cf54fd786fbbb5fd73b92b4"], - ["fd22ebaa03bd588ad16795bea7d4aa7f7d48df163d75ea3afebe7017ce2f350f6a0c1cb0bb00000000086aabac5153526363ffffffff488e0bb22e26a565d77ba07178d17d8f85702630ee665ec35d152fa05af3bda10200000004515163abffffffffeb21035849e85ad84b2805e1069a91bb36c425dc9c212d9bae50a95b6bfde1200300000001ab5df262fd02b69848040000000008ab6363636a6363ace23bf2010000000007655263635253534348c1da", "006353526563516a00", 0, -1491036196, "92364ba3c7a85d4e88885b8cb9b520dd81fc29e9d2b750d0790690e9c1246673"], - ["130b462d01dd49fac019dc4442d0fb54eaa6b1c2d1ad0197590b7df26969a67abd7f3fbb4f0100000008ac65abac53ab6563ffffffff0345f825000000000004ac53acac9d5816020000000002ababeff8e90500000000086aab006552ac6a53a892dc55", "ab0065ac530052", 0, 944483412, "1f4209fd4ce7f13d175fdd522474ae9b34776fe11a5f17a27d0796c77a2a7a9d"], - ["f8e50c2604609be2a95f6d0f31553081f4e1a49a0a30777fe51eb1c596c1a9a92c053cf28c0300000009656a51ac5252630052fffffffff792ed0132ae2bd2f11d4a2aab9d0c4fbdf9a66d9ae2dc4108afccdc14d2b1700100000007ab6a6563ac636a7bfb2fa116122b539dd6a2ab089f88f3bc5923e5050c8262c112ff9ce0a3cd51c6e3e84f02000000066551ac5352650d5e687ddf4cc9a497087cabecf74d236aa4fc3081c3f67b6d323cba795e10e7a171b725000000000852635351ab635100ffffffff02df5409020000000008ac6a53acab5151004156990200000000045163655200000000", "ac53abac65005300", 0, -173065000, "b596f206d7eba22b7e2d1b7a4f4cf69c7c541b6c84dcc943f84e19a99a923310"], - ["18020dd1017f149eec65b2ec23300d8df0a7dd64fc8558b36907723c03cd1ba672bbb0f51d0300000005ab65ab6a63ffffffff037cd7ae000000000009ab516a65005352ac65f1e4360400000000056353530053f118f0040000000009536363ab006500abac00000000", "63ab51acab52ac", 0, -550412404, "e19b796c14a0373674968e342f2741d8b51092a5f8409e9bff7dcd52e56fcbcb"], - ["b04154610363fdade55ceb6942d5e5a723323863b48a0cb04fdcf56210717955763f56b08d0300000009ac526a525151635151ffffffff93a176e76151a9eabdd7af00ef2af72f9e7af5ecb0aa4d45d00618f394cdd03c030000000074d818b332ebe05dc24c44d776cf9d275c61f471cc01efce12fd5a16464157f1842c65cb00000000066a0000ac6352d3c4134f01d8a1c0030000000005520000005200000000", "5200656a656351", 2, -9757957, "6e3e5ba77f760b6b5b5557b13043f1262418f3dd2ce7f0298b012811fc8ad5bc"], - ["9794b3ce033df7b1e32db62d2f0906b589eacdacf5743963dc2255b6b9a6cba211fadd0d41020000000600ab00650065ffffffffaae00687a6a4131152bbcaafedfaed461c86754b0bde39e2bef720e6d1860a0302000000070065516aac6552ffffffff50e4ef784d6230df7486e972e8918d919f005025bc2d9aacba130f58bed7056703000000075265ab52656a52ffffffff02c6f1a9000000000006005251006363cf450c040000000008abab63510053abac00000000", "ac0063ababab515353", 1, 2063905082, "fad092fc98f17c2c20e10ba9a8eb44cc2bcc964b006f4da45cb9ceb249c69698"], - ["94533db7015e70e8df715066efa69dbb9c3a42ff733367c18c22ff070392f988f3b93920820000000006535363636300ce4dac3e03169af80300000000080065ac6a53ac65ac39c050020000000006abacab6aacac708a02050000000005ac5251520000000000", "6553", 0, -360458507, "5418cf059b5f15774836edd93571e0eed3855ba67b2b08c99dccab69dc87d3e9"], - ["c8597ada04f59836f06c224a2640b79f3a8a7b41ef3efa2602592ddda38e7597da6c639fee0300000009005251635351acabacffffffff4c518f347ee694884b9d4072c9e916b1a1f0a7fc74a1c90c63fdf8e5a185b6ae02000000007113af55afb41af7518ea6146786c7c726641c68c8829a52925e8d4afd07d8945f68e7230300000008ab00ab65ab650063ffffffffc28e46d7598312c420e11dfaae12add68b4d85adb182ae5b28f8340185394b63000000000165ffffffff04dbabb7010000000000ee2f6000000000000852ab6500ab6a51acb62a27000000000009ac53515300ac006a6345fb7505000000000752516a0051636a00000000", "", 3, 15199787, "0d66003aff5bf78cf492ecbc8fd40c92891acd58d0a271be9062e035897f317e"], - ["1a28c4f702c8efaad96d879b38ec65c5283b5c084b819ad7db1c086e85e32446c7818dc7a90300000008656351536a525165fa78cef86c982f1aac9c5eb8b707aee8366f74574c8f42ef240599c955ef4401cf578be30200000002ab518893292204c430eb0100000000016503138a0300000000040053abac60e0eb010000000005525200ab63567c2d030000000004abab52006cf81e85", "ab51525152", 1, 2118315905, "4e4c9a781f626b59b1d3ad8f2c488eb6dee8bb19b9bc138bf0dc33e7799210d4"], - ["c6c7a87003f772bcae9f3a0ac5e499000b68703e1804b9ddc3e73099663564d53ddc4e1c6e01000000076a536a6aac63636e3102122f4c30056ef8711a6bf11f641ddfa6984c25ac38c3b3e286e74e839198a80a34010000000165867195cd425821dfa2f279cb1390029834c06f018b1e6af73823c867bf3a0524d1d6923b0300000005acab53ab65ffffffff02fa4c49010000000008ab656a0052650053e001100400000000008836d972", "ac526351acab", 1, 978122815, "a869c18a0edf563d6e5eddd5d5ae8686f41d07f394f95c9feb8b7e52761531ca"], - ["0ea580ac04c9495ab6af3b8d59108bb4194fcb9af90b3511c83f7bb046d87aedbf8423218e02000000085152acac006363ab9063d7dc25704e0caa5edde1c6f2dd137ded379ff597e055b2977b9c559b07a7134fcef2000000000200aca89e50181f86e9854ae3b453f239e2847cf67300fff802707c8e3867ae421df69274449402000000056365abababffffffff47a4760c881a4d7e51c69b69977707bd2fb3bcdc300f0efc61f5840e1ac72cee0000000000ffffffff0460179a020000000004ab53ab52a5250c0500000000096565acac6365ab52ab6c281e02000000000952635100ac006563654e55070400000000046552526500000000", "ab526563acac53ab", 2, 1426964167, "b1c50d58b753e8f6c7513752158e9802cf0a729ebe432b99acc0fe5d9b4e9980"], - ["c33028b301d5093e1e8397270d75a0b009b2a6509a01861061ab022ca122a6ba935b8513320200000000ffffffff013bcf5a0500000000015200000000", "", 0, -513413204, "6b1459536f51482f5dbf42d7e561896557461e1e3b6bf67871e2b51faae2832c"], - ["43b2727901a7dd06dd2abf690a1ccedc0b0739cb551200796669d9a25f24f71d8d101379f50300000000ffffffff0418e031040000000000863d770000000000085352ac526563ac5174929e040000000004ac65ac00ec31ac0100000000066a51ababab5300000000", "65", 0, -492874289, "154ff7a9f0875edcfb9f8657a0b98dd9600fabee3c43eb88af37cf99286d516c"], - ["4763ed4401c3e6ab204bed280528e84d5288f9cac5fb8a2e7bd699c7b98d4df4ac0c40e55303000000066a6aacab5165ffffffff015b57f80400000000046a63535100000000", "ac51abab53", 0, -592611747, "849033a2321b5755e56ef4527ae6f51e30e3bca50149d5707368479723d744f8"], - ["d24f647b02f71708a880e6819a1dc929c1a50b16447e158f8ff62f9ccd644e0ca3c592593702000000050053536a00ffffffff67868cd5414b6ca792030b18d649de5450a456407242b296d936bcf3db79e07b02000000005af6319c016022f50100000000036a516300000000", "6aab526353516a6a", 0, 1350782301, "8556fe52d1d0782361dc28baaf8774b13f3ce5ed486ae0f124b665111e08e3e3"], - ["fe6ddf3a02657e42a7496ef170b4a8caf245b925b91c7840fd28e4a22c03cb459cb498b8d603000000065263656a650071ce6bf8d905106f9f1faf6488164f3decac65bf3c5afe1dcee20e6bc3cb6d052561985a030000000163295b117601343dbb0000000000026563dba521df", "", 1, -1696179931, "d9684685c99ce48f398fb467a91a1a59629a850c429046fb3071f1fa9a5fe816"], - ["c61523ef0129bb3952533cbf22ed797fa2088f307837dd0be1849f20decf709cf98c6f032f03000000026563c0f1d378044338310400000000066363516a5165a14fcb0400000000095163536a6a00ab53657271d60200000000001d953f0500000000010000000000", "53516353005153", 0, 1141615707, "7e975a72db5adaa3c48d525d9c28ac11cf116d0f8b16ce08f735ad75a80aec66"], - ["ba3dac6c0182562b0a26d475fe1e36315f0913b6869bdad0ecf21f1339a5fcbccd32056c840200000000ffffffff04300351050000000000220ed405000000000851abac636565ac53dbbd19020000000007636363ac6a52acbb005a0500000000016abd0c78a8", "63006a635151005352", 0, 1359658828, "47bc8ab070273e1f4a0789c37b45569a6e16f3f3092d1ce94dddc3c34a28f9f4"], - ["ac27e7f5025fc877d1d99f7fc18dd4cadbafa50e34e1676748cc89c202f93abf36ed46362101000000036300abffffffff958cd5381962b765e14d87fc9524d751e4752dd66471f973ed38b9d562e525620100000003006500ffffffff02b67120050000000004ac51516adc330c0300000000015200000000", "656352", 1, 15049991, "f3374253d64ac264055bdbcc32e27426416bd595b7c7915936c70f839e504010"], - ["edb30140029182b80c8c3255b888f7c7f061c4174d1db45879dca98c9aab8c8fed647a6ffc03000000086a53510052ab6300ffffffff82f65f261db62d517362c886c429c8fbbea250bcaad93356be6f86ba573e9d930100000000ffffffff04daaf150400000000016a86d1300100000000096a6353535252ac5165d4ddaf000000000002abab5f1c6201000000000000000000", "ab6a6a00ac", 0, -2058017816, "8d7794703dad18e2e40d83f3e65269834bb293e2d2b8525932d6921884b8f368"], - ["7e50207303146d1f7ad62843ae8017737a698498d4b9118c7a89bb02e8370307fa4fada41d000000000753006300005152b7afefc85674b1104ba33ef2bf37c6ed26316badbc0b4aa6cb8b00722da4f82ff3555a6c020000000900ac656363ac51ac52ffffffff93fab89973bd322c5d7ad7e2b929315453e5f7ada3072a36d8e33ca8bebee6e0020000000300acab930da52b04384b04000000000004650052ac435e380200000000076a6a515263ab6aa9494705000000000600ab6a525252af8ba90100000000096565acab526353536a279b17ad", "acac005263536aac63", 1, -34754133, "4e6357da0057fb7ff79da2cc0f20c5df27ff8b2f8af4c1709e6530459f7972b0"], - ["c05764f40244fb4ebe4c54f2c5298c7c798aa90e62c29709acca0b4c2c6ec08430b26167440100000008acab6a6565005253ffffffffc02c2418f398318e7f34a3cf669d034eef2111ea95b9f0978b01493293293a870100000000e563e2e00238ee8d040000000002acab03fb060200000000076500ac656a516aa37f5534", "52ab6a0065", 1, -2033176648, "83deef4a698b62a79d4877dd9afebc3011a5275dbe06e89567e9ef84e8a4ee19"], - ["5a59e0b9040654a3596d6dab8146462363cd6549898c26e2476b1f6ae42915f73fd9aedfda00000000036363abffffffff9ac9e9ca90be0187be2214251ff08ba118e6bf5e2fd1ba55229d24e50a510d53010000000165ffffffff41d42d799ac4104644969937522873c0834cc2fcdab7cdbecd84d213c0e96fd60000000000ffffffffd838db2c1a4f30e2eaa7876ef778470f8729fcf258ad228b388df2488709f8410300000000fdf2ace002ceb6d903000000000265654c1310040000000003ac00657e91c0ec", "536a63ac", 0, 82144555, "98ccde2dc14d14f5d8b1eeea5364bd18fc84560fec2fcea8de4d88b49c00695e"], - ["156ebc8202065d0b114984ee98c097600c75c859bfee13af75dc93f57c313a877efb09f230010000000463536a51ffffffff81114e8a697be3ead948b43b5005770dd87ffb1d5ccd4089fa6c8b33d3029e9c03000000066a5251656351ffffffff01a87f140000000000050000ac51ac00000000", "00", 0, -362221092, "a903c84d8c5e71134d1ab6dc1e21ac307c4c1a32c90c90f556f257b8a0ec1bf5"], - ["15e37793023c7cbf46e073428908fce0331e49550f2a42b92468827852693f0532a01c29f70200000007005353636351acffffffff38426d9cec036f00eb56ec1dcd193647e56a7577278417b8a86a78ac53199bc403000000056353006a53ffffffff04a25ce103000000000900ab5365656a526a63c8eff7030000000004526353537ab6db0200000000016a11a3fa02000000000651acacab526500000000", "53ac6aab6a6551", 0, 1117532791, "83c68b3c5a89260ce16ce8b4dbf02e1f573c532d9a72f5ea57ab419fa2630214"], - ["f7a09f10027250fc1b70398fb5c6bffd2be9718d3da727e841a73596fdd63810c9e4520a6a010000000963ac516a636a65acac1d2e2c57ab28d311edc4f858c1663972eebc3bbc93ed774801227fda65020a7ec1965f780200000005ac5252516a8299fddc01dcbf7200000000000463ac6551960fda03", "65acab51", 1, 2017321737, "9c5fa02abfd34d0f9dec32bf3edb1089fca70016debdb41f4f54affcb13a2a2a"], - ["6d97a9a5029220e04f4ccc342d8394c751282c328bf1c132167fc05551d4ca4da4795f6d4e02000000076a0052ab525165ffffffff9516a205e555fa2a16b73e6db6c223a9e759a7e09c9a149a8f376c0a7233fa1b0100000007acab51ab63ac6affffffff04868aed04000000000652ac65ac536a396edf01000000000044386c0000000000076aab5363655200894d48010000000001ab8ebefc23", "6351526aac51", 1, 1943666485, "f0bd4ca8e97203b9b4e86bc24bdc8a1a726db5e99b91000a14519dc83fc55c29"], - ["8e3fddfb028d9e566dfdda251cd874cd3ce72e9dde837f95343e90bd2a93fe21c5daeb5eed01000000045151525140517dc818181f1e7564b8b1013fd68a2f9a56bd89469686367a0e72c06be435cf99db750000000003635251ffffffff01c051780300000000096552ababac6a65acab099766eb", "5163ab6a52ababab51", 1, 1296295812, "5509eba029cc11d7dd2808b8c9eb47a19022b8d8b7778893459bbc19ab7ea820"], - ["a603f37b02a35e5f25aae73d0adc0b4b479e68a734cf722723fd4e0267a26644c36faefdab0200000000ffffffff43374ad26838bf733f8302585b0f9c22e5b8179888030de9bdda180160d770650200000001004c7309ce01379099040000000005526552536500000000", "abababab005153", 0, 1409936559, "4ca73da4fcd5f1b10da07998706ffe16408aa5dff7cec40b52081a6514e3827e"], - ["9eeedaa8034471a3a0e3165620d1743237986f060c4434f095c226114dcb4b4ec78274729f03000000086a5365510052ac6afb505af3736e347e3f299a58b1b968fce0d78f7457f4eab69240cbc40872fd61b5bf8b120200000002ac52df8247cf979b95a4c97ecb8edf26b3833f967020cd2fb25146a70e60f82c9ee4b14e88b103000000008459e2fa0125cbcd05000000000000000000", "52ab5352006353516a", 0, -1832576682, "fb018ae54206fdd20c83ae5873ec82b8e320a27ed0d0662db09cda8a071f9852"], - ["05921d7c048cf26f76c1219d0237c226454c2a713c18bf152acc83c8b0647a94b13477c07f0300000003ac526afffffffff2f494453afa0cabffd1ba0a626c56f90681087a5c1bd81d6adeb89184b27b7402000000036a6352ffffffff0ad10e2d3ce355481d1b215030820da411d3f571c3f15e8daf22fe15342fed04000000000095f29f7b93ff814a9836f54dc6852ec414e9c4e16a506636715f569151559100ccfec1d100000000055263656a53ffffffff04f4ffef010000000008ac6a6aabacabab6a0e6689040000000006ab536a5352abe364d005000000000965536363655251ab53807e00010000000004526aab63f18003e3", "6363ac51", 3, -375891099, "001b0b176f0451dfe2d9787b42097ceb62c70d324e925ead4c58b09eebdf7f67"], - ["b9b44d9f04b9f15e787d7704e6797d51bc46382190c36d8845ec68dfd63ee64cf7a467b21e00000000096aac00530052ab636aba1bcb110a80c5cbe073f12c739e3b20836aa217a4507648d133a8eedd3f02cb55c132b203000000076a000063526352b1c288e3a9ff1f2da603f230b32ef7c0d402bdcf652545e2322ac01d725d75f5024048ad0100000000ffffffffffd882d963be559569c94febc0ef241801d09dc69527c9490210f098ed8203c700000000056a006300ab9109298d01719d9a0300000000066a52ab006365d7894c5b", "ac6351650063636a", 3, -622355349, "ac87b1b93a6baab6b2c6624f10e8ebf6849b0378ef9660a3329073e8f5553c8d"], - ["ff60473b02574f46d3e49814c484081d1adb9b15367ba8487291fc6714fd6e3383d5b335f001000000026a6ae0b82da3dc77e5030db23d77b58c3c20fa0b70aa7d341a0f95f3f72912165d751afd57230300000008ac536563516a6363ffffffff04f86c0200000000000553acab636ab13111000000000003510065f0d3f305000000000951ab516a65516aabab730a3a010000000002515200000000", "ac6a", 1, 1895032314, "0767e09bba8cd66d55915677a1c781acd5054f530d5cf6de2d34320d6c467d80"], - ["f218026204f4f4fc3d3bd0eada07c57b88570d544a0436ae9f8b753792c0c239810bb30fbc0200000002536affffffff8a468928d6ec4cc10aa0f73047697970e99fa64ae8a3b4dca7551deb0b639149010000000851ab520052650051ffffffffa98dc5df357289c9f6873d0f5afcb5b030d629e8f23aa082cf06ec9a95f3b0cf0000000000ffffffffea2c2850c5107705fd380d6f29b03f533482fd036db88739122aac9eff04e0aa010000000365536a03bd37db034ac4c4020000000007515152655200ac33b27705000000000151efb71e0000000000007b65425b", "515151", 3, -1772252043, "de35c84a58f2458c33f564b9e58bc57c3e028d629f961ad1b3c10ee020166e5a"], - ["48e7d42103b260b27577b70530d1ac2fed2551e9dd607cbcf66dca34bb8c03862cf8f5fd5401000000075151526aacab00ffffffff1e3d3b841552f7c6a83ee379d9d66636836673ce0b0eda95af8f2d2523c91813030000000665acac006365ffffffff388b3c386cd8c9ef67c83f3eaddc79f1ff910342602c9152ffe8003bce51b28b0100000008636363006a636a52ffffffff04b8f67703000000000852005353ac6552520cef720200000000085151ab6352ab00ab5096d6030000000005516a005100662582020000000001ac6c137280", "6a65", 1, 1513618429, "e2fa3e1976aed82c0987ab30d4542da2cb1cffc2f73be13480132da8c8558d5c"], - ["91ebc4cf01bc1e068d958d72ee6e954b196f1d85b3faf75a521b88a78021c543a06e056279000000000265ab7c12df0503832121030000000000cc41a6010000000005ab5263516540a951050000000006ab63ab65acac00000000", "526a0065636a6a6aac", 0, -614046478, "7de4ba875b2e584a7b658818c112e51ee5e86226f5a80e5f6b15528c86400573"], - ["3cd4474201be7a6c25403bf00ca62e2aa8f8f4f700154e1bb4d18c66f7bb7f9b975649f0dc0100000006535151535153ffffffff01febbeb000000000006005151006aac00000000", "", 0, -1674687131, "6b77ca70cc452cc89acb83b69857cda98efbfc221688fe816ef4cb4faf152f86"], - ["92fc95f00307a6b3e2572e228011b9c9ed41e58ddbaefe3b139343dbfb3b34182e9fcdc3f50200000002acab847bf1935fde8bcfe41c7dd99683289292770e7f163ad09deff0e0665ed473cd2b56b0f40300000006516551ab6351294dab312dd87b9327ce2e95eb44b712cfae0e50fda15b07816c8282e8365b643390eaab01000000026aacffffffff016e0b6b040000000001ac00000000", "650065acac005300", 2, -1885164012, "bd7d26bb3a98fc8c90c972500618bf894cb1b4fe37bf5481ff60eef439d3b970"], - ["4db591ab018adcef5f4f3f2060e41f7829ce3a07ea41d681e8cb70a0e37685561e4767ac3b0000000005000052acabd280e63601ae6ef20000000000036a636326c908f7", "ac6a51526300630052", 0, 862877446, "355ccaf30697c9c5b966e619a554d3323d7494c3ea280a9b0dfb73f953f5c1cb"], - ["503fd5ef029e1beb7b242d10032ac2768f9a1aca0b0faffe51cec24770664ec707ef7ede4f01000000045253ac53375e350cc77741b8e96eb1ce2d3ca91858c052e5f5830a0193200ae2a45b413dda31541f0000000003516553ffffffff0175a5ba0500000000015200000000", "6aab65510053ab65", 1, 1603081205, "353ca9619ccb0210ae18b24d0e57efa7abf8e58fa6f7102738e51e8e72c9f0c4"], - ["c80abebd042cfec3f5c1958ee6970d2b4586e0abec8305e1d99eb9ee69ecc6c2cbd76374380000000007ac53006300ac510acee933b44817db79320df8094af039fd82111c7726da3b33269d3820123694d849ee5001000000056a65ab526562699bea8530dc916f5d61f0babea709dac578774e8a4dcd9c640ec3aceb6cb2443f24f302000000020063ea780e9e57d1e4245c1e5df19b4582f1bf704049c5654f426d783069bcc039f2d8fa659f030000000851ab53635200006a8d00de0b03654e8500000000000463ab635178ebbb0400000000055100636aab239f1d030000000006ab006300536500000000", "6565ac515100", 3, 1460851377, "b35bb1b72d02fab866ed6bbbea9726ab32d968d33a776686df3ac16aa445871e"], - ["0337b2d5043eb6949a76d6632b8bb393efc7fe26130d7409ef248576708e2d7f9d0ced9d3102000000075352636a5163007034384dfa200f52160690fea6ce6c82a475c0ef1caf5c9e5a39f8f9ddc1c8297a5aa0eb02000000026a51ffffffff38e536298799631550f793357795d432fb2d4231f4effa183c4e2f61a816bcf0030000000463ac5300706f1cd3454344e521fde05b59b96e875c8295294da5d81d6cc7efcfe8128f150aa54d6503000000008f4a98c704c1561600000000000072cfa6000000000000e43def01000000000100cf31cc0500000000066365526a6500cbaa8e2e", "", 3, 2029506437, "7615b4a7b3be865633a31e346bc3db0bcc410502c8358a65b8127089d81b01f8"], - ["59f6cffd034733f4616a20fe19ea6aaf6abddb30b408a3a6bd86cd343ab6fe90dc58300cc90200000000ffffffffc835430a04c3882066abe7deeb0fa1fdaef035d3233460c67d9eabdb05e95e5a02000000080065ac535353ab00ffffffff4b9a043e89ad1b4a129c8777b0e8d87a014a0ab6a3d03e131c27337bbdcb43b402000000066a5100abac6ad9e9bf62014bb118010000000001526cbe484f", "ab526352ab65", 0, 2103515652, "4f2ccf981598639bec57f885b4c3d8ea8db445ea6e61cfd45789c69374862e5e"], - ["cbc79b10020b15d605680a24ee11d8098ad94ae5203cb6b0589e432832e20c27b72a926af20300000006ab65516a53acbb854f3146e55c508ece25fa3d99dbfde641a58ed88c051a8a51f3dacdffb1afb827814b02000000026352c43e6ef30302410a020000000000ff4bd90100000000065100ab63000008aa8e0400000000095265526565ac5365abc52c8a77", "53526aac0051", 0, 202662340, "984efe0d8d12e43827b9e4b27e97b3777ece930fd1f589d616c6f9b71dab710e"], - ["7c07419202fa756d29288c57b5c2b83f3c847a807f4a9a651a3f6cd6c46034ae0aa3a7446b0200000004ab6a6365ffffffff9da83cf4219bb96c76f2d77d5df31c1411a421171d9b59ec02e5c1218f29935403000000008c13879002f8b1ac0400000000086a63536a636553653c584f02000000000000000000", "abac53ab656363", 1, -1038419525, "4a74f365a161bc6c9bddd249cbd70f5dadbe3de70ef4bd745dcb6ee1cd299fbd"], - ["351cbb57021346e076d2a2889d491e9bfa28c54388c91b46ee8695874ad9aa576f1241874d0200000008ab6563525300516affffffffe13e61b8880b8cd52be4a59e00f9723a4722ea58013ec579f5b3693b9e115b1100000000096363abac5252635351ffffffff027fee02040000000008ab6a5200ab006a65b85f130200000000086a52630053ab52ab00000000", "ab6aab65", 1, 586415826, "08bbb746a596991ab7f53a76e19acad087f19cf3e1db54054aab403c43682d09"], - ["a8252ea903f1e8ff953adb16c1d1455a5036222c6ea98207fc21818f0ece2e1fac310f9a0100000000095163ac635363ac0000be6619e9fffcde50a0413078821283ce3340b3993ad00b59950bae7a9f931a9b0a3a035f010000000463005300b8b0583fbd6049a1715e7adacf770162811989f2be20af33f5f60f26eba653dc26b024a00000000006525351636552ffffffff046d2acc030000000002636a9a2d430500000000080065005165ab53abecf63204000000000052b9ed050000000008acacac53ab65656500000000", "65ab53635253636a51", 2, 1442639059, "8ca11838775822f9a5beee57bdb352f4ee548f122de4a5ca61c21b01a1d50325"], - ["2f1a425c0471a5239068c4f38f9df135b1d24bf52d730d4461144b97ea637504495aec360801000000055300515365c71801dd1f49f376dd134a9f523e0b4ae611a4bb122d8b26de66d95203f181d09037974300000000025152ffffffff9bdcea7bc72b6e5262e242c94851e3a5bf8f314b3e5de0e389fc9e5b3eadac030000000009525265655151005153ffffffffdbb53ce99b5a2320a4e6e2d13b01e88ed885a0957d222e508e9ec8e4f83496cb0200000007635200abac63ac04c96237020cc5490100000000080000516a51ac6553074a360200000000025152225520ca", "6551ab65ac65516a", 1, -489869549, "9bc5bb772c553831fb40abe466074e59a469154679c7dee042b8ea3001c20393"], - ["ef3acfd4024defb48def411b8f8ba2dc408dc9ee97a4e8bde4d6cb8e10280f29c98a6e8e9103000000035100513d5389e3d67e075469dfd9f204a7d16175653a149bd7851619610d7ca6eece85a516b2df0300000005516aac6552ca678bdf02f477f003000000000057e45b0300000000055252525252af35c20a", "5165ac53ab", 1, -1900839569, "78eb6b24365ac1edc386aa4ffd15772f601059581c8776c34f92f8a7763c9ccf"], - ["ff4468dc0108475fc8d4959a9562879ce4ab4867a419664bf6e065f17ae25043e6016c70480100000000ffffffff02133c6f0400000000000bd0a8020000000004006a520035afa4f6", "51ac65ab", 0, -537664660, "f6da59b9deac63e83728850ac791de61f5dfcaeed384ebcbb20e44afcd8c8910"], - ["4e8594d803b1d0a26911a2bcdd46d7cbc987b7095a763885b1a97ca9cbb747d32c5ab9aa91030000000353ac53a0cc4b215e07f1d648b6eeb5cdbe9fa32b07400aa773b9696f582cebfd9930ade067b2b200000000060065abab6500fc99833216b8e27a02defd9be47fafae4e4a97f52a9d2a210d08148d2a4e5d02730bcd460100000004516351ac37ce3ae1033baa55040000000006006a636a63acc63c990400000000025265eb1919030000000005656a6a516a00000000", "", 1, -75217178, "04c5ee48514cd033b82a28e336c4d051074f477ef2675ce0ce4bafe565ee9049"], - ["a88830a7023f13ed19ab14fd757358eb6af10d6520f9a54923a6d613ac4f2c11e249cda8aa030000000851630065abababacffffffff8f5fe0bc04a33504c4b47e3991d25118947a0261a9fa520356731eeabd561dd3020000000363ababffffffff038404bd010000000008ab5153516aab6a63d33a5601000000000263004642dc020000000009655152acac636352004be6f3af", "5253536565006aab6a", 0, 1174417836, "2e42ead953c9f4f81b72c27557e6dc7d48c37ff2f5c46c1dbe9778fb0d79f5b2"], - ["44e1a2b4010762af23d2027864c784e34ef322b6e24c70308a28c8f2157d90d17b99cd94a401000000085163656565006300ffffffff0198233d020000000002000000000000", "52525153656365", 0, 1119696980, "d9096de94d70c6337da6202e6e588166f31bff5d51bb5adc9468594559d65695"], - ["44ca65b901259245abd50a745037b17eb51d9ce1f41aa7056b4888285f48c6f26cb97b7a25020000000552636363abffffffff047820350400000000040053acab14f3e603000000000652635100ab630ce66c03000000000001bdc704000000000765650065ac51ac3e886381", "51", 0, -263340864, "ed5622ac642d11f90e68c0feea6a2fe36d880ecae6b8c0d89c4ea4b3d162bd90"], - ["cfa147d2017fe84122122b4dda2f0d6318e59e60a7207a2d00737b5d89694d480a2c26324b0000000006006351526552ffffffff0456b5b804000000000800516aab525363ab166633000000000004655363ab254c0e02000000000952ab6a6a00ab525151097c1b020000000009656a52ac6300530065ad0d6e50", "6a535165ac6a536500", 0, -574683184, "f926d4036eac7f019a2b0b65356c4ee2fe50e089dd7a70f1843a9f7bc6997b35"], - ["91c5d5f6022fea6f230cc4ae446ce040d8313071c5ac1749c82982cc1988c94cb1738aa48503000000016a19e204f30cb45dd29e68ff4ae160da037e5fc93538e21a11b92d9dd51cf0b5efacba4dd70000000005656a6aac51ffffffff03db126905000000000953006a53ab6563636a36a273030000000006656a52656552b03ede00000000000352516500000000", "530052526a00", 1, 1437328441, "255c125b60ee85f4718b2972174c83588ee214958c3627f51f13b5fb56c8c317"], - ["03f20dc202c886907b607e278731ebc5d7373c348c8c66cac167560f19b341b782dfb634cb03000000076a51ac6aab63abea3e8de7adb9f599c9caba95aa3fa852e947fc88ed97ee50e0a0ec0d14d164f44c0115c10100000004ab5153516fdd679e0414edbd000000000005ac636a53512021f2040000000007006a0051536a52c73db2050000000005525265ac5369046e000000000003ab006a1ef7bd1e", "52656a", 0, 1360223035, "5a0a05e32ce4cd0558aabd5d79cd5fcbffa95c07137506e875a9afcba4bef5a2"], - ["d9611140036881b61e01627078512bc3378386e1d4761f959d480fdb9d9710bebddba2079d020000000763536aab5153ab819271b41e228f5b04daa1d4e72c8e1955230accd790640b81783cfc165116a9f535a74c000000000163ffffffffa2e7bb9a28e810624c251ff5ba6b0f07a356ac082048cf9f39ec036bba3d431a02000000076a000000ac65acffffffff01678a820000000000085363515153ac635100000000", "535353", 2, -82213851, "52b9e0778206af68998cbc4ebdaad5a9469e04d0a0a6cef251abfdbb74e2f031"], - ["98b3a0bf034233afdcf0df9d46ac65be84ef839e58ee9fa59f32daaa7d684b6bdac30081c60200000007636351acabababffffffffc71cf82ded4d1593e5825618dc1d5752ae30560ecfaa07f192731d68ea768d0f0100000006650052636563f3a2888deb5ddd161430177ce298242c1a86844619bc60ca2590d98243b5385bc52a5b8f00000000095365acacab520052ac50d4722801c3b8a60300000000035165517e563b65", "51", 1, -168940690, "b6b684e2d2ecec8a8dce4ed3fc1147f8b2e45732444222aa8f52d860c2a27a9d"], - ["97be4f7702dc20b087a1fdd533c7de762a3f2867a8f439bddf0dcec9a374dfd0276f9c55cc0300000000cdfb1dbe6582499569127bda6ca4aaff02c132dc73e15dcd91d73da77e92a32a13d1a0ba0200000002ab51ffffffff048cfbe202000000000900516351515363ac535128ce0100000000076aac5365ab6aabc84e8302000000000863536a53ab6a6552f051230500000000066aac535153510848d813", "ac51", 0, 229541474, "e5da9a416ea883be1f8b8b2d178463633f19de3fa82ae25d44ffb531e35bdbc8"], - ["085b6e04040b5bff81e29b646f0ed4a45e05890a8d32780c49d09643e69cdccb5bd81357670100000001abffffffffa5c981fe758307648e783217e3b4349e31a557602225e237f62b636ec26df1a80300000004650052ab4792e1da2930cc90822a8d2a0a91ea343317bce5356b6aa8aae6c3956076aa33a5351a9c0300000004abac5265e27ddbcd472a2f13325cc6be40049d53f3e266ac082172f17f6df817db1936d9ff48c02b000000000152ffffffff021aa7670500000000085353635163ab51ac14d584000000000001aca4d136cc", "6a525300536352536a", 0, -1398925877, "41ecca1e8152ec55074f4c39f8f2a7204dda48e9ec1e7f99d5e7e4044d159d43"], - ["eec32fff03c6a18b12cd7b60b7bdc2dd74a08977e53fdd756000af221228fe736bd9c42d870100000007005353ac515265ffffffff037929791a188e9980e8b9cc154ad1b0d05fb322932501698195ab5b219488fc02000000070063510065ab6a0bfc176aa7e84f771ea3d45a6b9c24887ceea715a0ff10ede63db8f089e97d927075b4f1000000000551abab63abffffffff02eb933c000000000000262c420000000000036563632549c2b6", "6352", 2, 1480445874, "ff8a4016dfdd918f53a45d3a1f62b12c407cd147d68ca5c92b7520e12c353ff5"], - ["98ea7eac0313d9fb03573fb2b8e718180c70ce647bebcf49b97a8403837a2556cb8c9377f30000000004ac53ac65ffffffff8caac77a5e52f0d8213ef6ce998bedbb50cfdf108954771031c0e0cd2a78423900000000010066e99a44937ebb37015be3693761078ad5c73aa73ec623ac7300b45375cc8eef36087eb80000000007515352acac5100ffffffff0114a51b02000000000000000000", "6aacab", 0, 243527074, "bad77967f98941af4dd52a8517d5ad1e32307c0d511e15461e86465e1b8b5273"], - ["3ab70f4604e8fc7f9de395ec3e4c3de0d560212e84a63f8d75333b604237aa52a10da17196000000000763526a6553ac63a25de6fd66563d71471716fe59087be0dde98e969e2b359282cf11f82f14b00f1c0ac70f02000000050052516aacdffed6bb6889a13e46956f4b8af20752f10185838fd4654e3191bf49579c961f5597c36c0100000005ac636363abc3a1785bae5b8a1b4be5d0cbfadc240b4f7acaa7dfed6a66e852835df5eb9ac3c553766801000000036a65630733b7530218569602000000000952006a6a6a51acab52777f06030000000007ac0063530052abc08267c9", "000000536aac0000", 1, 1919096509, "df1c87cf3ba70e754d19618a39fdbd2970def0c1bfc4576260cba5f025b87532"], - ["bdb6b4d704af0b7234ced671c04ba57421aba7ead0a117d925d7ebd6ca078ec6e7b93eea6600000000026565ffffffff3270f5ad8f46495d69b9d71d4ab0238cbf86cc4908927fbb70a71fa3043108e6010000000700516a65655152ffffffff6085a0fdc03ae8567d0562c584e8bfe13a1bd1094c518690ebcb2b7c6ce5f04502000000095251530052536a53aba576a37f2c516aad9911f687fe83d0ae7983686b6269b4dd54701cb5ce9ec91f0e6828390300000000ffffffff04cc76cc020000000002656a01ffb702000000000253ab534610040000000009acab006565516a00521f55f5040000000000389dfee9", "6a525165", 0, 1336204763, "71c294523c48fd7747eebefbf3ca06e25db7b36bff6d95b41c522fecb264a919"], - ["54258edd017d22b274fbf0317555aaf11318affef5a5f0ae45a43d9ca4aa652c6e85f8a040010000000953ac65ab5251656500ffffffff03321d450000000000085265526a51526a529ede8b030000000003635151ce6065020000000001534c56ec1b", "acac", 0, 2094130012, "110d90fea9470dfe6c5048f45c3af5e8cc0cb77dd58fd13d338268e1c24b1ccc"], - ["ce0d322e04f0ffc7774218b251530a7b64ebefca55c90db3d0624c0ff4b3f03f918e8cf6f60300000003656500ffffffff9cce943872da8d8af29022d0b6321af5fefc004a281d07b598b95f6dcc07b1830200000007abab515351acab8d926410e69d76b7e584aad1470a97b14b9c879c8b43f9a9238e52a2c2fefc2001c56af8010000000400ab5253cd2cd1fe192ce3a93b5478af82fa250c27064df82ba416dfb0debf4f0eb307a746b6928901000000096500abacac6a0063514214524502947efc0200000000035251652c40340100000000096a6aab52000052656a5231c54c", "51", 2, -2090320538, "0322ca570446869ec7ec6ad66d9838cff95405002d474c0d3c17708c7ee039c6"], - ["47ac54940313430712ebb32004679d3a512242c2b33d549bf5bbc8420ec1fd0850ed50eb6d0300000009536aac6a65acacab51ffffffffb843e44266ce2462f92e6bff54316661048c8c17ecb092cb493b39bfca9117850000000001519ab348c05e74ebc3f67423724a3371dd99e3bceb4f098f8860148f48ad70000313c4c223000000000653006565656512c2d8dc033f3c97010000000002636aa993aa010000000006526365ab526ab7cf560300000000076a0065ac6a526500000000", "005352535300ab6a", 2, 59531991, "8b5b3d00d9c658f062fe6c5298e54b1fe4ed3a3eab2a87af4f3119edc47b1691"], - ["233cd90b043916fc41eb870c64543f0111fb31f3c486dc72457689dea58f75c16ae59e9eb2000000000500536a6a6affffffff9ae30de76be7cd57fb81220fce78d74a13b2dbcad4d023f3cadb3c9a0e45a3ce000000000965ac6353ac5165515130834512dfb293f87cb1879d8d1b20ebad9d7d3d5c3e399a291ce86a3b4d30e4e32368a9020000000453005165ffffffff26d84ae93eb58c81158c9b3c3cbc24a84614d731094f38d0eea8686dec02824d0300000005636a65abacf02c784001a0bd5d03000000000900655351ab65ac516a416ef503", "", 1, -295106477, "b79f31c289e95d9dadec48ebf88e27c1d920661e50d090e422957f90ff94cb6e"], - ["9200e26b03ff36bc4bf908143de5f97d4d02358db642bd5a8541e6ff709c420d1482d471b70000000008abab65536a636553ffffffff61ba6d15f5453b5079fb494af4c48de713a0c3e7f6454d7450074a2a80cb6d880300000007ac6a00ab5165515dfb7574fbce822892c2acb5d978188b1d65f969e4fe874b08db4c791d176113272a5cc10100000000ffffffff0420958d000000000009ac63516a0063516353dd885505000000000465ac00007b79e901000000000066d8bf010000000005525252006a00000000", "ac5152", 0, 2089531339, "89ec7fab7cfe7d8d7d96956613c49dc48bf295269cfb4ea44f7333d88c170e62"], - ["45f335ba01ce2073a8b0273884eb5b48f56df474fc3dff310d9706a8ac7202cf5ac188272103000000025363ffffffff049d859502000000000365ab6a8e98b1030000000002ac51f3a80603000000000752535151ac00000306e30300000000020051b58b2b3a", "", 0, 1899564574, "78e01310a228f645c23a2ad0acbb8d91cedff4ecdf7ca997662c6031eb702b11"], - ["d8f652a6043b4faeada05e14b81756cd6920cfcf332e97f4086961d49232ad6ffb6bc6c097000000000453526563ffffffff1ea4d60e5e91193fbbc1a476c8785a79a4c11ec5e5d6c9950c668ceacfe07a15020000000352ab51fffffffffe029a374595c4edd382875a8dd3f20b9820abb3e93f877b622598d11d0b09e503000000095351000052ac515152ffffffff9d65fea491b979699ceb13caf2479cd42a354bd674ded3925e760758e85a756803000000046365acabffffffff0169001d00000000000651636a65656300000000", "ab0063630000ac", 3, 1050965951, "4cc85cbc2863ee7dbce15490d8ca2c5ded61998257b9eeaff968fe38e9f009ae"], - ["718662be026e1dcf672869ac658fd0c87d6835cfbb34bd854c44e577d5708a7faecda96e260300000004526a636a489493073353b678549adc7640281b9cbcb225037f84007c57e55b874366bb7b0fa03bdc00000000095165ababac65ac00008ab7f2a802eaa53d000000000007acac516aac526ae92f380100000000056aac00536500000000", "ab00", 1, 43296088, "2d642ceee910abff0af2116af75b2e117ffb7469b2f19ad8fef08f558416d8f7"], - ["94083c840288d40a6983faca876d452f7c52a07de9268ad892e70a81e150d602a773c175ad03000000007ec3637d7e1103e2e7e0c61896cbbf8d7e205b2ecc93dd0d6d7527d39cdbf6d335789f660300000000ffffffff019e1f7b03000000000800ac0051acac0053539cb363", "", 1, -183614058, "a17b66d6bb427f42653d08207a22b02353dd19ccf2c7de6a9a3a2bdb7c49c9e7"], - ["30e0d4d20493d0cd0e640b757c9c47a823120e012b3b64c9c1890f9a087ae4f2001ca22a61010000000152f8f05468303b8fcfaad1fb60534a08fe90daa79bff51675472528ebe1438b6f60e7f60c10100000009526aab6551ac510053ffffffffaaab73957ea2133e32329795221ed44548a0d3a54d1cf9c96827e7cffd1706df0200000009ab00526a005265526affffffffd19a6fe54352015bf170119742821696f64083b5f14fb5c7d1b5a721a3d7786801000000085265abababac53abffffffff020f39bd030000000004ab6aac52049f6c050000000004ab52516aba5b4c60", "6a6365516a6a655253", 0, -624256405, "8e221a6c4bf81ca0d8a0464562674dcd14a76a32a4b7baf99450dd9195d411e6"], - ["f9c69d940276ec00f65f9fe08120fc89385d7350388508fd80f4a6ba2b5d4597a9e21c884f010000000663ab63ababab15473ae6d82c744c07fc876ecd53bd0f3018b2dbedad77d757d5bdf3811b23d294e8c0170000000001abafababe00157ede2050000000006ac6a5263635300000000", "ab53", 1, 606547088, "714d8b14699835b26b2f94c58b6ea4c53da3f7adf0c62ea9966b1e1758272c47"], - ["5c0ac112032d6885b7a9071d3c5f493aa16c610a4a57228b2491258c38de8302014276e8be030000000300ab6a17468315215262ad5c7393bb5e0c5a6429fd1911f78f6f72dafbbbb78f3149a5073e24740300000003ac5100ffffffff33c7a14a062bdea1be3c9c8e973f54ade53fe4a69dcb5ab019df5f3345050be00100000008ac63655163526aab428defc0033ec36203000000000765516365536a00ae55b2000000000002ab53f4c0080400000000095265516a536563536a00000000", "6a005151006a", 2, 272749594, "91082410630337a5d89ff19145097090f25d4a20bdd657b4b953927b2f62c73b"], - ["e3683329026720010b08d4bec0faa244f159ae10aa582252dd0f3f80046a4e145207d54d31000000000852acac52656aacac3aaf2a5017438ad6adfa3f9d05f53ebed9ceb1b10d809d507bcf75e0604254a8259fc29c020000000653526552ab51f926e52c04b44918030000000000f7679c0100000000090000525152005365539e3f48050000000009516500ab635363ab008396c905000000000253650591024f", "6a6365", 0, 908746924, "458aec3b5089a585b6bad9f99fd37a2b443dc5a2eefac2b7e8c5b06705efc9db"], - ["48c4afb204204209e1df6805f0697edaa42c0450bbbd767941fe125b9bc40614d63d757e2203000000066a5363005152dc8b6a605a6d1088e631af3c94b8164e36e61445e2c60130292d81dabd30d15f54b355a802000000036a6353ffffffff1d05dcec4f3dedcfd02c042ce5d230587ee92cb22b52b1e59863f3717df2362f0300000005536552ac52ffffffffd4d71c4f0a7d53ba47bb0289ca79b1e33d4c569c1e951dd611fc9c9c1ca8bc6c030000000865536a65ab51abacffffffff042f9aa905000000000753655153656351ab93d8010000000002655337440e0300000000005d4c690000000000015278587acb", "ab006565526a51", 0, 1502064227, "bbed77ff0f808aa8abd946ba9e7ec1ddb003a969fa223dee0af779643cb841a9"], - ["00b20fd104dd59705b84d67441019fa26c4c3dec5fd3b50eca1aa549e750ef9ddb774dcabe000000000651ac656aac65ffffffff52d4246f2db568fc9eea143e4d260c698a319f0d0670f84c9c83341204fde48b0200000000ffffffffb8aeabb85d3bcbc67b132f1fd815b451ea12dcf7fc169c1bc2e2cf433eb6777a03000000086a51ac6aab6563acd510d209f413da2cf036a31b0def1e4dcd8115abf2e511afbcccb5ddf41d9702f28c52900100000006ac52ab6a0065ffffffff039c8276000000000008ab53655200656a52401561010000000003acab0082b7160100000000035100ab00000000", "535265", 1, -947367579, "3212c6d6dd8d9d3b2ac959dec11f4638ccde9be6ed5d36955769294e23343da0"], - ["455131860220abbaa72015519090a666faf137a0febce7edd49da1eada41feab1505a0028b02000000036365ab453ead4225724eb69beb590f2ec56a7693a608871e0ab0c34f5e96157f90e0a96148f3c502000000085251ab51535163acffffffff022d1249040000000009abac00acac6565630088b310040000000000e3920e59", "5152ab6a52ac5152", 0, 294375737, "c40fd7dfa72321ac79516502500478d09a35cc22cc264d652c7d18b14400b739"], - ["624d28cb02c8747915e9af2b13c79b417eb34d2fa2a73547897770ace08c6dd9de528848d3030000000651ab63abab533c69d3f9b75b6ef8ed2df50c2210fd0bf4e889c42477d58682f711cbaece1a626194bb85030000000765acab53ac5353ffffffff018cc280040000000009abacabac52636352ac6859409e", "ac51ac", 1, 1005144875, "919144aada50db8675b7f9a6849c9d263b86450570293a03c245bd1e3095e292"], - ["8f28471d02f7d41b2e70e9b4c804f2d90d23fb24d53426fa746bcdcfffea864925bdeabe3e0200000001acffffffff76d1d35d04db0e64d65810c808fe40168f8d1f2143902a1cc551034fd193be0e0000000001acffffffff048a5565000000000005005151516afafb610400000000045263ac53648bb30500000000086363516a6a5165513245de01000000000000000000", "6a0053510053", 1, -1525137460, "305fc8ff5dc04ebd9b6448b03c9a3d945a11567206c8d5214666b30ec6d0d6cc"], - ["10ec50d7046b8b40e4222a3c6449490ebe41513aad2eca7848284a08f3069f3352c2a9954f0000000009526aac656352acac53ffffffff0d979f236155aa972472d43ee6f8ce22a2d052c740f10b59211454ff22cb7fd00200000007acacacab63ab53ffffffffbbf97ebde8969b35725b2e240092a986a2cbfd58de48c4475fe077bdd493a20c010000000663ab5365ababffffffff4600722d33b8dba300d3ad037bcfc6038b1db8abfe8008a15a1de2da2264007302000000035351ac6dbdafaf020d0ccf04000000000663ab6a51ab6ae06e5e0200000000036aabab00000000", "", 0, -1658960232, "2420dd722e229eccafae8508e7b8d75c6920bfdb3b5bac7cb8e23419480637c2"], - ["fef98b7101bf99277b08a6eff17d08f3fcb862e20e13138a77d66fba55d54f26304143e5360100000006515365abab00ffffffff04265965030000000004655252ace2c775010000000001002b23b4040000000007516a5153ab53ac456a7a00000000000753ab525251acacba521291", "526aacacab00abab53", 0, -1614097109, "4370d05c07e231d6515c7e454a4e401000b99329d22ed7def323976fa1d2eeb5"], - ["34a2b8830253661b373b519546552a2c3bff7414ea0060df183b1052683d78d8f54e842442000000000152ffffffffd961a8e34cf374151058dfcddc86509b33832bc57267c63489f69ff01199697c0300000002abacba856cfb01b17c2f050000000008515365ac53ab000000000000", "5263ab656a", 1, -2104480987, "2f9993e0a84a6ca560d6d1cc2b63ffe7fd71236d9cfe7d809491cef62bbfad84"], - ["43559290038f32fda86580dd8a4bc4422db88dd22a626b8bd4f10f1c9dd325c8dc49bf479f01000000026351ffffffff401339530e1ed3ffe996578a17c3ec9d6fccb0723dd63e7b3f39e2c44b976b7b0300000006ab6a65656a51ffffffff6fb9ba041c96b886482009f56c09c22e7b0d33091f2ac5418d05708951816ce7000000000551ac525100ffffffff020921e40500000000035365533986f40500000000016a00000000", "52ac51", 0, 1769771809, "02040283ef2291d8e1f79bb71bdabe7c1546c40d7ed615c375643000a8b9600d"], - ["6878a6bd02e7e1c8082d5e3ee1b746cfebfac9e8b97e61caa9e0759d8a8ecb3743e36a30de0100000002ab532a911b0f12b73e0071f5d50b6bdaf783f4b9a6ce90ec0cad9eecca27d5abae188241ddec0200000001651c7758d803f7457b0500000000036551515f4e90000000000001007022080200000000035365acc86b6946", "6351ab", 0, -1929374995, "f24be499c58295f3a07f5f1c6e5084496ae160450bd61fdb2934e615289448f1"], - ["35b6fc06047ebad04783a5167ab5fc9878a00c4eb5e7d70ef297c33d5abd5137a2dea9912402000000036aacacffffffff21dc291763419a584bdb3ed4f6f8c60b218aaa5b99784e4ba8acfec04993e50c03000000046a00ac6affffffff69e04d77e4b662a82db71a68dd72ef0af48ca5bebdcb40f5edf0caf591bb41020200000000b5db78a16d93f5f24d7d932f93a29bb4b784febd0cbb1943f90216dc80bba15a0567684b000000000853ab52ab5100006a1be2208a02f6bdc103000000000265ab8550ea04000000000365636a00000000", "", 0, -1114114836, "1c8655969b241e717b841526f87e6bd68b2329905ba3fc9e9f72526c0b3ea20c"], - ["bebb90c302bf91fd4501d33555a5fc5f2e1be281d9b7743680979b65c3c919108cc2f517510100000003abab00ffffffff969c30053f1276550532d0aa33cfe80ca63758cd215b740448a9c08a84826f3303000000056565ab5153ffffffff04bf6f2a04000000000565ab5265ab903e760100000000026a6a7103fa020000000006526553525365b05b2c000000000006ab000000535300000000", "51510053ab63635153", 1, 1081291172, "94338cd47a4639be30a71e21a7103cee4c99ef7297e0edd56aaf57a068b004de"], - ["af48319f031b4eeb4319714a285f44244f283cbff30dcb9275b06f2348ccd0d7f015b54f8500000000066363ac65ac6affffffff2560a9817ebbc738ad01d0c9b9cf657b8f9179b1a7f073eb0b67517409d108180200000005ac6365ab52ffffffff0bdd67cd4ecae96249a2e2a96db1490ee645f042fd9d5579de945e22b799f4d003000000086552ab515153ab00cf187c8202e51abf0300000000066552006a00abadf37d000000000004ac6a535100000000", "63ab65", 1, -1855554446, "60caf46a7625f303c04706cec515a44b68ec319ee92273acb566cca4f66861c1"], - ["f35befbc03faf8c25cc4bc0b92f6239f477e663b44b83065c9cb7cf231243032cf367ce3130000000005ab65526a517c4c334149a9c9edc39e29276a4b3ffbbab337de7908ea6f88af331228bd90086a6900ba020000000151279d19950d2fe81979b72ce3a33c6d82ebb92f9a2e164b6471ac857f3bbd3c0ea213b542010000000953ab51635363520065052657c20300a9ba04000000000452636a6a0516ea020000000008535253656365ababcfdd3f01000000000865ac516aac00530000000000", "", 2, -99793521, "c834a5485e68dc13edb6c79948784712122440d7fa5bbaa5cd2fc3d4dac8185d"], - ["d3da18520216601acf885414538ce2fb4d910997eeb91582cac42eb6982c9381589587794f0300000000fffffffff1b1c9880356852e10cf41c02e928748dd8fae2e988be4e1c4cb32d0bfaea6f7000000000465ab6aabffffffff02fb0d69050000000002ababeda8580500000000085163526565ac52522b913c95", "ac", 1, -1247973017, "99b32b5679d91e0f9cdd6737afeb07459806e5acd7630c6a3b9ab5d550d0c003"], - ["8218eb740229c695c252e3630fc6257c42624f974bc856b7af8208df643a6c520ef681bfd00000000002510066f30f270a09b2b420e274c14d07430008e7886ec621ba45665057120afce58befca96010300000004525153ab84c380a9015d96100000000000076a5300acac526500000000", "ac005263", 0, -1855679695, "5071f8acf96aea41c7518bd1b5b6bbe16258b529df0c03f9e374b83c66b742c6"], - ["1123e7010240310013c74e5def60d8e14dd67aedff5a57d07a24abc84d933483431b8cf8ea0300000003530051fc6775ff1a23c627a2e605dd2560e84e27f4208300071e90f4589e762ad9c9fe8d0da95e020000000465655200ffffffff04251598030000000004ab65ab639d28d90400000000096563636aacac525153474df801000000000851525165ac51006a75e23b040000000000e5bd3a4a", "6363636565", 0, -467124448, "9cb0dd04e9fe287b112e94a1647590d27e8b164ca13c4fe70c610fd13f82c2fd"], - ["fd92fe1003083c5179f97e77bf7d71975788138147adbdb283306802e261c0aee080fa22630200000000860c643ba9a1816b9badf36077b4554d11720e284e395a1121bc45279e148b2064c65e49020000000651ab6a53636a2c713088d20f4bc4001264d972cce05b9fe004dc33376ad24d0d013e417b91a5f1b6734e000000000100ffffffff02e3064c0500000000066552006a5165b86e8705000000000665ab65ab53522052eadb", "00ab53525265", 0, 776203277, "47207b48777727532f62e09afcd4104ea6687e723c7657c30504fa2081331cc8"], - ["d1b6a703038f14d41fcc5cc45455faa135a5322be4bf0f5cbcd526578fc270a236cacb853f0200000001abffffffff135aeff902fa38f202ccf5bd34437ff89c9dc57a028b62447a0a38579383e8ef0000000000ffffffffadf398d2c818d0b90bc474f540c3618a4a643482eeab73d36101987e2ec0335900000000004bd3323504e69fc10000000000055151535251790ada02000000000563ab6aab521337a704000000000963ac63abacac52656a1e9862010000000007656500ac51ab6a8f4ee672", "ab5251656565ac63", 2, 82008394, "b8f3d255549909c07588ecba10a02e55a2d6f2206d831af9da1a7dae64cfbc8b"], - ["81dadaa7011556683db3fe95262f4fdb20391b7e75b7ffcee51b176af64d83c06f85545d620200000005ab5151ab52ffffffff044805ef0300000000065353516352639702c802000000000900516351515252ab5270db08040000000009ac516aab526553abac4aabc90500000000096365ab0052636a525100000000", "6565ab6a5152", 0, -2126294159, "ad01ec9d6dbae325ec3a8e1fd98e2d03b1188378210efef093dd8b0b0ef3f19d"], - ["3b937e05032b8895d2f4945cb7e3679be2fbd15311e2414f4184706dbfc0558cf7de7b4d000000000001638b91a12668a3c3ce349788c961c26aa893c862f1e630f18d80e7843686b6e1e6fc396310000000000852635353ab65ac51eeb09dd1c9605391258ee6f74b9ae17b5e8c2ef010dc721c5433dcdc6e93a1593e3b6d1700000000085365ac6553526351ffffffff0308b18e04000000000253acb6dd00040000000008536aac5153ac516ab0a88201000000000500ac006500804e3ff2", "", 0, 416167343, "595a3c02254564634e8085283ec4ea7c23808da97ce9c5da7aecd7b553e7fd7f"], - ["a48f27ca047997470da74c8ee086ddad82f36d9c22e790bd6f8603ee6e27ad4d3174ea875403000000095153ac636aab6aacabffffffffefc936294e468d2c9a99e09909ba599978a8c0891ad47dc00ba424761627cef202000000056a51630053ffffffff304cae7ed2d3dbb4f2fbd679da442aed06221ffda9aee460a28ceec5a9399f4e0200000000f5bddf82c9c25fc29c5729274c1ff0b43934303e5f595ce86316fc66ad263b96ca46ab8d0100000003536500d7cf226b0146b00c04000000000200ac5c2014ce", "515100636563", 0, 1991799059, "9c051a7092fe17fa62b1720bc2c4cb2ffc1527d9fb0b006d2e142bb8fe07bf3c"], - ["180cd53101c5074cf0b7f089d139e837fe49932791f73fa2342bd823c6df6a2f72fe6dba1303000000076a6a63ac53acabffffffff03853bc1020000000007ac526a6a6a6a003c4a8903000000000453515163a0fbbd030000000005ab656a5253253d64cf", "ac65", 0, -1548453970, "4d8efb3b99b9064d2f6be33b194a903ffabb9d0e7baa97a48fcec038072aac06"], - ["c21ec8b60376c47e057f2c71caa90269888d0ffd5c46a471649144a920d0b409e56f190b700000000008acac6a526a536365ffffffff5d315d9da8bf643a9ba11299450b1f87272e6030fdb0c8adc04e6c1bfc87de9a0000000000ea43a9a142e5830c96b0ce827663af36b23b0277244658f8f606e95384574b91750b8e940000000007516a63ac0063acffffffff023c61be0400000000055165ab5263313cc8020000000006006a53526551ed8c3d56", "6a", 1, 1160627414, "a638cc17fd91f4b1e77877e8d82448c84b2a4e100df1373f779de7ad32695112"], - ["128cd90f04b66a4cbc78bf48748f6eec0f08d5193ee8d0a6f2e8d3e5f138ed12c2c87d01a301000000085200ab6aac00ab00ffffffff09fc88bb1851e3dfb3d30179c38e15aeb1b39929c7c74f6acd071994ed4806490300000000e7fc5ea12ec56f56c0d758ecf4bb88aa95f3b08176b336db3b9bec2f6e27336dce28adbe030000000400530051fffffffffd6ff1adcf1fbe0d883451ee46904f1b7e8820243d395559b2d4ee8190a6e891000000000080fb1ae702f85b400000000000035200ab8d9651010000000006ab6a52536aab00000000", "ab", 1, 1667598199, "c10ccc9db8a92d7d4b133a2980782dab9d9d1d633d0dde9f9612ada57771fd89"], - ["da9695a403493d3511c10e1fe1286f954db0366b7667c91ef18ae4578056c1bf752114ac5901000000035351519788d91dd1f9c62dc005d80ea54eb13f7131ca5aace3d5d29f9b58ccc5fbc9a27e779950010000000453ac6a00ffffffffe2556ff29ebe83eb42a32c7a8d93bc598043578f491b5935805a33608538845a030000000252ab65d21b3b018f26c4030000000006acab51535352e1cbcb10", "006565ab52", 2, -1550927794, "0ca673a1ee66f9625ceb9ab278ebef772c113c188112b02824570c17fdf48194"], - ["b240517501334021240427adb0b413433641555424f6d24647211e3e6bfbb22a8045cbda2f000000000071bac8630112717802000000000000000000", "6a5165abac52656551", 0, 1790414254, "2c8be597620d95abd88f9c1cf4967c1ae3ca2309f3afec8928058c9598660e9e"], - ["96bac43903044a199b4b3efeeec5d196ee23fb05495541fa2cd6fb6405a9432d1723363660010000000151ffffffffe6ce2b66ce1488918a3e880bebb0e750123f007c7bcbac8fcd67ce75cb6fbae80300000000ffffffff9c0955aa07f506455834895c0c56be5a095398f47c62a3d431fe125b161d666a0200000005520000abac7ffdbc540216f2f004000000000165a26dce010000000001ab00000000", "5151ab656a656a6a63", 0, -707123065, "26b22e18d5d9081fde9631594a4f7c49069ed2e429f3d08caf9d834f685ccab2"], - ["b8fd394001ed255f49ad491fecc990b7f38688e9c837ccbc7714ddbbf5404f42524e68c18f0000000007ab6353535363ab081e15ee02706f7d050000000008515200535351526364c7ec040000000005636a53acac9206cbe1", "655352ac", 0, -1251578838, "8e0697d8cd8a9ccea837fd798cc6c5ed29f6fbd1892ee9bcb6c944772778af19"], - ["e42a76740264677829e30ed610864160c7f97232c16528fe5610fc08814b21c34eefcea69d010000000653006a6a0052ffffffff647046cf44f217d040e6a8ff3f295312ab4dd5a0df231c66968ad1c6d8f4428000000000025352ffffffff0199a7f900000000000000000000", "655263006a005163", 1, 1122505713, "7cda43f1ff9191c646c56a4e29b1a8c6cb3f7b331da6883ef2f0480a515d0861"], - ["0f034f32027a8e094119443aa9cfe11737c6d7dda9a52b839bc073dcc0235b847b28e0fab60200000006ac53ac536a63eee63447dfdad80476994b68706e916df1bd9d7cb4f3a4f6b14369de84564bea2e8688bd030000000565636a65acf8434663020b35fe01000000000800abab655163acabb3d6a103000000000353acab345eeda0", "526a51ac63ab51", 1, 66020215, "4435e62ff6531ac73529aac9cf878a7219e0b6e6cac79af8487c5355d1ad6d43"], - ["a2dfa4690214c1ab25331815a5128f143219de51a47abdc7ce2d367e683eeb93960a31af9f010000000363636affffffff8be0628abb1861b078fcc19c236bc4cc726fa49068b88ad170adb2a97862e7460200000004ac655363ffffffff0441f11103000000000153dbab0c000000000009ab53ac5365526aab63abbb95050000000004ab52516a29a029040000000003ac526a00000000", "6a52ac63", 1, -1302210567, "913060c7454e6c80f5ba3835454b54db2188e37dc4ce72a16b37d11a430b3d23"], - ["9dbc591f04521670af83fb3bb591c5d4da99206f5d38e020289f7db95414390dddbbeb56680100000004ac5100acffffffffb6a40b5e29d5e459f8e72d39f800089529f0889006cad3d734011991da8ef09d0100000009526a5100acab536a515fc427436df97cc51dc8497642ffc868857ee245314d28b356bd70adba671bd6071301fc0000000000ffffffff487efde2f620566a9b017b2e6e6d42525e4070f73a602f85c6dfd58304518db30000000005516353006a8d8090180244904a0200000000046a65656ab1e9c203000000000451ab63aba06a5449", "", 0, -1414953913, "bae189eb3d64aedbc28a6c28f6c0ccbd58472caaf0cf45a5aabae3e031dd1fea"], - ["1345fb2c04bb21a35ae33a3f9f295bece34650308a9d8984a989dfe4c977790b0c21ff9a7f0000000006ac52ac6a0053ffffffff7baee9e8717d81d375a43b691e91579be53875350dfe23ba0058ea950029fcb7020000000753ab53ab63ab52ffffffff684b6b3828dfb4c8a92043b49b8cb15dd3a7c98b978da1d314dce5b9570dadd202000000086353ab6a5200ac63d1a8647bf667ceb2eae7ec75569ca249fbfd5d1b582acfbd7e1fcf5886121fca699c011d0100000003ac006affffffff049b1eb00300000000001e46dc0100000000080065ab6a6a630065ca95b40300000000030051520c8499010000000006ab6aac526a6500000000", "53526aac636300", 2, 1809978100, "cfeaa36790bc398783d4ca45e6354e1ea52ee74e005df7f9ebd10a680e9607bf"], - ["7d75dc8f011e5f9f7313ba6aedef8dbe10d0a471aca88bbfc0c4a448ce424a2c5580cda1560300000003ab5152ffffffff01997f8e0200000000096552ac6a65656563530d93bbcc", "00656a6563", 0, 1414485913, "ec91eda1149f75bffb97612569a78855498c5d5386d473752a2c81454f297fa7"], - ["1459179504b69f01c066e8ade5e124c748ae5652566b34ed673eea38568c483a5a4c4836ca0100000008ac5352006563656affffffff5d4e037880ab1975ce95ea378d2874dcd49d5e01e1cdbfae3343a01f383fa35800000000095251ac52ac6aac6500ffffffff7de3ae7d97373b7f2aeb4c55137b5e947b2d5fb325e892530cb589bc4f92abd503000000086563ac53ab520052ffffffffb4db36a32d6e543ef49f4bafde46053cb85b2a6c4f0e19fa0860d9083901a1190300000003ab51531bbcfe5504a6dbda040000000008536a5365abac6500d660c80300000000096565abab6a53536a6a54e84e010000000003acac52df2ccf0500000000025351220c857e", "", 2, 1879181631, "3aad18a209fab8db44954eb55fd3cc7689b5ec9c77373a4d5f4dae8f7ae58d14"], - ["d98b777f04b1b3f4de16b07a05c31d79965579d0edda05600c118908d7cf642c9cd670093f020000000953005351ac65ab5363a268caad6733b7d1718008997f249e1375eb3ab9fe68ab0fe170d8e745ea24f54ce67f9b00000000066500516a5151ffffffff7ef8040dfcc86a0651f5907e8bfd1017c940f51cf8d57e3d3fe78d57e40b1e610200000003535263ffffffff39846cfed4babc098ff465256ba3820c30d710581316afcb67cd31c623b703360300000001acffffffff03d405120100000000056300006a5201a73d050000000004ab636a6a294c8c000000000006ac65536553ac00000000", "63525351abac", 1, 2018694761, "86970af23c89b72a4f9d6281e46b9ef5220816bed71ebf1ae20df53f38fe16ff"], - ["cabb1b06045a895e6dcfc0c1e971e94130c46feace286759f69a16d298c8b0f6fd0afef8f20300000004ac006352ffffffffa299f5edac903072bfb7d29b663c1dd1345c2a33546a508ba5cf17aab911234602000000056a65515365ffffffff89a20dc2ee0524b361231092a070ace03343b162e7162479c96b757739c8394a0300000002abab92ec524daf73fabee63f95c1b79fa8b84e92d0e8bac57295e1d0adc55dc7af5534ebea410200000001534d70e79b04674f6f00000000000600abacab53517d60cc0200000000035265ab96c51d040000000004ac6300ac62a787050000000008006a516563ab63639e2e7ff7", "6551ac6351ac", 3, 1942663262, "d0c4a780e4e0bc22e2f231e23f01c9d536b09f6e5be51c123d218e906ec518be"], - ["8b96d7a30132f6005b5bd33ea82aa325e2bcb441f46f63b5fca159ac7094499f380f6b7e2e00000000076aacabac6300acffffffff0158056700000000000465005100c319e6d0", "52006a", 0, -1100733473, "fb4bd26a91b5cf225dd3f170eb09bad0eac314bc1e74503cc2a3f376833f183e"], - ["112191b7013cfbe18a175eaf09af7a43cbac2c396f3695bbe050e1e5f4250603056d60910e02000000001c8a5bba03738a22010000000005525352656a77a149010000000002510003b52302000000000351ac52722be8e6", "65ac6565", 0, -1847972737, "8e795aeef18f510d117dfa2b9f4a2bd2e2847a343205276cedd2ba14548fd63f"], - ["ce6e1a9e04b4c746318424705ea69517e5e0343357d131ad55d071562d0b6ebfedafd6cb840100000003656553ffffffff67bd2fa78e2f52d9f8900c58b84c27ef9d7679f67a0a6f78645ce61b883fb8de000000000100d699a56b9861d99be2838e8504884af4d30b909b1911639dd0c5ad47c557a0773155d4d303000000046a5151abffffffff9fdb84b77c326921a8266854f7bbd5a71305b54385e747fe41af8a397e78b7fa010000000863acac6a51ab00ac0d2e9b9d049b8173010000000007ac53526a650063ba9b7e010000000008526a00525263acac0ab3fd030000000000ea8a0303000000000200aca61a97b9", "", 1, -1276952681, "b6ed4a3721be3c3c7305a5128c9d418efa58e419580cec0d83f133a93e3a22c5"], - ["a7721d94021652d90c79aaf5022d98219337d50f836382403ed313adb1116ba507ac28b0b0010000000551ac6300ab89e6d64a7aa81fb9595368f04d1b36d7020e7adf5807535c80d015f994cce29554fe869b01000000065353ab636500ffffffff024944c90100000000046300635369df9f01000000000000000000", "656a536551ab", 0, -1740151687, "935892c6f02948f3b08bcd463b6acb769b02c1912be4450126768b055e8f183a"], - ["2f7353dd02e395b0a4d16da0f7472db618857cd3de5b9e2789232952a9b154d249102245fd030000000151617fd88f103280b85b0a198198e438e7cab1a4c92ba58409709997cc7a65a619eb9eec3c0200000003636aabffffffff0397481c0200000000045300636a0dc97803000000000009d389030000000003ac6a53134007bb", "0000536552526a", 0, -1912746174, "30c4cd4bd6b291f7e9489cc4b4440a083f93a7664ea1f93e77a9597dab8ded9c"], - ["7d95473604fd5267d0e1bb8c9b8be06d7e83ff18ad597e7a568a0aa033fa5b4e1e2b6f1007020000000465006a6affffffffaee008503bfc5708bd557c7e78d2eab4878216a9f19daa87555f175490c40aaf000000000263abffffffffabd74f0cff6e7ceb9acc2ee25e65af1abcebb50c08306e6c78fa8171c37613dd010000000552acacababffffffff54a3069393f7930fa1b331cdff0cb945ec21c11d4605d8eedba1d3e094c6ae1f01000000026300ffffffff0182edeb050000000009526353ab5153530065a247e8cd", "51516aab00", 2, -426210430, "2707ca714af09494bb4cf0794abe33c6cba5f29891d619e76070269d1fa8e690"], - ["221d4718023d9ca9fe1af178dbfce02b2b369bf823ea3f43f00891b7fef98e215c06b94fdd000000000951005153ab000051acffffffffb1c7ad1c64b7441bf5e70cd0f6eb4ec96821d67fc4997d9e6dfdceadecd36dde01000000070051536a635153ffffffff04e883cd00000000000851ab536553ab0052bbb2f70400000000002f1b2e03000000000165259fcb00000000000010dbde99", "ab", 1, 665721280, "4abce77432a86dfe608e7c1646c18b5253a373392ff962e288e3ab96bba1ba1d"], - ["6f66c0b3013e6ae6aabae9382a4326df31c981eac169b6bc4f746edaa7fc1f8c796ef4e374000000000665ab6aabac6affffffff0191c8d6030000000002525300000000", "6a5352516a635352ab", 0, -1299629906, "48411efeb133c6b7fec4e7bdbe613f827093cb06ea0dbcc2ffcfde3a9ac4356c"], - ["89e7928c04363cb520eff4465251fd8e41550cbd0d2cdf18c456a0be3d634382abcfd4a2130200000006ac516a6a656355042a796061ed72db52ae47d1607b1ceef6ca6aea3b7eea48e7e02429f382b378c4e51901000000085351ab6352ab5252ffffffff53631cbda79b40183000d6ede011c778f70147dc6fa1aed3395d4ce9f7a8e69701000000096a6553ab52516a52abad0de418d80afe059aab5da73237e0beb60af4ac490c3394c12d66665d1bac13bdf29aa8000000000153f2b59ab6027a33eb040000000007005351ac5100ac88b941030000000003ab0052e1e8a143", "63656a", 0, 1258533326, "b575a04b0bb56e38bbf26e1a396a76b99fb09db01527651673a073a75f0a7a34"], - ["ca356e2004bea08ec2dd2df203dc275765dc3f6073f55c46513a588a7abcc4cbde2ff011c7020000000553525100003aefec4860ef5d6c1c6be93e13bd2d2a40c6fb7361694136a7620b020ecbaca9413bcd2a030000000965ac00536352535100ace4289e00e97caaea741f2b89c1143060011a1f93090dc230bee3f05e34fbd8d8b6c399010000000365526affffffff48fc444238bda7a757cb6a98cb89fb44338829d3e24e46a60a36d4e24ba05d9002000000026a53ffffffff03d70b440200000000056a6a526aac853c97010000000002515335552202000000000351635300000000", "0052", 3, -528192467, "fc93cc056c70d5e033933d730965f36ad81ef64f1762e57f0bc5506c5b507e24"], - ["82d4fa65017958d53e562fac073df233ab154bd0cf6e5a18f57f4badea8200b217975e31030200000004636aab51ac0891a204227cc9050000000006635200655365bfef8802000000000865650051635252acfc2d09050000000006ab65ac51516380195e030000000007ac52525352510063d50572", "53", 0, -713567171, "e095003ca82af89738c1863f0f5488ec56a96fb81ea7df334f9344fcb1d0cf40"], - ["75f6949503e0e47dd70426ef32002d6cdb564a45abedc1575425a18a8828bf385fa8e808e600000000036aabab82f9fd14e9647d7a1b5284e6c55169c8bd228a7ea335987cef0195841e83da45ec28aa2e0300000002516350dc6fe239d150efdb1b51aa288fe85f9b9f741c72956c11d9dcd176889963d699abd63f0000000001ab429a63f502777d20010000000007abac52ac516a53d081d9020000000003acac630c3cc3a8", "535152516551510000", 1, 973814968, "c6ec1b7cb5c16a1bfd8a3790db227d2acc836300534564252b57bd66acf95092"], - ["24f24cd90132b2162f938f1c22d3ca5e7daa83515883f31a61a5177aebf99d7db6bdfc398c010000000163ffffffff01d5562d0100000000016300000000", "5265ac5165ac5252ab", 0, 1055129103, "5eeb03e03806cd7bfd44bbba69c30f84c2c5120df9e68cd8facc605fcfbc9693"], - ["5ff2cac201423064a4d87a96b88f1669b33adddc6fa9acdc840c0d8a243671e0e6de49a5b00300000005ac6353655353b91db50180db5a03000000000663535151006a047a3aff", "52ab51ab5365005163", 0, -1336626596, "b8db8d57fe40ab3a99cf2f8ed57da7a65050fcc1d34d4280e25faf10108d3110"], - ["10011f150220ad76a50ccc7bb1a015eda0ff987e64cd447f84b0afb8dc3060bdae5b36a6900200000000ffffffff1e92dd814dfafa830187bc8e5b9258de2445ec07b02c420ee5181d0b203bb334000000000565ab536a65ffffffff0124e65401000000000800ab636553ab53ac00000000", "53abab0051", 0, 440222748, "c6675bf229737e005b5c8ffa6f81d9e2c4396840921b6151316f67c4315a4270"], - ["8b95ec900456648d820a9b8df1d8f816db647df8a8dc9f6e7151ebf6079d90ee3f6861352a02000000085200ab00ac535151ffffffff039b10b845f961225ac0bcaac4f5fe1991029a051aa3d06a3811b5762977a67403000000035252abffffffff8559d65f40d5e261f45aec8aad3d2c56c6114b22b26f7ee54a06f0881be3a7f5010000000765635252536363ffffffff38f8b003b50f6412feb2322b06b270197f81ad69c36af02ca5008b94eee5f650020000000165ffffffff01ae2b00010000000001638eb153a2", "0053ab5300ac53", 2, 1266056769, "205f3653f0142b35ce3ef39625442efebae98cde8cbf0516b97b51073bb0479f"], - ["babbb7ea01ab5d584727cb44393b17cf66521606dc81e25d85273be0d57bad43e8f6b6d43501000000036a656aba83a68803fb0f4a000000000005536353ab633fcfe4020000000009ac00acab6351006a65182a0c03000000000453ac5363bee74f44", "536a6a6a6365ac51ab", 0, -799187625, "3275e98dca37243b977525a07b5d8e369d6c3bdc08cb948029a635547d0d1a4e"], - ["e86a24bc03e4fae784cdf81b24d120348cb5e52d937cd9055402fdba7e43281e482e77a1c100000000046363006affffffffa5447e9bdcdab22bd20d88b19795d4c8fb263fbbf7ce8f4f9a85f865953a6325020000000663ac53535253ffffffff9f8b693bc84e0101fc73748e0513a8cecdc264270d8a4ee1a1b6717607ee1eaa00000000026a513417bf980158d82c020000000009005253005351acac5200000000", "6353516365536a6a", 2, -563792735, "508129278ef07b43112ac32faf00170ad38a500eed97615a860fd58baaad174b"], - ["53bd749603798ed78798ef0f1861b498fc61dcee2ee0f2b37cddb115b118e73bc6a5a47a0201000000096a63656a6aab6a000007ff674a0d74f8b4be9d2e8e654840e99d533263adbdd0cf083fa1d5dd38e44d2d163d900100000007abab5251ac6a51c8b6b63f744a9b9273ccfdd47ceb05d3be6400c1ed0f7283d32b34a7f4f0889cccf06be30000000009516a52636551ab516a9ac1fe63030c677e05000000000027bc610000000000086565636a635100526e2dc60200000000015300000000", "6552536a515351ab", 1, -1617066878, "fe516df92299e995b8e6489be824c6839543071ec5e9286060b2600935bf1f20"], - ["691bf9fc028ca3099020b79184e70039cf53b3c7b3fe695d661fd62d7b433e65feda2150610000000003ac63abffffffff2c814c15b142bc944192bddccb90a392cd05b968b599c1d8cd99a55a28a243fd0100000009ab5300526a5200abac98516a5803dfd3540500000000046552ac522838120100000000040053ab6a4409a903000000000665636a5300658759621b", "65ac5165ab", 0, -359941441, "d582c442e0ecc400c7ba33a56c93ad9c8cfd45af820350a13623594b793486f0"], - ["536bc5e60232eb60954587667d6bcdd19a49048d67a027383cc0c2a29a48b960dc38c5a0370300000005ac636300abffffffff8f1cfc102f39b1c9348a2195d496e602c77d9f57e0769dabde7eaaedf9c69e250100000006acabab6a6351ffffffff0432f56f0400000000046a5365517fd54b0400000000035265539484e4050000000003536a5376dc25020000000008ac536aab6aab536ab978e686", "ac0051006a006a006a", 0, -273074082, "f151f1ec305f698d9fdce18ea292b145a58d931f1518cf2a4c83484d9a429638"], - ["74606eba01c2f98b86c29ba5a32dc7a7807c2abe6ed8d89435b3da875d87c12ae05329e6070200000003510052ffffffff02a1e2c4020000000006516563526a63c68bae04000000000952ab6363ab00006363fe19ae4f", "63ababacac5365", 0, 112323400, "d1b1d79001b4a0324962607b739972d6f39c1493c4500ce814fd3bd72d32a5a0"], - ["2ed805e20399e52b5bcc9dc075dad5cf19049ff5d7f3de1a77aee9288e59c5f4986751483f020000000165ffffffff967531a5726e7a653a9db75bd3d5208fa3e2c5e6cd5970c4d3aba84eb644c72c0300000000ffffffffd79030d20c65e5f8d3c55b5692e5bdaa2ae78cfa1935a0282efb97515feac43f030000000400006365261ab88c02bdf66a000000000003ab6351d6ad8b000000000005525152abac00000000", "630053ab5265", 0, 2072814938, "1d25d16d84d5793be1ad5cda2de9c9cf70e04a66c3dae618f1a7ca4026198e7f"], - ["fab796ee03f737f07669160d1f1c8bf0800041157e3ac7961fea33a293f976d79ce49c02ab0200000003ac5252eb097ea1a6d1a7ae9dace338505ba559e579a1ee98a2e9ad96f30696d6337adcda5a85f403000000096500abab656a6a656396d5d41a9b11f571d91e4242ddc0cf2420eca796ad4882ef1251e84e42b930398ec69dd80100000005526551ac6a8e5d0de804f763bb0400000000015288271a010000000001acf2bf2905000000000300ab51c9641500000000000952655363636365ac5100000000", "00ac536552", 0, -1854521113, "f3bbab70b759fe6cfae1bf349ce10716dbc64f6e9b32916904be4386eb461f1f"], - ["f2b539a401e4e8402869d5e1502dbc3156dbce93583f516a4947b333260d5af1a34810c6a00200000003525363ffffffff01d305e2000000000005acab535200a265fe77", "", 0, -1435650456, "41617b27321a830c712638dbb156dae23d4ef181c7a06728ccbf3153ec53d7dd"], - ["9f10b1d8033aee81ac04d84ceee0c03416a784d1017a2af8f8a34d2f56b767aea28ff88c8f02000000025352ffffffff748cb29843bea8e9c44ed5ff258df1faf55fbb9146870b8d76454786c4549de100000000016a5ba089417305424d05112c0ca445bc7107339083e7da15e430050d578f034ec0c589223b0200000007abac53ac6565abffffffff025a4ecd010000000006636563ab65ab40d2700000000000056a6553526333fa296c", "", 0, -395044364, "20fd0eee5b5716d6cbc0ddf852614b686e7a1534693570809f6719b6fcb0a626"], - ["ab81755f02b325cbd2377acd416374806aa51482f9cc5c3b72991e64f459a25d0ddb52e66703000000036a00ab8727056d48c00cc6e6222be6608c721bc2b1e69d0ffbadd51d131f05ec54bcd83003aac5000000000003f2cdb60454630e020000000007526aac63000000e9e25c040000000003516a0088c97e0000000000076a535265655263771b5805000000000851ab00ac6565515100000000", "5151ab00ac", 0, -230931127, "ba0a2c987fcdd74b6915f6462f62c3f126a0750aa70048f7aa20f70726e6a20b"], - ["7a17e0ef0378dab4c601240639139335da3b7d684600fa682f59b7346ef39386fe9abd69350000000004ac5252ab807f26fb3249326813e18260a603b9ad66f41f05eaa8146f66bcca452162a502aac4aa8b02000000026a534ea460faa7e3d7854ec6c70d7e797025697b547ec500b2c09c873b4d5517767d3f3720660300000000ffffffff01b12e7a02000000000900ab006aab65656a63991c03e2", "6aab6a", 1, -1577994103, "62cd3413d9d819fb7355336365cf8a2a997f7436cc050a7143972044343b3281"], - ["ff2ecc09041b4cf5abb7b760e910b775268abee2792c7f21cc5301dd3fecc1b4233ee70a2c0200000009acac5300006a51526affffffffeb39c195a5426afff38379fc85369771e4933587218ef4968f3f05c51d6b7c92000000000165453a5f039b8dbef7c1ffdc70ac383b481f72f99f52b0b3a5903c825c45cfa5d2c0642cd50200000001654b5038e6c49daea8c0a9ac8611cfe904fc206dad03a41fb4e5b1d6d85b1ecad73ecd4c0102000000096a51000053ab656565bdb5548302cc719200000000000452655265214a3603000000000300ab6a00000000", "52516a006a63", 1, -2113289251, "37ed6fae36fcb3360c69cac8b359daa62230fc1419b2cf992a32d8f3e079dcff"], - ["70a8577804e553e462a859375957db68cfdf724d68caeacf08995e80d7fa93db7ebc04519d02000000045352ab53619f4f2a428109c5fcf9fee634a2ab92f4a09dc01a5015e8ecb3fc0d9279c4a77fb27e900000000006ab6a51006a6affffffff3ed1a0a0d03f25c5e8d279bb5d931b7eb7e99c8203306a6c310db113419a69ad010000000565516300abffffffff6bf668d4ff5005ef73a1b0c51f32e8235e67ab31fe019bf131e1382050b39a630000000004536a6563ffffffff02faf0bb00000000000163cf2b4b05000000000752ac635363acac15ab369f", "ac", 0, -1175809030, "1c9d6816c20865849078f9777544b5ddf37c8620fe7bd1618e4b72fb72dddca1"], - ["a3604e5304caa5a6ba3c257c20b45dcd468f2c732a8ca59016e77b6476ac741ce8b16ca8360200000004acac6553ffffffff695e7006495517e0b79bd4770f955040610e74d35f01e41c9932ab8ccfa3b55d0300000007ac5253515365acffffffff6153120efc5d73cd959d72566fc829a4eb00b3ef1a5bd3559677fb5aae116e38000000000400abab52c29e7abd06ff98372a3a06227386609adc7665a602e511cadcb06377cc6ac0b8f63d4fdb03000000055100acabacffffffff04209073050000000009ab5163ac525253ab6514462e05000000000952abacab636300656a20672c0400000000025153b276990000000000056565ab6a5300000000", "5351", 0, 1460890590, "249c4513a49076c6618aabf736dfd5ae2172be4311844a62cf313950b4ba94be"], - ["c6a72ed403313b7d027f6864e705ec6b5fa52eb99169f8ea7cd884f5cdb830a150cebade870100000009ac63ab516565ab6a51ffffffff398d5838735ff43c390ca418593dbe43f3445ba69394a6d665b5dc3b4769b5d700000000075265acab515365ffffffff7ee5616a1ee105fd18189806a477300e2a9cf836bf8035464e8192a0d785eea3030000000700ac6a51516a52ffffffff018075fd0000000000015100000000", "005251acac5252", 2, -656067295, "2cc1c7514fdc512fd45ca7ba4f7be8a9fe6d3318328bc1a61ae6e7675047e654"], - ["93c12cc30270fc4370c960665b8f774e07942a627c83e58e860e38bd6b0aa2cb7a2c1e060901000000036300abffffffff4d9b618035f9175f564837f733a2b108c0f462f28818093372eec070d9f0a5440300000001acffffffff039c2137020000000001525500990100000000055265ab636a07980e0300000000005ba0e9d1", "656a5100", 1, 18954182, "6beca0e0388f824ca33bf3589087a3c8ad0857f9fe7b7609ae3704bef0eb83e2"], - ["97bddc63015f1767619d56598ad0eb5c7e9f880b24a928fea1e040e95429c930c1dc653bdb0100000008ac53acac00005152aaa94eb90235ed10040000000000287bdd0400000000016a8077673a", "acac6a536352655252", 0, -813649781, "5990b139451847343c9bb89cdba0e6daee6850b60e5b7ea505b04efba15f5d92"], - ["cc3c9dd303637839fb727270261d8e9ddb8a21b7f6cbdcf07015ba1e5cf01dc3c3a327745d0300000000d2d7804fe20a9fca9659a0e49f258800304580499e8753046276062f69dbbde85d17cd2201000000096352536a520000acabffffffffbc75dfa9b5f81f3552e4143e08f485dfb97ae6187330e6cd6752de6c21bdfd21030000000600ab53650063ffffffff0313d0140400000000096565515253526aacac167f0a040000000008acab00535263536a9a52f8030000000006abab5151ab63f75b66f2", "6a635353636a65ac65", 1, 377286607, "dbc7935d718328d23d73f8a6dc4f53a267b8d4d9816d0091f33823bd1f0233e9"], - ["236f91b702b8ffea3b890700b6f91af713480769dda5a085ae219c8737ebae90ff25915a3203000000056300ac6300811a6a10230f12c9faa28dae5be2ebe93f37c06a79e76214feba49bb017fb25305ff84eb020000000100ffffffff041e351703000000000351ac004ff53e050000000003ab53636c1460010000000000cb55f701000000000651520051ab0000000000", "acac636a6aac5300", 0, 406448919, "793a3d3c37f6494fab79ff10c16702de002f63e34be25dd8561f424b0ea938c4"], - ["22e10d2003ab4ea9849a2801921113583b7c35c3710ff49a6003489395789a7cfb1e6051900100000006526a65535151ffffffff82f21e249ec60db33831d33b9ead0d56f6496db64337dcb7f1c3327c47729c4a020000000253abffffffff138f098f0e6a4cf51dc3e7a3b749f487d1ebde71b73b731d1d02ad1180ac7b8c02000000036563acda215011027a9484020000000007635165530000ac4bf6cb0400000000066aacabab65ab3ce3f32c", "ab0052ab", 2, 1136359457, "b5bd080bbcb8cd652f440484311d7a3cb6a973cd48f03c5c00fd6beb52dfc061"], - ["c47d5ad60485cb2f7a825587b95ea665a593769191382852f3514a486d7a7a11d220b62c54000000000663655253acab8c3cf32b0285b040e50dcf6987ddf7c385b3665048ad2f9317b9e0c5ba0405d8fde4129b00000000095251ab00ac65635300ffffffff549fe963ee410d6435bb2ed3042a7c294d0c7382a83edefba8582a2064af3265000000000152fffffffff7737a85e0e94c2d19cd1cde47328ece04b3e33cd60f24a8a345da7f2a96a6d0000000000865ab6a0051656aab28ff30d5049613ea020000000005ac51000063f06df1050000000008ac63516aabac5153afef5901000000000700656500655253688bc00000000000086aab5352526a53521ff1d5ff", "51ac52", 2, -1296011911, "0c1fd44476ff28bf603ad4f306e8b6c7f0135a441dc3194a6f227cb54598642a"], - ["0b43f122032f182366541e7ee18562eb5f39bc7a8e5e0d3c398f7e306e551cdef773941918030000000863006351ac51acabffffffffae586660c8ff43355b685dfa8676a370799865fbc4b641c5a962f0849a13d8250100000005abab63acabffffffff0b2b6b800d8e77807cf130de6286b237717957658443674df047a2ab18e413860100000008ab6aac655200ab63ffffffff04f1dbca03000000000800635253ab656a52a6eefd0300000000036365655d8ca90200000000005a0d530400000000015300000000", "65ac65acac", 0, 351448685, "86f26e23822afd1bdfc9fff92840fc1e60089f12f54439e3ab9e5167d0361dcf"], - ["4b0ecc0c03ba35700d2a30a71f28e432ff6ac7e357533b49f4e97cf28f1071119ad6b97f3e0300000008acab516363ac63acffffffffcd6a2019d99b5c2d639ddca0b1aa5ea7c1326a071255ea226960bd88f45ca57d00000000085253655363005353ffffffffba257635191c9f216de3277be548cb5a2313114cb1a4c563b03b4ef6c0f4f7040300000001abda542edf0495cdc40100000000026353c049e903000000000752516a53ab65512b0f9304000000000963ab516aac65516552fa9ece050000000009acab6500005152530000000000", "65ab51525352510052", 1, -1355414590, "3cd85f84aae6d702436f3f9b8980adcc1f8f202e957759540a27da0a32fc6c87"], - ["adaac0a803f66811346271c733036d6e0d45e15a9b602092e2e04ad93564f196e7f020b088000000000600526a636a00700ec3f9db07a3a6ce910bf318c7ec87a876e1f2a3366cc69f20cde09203b99c1cb9d15800000000050000ac636a4d0de554ebe95c6cc14faf5ff6361d1deba9474b8b0fd3b93c011cd96aec783abb3f36830200000005ab65005251ffffffff0464eb10050000000007520000ab6a65ab1beaa80300000000005a2f31050000000006526aab65ac52ba7db10000000000045251ab6a0cfb46e7", "ab0051ac52636a", 1, -184733716, "961ff413850336d3987c550404fc1d923266ca36cc9ffee7113edb3a9fea7f30"], - ["af1c4ab301ec462f76ee69ba419b1b2557b7ded639f3442a3522d4f9170b2d6859765c3df402000000016affffffff01a5ca6c000000000008ab52536aab00005300000000", "6a6351", 0, 110304602, "e88ed2eea9143f2517b15c03db00767eb01a5ce12193b99b964a35700607e5f4"], - ["0bfd34210451c92cdfa02125a62ba365448e11ff1db3fb8bc84f1c7e5615da40233a8cd368010000000252ac9a070cd88dec5cf9aed1eab10d19529720e12c52d3a21b92c6fdb589d056908e43ea910e0200000009ac516a52656a6a5165ffffffffc3edcca8d2f61f34a5296c405c5f6bc58276416c720c956ff277f1fb81541ddd00000000030063abffffffff811247905cdfc973d179c03014c01e37d44e78f087233444dfdce1d1389d97c302000000065163000063ab1724a26e02ca37c902000000000851ab53525352ac529012a90100000000085200525253535353fa32575b", "5352ac6351", 1, -1087700448, "b8f1e1f35e3e1368bd17008c756e59cced216b3c699bcd7bebdb5b6c8eec4697"], - ["2c84c0640487a4a695751d3e4be48019dbaea85a6e854f796881697383ea455347d2b2769001000000055265526500ffffffff6aac176d8aa00778d496a7231eeb7d3334f20c512d3db1683276402100d98de5030000000700536a5263526ac1ee9ceb171c0c984ebaf12c234fd1487fbf3b3d73aa0756907f26837efba78d1bed33200300000001ab4d9e8ec0bed837cb929bbed76ee848959cec59de44bd7667b7631a744f880d5c71a20cfd0100000007005363515300abffffffff023753fb0000000000036565532d3873050000000009005152ab6a63acab5200000000", "ab650053ab", 0, -877941183, "c49af297dffe2d80deddf10ceea84b99f8554bd2d55bbdc34e449728c31f0835"], - ["1f7e4b1b045d3efa6cd7a11d7873a8bab886c19bd11fcb6712f0948f2db3a7be76ff76c8f100000000095265ab6a0065ac5363ffffffffdaafcfa6029336c997680a541725190f09a6f6da21e54560eca4b5b8ae987da1000000000952ac52acac52515165ffffffff825a38d3b1e5bb4d10f33653ab3ab6882c7abdaec74460257d1528ce7be3f98e0100000007526a006a656a63c14adc8f04953a5d3d3f89237f38b857dd357713896d36215f7e8b77b11d98ea3cdc93df02000000015212484f6104bfafae0300000000025263a2b0120000000000056563ab00516c4d2605000000000653ac6500655301cc93030000000002acab14643b1f", "63acac53ab", 0, 333824258, "18da6ceb011cd36f15ad7dd6c55ef07e6f6ed48881ce3bb31416d3c290d9a0e9"], - ["467a3e7602e6d1a7a531106791845ec3908a29b833598e41f610ef83d02a7da3a1900bf2960000000005ab6a636353ffffffff031db6dac6f0bafafe723b9199420217ad2c94221b6880654f2b35114f44b1df010000000965ab52636a63ac6352ffffffff02b3b95c0100000000026300703216030000000001ab3261c0aa", "6a", 0, 2110869267, "3078b1d1a7713c6d101c64afe35adfae0977a5ab4c7e07a0b170b041258adbf2"], - ["8713bc4f01b411149d575ebae575f5dd7e456198d61d238695df459dd9b86c4e3b2734b62e0300000004abac6363ffffffff03b58049050000000002ac653c714c04000000000953656a005151526a527b5a9e03000000000652ac5100525300000000", "52", 0, -647281251, "0e0bed1bf2ff255aef6e5c587f879ae0be6222ab33bd75ee365ec6fbb8acbe38"], - ["f2ba8a8701b9c401efe3dd0695d655e20532b90ac0142768cee4a3bb0a89646758f544aa8102000000036a52527899f4e4040c6f0b030000000008636565ab530051ab52b60c000000000009515200ab630053ac53a49c5f040000000008ab53ab516300ab63fa27340300000000015100000000", "ac63abab5251", 0, -1328936437, "ab61497afd39e61fe06bc5677326919716f9b20083c9f3417dcea905090e0411"], - ["b5a7df6102107beded33ae7f1dec0531d4829dff7477260925aa2cba54119b7a07d92d5a1d02000000046a516a52803b625c334c1d2107a326538a3db92c6c6ae3f7c3516cd90a09b619ec6f58d10e77bd6703000000056563006a63ffffffff0117484b03000000000853acab52526a65abc1b548a1", "ac006a525100", 0, 2074359913, "680336db57347d8183b8898cd27a83f1ba5884155aeae5ce20b4840b75e12871"], - ["278cb16204b9dadf400266106392c4aa9df01ba03af988c8139dae4c1818ac009f13fc5f1a00000000065200ac656a52ffffffffd006bbebd8cbd7bdead24cddc9badfcc6bc0c2e63c037e5c29aa858f5d0f3e7d01000000046a0051acffffffffbc62a5f57e58da0b67956003ae81ac97cb4cbd1d694c914fc41515c008c4d8fd020000000165e329c844bcc16164be64b64a81cbf4ffd41ed2934e0daa0040ccb8365bab0b2a9e401c180300000003ab52abffffffff02588460030000000000a25a12030000000005535100005300000000", "6553ab6a5300acab51", 3, 989407546, "1c29f110576f4a3b257f67454d99dfc0dee62ef5517ca702848ce4bd2ea1a1d7"], - ["49eb2178020a04fca08612c34959fd41447319c190fb7ffed9f71c235aa77bec28703aa1820200000003ac6353abaff326071f07ec6b77fb651af06e8e8bd171068ec96b52ed584de1d71437fed186aecf0300000001acffffffff03da3dbe02000000000652ac63ac6aab8f3b680400000000096a536a65636a53516a5175470100000000016500000000", "6a536365", 0, 1283691249, "c670219a93234929f662ecb9aa148a85a2d281e83f4e53d10509461cdea47979"], - ["0f96cea9019b4b3233c0485d5b1bad770c246fe8d4a58fb24c3b7dfdb3b0fd90ea4e8e947f0300000006006a5163515303571e1e01906956030000000005ab635353abadc0fbbe", "acac", 0, -1491469027, "716a8180e417228f769dcb49e0491e3fda63badf3d5ea0ceeac7970d483dd7e2"], - ["9a7d858604577171f5fe3f3fd3e5e039c4b0a06717a5381e9977d80e9f53e025e0f16d2877020000000752636565536353ffffffff5862bd028e8276e63f044be1dddcbb8d0c3fa097678308abf2b0f45104a93dbd0100000001531200667ba8fdd3b28e98a35da73d3ddfe51e210303d8eb580f923de988ee632d77793892030000000752526363526563ffffffffe9744eb44db2658f120847c77f47786d268c302120d269e6004455aa3ea5f5e20200000009ab6300636aab656551ffffffff03c61a3c020000000009ab516a6aab6aab53ab737f1a05000000000853acabab655365ab92a4a00400000000016367edf6c8", "535352ab", 3, 659348595, "d36ee79fc80db2e63e05cdc50357d186181b40ae20e3720878284228a13ee8b3"], - ["148e68480196eb52529af8e83e14127cbfdbd4a174e60a86ac2d86eac9665f46f4447cf7aa01000000045200ac538f8f871401cf240c0300000000065252ab52656a5266cf61", "", 0, -344314825, "eacc47c5a53734d6ae3aedbc6a7c0a75a1565310851b29ef0342dc4745ceb607"], - ["e2bc29d4013660631ba14ecf75c60ec5e9bed7237524d8c10f66d0675daa66d1492cb834530200000004ac510065e42d0c9e04f2b26c01000000000951525152acac65ababa35b7504000000000953ac6aac00650053ab94688c0400000000056365526553a1bced0300000000016a00000000", "65ab0063655353", 0, -888431789, "59a34b3ed3a1cce0b104de8f7d733f2d386ffc7445efae67680cd90bc915f7e0"], - ["0c8a70d70494dca6ab05b2bc941b5b431c43a292bd8f2f02eab5e240a408ca73a676044a4103000000056a51ab006affffffff84496004e54836c035821f14439149f22e1db834f315b24588ba2f031511926c0100000000ffffffffbbc5e70ed1c3060ba1bfe99c1656a3158a7307c3ce8eb362ec32c668596d2bd30000000009636563635351abab00b039344c6fc4f9bec24322e45407af271b2d3dfec5f259ee2fc7227bc5285e22b3be85b40100000009ac00ab53abac6a5352e5ddfcff02d50231020000000005006a51536ab086d9020000000006ababac51ac6a00000000", "abab636565acac6a", 3, 241546088, "643a7b4c8d832e14d5c10762e74ec84f2c3f7ed96c03053157f1bed226614911"], - ["f98f79cf0274b745e1d6f36da7cbe205a79132a7ad462bdc434cfb1dcd62a6977c3d2a5dbc010000000553516a5365ffffffff4f89f485b53cdad7fb80cc1b7e314b9735b9383bc92c1248bb0e5c6173a55c0d010000000353655293f9b014045ad96d02000000000963ac526a53ac636365f4c27904000000000952536563635152526a2788f0030000000002516aff5add01000000000863530051655351abd04716ba", "ab6552536a53", 1, -2128899945, "56d29f5e300ddfed2cd8dcce5d79826e193981d0b70dc7487772c8a0b3b8d7b1"], - ["6c7913f902aa3f5f939dd1615114ce961beda7c1e0dd195be36a2f0d9d047c28ac62738c3a020000000453abac00ffffffff477bf2c5b5c6733881447ac1ecaff3a6f80d7016eee3513f382ad7f554015b970100000007ab6563acab5152ffffffff04e58fe1040000000009ab00526aabab526553e59790010000000002ab525a834b03000000000035fdaf0200000000086551ac65515200ab00000000", "63ac53", 1, 1285478169, "1536da582a0b6de017862445e91ba14181bd6bf953f4de2f46b040d351a747c9"], - ["4624aa9204584f06a8a325c84e3b108cafb97a387af62dc9eab9afd85ae5e2c71e593a3b690200000003636a005eb2b44eabbaeca6257c442fea00107c80e32e8715a1293cc164a42e62ce14fea146220c020000000090b9ee38106e3310037bfc519fd209bdbd21c588522a0e96df5fba4e979392bc993bfe9f01000000086363636a635353ab6f1907d218ef6f3c729d9200e23c1dbff2df58b8b1282c6717b26cf760ee4c880d23f4d100000000086a516a536a525163ffffffff01d6f162050000000000ebbab208", "525365ab0053", 1, -1515409325, "6cf9cd409b7185b1f118171f0a34217af5b612ea54195ea186505b667c19337f"], - ["16562fc503f1cf9113987040c408bfd4523f1512da699a2ca6ba122dc65677a4c9bf7763830000000003636552ffffffff1ec1fab5ff099d1c8e6b068156f4e39b5543286bab53c6d61e2582d1e07c96cf02000000045163656affffffffd0ef40003524d54c08cb4d13a5ee61c84fbb28cde9eca7a6d11ba3a9335d8c620100000007635153536a6300fbb84fc2012003a601000000000363ab6a00000000", "63636a006a6aab", 0, -1310262675, "1efbf3d37a92bc03d9eb950b792f307e95504f7c4998f668aa250707ebb752ac"], - ["531665d701f86bacbdb881c317ef60d9cd1baeffb2475e57d3b282cd9225e2a3bf9cbe0ded01000000086300ac515263acabffffffff0453a8500100000000086353acab516a6565e5e9200500000000026a52a44caa00000000000453ac000065e41b0500000000076500ac0065526ab4476f4d", "006563006aab00636a", 0, 1770013777, "0898b26dd3ca08632a5131fa48eb55b44386d0c5070c24d6e329673d5e3693b8"], - ["0f1227a20140655a3da36e413b9b5d108a866f6f147eb4940f032f5a89854eae6d7c3a91600100000009525363515153515253e37a79480161ab61020000000001ab00000000", "ab65005200", 0, -1996383599, "979782dc3f36d908d37d7e4046a38d306b4b08ddc60a5eba355fe3d6da1b29a9"], - ["063ff6eb01aff98d0d2a6db224475010edb634c2f3b46257084676adeb84165a4ff8558d7601000000066353006a5165deb3262c042d109c0000000000076363ab52ac005200b9c4050000000007516300ac510063cfffc800000000000200639e815501000000000700526a52ac6365ac7b07b8", "656552abac6500", 0, -1559847112, "674a4bcb04247f8dc98780f1792cac86b8aee41a800fc1e6f5032f6e1dccde65"], - ["3320f6730132f830c4681d0cae542188e4177cad5d526fae84565c60ceb5c0118e844f90bd030000000163ffffffff0257ec5a040000000005525251ac6538344d000000000002515200000000", "5352656a53ac516a65", 0, 788050308, "3afacaca0ef6be9d39e71d7b1b118994f99e4ea5973c9107ca687d28d8eba485"], - ["c13aa4b702eedd7cde09d0416e649a890d40e675aa9b5b6d6912686e20e9b9e10dbd40abb1000000000863ab6353515351ac11d24dc4cc22ded7cdbc13edd3f87bd4b226eda3e4408853a57bcd1becf2df2a1671fd1600000000045165516affffffff01baea300100000000076aab52ab53005300000000", "0065", 0, -1195908377, "241a23e7b1982d5f78917ed97a8678087acbbffe7f624b81df78a5fe5e41e754"], - ["d9a6f20e019dd1b5fae897fb472843903f9c3c2293a0ffb59cff2b413bae6eceab574aaf9d030000000663ab006a515102f54939032df5100100000000056a51ab65530ec28f010000000004ac5100007e874905000000000651005265ac6a00000000", "abacab63acacabab", 0, 271463254, "1326a46f4c21e7619f30a992719a905aa1632aaf481a57e1cbd7d7c22139b41e"], - ["157c81bf0490432b3fcb3f9a5b79e5f91f67f05efb89fa1c8740a3fe7e9bdc18d7cb6acd2203000000026351ffffffff912e48e72bbcf8a540b693cf8b028e532a950e6e63a28801f6eaad1afcc52ad00000000000b1a4b170a2b9e60e0cad88a0085137309f6807d25d5afb5c1e1d32aa10ba1cdf7df596dd0000000009525165656a51ab65ab3674fba32a76fe09b273618d5f14124465933f4190ba4e0fd09d838daafc6223b31642ac00000000086a53536551ac6565ffffffff01fe9fb6030000000008ab51656a5165636a00000000", "ab00ab6a6551", 3, -64357617, "1ddaab7f973551d71f16bd70c4c4edbf7225e64e784a6da0ee7f7a9fe4f12a0b"], - ["a2692fff03b2387f5bacd5640c86ba7df574a0ee9ed7f66f22c73cccaef3907eae791cbd230200000004536363abffffffff4d9fe7e5b375de88ba48925d9b2005447a69ea2e00495a96eafb2f144ad475b40000000008000053000052636537259bee3cedd3dcc07c8f423739690c590dc195274a7d398fa196af37f3e9b4a1413f810000000006ac63acac52abffffffff04c65fe60200000000075151536365ab657236fc020000000009005263ab00656a6a5195b8b6030000000007ac5165636aac6a7d7b66010000000002acab00000000", "51", 2, -826546582, "925037c7dc7625f3f12dc83904755a37016560de8e1cdd153c88270a7201cf15"], - ["2c5b003201b88654ac2d02ff6762446cb5a4af77586f05e65ee5d54680cea13291efcf930d0100000005ab536a006a37423d2504100367000000000004536a515335149800000000000152166aeb03000000000452510063226c8e03000000000000000000", "635251", 0, 1060344799, "7e058ca5dd07640e4aae7dea731cfb7d7fef1bfd0d6d7b6ce109d041f4ca2a31"], - ["f981b9e104acb93b9a7e2375080f3ea0e7a94ce54cd8fb25c57992fa8042bdf4378572859f0100000002630008604febba7e4837da77084d5d1b81965e0ea0deb6d61278b6be8627b0d9a2ecd7aeb06a0300000005ac5353536a42af3ef15ce7a2cd60482fc0d191c4236e66b4b48c9018d7dbe4db820f5925aad0e8b52a0300000008ab0063510052516301863715efc8608bf69c0343f18fb81a8b0c720898a3563eca8fe630736c0440a179129d03000000086aac6a52ac6a63ac44fec4c00408320a03000000000062c21c030000000007ac6a655263006553835f0100000000015303cd60000000000005535263536558b596e0", "00", 0, -2140385880, "49870a961263354c9baf108c6979b28261f99b374e97605baa532d9fa3848797"], - ["e7416df901269b7af14a13d9d0507709b3cd751f586ce9d5da8d16a121e1bd481f5a086e1103000000056aab005200ffffffff01aa269c040000000006acac6a6a5263ee718de6", "ab525363", 0, 1309186551, "eea7d2212bda2d408fff146f9ae5e85e6b640a93b9362622bb9d5e6e36798389"], - ["402a815902193073625ab13d876190d1bbb72aecb0ea733c3330f2a4c2fe6146f322d8843a0300000008656aab0000535363fffffffff9dccdec5d8509d9297d26dfcb1e789cf02236c77dc4b90ebccbf94d1b5821150300000001510bf1f96a03c5c145000000000002ac6ae11b1c0100000000055163516a5239c8a600000000000365636300000000", "63536aacab", 0, -1811424955, "0090803a20102a778ab967a74532faee13e03b702083b090b1497bc2267ee2fe"], - ["c4b702e502f1a54f235224f0e6de961d2e53b506ab45b9a40805d1dacd35148f0acf24ca5e00000000085200ac65ac53acabf34ba6099135658460de9d9b433b84a8562032723635baf21ca1db561dce1c13a06f4407000000000851ac006a63516aabffffffff02a853a603000000000163d17a67030000000005ab63006a5200000000", "ac5363515153", 1, 480734903, "5c46f7ac3d6460af0da28468fcc5b3c87f2b9093d0f837954b7c8174b4d7b6e7"], - ["9b83f78704f492b9b353a3faad8d93f688e885030c274856e4037818848b99e490afef27770200000000ffffffff36b60675a5888c0ef4d9e11744ecd90d9fe9e6d8abb4cff5666c898fdce98d9e00000000056aab656352596370fca7a7c139752971e169a1af3e67d7656fc4fc7fd3b98408e607c2f2c836c9f27c030000000653ac51ab6300a0761de7e158947f401b3595b7dc0fe7b75fa9c833d13f1af57b9206e4012de0c41b8124030000000953656a53ab53510052242e5f5601bf83b301000000000465516a6300000000", "63515200ac656365", 3, -150879312, "9cf05990421ea853782e4a2c67118e03434629e7d52ab3f1d55c37cf7d72cdc4"], - ["f492a9da04f80b679708c01224f68203d5ea2668b1f442ebba16b1aa4301d2fe5b4e2568f3010000000953005351525263ab65ffffffff93b34c3f37d4a66df255b514419105b56d7d60c24bf395415eda3d3d8aa5cd0101000000020065ffffffff9dba34dabdc4f1643b372b6b77fdf2b482b33ed425914bb4b1a61e4fad33cf390000000002ab52ffffffffbbf3dc82f397ef3ee902c5146c8a80d9a1344fa6e38b7abce0f157be7adaefae0000000009515351005365006a51ffffffff021359ba010000000000403fea0200000000095200ac6353abac635300000000", "00ac51acacac", 0, -2115078404, "fd44fc98639ca32c927929196fc3f3594578f4c4bd248156a25c04a65bf3a9f3"], - ["2f73e0b304f154d3a00fde2fdd40e791295e28d6cb76af9c0fd8547acf3771a02e3a92ba37030000000852ac6351ab6565639aa95467b065cec61b6e7dc4d6192b5536a7c569315fb43f470078b31ed22a55dab8265f02000000080065636a6aab6a53ffffffff9e3addbff52b2aaf9fe49c67017395198a9b71f0aa668c5cb354d06c295a691a0100000000ffffffff45c2b4019abaf05c5e484df982a4a07459204d1343a6ee5badade358141f8f990300000007ac516a6aacac6308655cd601f3bc2f0000000000015200000000", "", 0, -2082053939, "9a95e692e1f78efd3e46bb98f178a1e3a0ef60bd0301d9f064c0e5703dc879c2"], - ["5a60b9b503553f3c099f775db56af3456330f1e44e67355c4ab290d22764b9144a7b5f959003000000030052acbd63e0564decc8659aa53868be48c1bfcda0a8c9857b0db32a217bc8b46d9e7323fe9649020000000553ac6551abd0ecf806211db989bead96c09c7f3ec5f73c1411d3329d47d12f9e46678f09bac0dc383e0200000000ffffffff01494bb202000000000500516551ac00000000", "ac", 0, 1169947809, "62a36c6e8da037202fa8aeae03e533665376d5a4e0a854fc4624a75ec52e4eb1"], - ["7e98d353045569c52347ca0ff2fdba608829e744f61eb779ffdb5830aae0e6d6857ab2690e03000000075365acab656352ffffffffa890dd37818776d12da8dca53d02d243ef23b4535c67016f4c58103eed85360f030000000093dbacdc25ca65d2951e047d6102c4a7da5e37f3d5e3c8b87c29b489360725dcd117ee2003000000056a6300ac53c7e99fa1dc2b8b51733034e6555f6d6de47dbbf1026effac7db80cb2080678687380dc1e02000000075352005263516affffffff04423272040000000008ab6353ab65510051e0f53b0500000000086300516552635152f74a5f04000000000853acab0053ab52ab0e8e5f00000000000951ac5363516a6aabab00000000", "6a5163ab52", 3, 890006103, "476868cecd1763c91dade98f17defa42d31049547df45acffa1cc5ae5c3d75d6"], - ["e3649aa40405e6ffe377dbb1bbbb672a40d8424c430fa6512c6165273a2b9b6afa9949ec430200000007630052ab655153a365f62f2792fa90c784efe3f0981134d72aac0b1e1578097132c7f0406671457c332b84020000000353ab6ad780f40cf51be22bb4ff755434779c7f1def4999e4f289d2bd23d142f36b66fbe5cfbb4b01000000076a5252abac52ab1430ffdc67127c9c0fc97dcd4b578dab64f4fb9550d2b59d599773962077a563e8b6732c02000000016affffffff04cb2687000000000002ab636e320904000000000252acf70e9401000000000100dc3393050000000006ab0063536aacbc231765", "65520053", 3, -2016196547, "f64f805f0ff7f237359fa6b0e58085f3c766d1859003332223444fd29144112a"], - ["1d033569040700441686672832b531ab55db89b50dc1f9fc00fb72218b652da9dcfbc83be901000000066551ac526a632b390f9ad068e5fdee6563e88e2a8e4e09763c861072713dc069893dc6bbc9db3f00e26502000000096a5363526565525252ffffffff8a36bdd0aaf38f6707592d203e14476ca9f259021e487135c7e8324244057ed90300000000ed3fb2a3dfd4d46b5f3603fe0148653911988457bd0ed7f742b07c452f5476c228ff9f600200000007526aac00525152ffffffff04b88e48030000000000c753d602000000000853510000006553518fda2603000000000853ac52acac5263534839f1030000000006ac006aacac5300000000", "516553635300ab0052", 1, 2075958316, "c2cefaec2293134acbcf6d2a8bf2b3eb42e4ec04ee8f8bf30ff23e65680677c1"], - ["4c4be7540344050e3044f0f1d628039a334a7c1f7b4573469cfea46101d6888bb6161fe9710200000000ffffffffac85a4fdad641d8e28523f78cf5b0f4dc74e6c5d903c10b358dd13a5a1fd8a06000000000163e0ae75d05616b72467b691dc207fe2e65ea35e2eadb7e06ea442b2adb9715f212c0924f10200000000ffffffff0194ddfe02000000000265ac00000000", "00006500", 1, -479922562, "d66924d49f03a6960d3ca479f3415d638c45889ce9ab05e25b65ac260b51d634"], - ["202c18eb012bc0a987e69e205aea63f0f0c089f96dd8f0e9fcde199f2f37892b1d4e6da90302000000055352ac6565ffffffff0257e5450100000000025300ad257203000000000000000000", "520052ac6a005265", 0, 168054797, "502967a6f999f7ee25610a443caf8653dda288e6d644a77537bcc115a8a29894"], - ["32fa0b0804e6ea101e137665a041cc2350b794e59bf42d9b09088b01cde806ec1bbea077df0200000008515153650000006506a11c55904258fa418e57b88b12724b81153260d3f4c9f080439789a391ab147aabb0fa0000000007000052ac51ab510986f2a15c0d5e05d20dc876dd2dafa435276d53da7b47c393f20900e55f163b97ce0b800000000008ab526a520065636a8087df7d4d9c985fb42308fb09dce704650719140aa6050e8955fa5d2ea46b464a333f870000000009636300636a6565006affffffff01994a0d040000000002536500000000", "516563530065", 2, -163068286, "f58637277d2bc42e18358dc55f7e87e7043f5e33f4ce1fc974e715ef0d3d1c2a"], - ["ae23424d040cd884ebfb9a815d8f17176980ab8015285e03fdde899449f4ae71e04275e9a80100000007ab006553530053ffffffff018e06db6af519dadc5280c07791c0fd33251500955e43fe4ac747a4df5c54df020000000251ac330e977c0fec6149a1768e0d312fdb53ed9953a3737d7b5d06aad4d86e9970346a4feeb5030000000951ab51ac6563ab526a67cabc431ee3d8111224d5ecdbb7d717aa8fe82ce4a63842c9bd1aa848f111910e5ae1eb0100000004ac515300bfb7e0d7048acddc030000000009636a5253636a655363a3428e040000000001525b99c6050000000004655265ab717e6e020000000000d99011eb", "ac6a6a516565", 1, -716251549, "b098eb9aff1bbd375c70a0cbb9497882ab51f3abfebbf4e1f8d74c0739dc7717"], - ["030f44fc01b4a9267335a95677bd190c1c12655e64df74addc53b753641259af1a54146baa020000000152e004b56c04ba11780300000000026a53f125f001000000000251acd2cc7c03000000000763536563655363c9b9e50500000000015200000000", "ac", 0, -1351818298, "19dd32190ed2a37be22f0224a9b55b91e37290577c6c346d36d32774db0219a3"], - ["c05f448f02817740b30652c5681a3b128322f9dc97d166bd4402d39c37c0b14506d8adb5890300000003536353ffffffffa188b430357055ba291c648f951cd2f9b28a2e76353bef391b71a889ba68d5fc02000000056565526a6affffffff02745f73010000000001ab3ec34c0400000000036aac5200000000", "516551510053", 0, -267877178, "3a1c6742d4c374f061b1ebe330b1e169a113a19792a1fdde979b53e094cc4a3c"], - ["163ba45703dd8c2c5a1c1f8b806afdc710a2a8fc40c0138e2d83e329e0e02a9b6c837ff6b8000000000700655151ab6a522b48b8f134eb1a7e6f5a6fa319ce9d11b36327ba427b7d65ead3b4a6a69f85cda8bbcd22030000000563656552acffffffffdbcf4955232bd11eef0cc6954f3f6279675b2956b9bcc24f08c360894027a60201000000066500006500abffffffff04d0ce9d0200000000008380650000000000015233f360040000000003006aabedcf0801000000000000000000", "000065006500ac", 0, 216965323, "9afe3f4978df6a86e9a8ebd62ef6a9d48a2203f02629349f1864ef2b8b92fd55"], - ["07f7f5530453a12ad0c7eb8fbc3f140c7ab6818144d67d2d8752600ca5d9a9358e2dff87d4000000000663526aab526a9e599c379d455e2da36d0cde88d931a863a3e97e01e93b9edb65856f3d958dc08b92b720000000000165bbc8d66dae3b1b170a6e2457f5b161465cb8706e0e6ffc6af55deb918365f14c5f40d4890100000000a7bd77c069ee4b48638e2363fcf2a86b02bea022047bd9fcb16d2b94ad068308d19b31cb00000000066aab5300ab529672aa8f01dbd8a205000000000663536353006a02e99901", "ac006351006a63ab63", 1, 119789359, "6629a1e75c6ae8f4f9d5f734246b6a71682a5ea57246040ef0584f6b97916175"], - ["fe647f950311bf8f3a4d90afd7517df306e04a344d2b2a2fea368935faf11fa6882505890d0000000005ab5100516affffffff43c140947d9778718919c49c0535667fc6cc727f5876851cb8f7b6460710c7f60100000000ffffffffce4aa5d90d7ab93cbec2e9626a435afcf2a68dd693c15b0e1ece81a9fcbe025e0300000000ffffffff02f34806020000000002515262e54403000000000965635151ac655363636de5ce24", "6a005100ac516351", 2, 989643518, "818a7ceaf963f52b5c48a7f01681ac6653c26b63a9f491856f090d9d60f2ffe3"], - ["a1050f8604d0f9d2feefcdb5051ae0052f38e21bf39daf583fd0c3900faa3eab5d431c0bbe030000000653536a005151683d27e5c6e0da8f22125823f32d5d98477d8098ef36263b9694d61d4d85d3f2ac02b7570200000007000052005165abffffffff0cad981542bcb54a87d9400aa63e514c7c6fab7158c2b1fb37821ea755eb162a0200000000b94feb5100e5ef3bf8ed8d43356c8a8d5ac6c7e80d7ff6040f4f0aa19abbe783f4f461240200000007636500000052655686fd70042be3ad02000000000465ab636a15680b000000000004acac53511277c705000000000452635252d27a0102000000000000000000", "6a6aacab65655251", 1, -982144648, "dfcf484111801989eb6df8dc2bafb944d7365ffeb36a575a08f3270d3ef24c9f"], - ["cef7316804c3e77fe67fc6207a1ea6ae6eb06b3bf1b3a4010a45ae5c7ad677bb8a4ebd16d90200000009ac536a5152ac5263005301ab8a0da2b3e0654d31a30264f9356ba1851c820a403be2948d35cafc7f9fe67a06960300000006526a63636a53ffffffffbada0d85465199fa4232c6e4222df790470c5b7afd54704595a48eedd7a4916b030000000865ab63ac006a006ab28dba4ad55e58b5375053f78b8cdf4879f723ea4068aed3dd4138766cb4d80aab0aff3d0300000003ac6a00ffffffff010f5dd6010000000006ab006aab51ab00000000", "", 1, 889284257, "d0f32a6db43378af84b063a6706d614e2d647031cf066997c48c04de3b493a94"], - ["7b3ff28004ba3c7590ed6e36f45453ebb3f16636fe716acb2418bb2963df596a50ed954d2e03000000065251515265abffffffff706ee16e32e22179400c9841013971645dabf63a3a6d2d5feb42f83aa468983e030000000653ac51ac5152ffffffffa03a16e5e5de65dfa848b9a64ee8bf8656cc1f96b06a15d35bd5f3d32629876e020000000043c1a3965448b3b46f0f0689f1368f3b2981208a368ec5c30defb35595ef9cf95ffd10e902000000036aac65253a5bbe042e907204000000000800006565656352634203b4020000000002656336b3b7010000000001ab7a063f0100000000026500a233cb76", "006551636a53ac5251", 1, -1144216171, "68c7bd717b399b1ee33a6562a916825a2fed3019cdf4920418bb72ffd7403c8c"], - ["d5c1b16f0248c60a3ddccf7ebd1b3f260360bbdf2230577d1c236891a1993725e262e1b6cb000000000363636affffffff0a32362cfe68d25b243a015fc9aa172ea9c6b087c9e231474bb01824fd6bd8bc0300000005ab52ab516affffffff0420d9a70200000000045152656a45765d0000000000055252536a5277bad100000000000252ab3f3f3803000000000463acac5200000000", "52636a52ab65", 1, 1305123906, "978dc178ecd03d403b048213d904653979d11c51730381c96c4208e3ea24243a"], - ["1be8ee5604a9937ebecffc832155d9ba7860d0ca451eaced58ca3688945a31d93420c27c460100000006abac5300535288b65458af2f17cbbf7c5fbcdcfb334ffd84c1510d5500dc7d25a43c36679b702e850f7c0200000003005300ffffffff7c237281cb859653eb5bb0a66dbb7aeb2ac11d99ba9ed0f12c766a8ae2a2157203000000086aabac526365acabfffffffff09d3d6639849f442a6a52ad10a5d0e4cb1f4a6b22a98a8f442f60280c9e5be80200000007ab00ab6565ab52ffffffff0398fe83030000000005526aababacbdd6ec010000000005535252ab6a82c1e6040000000001652b71c40c", "6563526353656351", 2, -853634888, "0d936cceda2f56c7bb87d90a7b508f6208577014ff280910a710580357df25f3"], - ["9e0f99c504fbca858c209c6d9371ddd78985be1ab52845db0720af9ae5e2664d352f5037d4010000000552ac53636affffffff0e0ce866bc3f5b0a49748f597c18fa47a2483b8a94cef1d7295d9a5d36d31ae7030000000663515263ac635bb5d1698325164cdd3f7f3f7831635a3588f26d47cc30bf0fefd56cd87dc4e84f162ab702000000036a6365ffffffff85c2b1a61de4bcbd1d5332d5f59f338dd5e8accbc466fd860f96eef1f54c28ec030000000165ffffffff04f5cabd010000000007000052ac526563c18f1502000000000465510051dc9157050000000008655363ac525253ac506bb600000000000865656a53ab63006a00000000", "006a6a0052", 0, 1186324483, "2f9b7348600336512686e7271c53015d1cb096ab1a5e0bce49acd35bceb42bc8"], - ["11ce51f90164b4b54b9278f0337d95c50d16f6828fcb641df9c7a041a2b274aa70b1250f2b0000000008ab6a6a65006551524c9fe7f604af44be050000000005525365006521f79a0300000000015306bb4e04000000000265ac99611a05000000000765acab656500006dc866d0", "", 0, -1710478768, "cfa4b7573559b3b199478880c8013fa713ca81ca8754a3fd68a6d7ee6147dc5a"], - ["86bc233e02ba3c647e356558e7252481a7769491fb46e883dd547a4ce9898fc9a1ca1b77790000000006ab5351abab51f0c1d09c37696d5c7c257788f5dff5583f4700687bcb7d4acfb48521dc953659e325fa390300000003acac5280f29523027225af03000000000963abac0065ab65acab7e59d90400000000016549dac846", "53006aac52acac", 0, 711159875, "880330ccde00991503ea598a6dfd81135c6cda9d317820352781417f89134d85"], - ["beac155d03a853bf18cd5c490bb2a245b3b2a501a3ce5967945b0bf388fec2ba9f04c03d68030000000012fe96283aec4d3aafed8f888b0f1534bd903f9cd1af86a7e64006a2fa0d2d30711af770010000000163ffffffffd963a19d19a292104b9021c535d3e302925543fb3b5ed39fb2124ee23a9db00302000000056500ac63acffffffff01ad67f503000000000300ac5189f78db2", "53536a636500", 2, 748992863, "bde3dd0575164d7ece3b5783ce0783ffddb7df98f178fe6468683230314f285a"], - ["81dab34a039c9e225ba8ef421ec8e0e9d46b5172e892058a9ade579fe0eb239f7d9c97d45b0300000009ac65655351ab526363ffffffff10c0faaf7f597fc8b00bbc67c3fd4c6b70ca6b22718d15946bf6b032e62dae570000000005536a00ab6a02cddec3acf985bbe62c96fccf17012a87026ed63fc6756fa39e286eb4c2dd79b59d37400300000002516affffffff04f18b8d03000000000753abab5152636564411c02000000000400ab6300e965750300000000001bd2cf02000000000565ab526aab00000000", "006551ab", 0, -1488174485, "a3d65a8cd0c1eea8558d01396b929520a2221c29d9f25f29035b8abae874447f"], - ["489ebbf10478e260ba88c0168bd7509a651b36aaee983e400c7063da39c93bf28100011f280100000004abab63ab2fc856f05f59b257a4445253e0d91b6dffe32302d520ac8e7f6f2467f7f6b4b65f2f59e903000000096353abacab6351656affffffff0122d9480db6c45a2c6fd68b7bc57246edffbf6330c39ccd36aa3aa45ec108fc030000000265ab9a7e78a69aadd6b030b12602dff0739bbc346b466c7c0129b34f50ae1f61e634e11e9f3d0000000006516a53525100ffffffff011271070000000000086563ab6353536352c4dd0e2c", "", 0, -293358504, "4eba3055bc2b58765593ec6e11775cea4b6493d8f785e28d01e2d5470ea71575"], - ["6911195d04f449e8eade3bc49fd09b6fb4b7b7ec86529918b8593a9f6c34c2f2d301ec378b000000000263ab49162266af054643505b572c24ff6f8e4c920e601b23b3c42095881857d00caf56b28acd030000000565525200ac3ac4d24cb59ee8cfec0950312dcdcc14d1b360ab343e834004a5628d629642422f3c5acc02000000035100accf99b663e3c74787aba1272129a34130668a877cc6516bfb7574af9fa6d07f9b4197303400000000085351ab5152635252ffffffff042b3c95000000000000ff92330200000000046a5252ab884a2402000000000853530065520063000d78be03000000000953abab52ab53ac65aba72cb34b", "6a", 2, -637739405, "6b80d74eb0e7ee59d14f06f30ba7d72a48d3a8ff2d68d3b99e770dec23e9284f"], - ["746347cf03faa548f4c0b9d2bd96504d2e780292730f690bf0475b188493fb67ca58dcca4f0000000002005336e3521bfb94c254058e852a32fc4cf50d99f9cc7215f7c632b251922104f638aa0b9d080100000008656aac5351635251ffffffff4da22a678bb5bb3ad1a29f97f6f7e5b5de11bb80bcf2f7bb96b67b9f1ac44d09030000000365ababffffffff036f02b30000000000076353ab6aac63ac50b72a050000000002acaba8abf804000000000663006a6a6353797eb999", "acac5100", 1, -1484493812, "164c32a263f357e385bd744619b91c3f9e3ce6c256d6a827d6defcbdff38fa75"], - ["e17149010239dd33f847bf1f57896db60e955117d8cf013e7553fae6baa9acd3d0f1412ad90200000006516500516500cb7b32a8a67d58dddfb6ceb5897e75ef1c1ff812d8cd73875856487826dec4a4e2d2422a0100000004ac525365196dbb69039229270400000000070000535351636a8b7596020000000006ab51ac52655131e99d040000000003516551ee437f5c", "ac656a53", 1, 1102662601, "8858bb47a042243f369f27d9ab4a9cd6216adeac1c1ac413ed0890e46f23d3f3"], - ["144971940223597a2d1dec49c7d4ec557e4f4bd207428618bafa3c96c411752d494249e1fb0100000004526a5151ffffffff340a545b1080d4f7e2225ff1c9831f283a7d4ca4d3d0a29d12e07d86d6826f7f0200000003006553ffffffff03c36965000000000000dfa9af00000000000451636aac7f7d140300000000016300000000", "", 1, -108117779, "c84fcaf9d779df736a26cc3cabd04d0e61150d4d5472dd5358d6626e610be57f"], - ["b11b6752044e650b9c4744fb9c930819227d2ac4040d8c91a133080e090b042a142e93906e0000000003650053ffffffff6b9ce7e29550d3c1676b702e5e1537567354b002c8b7bb3d3535e63ad03b50ea01000000055100516300fffffffffcf7b252fea3ad5a108af3640a9bc2cd724a7a3ce22a760fba95496e88e2f2e801000000036a00ac7c58df5efba193d33d9549547f6ca839f93e14fa0e111f780c28c60cc938f785b363941b000000000863ab51516552ac5265e51fcd0308e9830400000000036a00abab72190300000000016a63d0710000000000050051ab6a6300000000", "53005165ac51ab65", 0, 229563932, "e562579d1a2b10d1c5e45c06513456002a6bec157d7eb42511d30b118103c052"], - ["2aee6b9a02172a8288e02fac654520c9dd9ab93cf514d73163701f4788b4caeeb9297d2e250300000004ab6363008fb36695528d7482710ea2926412f877a3b20acae31e9d3091406bfa6b62ebf9d9d2a6470100000009535165536a63520065ffffffff03f7b560050000000003acab6a9a8338050000000000206ce90000000000056552516a5100000000", "5252", 1, -1102319963, "fa4676c374ae3a417124b4c970d1ed3319dc3ac91fb36efca1aa9ed981a8aa1b"], - ["9554595203ad5d687f34474685425c1919e3d2cd05cf2dac89d5f33cd3963e5bb43f8706480100000000ffffffff9de2539c2fe3000d59afbd376cb46cefa8bd01dbc43938ff6089b63d68acdc2b02000000096553655251536a6500fffffffff9695e4016cd4dfeb5f7dadf00968e6a409ef048f81922cec231efed4ac78f5d010000000763abab6a5365006caaf0070162cc640200000000045163ab5100000000", "", 0, -1105256289, "e8e10ed162b1a43bfd23bd06b74a6c2f138b8dc1ab094ffb2fa11d5b22869bee"], - ["04f51f2a0484cba53d63de1cb0efdcb222999cdf2dd9d19b3542a896ca96e23a643dfc45f00200000007acac53510063002b091fd0bfc0cfb386edf7b9e694f1927d7a3cf4e1d2ce937c1e01610313729ef6419ae7030000000165a3372a913c59b8b3da458335dc1714805c0db98992fd0d93f16a7f28c55dc747fe66a5b503000000095351ab65ab52536351ffffffff5650b318b3e236802a4e41ed9bc0a19c32b7aa3f9b2cda1178f84499963a0cde000000000165ffffffff0383954f04000000000553ac536363a8fc90030000000000a2e315000000000005acab00ab5100000000", "0053", 2, -1424653648, "a5bc0356f56b2b41a2314ec05bee7b91ef57f1074bcd2efc4da442222269d1a3"], - ["5e4fab42024a27f0544fe11abc781f46596f75086730be9d16ce948b04cc36f86db7ad50fd01000000026a00613330f4916285b5305cc2d3de6f0293946aa6362fc087727e5203e558c676b314ef8dd401000000001af590d202ba496f040000000001009e3c9604000000000351ac51943d64d3", "51acabab5100ab52", 1, -129301207, "556c3f90aa81f9b4df5b92a23399fe6432cf8fecf7bba66fd8fdb0246440036c"], - ["a115284704b88b45a5f060af429a3a8eab10b26b7c15ed421258f5320fa22f4882817d6c2b0300000003005300ffffffff4162f4d738e973e5d26991452769b2e1be4b2b5b7e8cbeab79b9cf9df2882c040000000006636aac63ac5194abc8aa22f8ddc8a7ab102a58e39671683d1891799d19bd1308d24ea6d365e571172f1e030000000700515352515153ffffffff4da7ad75ce6d8541acbb0226e9818a1784e9c97c54b7d1ff82f791df1c6578f60000000000ffffffff01b1f265040000000009ab0051ac656a516a5300000000", "51abab6352535265", 0, -1269106800, "0ef7b6e87c782fa33fe109aab157a2d9cddc4472864f629510a1c92fa1fe7fc1"], - ["f3f771ae02939752bfe309d6c652c0d271b7cab14107e98032f269d92b2a8c8853ab057da8010000000563ab6a6365670c305c38f458e30a7c0ab45ee9abd9a8dc03bae1860f965ffced879cb2e5d0bb156821020000000153ffffffff025dc619050000000002ac51ec0d250100000000076a5200636a6363333aecd8", "650053ac515100ab", 1, 1812404608, "a7aa34bf8a5644f03c6dd8801f9b15ba2e07e07256dbf1e02dad59f0d3e17ea9"], - ["fd3e267203ae7d6d3975e738ca84f12540229bb237dd228d5f688e9d5ba53fce4302b0334d01000000026353ffffffff602a3ab75af7aa951d93093e345ef0037a2863f3f580a9b1a575fffe68e677450300000000239e476d1e8f81e8b6313880d8a49b27c1b00af467f29756e76f675f084a5676539636ab030000000765ab6351acac52d9217747044d773204000000000752ac51526353acc33e45050000000005516500005115d889040000000004ab5163510cbbbd0200000000016500000000", "65ac526aac6a53ab52", 2, -886179388, "bc46f3f83058ddf5bebd9e1f2c117a673847c4dc5e31cfb24bac91adf30877cf"], - ["f380ae23033646af5dfc186f6599098015139e961919aea28502ea2d69474413d94a555ea2000000000853635265abacac5314da394b99b07733341ddba9e86022637be3b76492992fb0f58f23c915098979250a96620300000003ab6300ffffffff4bb6d1c0a0d84eac7f770d3ad0fdc5369ae42a21bbe4c06e0b5060d5990776220300000000ffffffff0486fd70020000000007ac6500635252acf3fd72010000000005656a6a6551212de90500000000096365006a63635153000fa33100000000000600535151656300000000", "ab52", 2, -740890152, "f804fc4d81f039009ed1f2cccb5c91da797543f235ac71b214c20e763a6d86d7"], - ["5c45d09801bb4d8e7679d857b86b97697472d514f8b76d862460e7421e8617b15a2df217c6010000000863acacab6565006affffffff01156dbc03000000000952ac63516551ac6aac00000000", "6aabac", 0, 1310125891, "270445ab77258ced2e5e22a6d0d8c36ac7c30fff9beefa4b3e981867b03fa0ad"], - ["4ecc6bde030ca0f83c0ed3d4b777f94c0c88708c6c933fe1df6874f296d425cac95355c23d0000000006ac6a51536a52f286a0969d6170e20f2a8000193807f5bc556770e9d82341ef8e17b0035eace89c76edd50200000007ac65525100656affffffff5bade6e462fac1927f078d69d3a981f5b4c1e59311a38efcb9a910aa436afaa80000000007ac6a006352ab52ffffffff0331e58902000000000763ac53636352abb8b3ca000000000001637a1d26040000000009535263ac6a5352ab655ae34a39", "6a65ab", 2, 2142728517, "4a3415eb1677ae4e0c939644a4cfd5dc6299780b55cd0dc735967057b6b1526a"], - ["a59484b501eb50114be0fc79e72ab9bc9f4a5f7acdf274a56d6b68684eb68cf8b07ec5d1c2000000000765abab00ab00639e09aa940141e3530200000000046500ac6500000000", "00516565ab", 0, -1561622405, "d60bbadd2cc0674100baa08d0e0493ee4248f0304b3eb778da942041f503a896"], - ["53dc1a88046531c7b57a35f4d9adf101d068bf8d63fbbedaf4741dba8bc5e92c8725def571030000000453655251fcdf116a226b3ec240739c4c7493800e4edfe67275234e371a227721eac43d3d9ecaf1b50300000003ac0052ffffffff2c9279ffeea4718d167e9499bd067600715c14484e373ef93ae4a31d2f5671ab0000000009516553ac636a6a65001977752eeba95a8f16b88c571a459c2f2a204e23d48cc7090e4f4cc35846ca7fc0a455ce00000000055165ac0063188143f80205972902000000000765ac63ac516353c7b6a50000000000036a510000000000", "655351536a", 0, 103806788, "b276584d3514e5b4e058167c41dc02915b9d97f6795936a51f40e894ed8508bc"], - ["53f8959f01ddb36afdcd20167edcbb75a63d18654fdcf10bc0004c761ab450fe236d79cb2702000000065151650063653435003a033a5e34050000000009ac52516a630000516ab86db3030000000002006344ac090500000000046363ab00f3644537", "5263abab63ac656353", 0, -218513553, "f1f2a489682e42a6fc20025dfc89584d17f150b2d7ae3ddedd2bf43d5e24f37f"], - ["5a06cb4602dcfc85f49b8d14513f33c48f67146f2ee44959bbca092788e6823b2719f3160b0200000001ab3c013f2518035b9ea635f9a1c74ec1a3fb7496a160f46aae2e09bfc5cd5111a0f20969e003000000015158c89ab7049f20d6010000000008ac6a52abac53515349765e00000000000300ab638292630100000000045351ab0086da09010000000006656a6365525300000000", "526a63", 1, 1502936586, "bdfaff8a4e775379c5dc26e024968efa805f923de53fa8272dd53ec582afa0c5"], - ["ca9d84fa0129011e1bf27d7cb71819650b59fb292b053d625c6f02b0339249b498ff7fd4b601000000025352ffffffff032173a0040000000008525253abab5152639473bb030000000009005153526a53535151d085bd0000000000086a5365ab5165655300000000", "005152ac51", 0, 580353445, "c629d93b02037f40aa110e46d903edb34107f64806aa0c418d435926feef68b8"], - ["e3cdbfb4014d90ae6a4401e85f7ac717adc2c035858bf6ff48979dd399d155bce1f150daea0300000002ac51a67a0d39017f6c71040000000005535200535200000000", "", 0, -1899950911, "c1c7df8206e661d593f6455db1d61a364a249407f88e99ecad05346e495b38d7"], - ["b2b6b9ab0283d9d73eeae3d847f41439cd88279c166aa805e44f8243adeb3b09e584efb1df00000000026300ffffffff7dfe653bd67ca094f8dab51007c6adaced09de2af745e175b9714ca1f5c68d050000000003ac6500aa8e596903fd3f3204000000000553ac6a6a533a2e210500000000075253acabab526392d0ee020000000008520065635200ab5200000000", "65acacac65005365", 0, 28298553, "39c2aaa2496212b3ab120ab7d7f37c5e852bfe38d20f5226413a2268663eeae8"], - ["f30c5c3d01a6edb9e10fafaf7e85db14e7fec558b9dca4a80b05d7c3a2944d282c5018f4680200000003005263ffffffff04aac3530300000000026551bc2419010000000009005163acab6a5100658e7085050000000000c5e4ec050000000007656a6a635365ab2d8e8882", "abac53ab005251ac52", 0, -490287546, "877e347ec7487497769e2581142276d1a8d813b652e4483cf9cc993d16354417"], - ["4314339e01de40faabcb1b970245a7f19eedbc17c507dac86cf986c2973715035cf95736ae0200000007abababababab65bde67b900151510b04000000000853ac00655200535300000000", "52", 0, 399070095, "47585dc25469d04ff3a60939d0a03779e3e81a411bf0ca18b91bb925ebd30718"], - ["2d4cf4e9031b3e175b2ff18cd933151379d9cfac4713d8bd0e63b70bd4a92277aa7af901ab000000000565515353abffffffff557666c7f3be9cdecdad44c3df206eb63a2da4ed1f159d21193882a9f0340081020000000963ab53ab5252ac63abffffffff8a8c897bdb87e93886aad5ded9d82a13101d5476554386373646ca5e23612e450300000009006a526552abab6a635ac03fc00198bb02040000000009525100526a6563636a1d052834", "ab52ac00acac6a", 0, -1469882480, "09ed6563a454814ab7e3b4c28d56d8751162b77df1825b37ba66c6147750b2a3"], - ["f063171b03e1830fdc1d685a30a377537363ccafdc68b42bf2e3acb908dac61ee24b37595c020000000765ac5100ab6aacf447bc8e037b89d6cadd62d960cc442d5ced901d188867b5122b42a862929ce45e7b628d010000000253aba009a1ba42b00f1490b0b857052820976c675f335491cda838fb7934d5eea0257684a2a202000000001e83cf2401a7f777030000000008ab6553526a53526a00000000", "", 2, 1984790332, "c19caada8e71535e29a86fa29cfd9b74a0c7412003fc722a121005e461e01636"], - ["cf7bdc250249e22cbe23baf6b648328d31773ea0e771b3b76a48b4748d7fbd390e88a004d30000000003ac536a4ab8cce0e097136c90b2037f231b7fde2063017facd40ed4e5896da7ad00e9c71dd70ae600000000096a0063516352525365ffffffff01b71e3e00000000000300536a00000000", "", 1, 546970113, "6a815ba155270af102322c882f26d22da11c5330a751f520807936b320b9af5d"], - ["ac7a125a0269d35f5dbdab9948c48674616e7507413cd10e1acebeaf85b369cd8c88301b7c030000000963656aac6a530053abffffffffed94c39a582e1a46ce4c6bffda2ccdb16cda485f3a0d94b06206066da12aecfe010000000752abab63536363ef71dcfb02ee07fa0400000000016a6908c802000000000751656a6551abac688c2c2d", "6a6351526551", 0, 858400684, "552ff97d7924f51cda6d1b94be53483153ef725cc0a3a107adbef220c753f9a6"], - ["3a1f454a03a4591e46cf1f7605a3a130b631bf4dfd81bd2443dc4fac1e0a224e74112884fe0000000005516aac6a53a87e78b55548601ffc941f91d75eab263aa79cd498c88c37fdf275a64feff89fc1710efe03000000016a39d7ef6f2a52c00378b4f8f8301853b61c54792c0f1c4e2cd18a08cb97a7668caa008d970200000002656affffffff017642b20100000000096a63535253abac6a6528271998", "51", 2, 1459585400, "e9a7f21fc2d38be7be47095fbc8f1bf8923660aa4d71df6d797ae0ba5ca4d5b0"], - ["f59366cc0114c2a18e6bd1347ed9470f2522284e9e835dd5c5f7ef243639ebea95d9b232b6020000000153474b62eb045c00170500000000096352ab516352ab5200038a520400000000086aab5253656a63005b968904000000000963536353ac0053635387106002000000000000000000", "ab52526300ab51", 0, 1834116153, "cdf51f6e3a9dc2be5a59ea4c00f5aac1e1426a5202c325e6cf2567d07d8d8de4"], - ["6269e0fa0173e76e89657ca495913f1b86af5b8f1c1586bcd6c960aede9bc759718dfd5044000000000352ac530e2c7bd90219849b000000000007ab00ab6a53006319f281000000000007ab00515165ac5200000000", "6a", 0, -2039568300, "62094f98234a05bf1b9c7078c5275ed085656856fb5bdfd1b48090e86b53dd85"], - ["eb2bc00604815b9ced1c604960d54beea4a3a74b5c0035d4a8b6bfec5d0c9108f143c0e99a0000000000ffffffff22645b6e8da5f11d90e5130fd0a0df8cf79829b2647957471d881c2372c527d8010000000263acffffffff1179dbaf17404109f706ae27ad7ba61e860346f63f0c81cb235d2b05d14f2c1003000000025300264cb23aaffdc4d6fa8ec0bb94eff3a2e50a83418a8e9473a16aaa4ef8b855625ed77ef40100000003ac51acf8414ad404dd328901000000000652526500006ab6261c000000000002526a72a4c9020000000006ac526500656586d2e7000000000006656aac00ac5279cd8908", "51", 1, -399279379, "d37532e7b2b8e7db5c7c534197600397ebcc15a750e3af07a3e2d2e4f84b024f"], - ["dc9fe6a8038b84209bbdae5d848e8c040433237f415437592907aa798bf30d9dbbddf0ff85010000000153ffffffff23269a7ea29fcf788db483b8d4c4b35669e582608644259e950ce152b0fa6e050000000003acababffffffff65de94857897ae9ea3aa0b938ba6e5adf374d48469922d2b36dbb83d3b8c8261010000000452ac5200ffffffff02856e9b0300000000026a51980c8e02000000000365ab63d2648db4", "00ab0051ac526565", 2, 1562581941, "5cef9d8e18a2d5a70448f17b465d411a19dab78f0ddf1672ffd518b188f52433"], - ["eba8b0de04ac276293c272d0d3636e81400b1aaa60db5f11561480592f99e6f6fa13ad387002000000070053acab536563bebb23d66fd17d98271b182019864a90e60a54f5a615e40b643a54f8408fa8512cfac927030000000963ac6a6aabac65ababffffffff890a72192bc01255058314f376bab1dc72b5fea104c154a15d6faee75dfa5dba020000000100592b3559b0085387ac7575c05b29b1f35d9a2c26a0c27903cc0f43e7e6e37d5a60d8305a030000000252abffffffff0126518f05000000000000000000", "005300635252635351", 1, 664344756, "26dc2cba4bd5334e5c0b3a520b44cc1640c6b923d10e576062f1197171724097"], - ["91bd040802c92f6fe97411b159df2cd60fb9571764b001f31657f2d616964637605875c2a901000000055263006a65ffffffff3651df372645f50cf4e32fdf6e61c766e912e16335db2b40c5d52fe89eefe7cd00000000040065ab65ffffffff03ca8625030000000009ab51ac63530052ab52c6bf14020000000006ab00ab52005167d270000000000007ab53525351636a00000000", "5151ab63005252ac", 1, 1983087664, "3e5aa0200248d8d86ede3b315ca1b857018b89184a4bd023bd88ab12e499f6e1"], - ["185cda1a01ecf7a8a8c28466725b60431545fc7a3367ab68e34d486e8ea85ee3128e0d8384000000000465ac63abec88b7bb031c56eb04000000000965636a51005252006a7c78d5040000000007acac63abac51ac3024a40500000000086300526a51abac51464c0e8c", "0065535265515352", 0, 1594558917, "b5280b9610c0625a65b36a8c2402a95019a7bbb9dd3de77f7c3cb1d82c3263ba"], - ["a9531f07034091668b65fea8b1a79700d586ac9e2f42ca0455a26abe41f9e1805d009a0f5702000000096365516365ac5263ab3619bac643a9e28ee47855118cf80c3a74531cdf198835d206d0fe41804e325a4f9f105e03000000016a58e3ab0d46375d98994daf0fa7c600d2bb4669e726fca0e3a3f21ea0d9e777396740328f0100000008636a5363ab526a538d3ea7700304cb66030000000007515163ab52ab510184030500000000085353636565ac0051d9cff402000000000751ab52ab5352abf0e36254", "ab5353ac5365acab", 2, 1633101834, "04c9ef72f33668ca449c0415becf62cc0b8e0c75f9c8813852d42a58acf107c8"], - ["6b5ecc7903fe0ba37ea551df92a59e12bad0a3065846ba69179a8f4a741a2b4fcf679aac810200000004535263529a3d343293b99ab425e7ef8529549d84f480bcd92472bab972ea380a302128ae14dfcd0200000000025163ffffffff24636e4545cab9bf87009119b7fc3ec4d5ee9e206b90f35d1df8a563b6cd097a010000000852abac53005153abc64467860406e832020000000009526300006a53ac6352ac1395010000000002ac53b117f300000000000863655351acab00651edf02030000000008ab51ac6353535252628ef71d", "ab63ab6a52ac526563", 2, -1559697626, "8f07ece7d65e509f1e0780584ef8d271c1c61a13b10335d5faafc7afc8b5b8ec"], - ["92c9fb780138abc472e589d5b59489303f234acc838ca66ffcdf0164517a8679bb622a4267020000000153468e373d04de03fa020000000009ac006a5265ab5163006af649050000000007515153006a00658ceb59030000000001ac36afa0020000000009ab53006351ab51000000000000", "6a", 0, 2059357502, "e2358dfb51831ee81d7b0bc602a65287d6cd2dbfacf55106e2bf597e22a4b573"], - ["6f62138301436f33a00b84a26a0457ccbfc0f82403288b9cbae39986b34357cb2ff9b889b302000000045253655335a7ff6701bac9960400000000086552ab656352635200000000", "6aac51", 0, 1444414211, "502a2435fd02898d2ff3ab08a3c19078414b32ec9b73d64a944834efc9dae10c"], - ["9981143a040a88c2484ac3abe053849e72d04862120f424f373753161997dd40505dcb4783030000000700536365536565a2e10da3f4b1c1ad049d97b33f0ae0ea48c5d7c30cc8810e144ad93be97789706a5ead180100000003636a00ffffffffbdcbac84c4bcc87f03d0ad83fbe13b369d7e42ddb3aecf40870a37e814ad8bb5010000000963536a5100636a53abffffffff883609905a80e34202101544f69b58a0b4576fb7391e12a769f890eef90ffb72020000000651656352526affffffff04243660000000000004ab5352534a9ce001000000000863656363ab6a53652df19d030000000003ac65acedc51700000000000000000000", "ac6300acac", 2, 293672388, "7ba99b289c04718a7283f150d831175ed6303081e191a0608ea81f78926c5bdf"], - ["a2bb630b01989bc5d643f2da4fb9b55c0cdf846ba06d1dbe372893024dbbe5b9b8a1900af802000000055265ac63aca7a68d2f04916c74010000000003abac007077f0040000000001007d4127010000000005ac516aac000f31e8030000000000571079c9", "65ab0051ac", 0, -1103627693, "92d53b4390262e6b288e8a32e0cfc36cd5adfdfabfe96c7bfd4a19d65e233761"], - ["49f7d0b6037bba276e910ad3cd74966c7b3bc197ffbcfefd6108d6587006947e97789835ea0300000008526a52006a650053ffffffff8d7b6c07cd10f4c4010eac7946f61aff7fb5f3920bdf3467e939e58a1d4100ab03000000076aac63ac535351ffffffff8f48c3ba2d52ad67fbcdc90d8778f3c8a3894e3c35b9730562d7176b81af23c80100000003ab5265ffffffff0301e3ef0300000000046a525353e899ac0500000000075153ab6a65abac259bea0400000000007b739972", "53516aacac6aac", 1, 955403557, "5d366a7f4346ae18aeb7c9fc4dab5af71173184aa20ed22fcb4ea8511ad25449"], - ["58a4fed801fbd8d92db9dfcb2e26b6ff10b120204243fee954d7dcb3b4b9b53380e7bb8fb60100000003006351ffffffff02a0795b050000000006536351ac6aac2718d00200000000075151acabac515354d21ba1", "005363515351", 0, -1322430665, "bbee941bbad950424bf40e3623457db47f60ed29deaa43c99dec702317cb3326"], - ["32765a0b02e455793d9ce530e9f6a44bcbc612e893a875b5da61d822dc56d8245166c398b403000000085353abac6300006a6bdee2a78d0d0b6a5ea666eed70b9bfea99d1d612ba3878f615c4da10d4a521cba27155002000000035363abffffffff043cd42401000000000551656a53653685320100000000030000511881bc0500000000065165abab636a20169f010000000007acab656aac63acdb0706a8", "65ac53ab53", 0, 1936499176, "5c5a9c3a5de7dc7a82bc171c9d3505913b8bcc450bc8b2d11772c1a1d781210b"], - ["17fad0d303da0d764fedf9f2887a91ea625331b28704940f41e39adf3903d8e75683ef6d46020000000151ffffffffff376eea4e880bcf0f03d33999104aafed2b3daf4907950bb06496af6b51720a020000000900636a63525253525196521684f3b08497bad2c660b00b43a6a517edc58217876eb5e478aa3b5fda0f29ee1bea00000000046aacab6affffffff03dde8e2050000000007ac5365ac51516a14772e000000000005630000abacbbb360010000000006ab5251ab656a50f180f0", "0053", 0, -1043701251, "a3bdf8771c8990971bff9b4e7d59b7829b067ed0b8d3ac1ec203429811384668"], - ["236c32850300045e292c84ede2b9ab5733ba08315a2bb09ab234c4b4e8894808edbdac0d3b020000000653635363abacffffffffd3f696bb31fdd18a72f3fc2bb9ae54b416a253fc37c1a0f0180b52d35bad49440100000004650053abffffffffa85c75a2406d82a93b12e555b66641c1896a4e83ae41ef1038218311e38ace060200000006abab006a51ac104b5e6701e2842c04000000000800630051ac0000ab00000000", "ab63ac6a516a", 1, -1709887524, "8c29ea8ef60c5a927fccdba8ea385db6b6b84d98e891db45f5d4ee3148d3f5a7"], - ["b78d5fd601345f3100af494cdf447e7d4076179f940035b0ebe8962587d4d0c9c6c9fc34ee0300000003516a6affffffff03dc5c890100000000085353ac53ac6a52534ac941040000000007ac63656a51ab51d4266b0100000000036aacac70731f2d", "005351ab0053", 0, -1789071265, "d5f1c1cb35956a5711d67bfb4cedbc67e77c089b912d688ad440ff735adb390d"], - ["5a2257df03554550b774e677f348939b37f8e765a212e566ce6b60b4ea8fed4c9504b7f7d1000000000653655265ab5258b67bb931df15b041177cf9599b0604160b79e30f3d7a594e7826bae2c29700f6d8f8f40300000005515300ac6a159cf8808a41f504eb5c2e0e8a9279f3801a5b5d7bc6a70515fbf1c5edc875bb4c9ffac500000000050063510052ffffffff0422a90105000000000965006a650000516a006417d2020000000006526363ab00524d969d0100000000035153acc4f077040000000005ac5200636500000000", "6a52", 1, -1482463464, "37b794b05d0687c9b93d5917ab068f6b2f0e38406ff04e7154d104fc1fb14cdc"], - ["e0032ad601269154b3fa72d3888a3151da0aed32fb2e1a15b3ae7bee57c3ddcffff76a1321010000000100110d93ae03f5bd080100000000075263516a6551002871e60100000000046a005252eaa753040000000004ab6aab526e325c71", "630052", 0, -1857873018, "ea117348e94de86381bb8ad1c7f93b8c623f0272104341701bb54e6cb433596c"], - ["014b2a5304d46764817aca180dca50f5ab25f2e0d5749f21bb74a2f8bf6b8b7b3fa8189cb7030000000965ac5165ab6a51ac6360ecd91e8abc7e700a4c36c1a708a494c94bb20cbe695c408543146566ab22be43beae9103000000045163ab00ffffffffffa48066012829629a9ec06ccd4905a05df0e2b745b966f6a269c9c8e13451fc00000000026565ffffffffc40ccadc21e65fe8a4b1e072f4994738ccaf4881ae6fede2a2844d7da4d199ab02000000065152ab536aabffffffff01b6e054030000000004515352ab3e063432", "", 0, 1056459916, "a7aff48f3b8aeb7a4bfe2e6017c80a84168487a69b69e46681e0d0d8e63a84b6"], - ["c4ef04c103c5dde65410fced19bf6a569549ecf01ceb0db4867db11f2a3a3eef0320c9e8e001000000085100536a53516aabffffffff2a0354fa5bd96f1e28835ffe30f52e19bd7d5150c687d255021a6bec03cf4cfd03000000056a006300514900c5b01d3d4ae1b97370ff1155b9dd0510e198d266c356d6168109c54c11b4c283dca00300000002ababffffffff02e19e3003000000000451655351fa5c0003000000000163ef1fc64b", "51636a51ab630065", 1, -1754709177, "0a281172d306b6a32e166e6fb2a2cc52c505c5d60ea448e9ba7029aa0a2211e1"], - ["29083fe00398bd2bb76ceb178f22c51b49b5c029336a51357442ed1bac35b67e1ae6fdf13100000000066a6500acab51ffffffffe4ca45c9dc84fd2c9c47c7281575c2ba4bf33b0b45c7eca8a2a483f9e3ebe4b3010000000200abffffffffdf47ad2b8c263fafb1e3908158b18146357c3a6e0832f718cd464518a219d18303000000096352ac656351ac0052daddfb3b0231c36f00000000000400526a5275c7e0020000000001ab00000000", "acab536aac52", 2, 300802386, "82ebc07b16cff0077e9c1a279373185b3494e39d08fd3194aae6a4a019377509"], - ["1201ab5d04f89f07c0077abd009762e59db4bb0d86048383ba9e1dad2c9c2ad96ef660e6d00200000007ab6a65ac5200652466fa5143ab13d55886b6cdc3d0f226f47ec1c3020c1c6e32602cd3428aceab544ef43e00000000086a6a6a526a6a5263ffffffffd5be0b0be13ab75001243749c839d779716f46687e2e9978bd6c9e2fe457ee48020000000365abab1e1bac0f72005cf638f71a3df2e3bbc0fa35bf00f32d9c7dc9c39a5e8909f7d53170c8ae0200000008ab6a51516363516affffffff02f0a6210500000000036300ac867356010000000009acab65ac6353536a659356d367", "ac53535252", 0, 917543338, "418acc156c2bc76a5d7baa58db29f1b4cf6c266c9222ed167ef5b4d47f0e0f41"], - ["344fa11e01c19c4dd232c77742f0dd0aeb3695f18f76da627628741d0ee362b0ea1fb3a2180200000007635151005100529bab25af01937c1f0500000000055153ab53656e7630af", "6351005163ac51", 0, -629732125, "228ca52a0a376fe0527a61cfa8da6d7baf87486bba92d49dfd3899cac8a1034f"], - ["b2fda1950191358a2b855f5626a0ebc830ab625bea7480f09f9cd3b388102e35c0f303124c030000000565ac65ab53ffffffff03f9c5ec04000000000765ab51516551650e2b9f0500000000045365525284e8f6040000000001ac00000000", "ac51655253", 0, 1433027632, "d2fa7e13c34cecda5105156bd2424c9b84ee0a07162642b0706f83243ff811a8"], - ["a4a6bbd201aa5d882957ac94f2c74d4747ae32d69fdc765add4acc2b68abd1bdb8ee333d6e0300000008516a6552515152abffffffff02c353cb040000000007ac6351ab51536588bd320500000000066552525253ac00000000", "", 0, 1702060459, "499da7d74032388f820645191ac3c8d20f9dba8e8ded7fa3a5401ea2942392a1"], - ["584e8d6c035a6b2f9dac2791b980a485994bf38e876d9dda9b77ad156eee02fa39e19224a60300000003ab636529db326cc8686a339b79ab6b6e82794a18e0aabc19d9ad13f31dee9d7aad8eff38288588020000000452530052ffffffff09a41f07755c16cea1c7e193c765807d18cadddca6ec1c2ed7f5dcdca99e90e80000000001acffffffff01cba62305000000000451ac63acccdf1f67", "ab536a6363", 2, -27393461, "1125645b49202dca2df2d76dae51877387903a096a9d3f66b5ac80e042c95788"], - ["83a583d204d926f2ee587a83dd526cf1e25a44bb668e45370798f91a2907d184f7cddcbbc7030000000700ab6565536a539f71d3776300dffdfa0cdd1c3784c9a1f773e34041ca400193612341a9c42df64e3f550e01000000050052515251ffffffff52dab2034ab0648553a1bb8fc4e924b2c89ed97c18dfc8a63e248b454035564b01000000015139ab54708c7d4d2c2886290f08a5221cf69592a810fd1979d7b63d35c271961e710424fd0300000005ac65ac5251ffffffff01168f7c030000000000a85e5fb0", "6a536353656a00", 0, 179595345, "5350a31ac954a0b49931239d0ecafbf34d035a537fd0c545816b8fdc355e9961"], - ["ffd35d51042f290108fcb6ea49a560ba0a6560f9181da7453a55dfdbdfe672dc800b39e7320200000006630065516a65f2166db2e3827f44457e86dddfd27a8af3a19074e216348daa0204717d61825f198ec0030100000006ab51abab00abffffffffdf41807adb7dff7db9f14d95fd6dc4e65f8402c002d009a3f1ddedf6f4895fc8030000000500ab006a65a5a848345052f860620abd5fcd074195548ce3bd0839fa9ad8642ed80627bf43a0d47dbd010000000765ab006a656a53b38cdd6502a186da05000000000765ab00ab006a53527c0e0100000000085365ab51acacac52534bd1b1", "6a635253ac0000", 0, 1095082149, "3c05473a816621a3613f0e903faa1a1e44891dd40862b029e41fc520776350fa"], - ["6c9a4b98013c8f1cae1b1df9f0f2de518d0c50206a0ab871603ac682155504c0e0ce946f460100000000ffffffff04e9266305000000000753535100ac6aacded39e04000000000365ac6ab93ccd010000000002515397bf3d050000000003ab636300000000", "63520052ac656353", 0, -352633155, "936eff8cdfd771be24124da87c7b24feb48da7cbc2c25fb5ba13d1a23255d902"], - ["e01dc7f0021dc07928906b2946ca3e9ac95f14ad4026887101e2d722c26982c27dc2b59fdb0000000005ac5200516ab5a31ffadcbe74957a5a3f97d7f1475cc6423fc6dbc4f96471bd44c70cc736e7dec0d1ea020000000951636a526a52abac53ffffffff04bc2edd05000000000252ab528c7b02000000000952ac51526500525353324820040000000002005380c713000000000009630065ab00ac525252451bbb48", "53ab65ac", 0, -552384418, "69c0b30f4c630a6c878fde6ea6b74dae94f4eb3bcfbde2dc3649e1a9ada00757"], - ["009046a1023f266d0113556d604931374d7932b4d6a7952d08fbd9c9b87cbd83f4f4c178b4030000000452ac526346e73b438c4516c60edd5488023131f07acb5f9ea1540b3e84de92f4e3c432289781ea4900000000046500655357dfd6da02baef910100000000026a007d101703000000000800516500abacac5100000000", "6aab6553ac", 0, -802456605, "f8757fbb4448ca34e0cd41b997685b37238d331e70316659a9cc9087d116169d"], - ["df76ec0801a3fcf3d18862c5f686b878266dd5083f16cf655facab888b4cb3123b3ce5db7e01000000010010e7ac6a0233c83803000000000365ac51faf14a040000000004ac51655100000000", "6353acab", 0, 15705861, "e7d873aa079a19ec712b269a37d2670f60d8cb334c4f97e2e3fd10eeb8ee5f5e"], - ["828fd3e0031084051ccef9cfdd97fae4d9cc50c0dae36bd22a3ff332881f17e9756c3e288e0200000004ab535363961a2ccccaf0218ec6a16ba0c1d8b5e93cfd025c95b6e72bc629ec0a3f47da7a4c396dad01000000025353ffffffff19ad28747fb32b4caf7b5dbd9b2da5a264bedb6c86d3a4805cd294ae53a86ac40200000009ab53535351ab6551abffffffff04a41650030000000005656aab6aab8331a304000000000700516365ac516a0d2a47010000000007abac516353abacdebc19040000000006ab5300636a6300000000", "51ab52ab53ac52", 0, 1866105980, "311094b4d73e31aefc77e97859ef07ca2f07a7b7e4d7def80c69d3f5d58527e5"], - ["c4b80f850323022205b3e1582f1ed097911a81be593471a8dce93d5c3a7bded92ef6c7c1260100000002006affffffff70294d62f37c3da7c5eae5d67dce6e1b28fedd7316d03f4f48e1829f78a88ae801000000096a5200530000516351f6b7b544f7c39189d3a2106ca58ce4130605328ce7795204be592a90acd81bef517d6f170200000000ffffffff012ab8080000000000075100006365006335454c1e", "53ac6a536aacac", 0, -1124103895, "06277201504e6bf8b8c94136fad81b6e3dadacb9d4a2c21a8e10017bfa929e0e"], - ["8ab69ed50351b47b6e04ac05e12320984a63801716739ed7a940b3429c9c9fed44d3398ad40300000006536a516a52638171ef3a46a2adb8025a4884b453889bc457d63499971307a7e834b0e76eec69c943038a0300000000ffffffff566bb96f94904ed8d43d9d44a4a6301073cef2c011bf5a12a89bedbaa03e4724030000000265acb606affd01edea38050000000008515252516aacac6300000000", "65000000006365ac53", 0, -1338942849, "7912573937824058103cb921a59a7f910a854bf2682f4116a393a2045045a8c3"], - ["2484991e047f1cf3cfe38eab071f915fe86ebd45d111463b315217bf9481daf0e0d10902a402000000006e71a424eb1347ffa638363604c0d5eccbc90447ff371e000bf52fc743ec832851bb564a0100000001abffffffffef7d014fad3ae7927948edbbb3afe247c1bcbe7c4c8f5d6cf97c799696412612020000000851536a5353006a001dfee0d7a0dd46ada63b925709e141863f7338f34f7aebde85d39268ae21b77c3068c01d0000000008535151ab00636563ffffffff018478070200000000095200635365ac52ab5341b08cd3", "", 3, 265623923, "24cb420a53b4f8bb477f7cbb293caabfd2fc47cc400ce37dbbab07f92d3a9575"], - ["54839ef9026f65db30fc9cfcb71f5f84d7bb3c48731ab9d63351a1b3c7bc1e7da22bbd508e0300000000442ad138f170e446d427d1f64040016032f36d8325c3b2f7a4078766bdd8fb106e52e8d20000000003656500ffffffff02219aa101000000000851ababac52ab00659646bd02000000000552acacabac24c394a5", "ac", 0, 906807497, "69264faadcd1a581f7000570a239a0a26b82f2ad40374c5b9c1f58730514de96"], - ["5036d7080434eb4eef93efda86b9131b0b4c6a0c421e1e5feb099a28ff9dd8477728639f77030000000951516aab535152ab5391429be9cce85d9f3d358c5605cf8c3666f034af42740e94d495e28b9aaa1001ba0c87580300000008006552ab00ab006affffffffd838978e10c0c78f1cd0a0830d6815f38cdcc631408649c32a25170099669daa0000000002acab8984227e804ad268b5b367285edcdf102d382d027789250a2c0641892b480c21bf84e3fb0100000000b518041e023d8653010000000001004040fb0100000000080051ac5200636a6300000000", "52ac", 0, 366357656, "bd0e88829afa6bdc1e192bb8b2d9d14db69298a4d81d464cbd34df0302c634c6"], - ["9ad5ccf503fa4facf6a27b538bc910cce83c118d6dfd82f3fb1b8ae364a1aff4dcefabd38f03000000096365655263ac655300807c48130c5937190a996105a69a8eba585e0bd32fadfc57d24029cbed6446d30ebc1f100100000004000053650f0ccfca1356768df7f9210cbf078a53c72e0712736d9a7a238e0115faac0ca383f219d0010000000600ab536552002799982b0221b8280000000000000c41320000000000086552ac6365636a6595f233a3", "6a5152", 2, 553208588, "f99c29a79f1d73d2a69c59abbb5798e987639e36d4c44125d8dc78a94ddcfb13"], - ["669538a204047214ce058aed6a07ca5ad4866c821c41ac1642c7d63ed0054f84677077a84f030000000853abacab6a655353ffffffff70c2a071c115282924e3cb678b13800c1d29b6a028b3c989a598c491bc7c76c5030000000752ac52ac5163ac80420e8a6e43d39af0163271580df6b936237f15de998e9589ec39fe717553d415ac02a4030000000463635153184ad8a5a4e69a8969f71288c331aff3c2b7d1b677d2ebafad47234840454b624bf7ac1d03000000056a63abab63df38c24a02fbc63a040000000002ab535ec3dc050000000002536500000000", "635153", 3, -190399351, "9615541884dfb1feeb08073a6a6aa73ef694bc5076e52187fdf4138a369f94d9"], - ["a7f139e502af5894be88158853b7cbea49ba08417fbbca876ca6614b5a41432be34499987b000000000765635165abac63ffffffff8b8d70e96c7f54eb70da0229b548ced438e1ca2ba5ddd648a027f72277ee1efc0100000001abffffffff044f2c4204000000000165e93f550100000000050000526a6a94550304000000000365536aadc21c0300000000016300000000", "6aacac6363ab5265ac", 1, 2143189425, "6e3f97955490d93d6a107c18d7fe402f1cada79993bb0ff0d096357261b3a724"], - ["3b94438f0366f9f53579a9989b86a95d134256ce271da63ca7cd16f7dd5e4bffa17d35133f010000000100ffffffff1aaad0c721e06ec00d07e61a84fb6dc840b9a968002ce7e142f943f06fd143a10100000008535151ac51ab0053b68b8e9c672daf66041332163e04db3f6048534bd718e1940b3fc3811c4eef5b7a56888b01000000001d58e38c012e38e700000000000852ab53ac6365536a00000000", "ab655352", 1, -935223304, "b3b336de141d4f071313a2207b2a0c7cf54a070dd8d234a511b7f1d13e23b0c4"], - ["e5dca8a20456de0a67e185fa6ea94085ceae478d2c15c73cb931a500db3a1b6735dd1649ec0200000005ab536aabab32d11bbdcb81361202681df06a6b824b12b5cb40bb1a672cf9af8f2a836e4d95b7839327030000000951005365ab65abacabb345085932939eef0c724adef8a57f9e1bf5813852d957c039b6a12d9c2f201ea520fb030000000009ac5352005165acac6a5efc6072f1a421dc7dc714fc6368f6d763a5d76d0278b95fc0503b9268ccfadb48213a2500000000026a53ffffffff039ee1c4020000000009ac5353ab6353535163184018000000000005655265526a9a4a8a050000000001ac00000000", "65ab53ab6a00ab6553", 2, 1902561212, "7928ae8e86c0b0cad1b2c120ea313087437974382ee6d46443ca5ac3f5878b88"], - ["972128b904e7b673517e96e98d80c0c8ceceae76e2f5c126d63da77ffd7893fb53308bb2da0300000006ac6552ab52acffffffff4cac767c797d297c079a93d06dc8569f016b4bf7a7d79b605c526e1d36a40e2202000000095365ab636aac6a6a6a69928d2eddc836133a690cfb72ec2d3115bf50fb3b0d10708fa5d2ebb09b4810c426a1db01000000060052526300001e8e89585da7e77b2dd2e30625887f0660accdf29e53a614d23cf698e6fc8ab03310e87700000000076a520051acac6555231ddb0330ec2d03000000000200abfaf457040000000004ab6a6352bdc42400000000000153d6dd2f04", "", 0, 209234698, "4a92fec1eb03f5bd754ee9bfd70707dc4420cc13737374f4675f48529be518e4"], - ["1fb4085b022c6cfb848f8af7ba3ba8d21bd23ffa9f0bfd181cb68bcaaf2074e66d4974a31602000000090000006a6a6500acab6c12c07d9f3dbd2d93295c3a49e3757119767097e7fd5371f7d1ba9ba32f1a67a5a426f00000000000ffffffff018fd2fc04000000000363ac5100000000", "65ab006a6aab526a", 0, 1431502299, "8b7dd0ff12ca0d8f4dbf9abf0abba00e897c2f6fd3b92c79f5f6a534e0b33b32"], - ["5374f0c603d727f63006078bd6c3dce48bd5d0a4b6ea00a47e5832292d86af258ea0825c260000000009655353636352526a6af2221067297d42a9f8933dfe07f61a574048ff9d3a44a3535cd8eb7de79fb7c45b6f47320200000003ac006affffffff153d917c447d367e75693c5591e0abf4c94bbdd88a98ab8ad7f75bfe69a08c470200000005ac65516365ffffffff037b5b7b000000000001515dc4d904000000000004bb26010000000004536a6aac00000000", "516552516352ac", 2, 328538756, "8bb7a0129eaf4b8fc23e911c531b9b7637a21ab11a246352c6c053ff6e93fcb6"], - ["c441132102cc82101b6f31c1025066ab089f28108c95f18fa67db179610247086350c163bd010000000651525263ab00ffffffff9b8d56b1f16746f075249b215bdb3516cbbe190fef6292c75b1ad8a8988897c3000000000751ab6553abab00ffffffff02f9078b000000000009ab0053ac51ac00ab51c0422105000000000651006563525200000000", "ac51", 0, -197051790, "55acd8293ed0be6792150a3d7ced6c5ccd153ca7daf09cee035c1b0dac92bb96"], - ["ab82ad3b04545bd86b3bb937eb1af304d3ef1a6d1343ed809b4346cafb79b7297c09e1648202000000086351ac5200535353ffffffff95d32795bbaaf5977a81c2128a9ec0b3c7551b9b1c3d952876fcb423b2dfb9e80000000005515363acac47a7d050ec1a603627ce6cd606b3af314fa7964abcc579d92e19c7aba00cf6c3090d6d4601000000056a516551633e794768bfe39277ebc0db18b5afb5f0c8117dde9b4dfd5697e9027210eca76a9be20d63000000000700520063ab6aacffffffff01ec2ddc050000000008ac52ac65ac65ac5100000000", "536300abab", 1, -2070209841, "b362da5634f20be7267de78b545d81773d711b82fe9310f23cd0414a8280801d"], - ["8bff9d170419fa6d556c65fa227a185fe066efc1decf8a1c490bc5cbb9f742d68da2ab7f320100000007ab000053525365a7a43a80ab9593b9e8b6130a7849603b14b5c9397a190008d89d362250c3a2257504eb810200000007acabacac00ab51ee141be418f003e75b127fd3883dbf4e8c3f6cd05ca4afcaac52edd25dd3027ae70a62a00000000008ac52526a5200536affffffffb8058f4e1d7f220a1d1fa17e96d81dfb9a304a2de4e004250c9a576963a586ae0300000005abacac5363b9bc856c039c01d804000000000951656aac53005365acb0724e00000000000565abab63acea7c7a0000000000036a00ac00000000", "6565", 1, -1349282084, "2b822737c2affeefae13451d7c9db22ff98e06490005aba57013f6b9bbc97250"], - ["0e1633b4041c50f656e882a53fde964e7f0c853b0ada0964fc89ae124a2b7ffc5bc97ea6230100000006ac6aacacabacffffffff2e35f4dfcad2d53ea1c8ada8041d13ea6c65880860d96a14835b025f76b1fbd9000000000351515121270867ef6bf63a91adbaf790a43465c61a096acc5a776b8e5215d4e5cd1492e611f761000000000600ac6aab5265ffffffff63b5fc39bcac83ca80ac36124abafc5caee608f9f63a12479b68473bd4bae769000000000965ac52acac5263acabffffffff0163153e020000000008ab005165ab65515300000000", "6a6aac00", 0, -968477862, "20732d5073805419f275c53784e78db45e53332ee618a9fcf60a3417a6e2ca69"], - ["2b052c24022369e956a8d318e38780ef73b487ba6a8f674a56bdb80a9a63634c6110fb5154010000000251acffffffff48fe138fb7fdaa014d67044bc05940f4127e70c113c6744fbd13f8d51d45143e01000000005710db3804e01aa9030000000008acac6a516a5152abfd55aa01000000000751ab510000ac636d6026010000000000b97da9000000000000fddf3b53", "006552", 0, 595461670, "685d67d84755906d67a007a7d4fa311519467b9bdc6a351913246a41e082a29f"], - ["073bc856015245f03b2ea2da62ccedc44ecb99e4250c7042f596bcb23b294c9dc92cfceb6b02000000095163abab52abab636afe292fb303b7c3f001000000000352636af3c49502000000000400ac6a535851850100000000066aac6553ab6500000000", "ab6aab53006aab52", 0, 247114317, "123916c6485cf23bfea95654a8815fbf04ce4d21a3b7f862805c241472906658"], - ["7888b71403f6d522e414d4ca2e12786247acf3e78f1918f6d727d081a79813d129ee8befce0100000009ab516a6353ab6365abffffffff4a882791bf6400fda7a8209fb2c83c6eef51831bdf0f5dacde648859090797ec030000000153ffffffffbb08957d59fa15303b681bad19ccf670d7d913697a2f4f51584bf85fcf91f1f30200000008526565ac52ac63acffffffff0227c0e8050000000001ac361dc801000000000800515165ab00ab0000000000", "656a", 2, 1869281295, "f43378a0b7822ad672773944884e866d7a46579ee34f9afc17b20afc1f6cf197"], - ["cc4dda57047bd0ca6806243a6a4b108f7ced43d8042a1acaa28083c9160911cf47eab910c40200000007526a0000ab6a63e4154e581fcf52567836c9a455e8b41b162a78c85906ccc1c2b2b300b4c69caaaa2ba0230300000008ab5152ac5100ab65ffffffff69696b523ed4bd41ecd4d65b4af73c9cf77edf0e066138712a8e60a04614ea1c0300000004ab6a000016c9045c7df7836e05ac4b2e397e2dd72a5708f4a8bf6d2bc36adc5af3cacefcf074b8b403000000065352ac5252acffffffff01d7e380050000000000cf4e699a", "525163656351", 1, -776533694, "ff18c5bffd086e00917c2234f880034d24e7ea2d1e1933a28973d134ca9e35d2"], - ["b7877f82019c832707a60cf14fba44cfa254d787501fdd676bd58c744f6e951dbba0b3b77f0200000009ac515263ac53525300a5a36e500148f89c0500000000085265ac6a6a65acab00000000", "6563", 0, -1785108415, "cb6e4322955af12eb29613c70e1a00ddbb559c887ba844df0bcdebed736dffbd"], - ["aeb14046045a28cc59f244c2347134d3434faaf980961019a084f7547218785a2bd03916f3000000000165f852e6104304955bda5fa0b75826ee176211acc4a78209816bbb4419feff984377b2352200000000003a94a5032df1e0d60390715b4b188c330e4bb7b995f07cdef11ced9d17ee0f60bb7ffc8e0100000002516513e343a5c1dc1c80cd4561e9dddad22391a2dbf9c8d2b6048e519343ca1925a9c6f0800a020000000665516365ac513180144a0290db27000000000006ab655151ab5138b187010000000007ab5363abac516a9e5cd98a", "53ac", 0, 478591320, "e8d89a302ae626898d4775d103867a8d9e81f4fd387af07212adab99946311ef"], - ["c9270fe004c7911b791a00999d108ce42f9f1b19ec59143f7b7b04a67400888808487bd59103000000066a0052ac6565b905e76687be2dd7723b22c5e8269bc0f2000a332a289cfc40bc0d617cfe3214a61a85a30300000007ac63ac00635251560871209f21eb0268f175b8b4a06edd0b04162a974cf8b5dada43e499a1f22380d35ede0300000000792213fc58b6342cc8100079f9f5f046fb89f2d92cf0a2cb6d07304d32d9da858757037c0000000008abab51636565516affffffff02c72a8b03000000000452acac530dfb9f05000000000096f94307", "5253ab536351", 3, 543688436, "0278adbcc476d135493ae9bdcd7b3c2002df17f2d81c17d631c50c73e546c264"], - ["57a5a04c0278c8c8e243d2df4bb716f81d41ac41e2df153e7096f5682380c4f441888d9d260300000004ab63ab6afdbe4203525dff42a7b1e628fe22bccaa5edbb34d8ab02faff198e085580ea5fcdb0c61b0000000002ac6affffffff03375e6c05000000000663ab516a6a513cb6260400000000007ca328020000000006516a636a52ab94701cc7", "0053ac5152", 0, -550925626, "b7ca991ab2e20d0158168df2d3dd842a57ab4a3b67cca8f45b07c4b7d1d11126"], - ["072b75a504ad2550c2e9a02614bc9b2a2f50b5b553af7b87c0ef07c64ddc8d8934c96d216401000000036aabaca1387242a5bcd21099b016ad6045bed7dce603472757d9822cc5f602caa4ae20414d378b02000000026a63e4ac816734acdc969538d6f70b8ab43a2589f55e0177a4dc471bdd0eb61d59f0f46f6bb801000000065351526aab52d9f2977be76a492c3a7617b7a16dc29a3b0a7618f328c2f7d4fd9bafe760dc427a5066ef000000000465635165ffffffff02c5793600000000000165296820050000000002ac6300000000", "53006a6aac0052ab", 2, 66084636, "437e89bb6f70fd2ed2feef33350b6f6483b891305e574da03e580b3efd81ae13"], - ["7e27c42d0279c1a05eeb9b9faedcc9be0cab6303bde351a19e5cbb26dd0d594b9d74f40d2b020000000200518c8689a08a01e862d5c4dcb294a2331912ff11c13785be7dce3092f154a005624970f84e0200000000500cf5a601e74c1f0000000000076aab52636a6a5200000000", "6500006a5351", 0, 449533391, "535ba819d74770d4d613ee19369001576f98837e18e1777b8246238ff2381dd0"], - ["11414de403d7f6c0135a9df01cb108c1359b8d4e105be50a3dcba5e6be595c8817217490b20000000003005263ffffffff0c6becb9c3ad301c8dcd92f5cbc07c8bed7973573806d1489316fc77a829da03030000000700005253535352ffffffff2346d74ff9e12e5111aa8779a2025981850d4bf788a48de72baa2e321e4bc9ca00000000056352acab63cc585b64045e0385050000000009ab5253ab516aacac00efa9cf0300000000065200635151acbe80330400000000070063635100ab000be159050000000007525300655300ac00000000", "51656a0051ab", 0, 683137826, "d4737f3b58f3e5081b35f36f91acde89dda00a6a09d447e516b523e7a99264d5"], - ["1c6b5f29033fc139338658237a42456123727c8430019ca25bd71c6168a9e35a2bf54538d80100000008536aac52ac6a6a52ffffffff3fb36be74036ff0c940a0247c451d923c65f826793d0ac2bb3f01ecbec8033290100000007ab000051ab6363ffffffff5d9eca0cf711685105bd060bf7a67321eaef95367acffab36ce8dedddd632ee2000000000652ac6a63ac517167319e032d26de040000000003516363dc38fb010000000000b37b00000000000006ab520051ac534baba51f", "636300ababac6563", 0, -2049129935, "3282a2ec6b8c87c9303e6060c17b421687db1bd35fbfa0345b48f2490e15b6cc"], - ["978b9dad0214cfc7ce392d74d9dcc507350dc34007d72e4125861c63071ebf2cc0a6fd4856020000000651ac6a6aab52ffffffff47f20734e3370e733f87a6edab95a7a268ae44db7a8974e255614836b22938720200000008635265ac51516553ffffffff0137b2560100000000035252ac2f3363e9", "006aab6352", 1, 2014249801, "55611a5fb1483bce4c14c33ed15198130e788b72cd8929b2ceef4dd68b1806bf"], - ["442f1c8703ab39876153c241ab3d69f432ba6db4732bea5002be45c8ca10c3a2356fe0e9590300000001accb2b679cab7c58a660cb6d4b3452c21cd7251a1b77a52c300f655f5baeb6fa27ff5b79880300000003005252e5ccf55712bc8ed6179f6726f8a78f3018a7a0391594b7e286ef5ee99efdcde302a102cc0200000009006352526351536a63ffffffff04443f63030000000006536a63ab63651405fb020000000009ac535351525300ab6a9f172b000000000004ab535263ad5c50050000000008656a65ab630000ac00000000", "65636aab006552", 2, 2125838294, "b3ff10f21e71ebc8b25fe058c4074c42f08617e0dcc03f9e75d20539d3242644"], - ["2b3470dd028083910117f86614cdcfb459ee56d876572510be4df24c72e8f58c70d5f5948b03000000066aab65635265da2c3aac9d42c9baafd4b655c2f3efc181784d8cba5418e053482132ee798408ba43ccf90300000000ffffffff047dda4703000000000765516a52ac53009384a603000000000651636a63ab6a8cf57a03000000000352ab6a8cf6a405000000000952636a6a6565525100661e09cb", "ac520063ac6a6a52", 1, 1405647183, "9b360c3310d55c845ef537125662b9fe56840c72136891274e9fedfef56f9bb5"], - ["d74282b501be95d3c19a5d9da3d49c8a88a7049c573f3788f2c42fc6fa594f59715560b9b00000000009655353525265ac52ac9772121f028f8303030000000003510065af5f47040000000007ac516a6551630000000000", "acab53006363ac", 0, -1113209770, "2f482b97178f17286f693796a756f4d7bd2dfcdbecd4142528eec1c7a3e5101a"], - ["3a5644a9010f199f253f858d65782d3caec0ac64c3262b56893022b9796086275c9d4d097b02000000009d168f7603a67b30050000000007ac51536a0053acd9d88a050000000007655363535263ab3cf1f403000000000352ac6a00000000", "005363536565acac6a", 0, -1383947195, "6390ab0963cf611e0cea35a71dc958b494b084e6fd71d22217fdc5524787ade6"], - ["67b3cc43049d13007485a8133b90d94648bcf30e83ba174f5486ab42c9107c69c5530c5e1f0000000003005100ffffffff9870ebb65c14263282ea8d41e4f4f40df16b565c2cf86f1d22a9494cad03a67f01000000016a5a121bee5e359da548e808ae1ad6dfccae7c67cbb8898d811638a1f455a671e822f228ef030000000151c1fcc9f9825f27c0dde27ea709da62a80a2ff9f6b1b86a5874c50d6c37d39ae31fb6c8a0030000000163553b8786020ca74a00000000000665635153ab5275c0760000000000020052e659b05d", "636aab6a6a", 0, -342795451, "f77c3322c97b1681c17b1eba461fa27b07e04c1534e8aaf735a49cab72c7c2e2"], - ["bda1ff6804a3c228b7a12799a4c20917301dd501c67847d35da497533a606701ad31bf9d5e0300000001ac16a6c5d03cf516cd7364e4cbbf5aeccd62f8fd03cb6675883a0636a7daeb650423cb1291010000000500656553ac4a63c30b6a835606909c9efbae1b2597e9db020c5ecfc0642da6dc583fba4e84167539a8020000000865525353515200acffffffff990807720a5803c305b7da08a9f24b92abe343c42ac9e917a84e1f335aad785d00000000026a52ffffffff04981f20030000000001ab8c762200000000000253ab690b9605000000000151ce88b301000000000753526a6a51006500000000", "000052ac52530000", 1, -1809193140, "5299b0fb7fc16f40a5d6b337e71fcd1eb04d2600aefd22c06fe9c71fe0b0ba54"], - ["2ead28ff0243b3ab285e5d1067f0ec8724224402b21b9cef9be962a8b0d153d401be99bbee0000000004ac635153ffffffff6985987b7c1360c9fa8406dd6e0a61141709f0d5195f946da55ed83be4e3895301000000020053ffffffff016503d20500000000085251ac6a65656a6a00000000", "51abab", 1, 1723793403, "67483ee62516be17a2431a163e96fd88a08ff2ce8634a52e42c1bc04e30f3f8a"], - ["db4904e6026b6dd8d898f278c6428a176410d1ffbde75a4fa37cda12263108ccd4ca6137440100000007656a0000515263ffffffff1db7d5005c1c40da0ed17b74cf6b2a6ee2c33c9e0bacda76c0da2017dcac2fc70200000004abab6a53ffffffff0454cf2103000000000153463aef000000000009ab6a630065ab52636387e0ed050000000000e8d16f05000000000352ac63e4521b22", "", 1, 1027042424, "48315a95e49277ab6a2d561ee4626820b7bab919eea372b6bf4e9931ab221d04"], - ["dca31ad10461ead74751e83d9a81dcee08db778d3d79ad9a6d079cfdb93919ac1b0b61871102000000086500525365ab51ac7f7e9aed78e1ef8d213d40a1c50145403d196019985c837ffe83836222fe3e5955e177e70100000006525152525300ffffffff5e98482883cc08a6fe946f674cca479822f0576a43bf4113de9cbf414ca628060100000006ac53516a5253ffffffff07490b0b898198ec16c23b75d606e14fa16aa3107ef9818594f72d5776805ec502000000036a0052ffffffff01932a2803000000000865ab6551ac6a516a2687aa06", "635300ac", 2, -1880362326, "74d6a2fa7866fd8b74b2e34693e2d6fd690410384b7afdcd6461b1ae71d265ce"], - ["e14e1a9f0442ab44dfc5f6d945ad1ff8a376bc966aad5515421e96ddbe49e529614995cafc03000000055165515165fffffffff97582b8290e5a5cfeb2b0f018882dbe1b43f60b7f45e4dd21dbd3a8b0cfca3b0200000000daa267726fe075db282d694b9fee7d6216d17a8c1f00b2229085495c5dc5b260c8f8cd5d000000000363ac6affffffffaab083d22d0465471c896a438c6ac3abf4d383ae79420617a8e0ba8b9baa872b010000000963526563ac5363ababd948b5ce022113440200000000076a636552006a53229017040000000000e6f62ac8", "526353636a65", 3, -485265025, "1bc8ad76f9b7c366c5d052dc479d6a8a2015566d3a42e93ab12f727692c89d65"], - ["720d4693025ca3d347360e219e9bc746ef8f7bc88e8795162e5e2f0b0fc99dc17116fc937100000000046353520045cb1fd79824a100d30b6946eab9b219daea2b0cdca6c86367c0c36af98f19ac64f3575002000000008a1c881003ed16f3050000000008536a63630000abac45e0e704000000000151f6551a05000000000963536565515363abab00000000", "6553ab6a6a510000ab", 1, 1249091393, "a575fa4f59a8e90cd07de012c78fe8f981183bb170b9c50fcc292b8c164cbc3b"], - ["69df842a04c1410bfca10896467ce664cfa31c681a5dac10106b34d4b9d4d6d0dc1eac01c1000000000551536a5165269835ca4ad7268667b16d0a2df154ec81e304290d5ed69e0069b43f8c89e673328005e200000000076a5153006aacabffffffffc9314bd80b176488f3d634360fcba90c3a659e74a52e100ac91d3897072e3509010000000765abac51636363ffffffff0e0768b13f10f0fbd2fa3f68e4b4841809b3b5ba0e53987c3aaffcf09eee12bf0300000008ac535263526a53ac514f4c2402da8fab0400000000001ef15201000000000451526a52d0ec9aca", "525365ac52", 1, 313967049, "a72a760b361af41832d2c667c7488dc9702091918d11e344afc234a4aea3ec44"], - ["adf2340d03af5c589cb5d28c06635ac07dd0757b884d4777ba85a6a7c410408ad5efa8b19001000000045100ab00ffffffff808dc0231c96e6667c04786865727013922bcb7db20739b686f0c17f5ba70e8f0300000000fd2332a654b580881a5e2bfec8313f5aa878ae94312f37441bf2d226e7fc953dcf0c77ab000000000163aa73dc580412f8c2050000000005636aacac63da02d502000000000153e74b52020000000001536b293d030000000009636552ababacab526500000000", "000052ab52ababab", 0, -568651175, "2c45d021db545df7167ac03c9ee56473f2398d9b2b739cf3ff3e074501d324f8"], - ["e4fec9f10378a95199c1dd23c6228732c9de0d7997bf1c83918a5cfd36012476c0c3cba24002000000085165536500ac0000ad08ab93fb49d77d12a7ccdbb596bc5110876451b53a79fdce43104ff1c316ad63501de801000000046a6352ab76af9908463444aeecd32516a04dd5803e02680ed7f16307242a794024d93287595250f4000000000089807279041a82e603000000000200521429100200000000055253636a63f20b940400000000004049ed04000000000500ab5265ab43dfaf7d", "6563526aac", 2, -1923470368, "32f3c012eca9a823bebb9b282240aec40ca65df9f38da43b1dcfa0cac0c0df7e"], - ["4000d3600100b7a3ff5b41ec8d6ccdc8b2775ad034765bad505192f05d1f55d2bc39d0cbe10100000007ab5165ac6a5163ffffffff034949150100000000026a6a92c9f6000000000008ab6553ab6aab635200e697040000000007636a5353525365237ae7d2", "52000063", 0, -880046683, "c76146f68f43037289aaeb2bacf47408cddc0fb326b350eb4f5ef6f0f8564793"], - ["eabc0aa701fe489c0e4e6222d72b52f083166b49d63ad1410fb98caed027b6a71c02ab830c03000000075253ab63530065ffffffff01a5dc0b05000000000253533e820177", "", 0, 954499283, "1d849b92eedb9bf26bd4ced52ce9cb0595164295b0526842ab1096001fcd31b1"], - ["d48d55d304aad0139783b44789a771539d052db565379f668def5084daba0dfd348f7dcf6b00000000006826f59e5ffba0dd0ccbac89c1e2d69a346531d7f995dea2ca6d7e6d9225d81aec257c6003000000096a655200ac656552acffffffffa188ffbd5365cae844c8e0dea6213c4d1b2407274ae287b769ab0bf293e049eb0300000005ac6a6aab51ad1c407c5b116ca8f65ed496b476183f85f072c5f8a0193a4273e2015b1cc288bf03e9e2030000000252abffffffff04076f44040000000006655353abab53be6500050000000003ac65ac3c15040500000000095100ab536353516a52ed3aba04000000000900ac53ab53636aabac00000000", "5253526563acac", 2, -1506108646, "bbee17c8582514744bab5df50012c94b0db4aff5984d2e13a8d09421674404e2"], - ["9746f45b039bfe723258fdb6be77eb85917af808211eb9d43b15475ee0b01253d33fc3bfc502000000065163006a655312b12562dc9c54e11299210266428632a7d0ee31d04dfc7375dcad2da6e9c11947ced0e000000000009074095a5ac4df057554566dd04740c61490e1d3826000ad9d8f777a93373c8dddc4918a00000000025351ffffffff01287564030000000004636a00ab00000000", "52", 2, -1380411075, "84af1623366c4db68d81f452b86346832344734492b9c23fbb89015e516c60b2"], - ["8731b64903d735ba16da64af537eaf487b57d73977f390baac57c7b567cb2770dfa2ef65870100000001635aedd990c42645482340eacb0bfa4a0a9e888057389c728b5b6a8691cdeb1a6a67b45e140200000008ac53526a52516551ffffffff45c4f567c47b8d999916fd49642cbc5d10d43c304b99e32d044d35091679cb860100000003006a51ffffffff0176d6c200000000000000000000", "ab6a65ab53", 2, -1221546710, "ccfdba36d9445f4451fb7cbf0752cc89c23d4fc6fff0f3930d20e116f9db0b95"], - ["f5cfc52f016209ab1385e890c2865a74e93076595d1ca77cbe8fbf2022a2f2061a90fb0f3e010000000253acffffffff027de73f0200000000085252ac510052acac49cd6a020000000000e6c2cb56", "516552535300ab63", 0, -1195302704, "5532717402a2da01a1da912d824964024185ca7e8d4ad1748659dc393a14182b"], - ["df0a32ae01c4672fd1abd0b2623aae0a1a8256028df57e532f9a472d1a9ceb194267b6ee190200000009536a6a51516a525251b545f9e803469a2302000000000465526500810631040000000000441f5b050000000006530051006aaceb183c76", "536a635252ac6a", 0, 1601138113, "9a0435996cc58bdba09643927fe48c1fc908d491a050abbef8daec87f323c58f"], - ["d102d10c028b9c721abb259fe70bc68962f6cae384dabd77477c59cbeb1fb26266e091ba3e0100000002516affffffffe8d7305a74f43e30c772109849f4cd6fb867c7216e6d92e27605e69a0818899700000000026a65ecf82d58027db4620500000000026552c28ed3010000000001ab00000000", "0051ab515365", 1, -131815460, "1d1757a782cb5860302128bcbe9398243124a2f82d671a113f74f8e582c7a182"], - ["cef930ed01c36fcb1d62ceef931bef57098f27a77a4299904cc0cbb44504802d535fb11557010000000153ffffffff02c8657403000000000863ac655253520063d593380400000000046aab536a00000000", "656a0051ab6365ab53", 0, -351313308, "e69dba3efb5c02af2ab1087d0a990678784671f4744d01ca097d71aec14dd8e9"], - ["b1c0b71804dff30812b92eefb533ac77c4b9fdb9ab2f77120a76128d7da43ad70c20bbfb990200000002536392693e6001bc59411aebf15a3dc62a6566ec71a302141b0c730a3ecc8de5d76538b30f55010000000665535252ac514b740c6271fb9fe69fdf82bf98b459a7faa8a3b62f3af34943ad55df4881e0d93d3ce0ac0200000000c4158866eb9fb73da252102d1e64a3ce611b52e873533be43e6883137d0aaa0f63966f060000000001abffffffff04a605b604000000000851006a656a630052f49a0300000000000252515a94e1050000000009abac65ab0052abab00fd8dd002000000000651535163526a2566852d", "ac5363", 0, -1718831517, "b0dc030661783dd9939e4bf1a6dfcba809da2017e1b315a6312e5942d714cf05"], - ["6a270ee404ebc8d137cfd4bb6b92aa3702213a3139a579c1fc6f56fbc7edd9574ef17b13f30100000009ab00ab656565ababacffffffffaa65b1ab6c6d87260d9e27a472edceb7dd212483e72d90f08857abf1dbfd46d10100000000fffffffff93c4c9c84c4dbbe8a912b99a2830cfe3401aebc919041de063d660e585fc9f002000000096aabacab52ac6a53acfa6dcef3f28355a8d98eee53839455445eeee83eecd2c854e784efa53cee699dbfecaebd0100000003ab6a51ffffffff04f7d71b050000000009ac6a536aac6a6365513c37650500000000065265abab6a53fa742002000000000039ed82030000000009516aac635165ab51ab2fdabd17", "ab535252526563", 1, -1326210506, "1dec0d5eb921bf5b2df39c8576e19c38d0c17254a4a0b78ac4b5422bcc426258"], - ["3657e4260304ccdc19936e47bdf058d36167ee3d4eb145c52b224eff04c9eb5d1b4e434dfc0000000001ab58aefe57707c66328d3cceef2e6f56ab6b7465e587410c5f73555a513ace2b232793a74400000000036a006522e69d3a785b61ad41a635d59b3a06b2780a92173f85f8ed428491d0aaa436619baa9c4501000000046351abab2609629902eb7793050000000000a1b967040000000003525353a34d6192", "516a", 0, -1761874713, "0a2ff41f6d155d8d0e37cd9438f3b270df9f9214cda8e95c76d5a239ca189df2"], - ["a0eb6dc402994e493c787b45d1f946d267b09c596c5edde043e620ce3d59e95b2b5b93d43002000000096a5252526aac63ab6555694287a279e29ee491c177a801cd685b8744a2eab83824255a3bcd08fc0e3ea13fb8820000000009abab6365ab52ab0063ffffffff029e424a040000000008acab53ab516a636a23830f0400000000016adf49c1f9", "ac0065ac6500005252", 1, 669294500, "e05e3d383631a7ed1b78210c13c2eb26564e5577db7ddfcea2583c7c014091d4"], - ["6e67c0d3027701ef71082204c85ed63c700ef1400c65efb62ce3580d187fb348376a23e9710200000001655b91369d3155ba916a0bc6fe4f5d94cad461d899bb8aaac3699a755838bfc229d6828920010000000765536353526a52ffffffff04c0c792000000000005650052535372f79e000000000001527fc0ee010000000005ac5300ab65d1b3e902000000000251aba942b278", "6a5151", 0, 1741407676, "e657e2c8ec4ebc769ddd3198a83267b47d4f2a419fc737e813812acefad92ff7"], - ["8f53639901f1d643e01fc631f632b7a16e831d846a0184cdcda289b8fa7767f0c292eb221a00000000046a53abacffffffff037a2daa01000000000553ac6a6a51eac349020000000005ac526552638421b3040000000007006a005100ac63048a1492", "ac65", 0, 1033685559, "da86c260d42a692358f46893d6f91563985d86eeb9ea9e21cd38c2d8ffcfcc4d"], - ["491f99cb01bdfba1aa235e5538dac081fae9ce55f9622de483afe7e65105c2b0db75d360d200000000045251636340b60f0f041421330300000000096351ac000051636553ce2822040000000005516a00ac5180c8e40300000000025100caa8570400000000020000cfdc8da6", "6a5100516aab655365", 0, -953727341, "397c68803b7ce953666830b0221a5e2bcf897aa2ded8e36a6b76c497dcb1a2e1"], - ["b3cad3a7041c2c17d90a2cd994f6c37307753fa3635e9ef05ab8b1ff121ca11239a0902e700300000009ab635300006aac5163ffffffffcec91722c7468156dce4664f3c783afef147f0e6f80739c83b5f09d5a09a57040200000004516a6552ffffffff969d1c6daf8ef53a70b7cdf1b4102fb3240055a8eaeaed2489617cd84cfd56cf020000000352ab53ffffffff46598b6579494a77b593681c33422a99559b9993d77ca2fa97833508b0c169f80200000009655300655365516351ffffffff04d7ddf800000000000853536a65ac6351ab09f3420300000000056aab65abac33589d04000000000952656a65655151acac944d6f0400000000006a8004ba", "005165", 1, 1035865506, "fe1dc9e8554deecf8f50c417c670b839cc9d650722ebaaf36572418756075d58"], - ["e1cfd73b0125add9e9d699f5a45dca458355af175a7bd4486ebef28f1928d87864384d02df02000000036a0051ffffffff0357df030100000000036a5365777e2d04000000000763ab6a00005265f434a601000000000351655100000000", "ab53ab", 0, -1936500914, "950f4b4f72ccdf8a6a0f381265d6c8842fdb7e8b3df3e9742905f643b2432b69"], - ["cf781855040a755f5ba85eef93837236b34a5d3daeb2dbbdcf58bb811828d806ed05754ab8010000000351ac53ffffffffda1e264727cf55c67f06ebcc56dfe7fa12ac2a994fecd0180ce09ee15c480f7d00000000096351516a51acac00ab53dd49ff9f334befd6d6f87f1a832cddfd826a90b78fd8cf19a52cb8287788af94e939d6020000000700525251ac526310d54a7e8900ed633f0f6f0841145aae7ee0cbbb1e2a0cae724ee4558dbabfdc58ba6855010000000552536a53abfd1b101102c51f910500000000096300656a525252656a300bee010000000009ac52005263635151abe19235c9", "53005365", 2, 1422854188, "d5981bd4467817c1330da72ddb8760d6c2556cd809264b2d85e6d274609fc3a3"], - ["fea256ce01272d125e577c0a09570a71366898280dda279b021000db1325f27edda41a53460100000002ab53c752c21c013c2b3a01000000000000000000", "65", 0, 1145543262, "076b9f844f6ae429de228a2c337c704df1652c292b6c6494882190638dad9efd"] -] diff --git a/test/data/tx_creation.json b/test/data/tx_creation.json deleted file mode 100644 index eb6bd30..0000000 --- a/test/data/tx_creation.json +++ /dev/null @@ -1,85 +0,0 @@ -[ - [ - "from", [{ - "address": "mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1", - "txId": "a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458", - "outputIndex": 0, - "script": "OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG", - "satoshis": 1020000 - }], - "to", ["mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc", 1010000], - "sign", ["cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY"], - "serialize", "01000000015884e5db9de218238671572340b207ee85b628074e7e467096c267266baf77a4000000006b4830450221009972100061da4a17a471ac1906c18bb5445c03da2a0be52c59aca6c58f1e342302202b7a19a22572cabb6e55c368ebdb5921541358fa969d5c76b5e0d6ad3f26a7d701210223078d2942df62c45621d209fab84ea9a7a23346201b7727b9b45a29c4e76f5effffffff0150690f00000000001976a9147821c0a3768aa9d1a37e16cf76002aef5373f1a888ac00000000" - ], - [ - "from", [{ - "txid": "e42447187db5a29d6db161661e4bc66d61c3e499690fe5ea47f87b79ca573986", - "vout": 1, - "address": "mgBCJAsvzgT2qNNeXsoECg2uPKrUsZ76up", - "scriptPubKey": "76a914073b7eae2823efa349e3b9155b8a735526463a0f88ac", - "amount": 0.01080000 - }], - "to", ["mn9new5vPYWuVN5m3gUBujfKh1uPQvR9mf", 500000], - "to", ["mw5ctwgEaNRbxkM4JhXH3rp5AyGvTWDZCD", 570000], - "sign", ["cSQUuwwJBAg6tYQhzqqLWW115D1s5KFZDyhCF2ffrnukZxMK6rNZ"], - "serialize", "0100000001863957ca797bf847eae50f6999e4c3616dc64b1e6661b16d9da2b57d184724e4010000006b483045022100855691c90510edf83ab632f0a0b17f5202d2cf7071050dcf0c2778325ed403cd022014ee7a4e787da8bc088d2ece43108a7b8d7112eba89876a27bb44195a0715a910121039dd446bbc85db6917f39c0b4c295b0f8cce76d1926fa76d7b84e3f7ff1c5eec5ffffffff0220a10700000000001976a91448c819246ae5645ceecd41fbe1aa6202a0a9b5ca88ac90b20800000000001976a914aab76ba4877d696590d94ea3e02948b55294815188ac00000000" - ], - [ - "from", [ - [{ - "txid": "a9db84566e0fc9351e86337d2828ab281b25ddc06fab798f6d4b5baef48c02b3", - "vout": 0, - "address": "mn9new5vPYWuVN5m3gUBujfKh1uPQvR9mf", - "account": "", - "scriptPubKey": "76a91448c819246ae5645ceecd41fbe1aa6202a0a9b5ca88ac", - "amount": 0.00500000, - "confirmations": 0 - }, { - "txid": "a9db84566e0fc9351e86337d2828ab281b25ddc06fab798f6d4b5baef48c02b3", - "vout": 1, - "address": "mw5ctwgEaNRbxkM4JhXH3rp5AyGvTWDZCD", - "account": "", - "scriptPubKey": "76a914aab76ba4877d696590d94ea3e02948b55294815188ac", - "amount": 0.00570000, - "confirmations": 0 - }] - ], - "to", ["mtymcCX5KixPjT1zxtg59qewBGWptj9etH", 1060000], - "sign", [ - ["cPGbA2C54ZZ1sw4dc2ckBE1WqkdrNSbEV8Tkjhi2p1J15oErdgP2", "cSpyve5bXAuyHrNeV9MjTdFz3HLw739yUjjUAUSMe3ppf2qzj2hw"] - ], - "serialize", "0100000002b3028cf4ae5b4b6d8f79ab6fc0dd251b28ab28287d33861e35c90f6e5684dba9000000006a4730440220635e95e1981bbb360feaf4c232f626a0af8eb5c043a99749a21b0e37fd0048fd02201c5db8a93f1f5c268be6167da7c92f5030481acf65bef750c81ec9907aba3b170121030253c73236acf5ea9085d408220141197f6094de07426bd0d32c7a543614fdd7ffffffffb3028cf4ae5b4b6d8f79ab6fc0dd251b28ab28287d33861e35c90f6e5684dba9010000006a4730440220319a0b5ee9c67ccb7de4222234f31059354be4f239c99ca24bff30adfec8e8ec02204ad4c6dedebb20d100f9484b9ea6c5ba36712e9da155c24509e793c02e4805fd012102977a001a0a7bbfd1f8a647c7d46e13e8f6920635b328390b43b3303977101149ffffffff01a02c1000000000001976a91493abf1e9e4a20c125b93f93ee39efc16b6e4bc4688ac00000000" - ], - [ - "from", [{ - "address": "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi", - "txid": "f50e13cecda9a438ebd7df213a2899e42b2461a18d4630ee773d26b4f2688bdc", - "vout": 1, - "scriptPubKey": "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac", - "amount": 0.01 - }], - "to", ["n3riXZowrjGnY74rx7Hdi9wCyvgyJC28zZ", 990000], - "sign", ["cPwWtDztEgRCMCU8pMQp4HgphvyadrAsYBrCjXUZuDSmnZkyoyNF"], - "serialize", "0100000001dc8b68f2b4263d77ee30468da161242be499283a21dfd7eb38a4a9cdce130ef5010000006a473044022012610834051e6af8594dd5d9c47123d6ce03537d321f9fe3f6ff244b23f47dd5022034901bb0d83688758a9248fdef48bd2000b55cf70111cbef8f206e72a31aaf61012103e26b47e7c0d8946954bf9dd4bc7f9e415437eb98271d05f69e78cef8fc6c9a54ffffffff01301b0f00000000001976a914f50f9826ef186074c6fe206cca6b71472ff07ba888ac00000000" - ], - [ - "from", [{ - "address":"38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z","txid":"073281b2cc94e879aaf30ea2e92947d9827b270015849d3a5b96a89ee15bfa66","vout":0,"ts":1418877950,"scriptPubKey":"a9144de752833233fe69a20064f29b2ca0f6399c8af387","amount":0.00318512,"confirmationsFromCache":false - }, ["03411e021210a933c247ea9c8dad4bbead281597d508ad84e899de13e4ce98b4ba", "03bda2c3cc11a391b36e3d695b03ab42b96fe04086b2349056108d858983e60dab", "03c16e6ecf4e02bf9db23d3247ab92db8881f0866133ffb530c3470f6d8dea7330"], 2], - "to", ["3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9", 300299], - "sign", [["L3y1PAXfjayeB3w6NP7qfNxPbuPpQFA6hd6gj4BUKa2xSdLwoVSZ", "L3a57fiNjqfbXBdYvvGYPQ1HiDX463mwA2xFGTYVkXYdooaz9Z2u"]], - "serialize", "010000000166fa5be19ea8965b3a9d841500277b82d94729e9a20ef3aa79e894ccb281320700000000fc0047304402202f66fcfc0d5bff109ec12327ca37e0bc7722d08da9538f12468994799534bed602203a0b374f3a6810b0ee26028c390e14f5b6bada8fa390f4364d70d04aee240d350147304402206757f710f25937cd846fd8c56687c463a4561e9e0421fc173c78eaf2de9b9a7d02204995db6b81513b67a42b09dabab6ed4cb90901c52f6f945b768827a9390bda60014c69522103411e021210a933c247ea9c8dad4bbead281597d508ad84e899de13e4ce98b4ba2103bda2c3cc11a391b36e3d695b03ab42b96fe04086b2349056108d858983e60dab2103c16e6ecf4e02bf9db23d3247ab92db8881f0866133ffb530c3470f6d8dea733053aeffffffff010b9504000000000017a9146c8d8b04c6a1e664b1ec20ec932760760c97688e8700000000" - ], - [ - "from", [{"address":"3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9","txid":"afbf98ca4a43db8915d75184b5204fbe71d916482adfe85cb0ed3635764fc220","vout":0,"ts":1418878108,"scriptPubKey":"a9146c8d8b04c6a1e664b1ec20ec932760760c97688e87","amount":0.00318512,"confirmationsFromCache":false}, ["020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2", "0271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b", "03a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd8"], 2 - ], - "from", [ - {"address":"3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9","txid":"dc2e197ab72f71912c39bc23a42d823a3aa8d469fe65eb591c086e60d14c64a0","vout":0,"ts":1418878014,"scriptPubKey":"a9146c8d8b04c6a1e664b1ec20ec932760760c97688e87","amount":0.00300299,"confirmationsFromCache":false}, ["020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2", "0271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b", "03a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd8"], 2], - "to", ["38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z", 150000], - "to", ["38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z", 160000], - "change", ["3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9"], - "sign", ["L2U9m5My3cdyN5qX1PH4B7XstGDZFWwyukdX8gj8vsJ3fkrqArQo"], - "sign", ["L4jFVcDaqZCkknP5KQWjCBgiLFxKxRxywNGTucm3jC3ozByZcbZv"], - "serialize", "010000000220c24f763536edb05ce8df2a4816d971be4f20b58451d71589db434aca98bfaf00000000fdfd0000473044022024b955f8bf6aaf0741da011e3214eaec7040cd12694303471cefc6ba0cc4ec290220124738015033a465636dec1524a6f956a229e69d31aef6c7a98b2a291f3cfc6701483045022100e6ae6c43240e8a11a6de2d034501c2a366c0ccdf069c7828de0791f05e68e787022028b80bd36c2b2ae63fe7afb491da6c0ce23fbbb982450962c817b20f0bb24075014c695221020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2210271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b2103a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd853aeffffffffa0644cd1606e081c59eb65fe69d4a83a3a822da423bc392c91712fb77a192edc00000000fc00483045022100ae7f136cf906dc37d34d5035b8d2001c6a783773b74507ba83080e73e903623f0220023baf7738395268f7097e5586130f682b911fd49b83b265f8fa481f2a6b1ee90146304302201d60f512a8b37663d85c123933053e0354f13d89daf699ca600defa03d4a1dab021f41042b6e4ba30311fc3a68c228c3725f3b0f05a4453ef19408e6a4ae30a2b0014c695221020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2210271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b2103a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd853aeffffffff03f04902000000000017a9144de752833233fe69a20064f29b2ca0f6399c8af387007102000000000017a9144de752833233fe69a20064f29b2ca0f6399c8af387ab2f03000000000017a9146c8d8b04c6a1e664b1ec20ec932760760c97688e8700000000" - ] -] diff --git a/test/docs.js b/test/docs.js deleted file mode 100644 index 5ef532f..0000000 --- a/test/docs.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var chai = require('chai'); -var should = chai.should(); - -var bitcore = require('..'); -var fs = require('fs'); - -describe('Documentation', function() { - - it('major and minor versions should match', function() { - var versionRE = /v[0-9]+\.[0-9]+/; - var docIndex = fs.readFileSync('./docs/index.md', 'ascii'); - var docVersion = docIndex.match(versionRE)[0]; - bitcore.version.indexOf(docVersion).should.equal(0); - }); -}); diff --git a/test/encoding/base58.js b/test/encoding/base58.js deleted file mode 100644 index fc0a7e8..0000000 --- a/test/encoding/base58.js +++ /dev/null @@ -1,123 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var buffer = require('buffer'); -var Base58 = bitcore.encoding.Base58; - -describe('Base58', function() { - var buf = new buffer.Buffer([0, 1, 2, 3, 253, 254, 255]); - var enc = '1W7N4RuG'; - - it('should make an instance with "new"', function() { - var b58 = new Base58(); - should.exist(b58); - }); - - it('validates characters with no false negatives', function() { - Base58.validCharacters( - '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' - ).should.equal(true); - }); - it('validates characters from buffer', function() { - Base58.validCharacters( - new buffer.Buffer('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz') - ).should.equal(true); - }); - - it('some characters are invalid (no false positives)', function() { - Base58.validCharacters('!@#%^$&*()\\').should.equal(false); - }); - - it('should make an instance without "new"', function() { - var b58 = Base58(); - should.exist(b58); - }); - - it('should allow this handy syntax', function() { - Base58(buf).toString().should.equal(enc); - Base58(enc).toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - describe('#set', function() { - - it('should set a blank buffer', function() { - Base58().set({ - buf: new buffer.Buffer([]) - }); - }); - - }); - - describe('@encode', function() { - - it('should encode the buffer accurately', function() { - Base58.encode(buf).should.equal(enc); - }); - - it('should throw an error when the Input is not a buffer', function() { - (function() { - Base58.encode('string'); - }).should.throw('Input should be a buffer'); - }); - - }); - - describe('@decode', function() { - - it('should decode this encoded value correctly', function() { - Base58.decode(enc).toString('hex').should.equal(buf.toString('hex')); - }); - - it('should throw an error when Input is not a string', function() { - (function() { - Base58.decode(5); - }).should.throw('Input should be a string'); - }); - - }); - - describe('#fromBuffer', function() { - - it('should not fail', function() { - should.exist(Base58().fromBuffer(buf)); - }); - - it('should set buffer', function() { - var b58 = Base58().fromBuffer(buf); - b58.buf.toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#fromString', function() { - - it('should convert this known string to a buffer', function() { - Base58().fromString(enc).toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#toBuffer', function() { - - it('should return the buffer', function() { - var b58 = Base58({ - buf: buf - }); - b58.buf.toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#toString', function() { - - it('should return the buffer', function() { - var b58 = Base58({ - buf: buf - }); - b58.toString().should.equal(enc); - }); - - }); - -}); diff --git a/test/encoding/base58check.js b/test/encoding/base58check.js deleted file mode 100644 index c2cc622..0000000 --- a/test/encoding/base58check.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var Base58Check = bitcore.encoding.Base58Check; -var Base58 = bitcore.encoding.Base58; - -describe('Base58Check', function() { - var buf = new Buffer([0, 1, 2, 3, 253, 254, 255]); - var enc = '14HV44ipwoaqfg'; - - it('should make an instance with "new"', function() { - var b58 = new Base58Check(); - should.exist(b58); - }); - - it('can validate a serialized string', function() { - var address = '3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy'; - Base58Check.validChecksum(address).should.equal(true); - address = address + 'a'; - Base58Check.validChecksum(address).should.equal(false); - }); - - it('should make an instance without "new"', function() { - var b58 = Base58Check(); - should.exist(b58); - }); - - it('should allow this handy syntax', function() { - Base58Check(buf).toString().should.equal(enc); - Base58Check(enc).toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - describe('#set', function() { - - it('should set a buf', function() { - should.exist(Base58Check().set({buf: buf}).buf); - }); - - }); - - describe('@encode', function() { - - it('should encode the buffer accurately', function() { - Base58Check.encode(buf).should.equal(enc); - }); - - it('should throw an error when the input is not a buffer', function() { - (function() { - Base58Check.encode('string'); - }).should.throw('Input must be a buffer'); - }); - - }); - - describe('@decode', function() { - - it('should decode this encoded value correctly', function() { - Base58Check.decode(enc).toString('hex').should.equal(buf.toString('hex')); - }); - - it('should throw an error when input is not a string', function() { - (function() { - Base58Check.decode(5); - }).should.throw('Input must be a string'); - }); - - it('should throw an error when input is too short', function() { - (function() { - Base58Check.decode(enc.slice(0, 1)); - }).should.throw('Input string too short'); - }); - - it('should throw an error when there is a checksum mismatch', function() { - var buf2 = Base58.decode(enc); - buf2[0] = buf2[0] + 1; - var enc2 = Base58.encode(buf2); - (function() { - Base58Check.decode(enc2); - }).should.throw('Checksum mismatch'); - }); - - }); - - describe('#fromBuffer', function() { - - it('should not fail', function() { - should.exist(Base58Check().fromBuffer(buf)); - }); - - it('should set buffer', function() { - var b58 = Base58Check().fromBuffer(buf); - b58.buf.toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#fromString', function() { - - it('should convert this known string to a buffer', function() { - Base58Check().fromString(enc).toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#toBuffer', function() { - - it('should return the buffer', function() { - var b58 = Base58Check({buf: buf}); - b58.buf.toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#toString', function() { - - it('should return the buffer', function() { - var b58 = Base58Check({buf: buf}); - b58.toString().should.equal(enc); - }); - - }); - -}); diff --git a/test/encoding/bufferreader.js b/test/encoding/bufferreader.js deleted file mode 100644 index 78e4c76..0000000 --- a/test/encoding/bufferreader.js +++ /dev/null @@ -1,360 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var BufferWriter = bitcore.encoding.BufferWriter; -var BufferReader = bitcore.encoding.BufferReader; -var BN = bitcore.crypto.BN; - -describe('BufferReader', function() { - - it('should make a new BufferReader', function() { - var br = new BufferReader(); - should.exist(br); - br = BufferReader(); - should.exist(br); - }); - - it('should create a new bufferreader with a buffer', function() { - var buf = new Buffer(0); - var br = new BufferReader(buf); - should.exist(br); - Buffer.isBuffer(br.buf).should.equal(true); - }); - it('should fail for invalid object', function() { - var fail = function() { - return new BufferReader(5); - }; - fail.should.throw('Unrecognized argument for BufferReader'); - }); - - describe('#set', function() { - - it('should set pos', function() { - should.exist(BufferReader().set({ - pos: 1 - }).pos); - }); - - }); - - describe('#eof', function() { - - it('should return true for a blank br', function() { - var br = new BufferReader(new Buffer([])); - br.finished().should.equal(true); - }); - - }); - - describe('read', function() { - - it('should return the same buffer', function() { - var buf = new Buffer([0]); - var br = new BufferReader(buf); - br.readAll().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should return a buffer of this length', function() { - var buf = new Buffer(10); - buf.fill(0); - var br = new BufferReader(buf); - var buf2 = br.read(2); - buf2.length.should.equal(2); - br.finished().should.equal(false); - br.pos.should.equal(2); - }); - - it('should work with 0 length', function() { - var buf = new Buffer(10); - buf.fill(1); - var br = new BufferReader(buf); - var buf2 = br.read(0); - buf2.length.should.equal(0); - br.finished().should.equal(false); - buf2.toString('hex').should.equal(''); - }); - - }); - - describe('readVarLengthBuffer', function() { - - it('returns correct buffer', function() { - var buf = new Buffer('73010000003766404f00000000b305434f00000000f203' + - '0000f1030000001027000048ee00000064000000004653656520626974636f696' + - 'e2e6f72672f666562323020696620796f7520686176652074726f75626c652063' + - '6f6e6e656374696e6720616674657220323020466562727561727900473045022' + - '1008389df45f0703f39ec8c1cc42c13810ffcae14995bb648340219e353b63b53' + - 'eb022009ec65e1c1aaeec1fd334c6b684bde2b3f573060d5b70c3a46723326e4e' + - '8a4f1', 'hex'); - var br = new BufferReader(buf); - var b1 = br.readVarLengthBuffer(); - b1.toString('hex').should.equal('010000003766404f00000000b305434f000' + - '00000f2030000f1030000001027000048ee000000640000000046536565206269' + - '74636f696e2e6f72672f666562323020696620796f7520686176652074726f756' + - '26c6520636f6e6e656374696e6720616674657220323020466562727561727900'); - var b2 = br.readVarLengthBuffer(); - b2.toString('hex').should.equal('30450221008389df45f0703f39ec8c1cc42' + - 'c13810ffcae14995bb648340219e353b63b53eb022009ec65e1c1aaeec1fd334c' + - '6b684bde2b3f573060d5b70c3a46723326e4e8a4f1'); - }); - it('fails on length too big', function() { - var buf = new Buffer('0a00', 'hex'); - var br = new BufferReader(buf); - br.readVarLengthBuffer.bind(br).should.throw('Invalid length while reading varlength buffer'); - }); - - }); - - describe('#readUInt8', function() { - - it('should return 1', function() { - var buf = new Buffer(1); - buf.writeUInt8(1, 0); - var br = new BufferReader(buf); - br.readUInt8().should.equal(1); - }); - - }); - - describe('#readUInt16BE', function() { - - it('should return 1', function() { - var buf = new Buffer(2); - buf.writeUInt16BE(1, 0); - var br = new BufferReader(buf); - br.readUInt16BE().should.equal(1); - }); - - }); - - describe('#readUInt16LE', function() { - - it('should return 1', function() { - var buf = new Buffer(2); - buf.writeUInt16LE(1, 0); - var br = new BufferReader(buf); - br.readUInt16LE().should.equal(1); - }); - - }); - - describe('#readUInt32BE', function() { - - it('should return 1', function() { - var buf = new Buffer(4); - buf.writeUInt32BE(1, 0); - var br = new BufferReader(buf); - br.readUInt32BE().should.equal(1); - }); - - }); - - describe('#readUInt32LE', function() { - - it('should return 1', function() { - var buf = new Buffer(4); - buf.writeUInt32LE(1, 0); - var br = new BufferReader(buf); - br.readUInt32LE().should.equal(1); - }); - - }); - - describe('#readUInt64BEBN', function() { - - it('should return 1', function() { - var buf = new Buffer(8); - buf.fill(0); - buf.writeUInt32BE(1, 4); - var br = new BufferReader(buf); - br.readUInt64BEBN().toNumber().should.equal(1); - }); - - it('should return 2^64', function() { - var buf = new Buffer(8); - buf.fill(0xff); - var br = new BufferReader(buf); - br.readUInt64BEBN().toNumber().should.equal(Math.pow(2, 64)); - }); - - }); - - describe('#readUInt64LEBN', function() { - - it('should return 1', function() { - var buf = new Buffer(8); - buf.fill(0); - buf.writeUInt32LE(1, 0); - var br = new BufferReader(buf); - br.readUInt64LEBN().toNumber().should.equal(1); - }); - - it('should return 10BTC', function() { - var tenbtc = 10 * 1e8; - var tenbtcBuffer = new Buffer('00ca9a3b00000000', 'hex'); - var br = new BufferReader(tenbtcBuffer); - br.readUInt64LEBN().toNumber().should.equal(tenbtc); - }); - - it('should return 2^30', function() { - var buf = new Buffer(8); - buf.fill(0); - buf.writeUInt32LE(Math.pow(2, 30), 0); - var br = new BufferReader(buf); - br.readUInt64LEBN().toNumber().should.equal(Math.pow(2, 30)); - }); - - it('should return 2^32 + 1', function() { - var num = Math.pow(2, 32) + 1; - var numBuffer = new Buffer('0100000001000000', 'hex'); - var br = new BufferReader(numBuffer); - br.readUInt64LEBN().toNumber().should.equal(num); - }); - - it('should return max number of satoshis', function() { - var maxSatoshis = 21000000 * 1e8; - var maxSatoshisBuffer = new Buffer('0040075af0750700', 'hex'); - var br = new BufferReader(maxSatoshisBuffer); - br.readUInt64LEBN().toNumber().should.equal(maxSatoshis); - }); - - it('should return 2^53 - 1', function() { - var maxSafe = Math.pow(2, 53) - 1; - var maxSafeBuffer = new Buffer('ffffffffffff1f00', 'hex'); - var br = new BufferReader(maxSafeBuffer); - br.readUInt64LEBN().toNumber().should.equal(maxSafe); - }); - - it('should return 2^53', function() { - var bn = new BN('20000000000000', 16); - var bnBuffer = new Buffer('0000000000002000', 'hex'); - var br = new BufferReader(bnBuffer); - var readbn = br.readUInt64LEBN(); - readbn.cmp(bn).should.equal(0); - }); - - it('should return 0', function() { - var buf = new Buffer(8); - buf.fill(0); - var br = new BufferReader(buf); - br.readUInt64LEBN().toNumber().should.equal(0); - }); - - it('should return 2^64', function() { - var buf = new Buffer(8); - buf.fill(0xff); - var br = new BufferReader(buf); - br.readUInt64LEBN().toNumber().should.equal(Math.pow(2, 64)); - }); - - }); - - describe('#readVarintBuf', function() { - - it('should read a 1 byte varint', function() { - var buf = new Buffer([50]); - var br = new BufferReader(buf); - br.readVarintBuf().length.should.equal(1); - }); - - it('should read a 3 byte varint', function() { - var buf = new Buffer([253, 253, 0]); - var br = new BufferReader(buf); - br.readVarintBuf().length.should.equal(3); - }); - - it('should read a 5 byte varint', function() { - var buf = new Buffer([254, 0, 0, 0, 0]); - buf.writeUInt32LE(50000, 1); - var br = new BufferReader(buf); - br.readVarintBuf().length.should.equal(5); - }); - - it('should read a 9 byte varint', function() { - var buf = BufferWriter().writeVarintBN(new BN(Math.pow(2, 54).toString())).concat(); - var br = new BufferReader(buf); - br.readVarintBuf().length.should.equal(9); - }); - - }); - - describe('#readVarintNum', function() { - - it('should read a 1 byte varint', function() { - var buf = new Buffer([50]); - var br = new BufferReader(buf); - br.readVarintNum().should.equal(50); - }); - - it('should read a 3 byte varint', function() { - var buf = new Buffer([253, 253, 0]); - var br = new BufferReader(buf); - br.readVarintNum().should.equal(253); - }); - - it('should read a 5 byte varint', function() { - var buf = new Buffer([254, 0, 0, 0, 0]); - buf.writeUInt32LE(50000, 1); - var br = new BufferReader(buf); - br.readVarintNum().should.equal(50000); - }); - - it('should throw an error on a 9 byte varint over the javascript uint precision limit', function() { - var buf = BufferWriter().writeVarintBN(new BN(Math.pow(2, 54).toString())).concat(); - var br = new BufferReader(buf); - (function() { - br.readVarintNum(); - }).should.throw('number too large to retain precision - use readVarintBN'); - }); - - it('should not throw an error on a 9 byte varint not over the javascript uint precision limit', function() { - var buf = BufferWriter().writeVarintBN(new BN(Math.pow(2, 53).toString())).concat(); - var br = new BufferReader(buf); - (function() { - br.readVarintNum(); - }).should.not.throw('number too large to retain precision - use readVarintBN'); - }); - - }); - - describe('#readVarintBN', function() { - - it('should read a 1 byte varint', function() { - var buf = new Buffer([50]); - var br = new BufferReader(buf); - br.readVarintBN().toNumber().should.equal(50); - }); - - it('should read a 3 byte varint', function() { - var buf = new Buffer([253, 253, 0]); - var br = new BufferReader(buf); - br.readVarintBN().toNumber().should.equal(253); - }); - - it('should read a 5 byte varint', function() { - var buf = new Buffer([254, 0, 0, 0, 0]); - buf.writeUInt32LE(50000, 1); - var br = new BufferReader(buf); - br.readVarintBN().toNumber().should.equal(50000); - }); - - it('should read a 9 byte varint', function() { - var buf = Buffer.concat([new Buffer([255]), new Buffer('ffffffffffffffff', 'hex')]); - var br = new BufferReader(buf); - br.readVarintBN().toNumber().should.equal(Math.pow(2, 64)); - }); - - }); - - describe('#reverse', function() { - - it('should reverse this [0, 1]', function() { - var buf = new Buffer([0, 1]); - var br = new BufferReader(buf); - br.reverse().readAll().toString('hex').should.equal('0100'); - }); - - }); - -}); diff --git a/test/encoding/bufferwriter.js b/test/encoding/bufferwriter.js deleted file mode 100644 index 85ed3c1..0000000 --- a/test/encoding/bufferwriter.js +++ /dev/null @@ -1,188 +0,0 @@ -'use strict'; - -var bitcore = require('../..'); -var should = require('chai').should(); -var BufferWriter = bitcore.encoding.BufferWriter; -var BufferReader = bitcore.encoding.BufferReader; -var BN = bitcore.crypto.BN; - -describe('BufferWriter', function() { - - it('should create a new buffer writer', function() { - var bw = new BufferWriter(); - should.exist(bw); - }); - - describe('#set', function() { - - it('set bufs', function() { - var buf1 = new Buffer([0]); - var buf2 = new Buffer([1]); - var bw = new BufferWriter().set({bufs: [buf1, buf2]}); - bw.concat().toString('hex').should.equal('0001'); - }); - - }); - - describe('#toBuffer', function() { - - it('should concat these two bufs', function() { - var buf1 = new Buffer([0]); - var buf2 = new Buffer([1]); - var bw = new BufferWriter({bufs: [buf1, buf2]}); - bw.toBuffer().toString('hex').should.equal('0001'); - }); - - }); - - describe('#concat', function() { - - it('should concat these two bufs', function() { - var buf1 = new Buffer([0]); - var buf2 = new Buffer([1]); - var bw = new BufferWriter({bufs: [buf1, buf2]}); - bw.concat().toString('hex').should.equal('0001'); - }); - - }); - - describe('#write', function() { - - it('should write a buffer', function() { - var buf = new Buffer([0]); - var bw = new BufferWriter(); - bw.write(buf); - bw.concat().toString('hex').should.equal('00'); - }); - - }); - - describe('#writeUInt8', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt8(1).concat().toString('hex').should.equal('01'); - }); - - }); - - describe('#writeUInt16BE', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt16BE(1).concat().toString('hex').should.equal('0001'); - }); - - }); - - describe('#writeUInt16LE', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt16LE(1).concat().toString('hex').should.equal('0100'); - }); - - }); - - describe('#writeUInt32BE', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt32BE(1).concat().toString('hex').should.equal('00000001'); - }); - - }); - - describe('#writeUInt32LE', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt32LE(1).concat().toString('hex').should.equal('01000000'); - }); - - }); - - describe('#writeUInt64BEBN', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt64BEBN(new BN(1)).concat().toString('hex').should.equal('0000000000000001'); - }); - - }); - - describe('#writeUInt64LEBN', function() { - - it('should write 1', function() { - var bw = new BufferWriter(); - bw.writeUInt64LEBN(new BN(1)).concat().toString('hex').should.equal('0100000000000000'); - }); - - }); - - describe('#writeVarint', function() { - - it('should write a 1 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintNum(1); - bw.concat().length.should.equal(1); - }); - - it('should write a 3 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintNum(1000); - bw.concat().length.should.equal(3); - }); - - it('should write a 5 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintNum(Math.pow(2, 16 + 1)); - bw.concat().length.should.equal(5); - }); - - it('should write a 9 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintNum(Math.pow(2, 32 + 1)); - bw.concat().length.should.equal(9); - }); - - it('should read back the same value it wrote for a 9 byte varint', function() { - var bw = new BufferWriter(); - var n = Math.pow(2, 53); - n.should.equal(n + 1); //javascript number precision limit - bw.writeVarintNum(n); - var br = new BufferReader({buf: bw.concat()}); - br.readVarintBN().toNumber().should.equal(n); - }); - - }); - - describe('#writeVarintBN', function() { - - it('should write a 1 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintBN(new BN(1)); - bw.concat().length.should.equal(1); - }); - - it('should write a 3 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintBN(new BN(1000)); - bw.concat().length.should.equal(3); - }); - - it('should write a 5 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintBN(new BN(Math.pow(2, 16 + 1))); - bw.concat().length.should.equal(5); - }); - - it('should write a 9 byte varint', function() { - var bw = new BufferWriter(); - bw.writeVarintBN(new BN(Math.pow(2, 32 + 1))); - bw.concat().length.should.equal(9); - }); - - }); - -}); diff --git a/test/encoding/varint.js b/test/encoding/varint.js deleted file mode 100644 index 47e722c..0000000 --- a/test/encoding/varint.js +++ /dev/null @@ -1,126 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../..'); -var BN = bitcore.crypto.BN; -var BufferReader = bitcore.encoding.BufferReader; -var BufferWriter = bitcore.encoding.BufferWriter; -var Varint = bitcore.encoding.Varint; - -describe('Varint', function() { - - it('should make a new varint', function() { - var buf = new Buffer('00', 'hex'); - var varint = new Varint(buf); - should.exist(varint); - varint.buf.toString('hex').should.equal('00'); - varint = Varint(buf); - should.exist(varint); - varint.buf.toString('hex').should.equal('00'); - - //various ways to use the constructor - Varint(Varint(0).toBuffer()).toNumber().should.equal(0); - Varint(0).toNumber().should.equal(0); - Varint(new BN(0)).toNumber().should.equal(0); - }); - - describe('#set', function() { - - it('should set a buffer', function() { - var buf = new Buffer('00', 'hex'); - var varint = Varint().set({buf: buf}); - varint.buf.toString('hex').should.equal('00'); - varint.set({}); - varint.buf.toString('hex').should.equal('00'); - }); - - }); - - describe('#fromString', function() { - - it('should set a buffer', function() { - var buf = BufferWriter().writeVarintNum(5).concat(); - var varint = Varint().fromString(buf.toString('hex')); - varint.toNumber().should.equal(5); - }); - - }); - - describe('#toString', function() { - - it('should return a buffer', function() { - var buf = BufferWriter().writeVarintNum(5).concat(); - var varint = Varint().fromString(buf.toString('hex')); - varint.toString().should.equal('05'); - }); - - }); - - describe('#fromBuffer', function() { - - it('should set a buffer', function() { - var buf = BufferWriter().writeVarintNum(5).concat(); - var varint = Varint().fromBuffer(buf); - varint.toNumber().should.equal(5); - }); - - }); - - describe('#fromBufferReader', function() { - - it('should set a buffer reader', function() { - var buf = BufferWriter().writeVarintNum(5).concat(); - var br = BufferReader(buf); - var varint = Varint().fromBufferReader(br); - varint.toNumber().should.equal(5); - }); - - }); - - describe('#fromBN', function() { - - it('should set a number', function() { - var varint = Varint().fromBN(new BN(5)); - varint.toNumber().should.equal(5); - }); - - }); - - describe('#fromNumber', function() { - - it('should set a number', function() { - var varint = Varint().fromNumber(5); - varint.toNumber().should.equal(5); - }); - - }); - - describe('#toBuffer', function() { - - it('should return a buffer', function() { - var buf = BufferWriter().writeVarintNum(5).concat(); - var varint = Varint(buf); - varint.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#toBN', function() { - - it('should return a buffer', function() { - var varint = Varint(5); - varint.toBN().toString().should.equal(new BN(5).toString()); - }); - - }); - - describe('#toNumber', function() { - - it('should return a buffer', function() { - var varint = Varint(5); - varint.toNumber().should.equal(5); - }); - - }); - -}); diff --git a/test/hdkeys.js b/test/hdkeys.js deleted file mode 100644 index ec680d7..0000000 --- a/test/hdkeys.js +++ /dev/null @@ -1,372 +0,0 @@ -'use strict'; - -// Relax some linter options: -// * quote marks so "m/0'/1/2'/" doesn't need to be scaped -// * too many tests, maxstatements -> 100 -// * store test vectors at the end, latedef: false -// * should call is never defined -/* jshint quotmark: false */ -/* jshint latedef: false */ -/* jshint maxstatements: 100 */ -/* jshint unused: false */ - -var _ = require('lodash'); -var should = require('chai').should(); -var expect = require('chai').expect; -var sinon = require('sinon'); -var bitcore = require('..'); -var Networks = bitcore.Networks; -var HDPrivateKey = bitcore.HDPrivateKey; -var HDPublicKey = bitcore.HDPublicKey; - -describe('HDKeys building with static methods', function() { - var classes = [HDPublicKey, HDPrivateKey]; - var clazz, index; - - _.each(classes, function(clazz) { - var expectStaticMethodFail = function(staticMethod, argument, message) { - expect(clazz[staticMethod].bind(null, argument)).to.throw(message); - }; - it(clazz.name + ' fromJSON checks that a valid JSON is provided', function() { - var errorMessage = 'Invalid Argument: No valid argument was provided'; - var method = 'fromObject'; - expectStaticMethodFail(method, undefined, errorMessage); - expectStaticMethodFail(method, null, errorMessage); - expectStaticMethodFail(method, 'invalid JSON', errorMessage); - expectStaticMethodFail(method, '{\'singlequotes\': true}', errorMessage); - }); - it(clazz.name + ' fromString checks that a string is provided', function() { - var errorMessage = 'No valid string was provided'; - var method = 'fromString'; - expectStaticMethodFail(method, undefined, errorMessage); - expectStaticMethodFail(method, null, errorMessage); - expectStaticMethodFail(method, {}, errorMessage); - }); - it(clazz.name + ' fromObject checks that an object is provided', function() { - var errorMessage = 'No valid argument was provided'; - var method = 'fromObject'; - expectStaticMethodFail(method, undefined, errorMessage); - expectStaticMethodFail(method, null, errorMessage); - expectStaticMethodFail(method, '', errorMessage); - }); - }); -}); - -describe('BIP32 compliance', function() { - - it('should initialize test vector 1 from the extended public key', function() { - new HDPublicKey(vector1_m_public).xpubkey.should.equal(vector1_m_public); - }); - - it('should initialize test vector 1 from the extended private key', function() { - new HDPrivateKey(vector1_m_private).xprivkey.should.equal(vector1_m_private); - }); - - it('can initialize a public key from an extended private key', function() { - new HDPublicKey(vector1_m_private).xpubkey.should.equal(vector1_m_public); - }); - - it('toString should be equal to the `xpubkey` member', function() { - var privateKey = new HDPrivateKey(vector1_m_private); - privateKey.toString().should.equal(privateKey.xprivkey); - }); - - it('toString should be equal to the `xpubkey` member', function() { - var publicKey = new HDPublicKey(vector1_m_public); - publicKey.toString().should.equal(publicKey.xpubkey); - }); - - it('should get the extended public key from the extended private key for test vector 1', function() { - HDPrivateKey(vector1_m_private).xpubkey.should.equal(vector1_m_public); - }); - - it("should get m/0' ext. private key from test vector 1", function() { - var privateKey = new HDPrivateKey(vector1_m_private).derive("m/0'"); - privateKey.xprivkey.should.equal(vector1_m0h_private); - }); - - it("should get m/0' ext. public key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'") - .xpubkey.should.equal(vector1_m0h_public); - }); - - it("should get m/0'/1 ext. private key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1") - .xprivkey.should.equal(vector1_m0h1_private); - }); - - it("should get m/0'/1 ext. public key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1") - .xpubkey.should.equal(vector1_m0h1_public); - }); - - it("should get m/0'/1 ext. public key from m/0' public key from test vector 1", function() { - var derivedPublic = HDPrivateKey(vector1_m_private).derive("m/0'").hdPublicKey.derive("m/1"); - derivedPublic.xpubkey.should.equal(vector1_m0h1_public); - }); - - it("should get m/0'/1/2' ext. private key from test vector 1", function() { - var privateKey = new HDPrivateKey(vector1_m_private); - var derived = privateKey.derive("m/0'/1/2'"); - derived.xprivkey.should.equal(vector1_m0h12h_private); - }); - - it("should get m/0'/1/2' ext. public key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1/2'") - .xpubkey.should.equal(vector1_m0h12h_public); - }); - - it("should get m/0'/1/2'/2 ext. private key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1/2'/2") - .xprivkey.should.equal(vector1_m0h12h2_private); - }); - - it("should get m/0'/1/2'/2 ext. public key from m/0'/1/2' public key from test vector 1", function() { - var derived = HDPrivateKey(vector1_m_private).derive("m/0'/1/2'").hdPublicKey; - derived.derive("m/2").xpubkey.should.equal(vector1_m0h12h2_public); - }); - - it("should get m/0'/1/2h/2 ext. public key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1/2'/2") - .xpubkey.should.equal(vector1_m0h12h2_public); - }); - - it("should get m/0'/1/2h/2/1000000000 ext. private key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1/2'/2/1000000000") - .xprivkey.should.equal(vector1_m0h12h21000000000_private); - }); - - it("should get m/0'/1/2h/2/1000000000 ext. public key from test vector 1", function() { - HDPrivateKey(vector1_m_private).derive("m/0'/1/2'/2/1000000000") - .xpubkey.should.equal(vector1_m0h12h21000000000_public); - }); - - it("should get m/0'/1/2'/2/1000000000 ext. public key from m/0'/1/2'/2 public key from test vector 1", function() { - var derived = HDPrivateKey(vector1_m_private).derive("m/0'/1/2'/2").hdPublicKey; - derived.derive("m/1000000000").xpubkey.should.equal(vector1_m0h12h21000000000_public); - }); - - it('should initialize test vector 2 from the extended public key', function() { - HDPublicKey(vector2_m_public).xpubkey.should.equal(vector2_m_public); - }); - - it('should initialize test vector 2 from the extended private key', function() { - HDPrivateKey(vector2_m_private).xprivkey.should.equal(vector2_m_private); - }); - - it('should get the extended public key from the extended private key for test vector 2', function() { - HDPrivateKey(vector2_m_private).xpubkey.should.equal(vector2_m_public); - }); - - it("should get m/0 ext. private key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive(0).xprivkey.should.equal(vector2_m0_private); - }); - - it("should get m/0 ext. public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive(0).xpubkey.should.equal(vector2_m0_public); - }); - - it("should get m/0 ext. public key from m public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).hdPublicKey.derive(0).xpubkey.should.equal(vector2_m0_public); - }); - - it("should get m/0/2147483647h ext. private key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'") - .xprivkey.should.equal(vector2_m02147483647h_private); - }); - - it("should get m/0/2147483647h ext. public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'") - .xpubkey.should.equal(vector2_m02147483647h_public); - }); - - it("should get m/0/2147483647h/1 ext. private key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1") - .xprivkey.should.equal(vector2_m02147483647h1_private); - }); - - it("should get m/0/2147483647h/1 ext. public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1") - .xpubkey.should.equal(vector2_m02147483647h1_public); - }); - - it("should get m/0/2147483647h/1 ext. public key from m/0/2147483647h public key from test vector 2", function() { - var derived = HDPrivateKey(vector2_m_private).derive("m/0/2147483647'").hdPublicKey; - derived.derive(1).xpubkey.should.equal(vector2_m02147483647h1_public); - }); - - it("should get m/0/2147483647h/1/2147483646h ext. private key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1/2147483646'") - .xprivkey.should.equal(vector2_m02147483647h12147483646h_private); - }); - - it("should get m/0/2147483647h/1/2147483646h ext. public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1/2147483646'") - .xpubkey.should.equal(vector2_m02147483647h12147483646h_public); - }); - - it("should get m/0/2147483647h/1/2147483646h/2 ext. private key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1/2147483646'/2") - .xprivkey.should.equal(vector2_m02147483647h12147483646h2_private); - }); - - it("should get m/0/2147483647h/1/2147483646h/2 ext. public key from test vector 2", function() { - HDPrivateKey(vector2_m_private).derive("m/0/2147483647'/1/2147483646'/2") - .xpubkey.should.equal(vector2_m02147483647h12147483646h2_public); - }); - - it("should get m/0/2147483647h/1/2147483646h/2 ext. public key from m/0/2147483647h/2147483646h public key from test vector 2", function() { - var derivedPublic = HDPrivateKey(vector2_m_private) - .derive("m/0/2147483647'/1/2147483646'").hdPublicKey; - derivedPublic.derive("m/2") - .xpubkey.should.equal(vector2_m02147483647h12147483646h2_public); - }); - - it('should use full 32 bytes for private key data that is hashed (as per bip32)', function() { - // https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki - var privateKeyBuffer = new Buffer('00000055378cf5fafb56c711c674143f9b0ee82ab0ba2924f19b64f5ae7cdbfd', 'hex'); - var chainCodeBuffer = new Buffer('9c8a5c863e5941f3d99453e6ba66b328bb17cf0b8dec89ed4fc5ace397a1c089', 'hex'); - var key = HDPrivateKey.fromObject({ - network: 'testnet', - depth: 0, - parentFingerPrint: 0, - childIndex: 0, - privateKey: privateKeyBuffer, - chainCode: chainCodeBuffer - }); - var derived = key.deriveChild("m/44'/0'/0'/0/0'"); - derived.privateKey.toString().should.equal('3348069561d2a0fb925e74bf198762acc47dce7db27372257d2d959a9e6f8aeb'); - }); - - it('should NOT use full 32 bytes for private key data that is hashed with nonCompliant flag', function() { - // This is to test that the previously implemented non-compliant to BIP32 - var privateKeyBuffer = new Buffer('00000055378cf5fafb56c711c674143f9b0ee82ab0ba2924f19b64f5ae7cdbfd', 'hex'); - var chainCodeBuffer = new Buffer('9c8a5c863e5941f3d99453e6ba66b328bb17cf0b8dec89ed4fc5ace397a1c089', 'hex'); - var key = HDPrivateKey.fromObject({ - network: 'testnet', - depth: 0, - parentFingerPrint: 0, - childIndex: 0, - privateKey: privateKeyBuffer, - chainCode: chainCodeBuffer - }); - var derived = key.deriveNonCompliantChild("m/44'/0'/0'/0/0'"); - derived.privateKey.toString().should.equal('4811a079bab267bfdca855b3bddff20231ff7044e648514fa099158472df2836'); - }); - - it('should NOT use full 32 bytes for private key data that is hashed with the nonCompliant derive method', function() { - // This is to test that the previously implemented non-compliant to BIP32 - var privateKeyBuffer = new Buffer('00000055378cf5fafb56c711c674143f9b0ee82ab0ba2924f19b64f5ae7cdbfd', 'hex'); - var chainCodeBuffer = new Buffer('9c8a5c863e5941f3d99453e6ba66b328bb17cf0b8dec89ed4fc5ace397a1c089', 'hex'); - var key = HDPrivateKey.fromObject({ - network: 'testnet', - depth: 0, - parentFingerPrint: 0, - childIndex: 0, - privateKey: privateKeyBuffer, - chainCode: chainCodeBuffer - }); - var derived = key.derive("m/44'/0'/0'/0/0'"); - derived.privateKey.toString().should.equal('4811a079bab267bfdca855b3bddff20231ff7044e648514fa099158472df2836'); - }); - - describe('edge cases', function() { - var sandbox = sinon.sandbox.create(); - afterEach(function() { - sandbox.restore(); - }); - it('will handle edge case that derived private key is invalid', function() { - var invalid = new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'); - var privateKeyBuffer = new Buffer('5f72914c48581fc7ddeb944a9616389200a9560177d24f458258e5b04527bcd1', 'hex'); - var chainCodeBuffer = new Buffer('39816057bba9d952fe87fe998b7fd4d690a1bb58c2ff69141469e4d1dffb4b91', 'hex'); - var unstubbed = bitcore.crypto.BN.prototype.toBuffer; - var count = 0; - var stub = sandbox.stub(bitcore.crypto.BN.prototype, 'toBuffer', function(args) { - // On the fourth call to the function give back an invalid private key - // otherwise use the normal behavior. - count++; - if (count === 4) { - return invalid; - } - var ret = unstubbed.apply(this, arguments); - return ret; - }); - sandbox.spy(bitcore.PrivateKey, 'isValid'); - var key = HDPrivateKey.fromObject({ - network: 'testnet', - depth: 0, - parentFingerPrint: 0, - childIndex: 0, - privateKey: privateKeyBuffer, - chainCode: chainCodeBuffer - }); - var derived = key.derive("m/44'"); - derived.privateKey.toString().should.equal('b15bce3608d607ee3a49069197732c656bca942ee59f3e29b4d56914c1de6825'); - bitcore.PrivateKey.isValid.callCount.should.equal(2); - }); - it('will handle edge case that a derive public key is invalid', function() { - var publicKeyBuffer = new Buffer('029e58b241790284ef56502667b15157b3fc58c567f044ddc35653860f9455d099', 'hex'); - var chainCodeBuffer = new Buffer('39816057bba9d952fe87fe998b7fd4d690a1bb58c2ff69141469e4d1dffb4b91', 'hex'); - var key = new HDPublicKey({ - network: 'testnet', - depth: 0, - parentFingerPrint: 0, - childIndex: 0, - chainCode: chainCodeBuffer, - publicKey: publicKeyBuffer - }); - var unstubbed = bitcore.PublicKey.fromPoint; - bitcore.PublicKey.fromPoint = function() { - bitcore.PublicKey.fromPoint = unstubbed; - throw new Error('Point cannot be equal to Infinity'); - }; - sandbox.spy(key, '_deriveWithNumber'); - var derived = key.derive("m/44"); - key._deriveWithNumber.callCount.should.equal(2); - key.publicKey.toString().should.equal('029e58b241790284ef56502667b15157b3fc58c567f044ddc35653860f9455d099'); - }); - }); - - describe('seed', function() { - - it('should initialize a new BIP32 correctly from test vector 1 seed', function() { - var seededKey = HDPrivateKey.fromSeed(vector1_master, Networks.livenet); - seededKey.xprivkey.should.equal(vector1_m_private); - seededKey.xpubkey.should.equal(vector1_m_public); - }); - - it('should initialize a new BIP32 correctly from test vector 2 seed', function() { - var seededKey = HDPrivateKey.fromSeed(vector2_master, Networks.livenet); - seededKey.xprivkey.should.equal(vector2_m_private); - seededKey.xpubkey.should.equal(vector2_m_public); - }); - }); -}); - -//test vectors: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki -var vector1_master = '000102030405060708090a0b0c0d0e0f'; -var vector1_m_public = 'xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8'; -var vector1_m_private = 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi'; -var vector1_m0h_public = 'xpub68Gmy5EdvgibQVfPdqkBBCHxA5htiqg55crXYuXoQRKfDBFA1WEjWgP6LHhwBZeNK1VTsfTFUHCdrfp1bgwQ9xv5ski8PX9rL2dZXvgGDnw'; -var vector1_m0h_private = 'xprv9uHRZZhk6KAJC1avXpDAp4MDc3sQKNxDiPvvkX8Br5ngLNv1TxvUxt4cV1rGL5hj6KCesnDYUhd7oWgT11eZG7XnxHrnYeSvkzY7d2bhkJ7'; -var vector1_m0h1_public = 'xpub6ASuArnXKPbfEwhqN6e3mwBcDTgzisQN1wXN9BJcM47sSikHjJf3UFHKkNAWbWMiGj7Wf5uMash7SyYq527Hqck2AxYysAA7xmALppuCkwQ'; -var vector1_m0h1_private = 'xprv9wTYmMFdV23N2TdNG573QoEsfRrWKQgWeibmLntzniatZvR9BmLnvSxqu53Kw1UmYPxLgboyZQaXwTCg8MSY3H2EU4pWcQDnRnrVA1xe8fs'; -var vector1_m0h12h_public = 'xpub6D4BDPcP2GT577Vvch3R8wDkScZWzQzMMUm3PWbmWvVJrZwQY4VUNgqFJPMM3No2dFDFGTsxxpG5uJh7n7epu4trkrX7x7DogT5Uv6fcLW5'; -var vector1_m0h12h_private = 'xprv9z4pot5VBttmtdRTWfWQmoH1taj2axGVzFqSb8C9xaxKymcFzXBDptWmT7FwuEzG3ryjH4ktypQSAewRiNMjANTtpgP4mLTj34bhnZX7UiM'; -var vector1_m0h12h2_public = 'xpub6FHa3pjLCk84BayeJxFW2SP4XRrFd1JYnxeLeU8EqN3vDfZmbqBqaGJAyiLjTAwm6ZLRQUMv1ZACTj37sR62cfN7fe5JnJ7dh8zL4fiyLHV'; -var vector1_m0h12h2_private = 'xprvA2JDeKCSNNZky6uBCviVfJSKyQ1mDYahRjijr5idH2WwLsEd4Hsb2Tyh8RfQMuPh7f7RtyzTtdrbdqqsunu5Mm3wDvUAKRHSC34sJ7in334'; -var vector1_m0h12h21000000000_public = 'xpub6H1LXWLaKsWFhvm6RVpEL9P4KfRZSW7abD2ttkWP3SSQvnyA8FSVqNTEcYFgJS2UaFcxupHiYkro49S8yGasTvXEYBVPamhGW6cFJodrTHy'; -var vector1_m0h12h21000000000_private = 'xprvA41z7zogVVwxVSgdKUHDy1SKmdb533PjDz7J6N6mV6uS3ze1ai8FHa8kmHScGpWmj4WggLyQjgPie1rFSruoUihUZREPSL39UNdE3BBDu76'; -var vector2_master = 'fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542'; -var vector2_m_public = 'xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB'; -var vector2_m_private = 'xprv9s21ZrQH143K31xYSDQpPDxsXRTUcvj2iNHm5NUtrGiGG5e2DtALGdso3pGz6ssrdK4PFmM8NSpSBHNqPqm55Qn3LqFtT2emdEXVYsCzC2U'; -var vector2_m0_public = 'xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH'; -var vector2_m0_private = 'xprv9vHkqa6EV4sPZHYqZznhT2NPtPCjKuDKGY38FBWLvgaDx45zo9WQRUT3dKYnjwih2yJD9mkrocEZXo1ex8G81dwSM1fwqWpWkeS3v86pgKt'; -var vector2_m02147483647h_public = 'xpub6ASAVgeehLbnwdqV6UKMHVzgqAG8Gr6riv3Fxxpj8ksbH9ebxaEyBLZ85ySDhKiLDBrQSARLq1uNRts8RuJiHjaDMBU4Zn9h8LZNnBC5y4a'; -var vector2_m02147483647h_private = 'xprv9wSp6B7kry3Vj9m1zSnLvN3xH8RdsPP1Mh7fAaR7aRLcQMKTR2vidYEeEg2mUCTAwCd6vnxVrcjfy2kRgVsFawNzmjuHc2YmYRmagcEPdU9'; -var vector2_m02147483647h1_public = 'xpub6DF8uhdarytz3FWdA8TvFSvvAh8dP3283MY7p2V4SeE2wyWmG5mg5EwVvmdMVCQcoNJxGoWaU9DCWh89LojfZ537wTfunKau47EL2dhHKon'; -var vector2_m02147483647h1_private = 'xprv9zFnWC6h2cLgpmSA46vutJzBcfJ8yaJGg8cX1e5StJh45BBciYTRXSd25UEPVuesF9yog62tGAQtHjXajPPdbRCHuWS6T8XA2ECKADdw4Ef'; -var vector2_m02147483647h12147483646h_public = 'xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL'; -var vector2_m02147483647h12147483646h_private = 'xprvA1RpRA33e1JQ7ifknakTFpgNXPmW2YvmhqLQYMmrj4xJXXWYpDPS3xz7iAxn8L39njGVyuoseXzU6rcxFLJ8HFsTjSyQbLYnMpCqE2VbFWc'; -var vector2_m02147483647h12147483646h2_public = 'xpub6FnCn6nSzZAw5Tw7cgR9bi15UV96gLZhjDstkXXxvCLsUXBGXPdSnLFbdpq8p9HmGsApME5hQTZ3emM2rnY5agb9rXpVGyy3bdW6EEgAtqt'; -var vector2_m02147483647h12147483646h2_private = 'xprvA2nrNbFZABcdryreWet9Ea4LvTJcGsqrMzxHx98MMrotbir7yrKCEXw7nadnHM8Dq38EGfSh6dqA9QWTyefMLEcBYJUuekgW4BYPJcr9E7j'; diff --git a/test/hdprivatekey.js b/test/hdprivatekey.js deleted file mode 100644 index 6b63e62..0000000 --- a/test/hdprivatekey.js +++ /dev/null @@ -1,311 +0,0 @@ -'use strict'; -/* jshint unused: false */ -var _ = require('lodash'); -var assert = require('assert'); -var should = require('chai').should(); -var expect = require('chai').expect; -var bitcore = require('..'); -var errors = bitcore.errors; -var hdErrors = errors.HDPrivateKey; -var buffer = require('buffer'); -var Networks = bitcore.Networks; -var BufferUtil = bitcore.util.buffer; -var HDPrivateKey = bitcore.HDPrivateKey; -var Base58Check = bitcore.encoding.Base58Check; - -var xprivkey = 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi'; -var json = '{"network":"livenet","depth":0,"fingerPrint":876747070,"parentFingerPrint":0,"childIndex":0,"chainCode":"873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508","privateKey":"e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35","checksum":-411132559,"xprivkey":"xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi"}'; -describe('HDPrivate key interface', function() { - /* jshint maxstatements: 50 */ - var expectFail = function(func, error) { - var got = null; - try { - func(); - } catch (e) { - got = e instanceof error; - } - expect(got).to.equal(true); - }; - - var expectDerivationFail = function(argument, error) { - return expectFail(function() { - var privateKey = new HDPrivateKey(xprivkey); - privateKey.derive(argument); - }, error); - }; - - var expectFailBuilding = function(argument, error) { - return expectFail(function() { - return new HDPrivateKey(argument); - }, error); - }; - - var expectSeedFail = function(argument, error) { - return expectFail(function() { - return HDPrivateKey.fromSeed(argument); - }, error); - }; - - it('should make a new private key from random', function() { - should.exist(new HDPrivateKey().xprivkey); - }); - - it('should make a new private key from random for testnet', function() { - var key = new HDPrivateKey('testnet'); - should.exist(key.xprivkey); - key.network.name.should.equal('testnet'); - }); - - it('should not be able to change read-only properties', function() { - var hdkey = new HDPrivateKey(); - expect(function() { - hdkey.fingerPrint = 'notafingerprint'; - }).to.throw(TypeError); - }); - - it('should error with an invalid checksum', function() { - expectFailBuilding(xprivkey + '1', errors.InvalidB58Checksum); - }); - - it('can be rebuilt from a json generated by itself', function() { - var regenerate = new HDPrivateKey(json); - regenerate.xprivkey.should.equal(xprivkey); - }); - - it('builds a json keeping the structure and same members', function() { - assert(_.isEqual( - new HDPrivateKey(json).toJSON(), - new HDPrivateKey(xprivkey).toJSON() - )); - }); - - describe('instantiation', function() { - it('invalid argument: can not instantiate from a number', function() { - expectFailBuilding(1, hdErrors.UnrecognizedArgument); - }); - it('allows no-new calling', function() { - HDPrivateKey(xprivkey).toString().should.equal(xprivkey); - }); - it('allows the use of a copy constructor', function() { - HDPrivateKey(HDPrivateKey(xprivkey)) - .xprivkey.should.equal(xprivkey); - }); - }); - - describe('public key', function() { - var testnetKey = new HDPrivateKey('tprv8ZgxMBicQKsPdEeU2KiGFnUgRGriMnQxrwrg6FWCBg4jeiidHRyCCdA357kfkZiGaXEapWZsGDKikeeEbvgXo3UmEdbEKNdQH9VXESmGuUK'); - var livenetKey = new HDPrivateKey('xprv9s21ZrQH143K3e39bnn1vyS7YFa1EAJAFGDoeHaSBsgBxgAkTEXeSx7xLvhNQNJxJwhzziWcK3znUFKRPRwWBPkKZ8ijUBa5YYpYPQmeBDX'); - - it('matches the network', function() { - testnetKey.publicKey.network.should.equal(Networks.testnet); - livenetKey.publicKey.network.should.equal(Networks.livenet); - }); - - it('cache for xpubkey works', function() { - var privateKey = new HDPrivateKey(xprivkey); - should.not.exist(privateKey._hdPublicKey); - privateKey.xpubkey.should.equal(privateKey.xpubkey); - should.exist(privateKey._hdPublicKey); - }); - - }); - - it('inspect() displays correctly', function() { - HDPrivateKey(xprivkey).inspect().should.equal(''); - }); - it('fails when trying to derive with an invalid argument', function() { - expectDerivationFail([], hdErrors.InvalidDerivationArgument); - }); - - it('catches early invalid paths', function() { - expectDerivationFail('s', hdErrors.InvalidPath); - }); - - it('allows derivation of hardened keys by passing a very big number', function() { - var privateKey = new HDPrivateKey(xprivkey); - var derivedByNumber = privateKey.derive(0x80000000); - var derivedByArgument = privateKey.derive(0, true); - derivedByNumber.xprivkey.should.equal(derivedByArgument.xprivkey); - }); - - it('returns itself with \'m\' parameter', function() { - var privateKey = new HDPrivateKey(xprivkey); - privateKey.should.equal(privateKey.derive('m')); - }); - - it('returns InvalidArgument if invalid data is given to getSerializedError', function() { - expect( - HDPrivateKey.getSerializedError(1) instanceof hdErrors.UnrecognizedArgument - ).to.equal(true); - }); - - it('returns InvalidLength if data of invalid length is given to getSerializedError', function() { - var b58s = Base58Check.encode(new buffer.Buffer('onestring')); - expect( - HDPrivateKey.getSerializedError(b58s) instanceof hdErrors.InvalidLength - ).to.equal(true); - }); - - it('returns InvalidNetworkArgument if an invalid network is provided', function() { - expect( - HDPrivateKey.getSerializedError(xprivkey, 'invalidNetwork') instanceof errors.InvalidNetworkArgument - ).to.equal(true); - }); - - it('recognizes that the wrong network was asked for', function() { - expect( - HDPrivateKey.getSerializedError(xprivkey, 'testnet') instanceof errors.InvalidNetwork - ).to.equal(true); - }); - - it('recognizes the correct network', function() { - expect(HDPrivateKey.getSerializedError(xprivkey, 'livenet')).to.equal(null); - }); - - describe('on creation from seed', function() { - it('converts correctly from an hexa string', function() { - should.exist(HDPrivateKey.fromSeed('01234567890abcdef01234567890abcdef').xprivkey); - }); - it('fails when argument is not a buffer or string', function() { - expectSeedFail(1, hdErrors.InvalidEntropyArgument); - }); - it('fails when argument doesn\'t provide enough entropy', function() { - expectSeedFail('01', hdErrors.InvalidEntropyArgument.NotEnoughEntropy); - }); - it('fails when argument provides too much entropy', function() { - var entropy = '0'; - for (var i = 0; i < 129; i++) { - entropy += '1'; - } - expectSeedFail(entropy, hdErrors.InvalidEntropyArgument.TooMuchEntropy); - }); - }); - - it('correctly errors if an invalid checksum is provided', function() { - var privKey = new HDPrivateKey(xprivkey); - var error = null; - try { - var buffers = privKey._buffers; - buffers.checksum = BufferUtil.integerAsBuffer(0); - var privateKey = new HDPrivateKey(buffers); - } catch (e) { - error = e; - } - expect(error instanceof errors.InvalidB58Checksum).to.equal(true); - }); - it('correctly validates the checksum', function() { - var privKey = new HDPrivateKey(xprivkey); - expect(function() { - var buffers = privKey._buffers; - return new HDPrivateKey(buffers); - }).to.not.throw(); - }); - - it('shouldn\'t matter if derivations are made with strings or numbers', function() { - var privateKey = new HDPrivateKey(xprivkey); - var derivedByString = privateKey.derive('m/0\'/1/2\''); - var derivedByNumber = privateKey.derive(0, true).derive(1).derive(2, true); - derivedByNumber.xprivkey.should.equal(derivedByString.xprivkey); - }); - - describe('validates paths', function() { - it('validates correct paths', function() { - var valid; - - valid = HDPrivateKey.isValidPath('m/0\'/1/2\''); - valid.should.equal(true); - - valid = HDPrivateKey.isValidPath('m'); - valid.should.equal(true); - - valid = HDPrivateKey.isValidPath(123, true); - valid.should.equal(true); - - valid = HDPrivateKey.isValidPath(123); - valid.should.equal(true); - - valid = HDPrivateKey.isValidPath(HDPrivateKey.Hardened + 123); - valid.should.equal(true); - - valid = HDPrivateKey.isValidPath(HDPrivateKey.Hardened + 123, true); - valid.should.equal(true); - }); - - - var invalid = [ - 'm/-1/12', - 'bad path', - 'K', - 'm/', - 'm/12asd', - 'm/1/2//3' - ]; - - invalid.forEach(function(datum) { - it('rejects illegal path ' + datum, function() { - HDPrivateKey.isValidPath(datum).should.equal(false); - expect(HDPrivateKey._getDerivationIndexes(datum)).to.equal(null); - }); - }); - - it('generates deriving indexes correctly', function() { - var indexes; - - indexes = HDPrivateKey._getDerivationIndexes('m/-1/12'); - expect(indexes).to.equal(null); - - indexes = HDPrivateKey._getDerivationIndexes('m/0/12/12\''); - indexes.should.eql([0, 12, HDPrivateKey.Hardened + 12]); - - indexes = HDPrivateKey._getDerivationIndexes('m/0/12/12\''); - indexes.should.eql([0, 12, HDPrivateKey.Hardened + 12]); - }); - - }); - - describe('conversion to/from buffer', function() { - var str = 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi'; - it('should roundtrip to/from a buffer', function() { - var priv = new HDPrivateKey(str); - var toBuffer = priv.toBuffer(); - var fromBuffer = HDPrivateKey.fromBuffer(toBuffer); - var roundTrip = new HDPrivateKey(fromBuffer.toBuffer()); - roundTrip.xprivkey.should.equal(str); - }); - }); - - describe('conversion to plain object/json', function() { - var plainObject = { - 'network': 'livenet', - 'depth': 0, - 'fingerPrint': 876747070, - 'parentFingerPrint': 0, - 'childIndex': 0, - 'chainCode': '873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508', - 'privateKey': 'e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35', - 'checksum': -411132559, - 'xprivkey': 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvN' + - 'KmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi' - }; - it('toObject leaves no Buffer instances', function() { - var privKey = new HDPrivateKey(xprivkey); - var object = privKey.toObject(); - _.each(_.values(object), function(value) { - expect(BufferUtil.isBuffer(value)).to.equal(false); - }); - }); - it('roundtrips toObject', function() { - expect(HDPrivateKey.fromObject(new HDPrivateKey(xprivkey).toObject()).xprivkey).to.equal(xprivkey); - }); - it('roundtrips to JSON and to Object', function() { - var privkey = new HDPrivateKey(xprivkey); - expect(HDPrivateKey.fromObject(privkey.toJSON()).xprivkey).to.equal(xprivkey); - }); - it('recovers state from JSON', function() { - new HDPrivateKey(JSON.stringify(plainObject)).xprivkey.should.equal(xprivkey); - }); - it('recovers state from Object', function() { - new HDPrivateKey(plainObject).xprivkey.should.equal(xprivkey); - }); - }); -}); diff --git a/test/hdpublickey.js b/test/hdpublickey.js deleted file mode 100644 index d51ee35..0000000 --- a/test/hdpublickey.js +++ /dev/null @@ -1,275 +0,0 @@ -'use strict'; - -/* jshint unused: false */ -var _ = require('lodash'); -var assert = require('assert'); -var should = require('chai').should(); -var expect = require('chai').expect; -var bitcore = require('..'); -var buffer = require('buffer'); -var errors = bitcore.errors; -var hdErrors = bitcore.errors.HDPublicKey; -var BufferUtil = bitcore.util.buffer; -var HDPrivateKey = bitcore.HDPrivateKey; -var HDPublicKey = bitcore.HDPublicKey; -var Base58Check = bitcore.encoding.Base58Check; -var Networks = bitcore.Networks; - -var xprivkey = 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi'; -var xpubkey = 'xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8'; -var xpubkeyTestnet = 'tpubD6NzVbkrYhZ4WZaiWHz59q5EQ61bd6dUYfU4ggRWAtNAyyYRNWT6ktJ7UHJEXURvTfTfskFQmK7Ff4FRkiRN5wQH8nkGAb6aKB4Yyeqsw5m'; -var json = '{"network":"livenet","depth":0,"fingerPrint":876747070,"parentFingerPrint":0,"childIndex":0,"chainCode":"873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508","publicKey":"0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2","checksum":-1421395167,"xpubkey":"xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8"}'; -var derived_0_1_200000 = 'xpub6BqyndF6rkBNTV6LXwiY8Pco8aqctqq7tGEUdA8fmGDTnDJphn2fmxr3eM8Lm3m8TrNUsLbEjHvpa3adBU18YpEx4tp2Zp6nqax3mQkudhX'; - -describe('HDPublicKey interface', function() { - - var expectFail = function(func, errorType) { - (function() { - func(); - }).should.throw(errorType); - }; - - var expectDerivationFail = function(argument, error) { - (function() { - var pubkey = new HDPublicKey(xpubkey); - pubkey.derive(argument); - }).should.throw(error); - }; - - var expectFailBuilding = function(argument, error) { - (function() { - return new HDPublicKey(argument); - }).should.throw(error); - }; - - describe('creation formats', function() { - - it('returns same argument if already an instance of HDPublicKey', function() { - var publicKey = new HDPublicKey(xpubkey); - publicKey.should.equal(new HDPublicKey(publicKey)); - }); - - it('returns the correct xpubkey for a xprivkey', function() { - var publicKey = new HDPublicKey(xprivkey); - publicKey.xpubkey.should.equal(xpubkey); - }); - - it('allows to call the argument with no "new" keyword', function() { - HDPublicKey(xpubkey).xpubkey.should.equal(new HDPublicKey(xpubkey).xpubkey); - }); - - it('fails when user doesn\'t supply an argument', function() { - expectFailBuilding(null, hdErrors.MustSupplyArgument); - }); - - it('should not be able to change read-only properties', function() { - var publicKey = new HDPublicKey(xprivkey); - expect(function() { - publicKey.fingerPrint = 'notafingerprint'; - }).to.throw(TypeError); - }); - - it('doesn\'t recognize an invalid argument', function() { - expectFailBuilding(1, hdErrors.UnrecognizedArgument); - expectFailBuilding(true, hdErrors.UnrecognizedArgument); - }); - - - describe('xpubkey string serialization errors', function() { - it('fails on invalid length', function() { - expectFailBuilding( - Base58Check.encode(new buffer.Buffer([1, 2, 3])), - hdErrors.InvalidLength - ); - }); - it('fails on invalid base58 encoding', function() { - expectFailBuilding( - xpubkey + '1', - errors.InvalidB58Checksum - ); - }); - it('user can ask if a string is valid', function() { - (HDPublicKey.isValidSerialized(xpubkey)).should.equal(true); - }); - }); - - it('can be generated from a json', function() { - expect(new HDPublicKey(JSON.parse(json)).xpubkey).to.equal(xpubkey); - }); - - it('can generate a json that has a particular structure', function() { - assert(_.isEqual( - new HDPublicKey(JSON.parse(json)).toJSON(), - new HDPublicKey(xpubkey).toJSON() - )); - }); - - it('builds from a buffer object', function() { - (new HDPublicKey(new HDPublicKey(xpubkey)._buffers)).xpubkey.should.equal(xpubkey); - }); - - it('checks the checksum', function() { - var buffers = new HDPublicKey(xpubkey)._buffers; - buffers.checksum = BufferUtil.integerAsBuffer(1); - expectFail(function() { - return new HDPublicKey(buffers); - }, errors.InvalidB58Checksum); - }); - }); - - describe('error checking on serialization', function() { - var compareType = function(a, b) { - expect(a instanceof b).to.equal(true); - }; - it('throws invalid argument when argument is not a string or buffer', function() { - compareType(HDPublicKey.getSerializedError(1), hdErrors.UnrecognizedArgument); - }); - it('if a network is provided, validates that data corresponds to it', function() { - compareType(HDPublicKey.getSerializedError(xpubkey, 'testnet'), errors.InvalidNetwork); - }); - it('recognizes invalid network arguments', function() { - compareType(HDPublicKey.getSerializedError(xpubkey, 'invalid'), errors.InvalidNetworkArgument); - }); - it('recognizes a valid network', function() { - expect(HDPublicKey.getSerializedError(xpubkey, 'livenet')).to.equal(null); - }); - }); - - it('toString() returns the same value as .xpubkey', function() { - var pubKey = new HDPublicKey(xpubkey); - pubKey.toString().should.equal(pubKey.xpubkey); - }); - - it('publicKey property matches network', function() { - var livenet = new HDPublicKey(xpubkey); - var testnet = new HDPublicKey(xpubkeyTestnet); - - livenet.publicKey.network.should.equal(Networks.livenet); - testnet.publicKey.network.should.equal(Networks.testnet); - }); - - it('inspect() displays correctly', function() { - var pubKey = new HDPublicKey(xpubkey); - pubKey.inspect().should.equal(''); - }); - - describe('conversion to/from buffer', function() { - - it('should roundtrip to an equivalent object', function() { - var pubKey = new HDPublicKey(xpubkey); - var toBuffer = pubKey.toBuffer(); - var fromBuffer = HDPublicKey.fromBuffer(toBuffer); - var roundTrip = new HDPublicKey(fromBuffer.toBuffer()); - roundTrip.xpubkey.should.equal(xpubkey); - }); - }); - - describe('conversion to different formats', function() { - var plainObject = { - 'network':'livenet', - 'depth':0, - 'fingerPrint':876747070, - 'parentFingerPrint':0, - 'childIndex':0, - 'chainCode':'873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508', - 'publicKey':'0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2', - 'checksum':-1421395167, - 'xpubkey':'xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8' - }; - it('roundtrips to JSON and to Object', function() { - var pubkey = new HDPublicKey(xpubkey); - expect(HDPublicKey.fromObject(pubkey.toJSON()).xpubkey).to.equal(xpubkey); - }); - it('recovers state from Object', function() { - new HDPublicKey(plainObject).xpubkey.should.equal(xpubkey); - }); - }); - - describe('derivation', function() { - it('derivation is the same whether deriving with number or string', function() { - var pubkey = new HDPublicKey(xpubkey); - var derived1 = pubkey.derive(0).derive(1).derive(200000); - var derived2 = pubkey.derive('m/0/1/200000'); - derived1.xpubkey.should.equal(derived_0_1_200000); - derived2.xpubkey.should.equal(derived_0_1_200000); - }); - - it('allows special parameters m, M', function() { - var expectDerivationSuccess = function(argument) { - new HDPublicKey(xpubkey).derive(argument).xpubkey.should.equal(xpubkey); - }; - expectDerivationSuccess('m'); - expectDerivationSuccess('M'); - }); - - it('doesn\'t allow object arguments for derivation', function() { - expectFail(function() { - return new HDPublicKey(xpubkey).derive({}); - }, hdErrors.InvalidDerivationArgument); - }); - - it('needs first argument for derivation', function() { - expectFail(function() { - return new HDPublicKey(xpubkey).derive('s'); - }, hdErrors.InvalidPath); - }); - - it('doesn\'t allow other parameters like m\' or M\' or "s"', function() { - /* jshint quotmark: double */ - expectDerivationFail("m'", hdErrors.InvalidIndexCantDeriveHardened); - expectDerivationFail("M'", hdErrors.InvalidIndexCantDeriveHardened); - expectDerivationFail("1", hdErrors.InvalidPath); - expectDerivationFail("S", hdErrors.InvalidPath); - }); - - it('can\'t derive hardened keys', function() { - expectFail(function() { - return new HDPublicKey(xpubkey).derive(HDPublicKey.Hardened); - }, hdErrors.InvalidIndexCantDeriveHardened); - }); - - it('can\'t derive hardened keys via second argument', function() { - expectFail(function() { - return new HDPublicKey(xpubkey).derive(5, true); - }, hdErrors.InvalidIndexCantDeriveHardened); - }); - - it('validates correct paths', function() { - var valid; - - valid = HDPublicKey.isValidPath('m/123/12'); - valid.should.equal(true); - - valid = HDPublicKey.isValidPath('m'); - valid.should.equal(true); - - valid = HDPublicKey.isValidPath(123); - valid.should.equal(true); - }); - - it('rejects illegal paths', function() { - var valid; - - valid = HDPublicKey.isValidPath('m/-1/12'); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath("m/0'/12"); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath("m/8000000000/12"); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath('bad path'); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath(-1); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath(8000000000); - valid.should.equal(false); - - valid = HDPublicKey.isValidPath(HDPublicKey.Hardened); - valid.should.equal(false); - }); - }); -}); diff --git a/test/index.html b/test/index.html deleted file mode 100644 index 87c0cf3..0000000 --- a/test/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Mocha - - - - - -

- - - - - - diff --git a/test/index.js b/test/index.js deleted file mode 100644 index 47bad73..0000000 --- a/test/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var should = require("chai").should(); -var bitcore = require("../"); - -describe('#versionGuard', function() { - it('global._bitcore should be defined', function() { - should.equal(global._bitcore, bitcore.version); - }); - - it('throw an error if version is already defined', function() { - (function() { - bitcore.versionGuard('version'); - }).should.throw('More than one instance of bitcore'); - }); -}); diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index 9409cf5..0000000 --- a/test/mocha.opts +++ /dev/null @@ -1,2 +0,0 @@ ---recursive ---timeout 5000 diff --git a/test/mytest.js b/test/mytest.js deleted file mode 100644 index 40d8623..0000000 --- a/test/mytest.js +++ /dev/null @@ -1,236 +0,0 @@ -'use strict'; - -var bitcore = require('..'); -var buffer = require('buffer'); -var scrypt = require('scryptsy') -var aesjs = require("aes-js") -//var privateKey = new bitcore.PrivateKey(null, 'testnet'); -var privateKey = bitcore.PrivateKey.fromWIF('Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ') -var address = privateKey.toAddress(); -var publicKey = privateKey.toPublicKey(); - -/* -var info = { - nTxType: 2, - nVersion: 1, - nValidHeight: 601606, - fees: 10000, - pubkey: '02ab72cfecc7055501b397e1150b3dc528f2fd5647241924824a5afc0b5a818221', - minerPubkey: '' - }; - -var register = new bitcore.Transaction.RegisterAccountTx(info); -console.log(register.pubkey) -var ret = register._SignatureHash() -console.log(ret.toString('hex')) - -register._Signtx(privateKey); - -console.log(address.toString()) -console.log(privateKey.toWIF()) -console.log(publicKey.toString()) - -var buf = buffer.Buffer.from('123') -console.log(buf.length) - -var hex = register.SerializeTx(privateKey) -console.log(hex) -*/ - -/* -var commonTxinfo = { - nTxType: 3, - nVersion: 1, - nValidHeight: 602371, - fees: 10000, - srcRegId: '54528-1', - destAddr: 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65', - value: 10000000000, - network: 'testnet' - }; - - var value = 10000000000 - var tmp = (value >>> 7) - - var commonTx = new bitcore.Transaction.CommonTx(commonTxinfo); - console.log(commonTx.destAddr) - - var ret = commonTx._SignatureHash() - console.log(ret.toString('hex')) - - commonTx._Signtx(privateKey); - - var hex = commonTx.SerializeTx(privateKey) - console.log(hex) -*/ - -//var contract = bitcore.util.util.getSpcContractData('wUCVEiaEzNvWMo9B1gwQ4Us8oNz8T1zZVn', 100000000) - -/* -var iteminfo1 = { - playType:1, - betType:1, - times: 1, - money: 200000000 -} - -var item1 = new bitcore.util.BetItem(iteminfo1) - -var itemList = [] -itemList.push(item1) - -var iteminfo2 = { - playType:2, - betType:1, - times: 1, - money: 200000000 -} - -var item2 = new bitcore.util.BetItem(iteminfo2) -itemList.push(item2) - -console.log(itemList.length) -console.log(typeof(itemList)) -console.log(itemList instanceof Array); - -var contract = bitcore.util.util.getBetContractData('397FB303-393A-4C10-9142-B1FDCD80B722', 'wUCVEiaEzNvWMo9B1gwQ4Us8oNz8T1zZVn', 1, itemList) - -var contractTxinfo = { - nTxType: 4, - nVersion: 1, - nValidHeight: 602623, - srcRegId: '54528-1', - destRegId: '418581-2', - fees: 1000000, - value: 0, - vContract: contract - }; - - var contractTx = new bitcore.Transaction.ContractTx(contractTxinfo); - console.log(contractTx.vContract.toString('hex')) - - var ret = contractTx._SignatureHash() - console.log(ret.toString('hex')) - - contractTx._Signtx(privateKey); - - var hex = contractTx.SerializeTx(privateKey) - console.log(hex) - -*/ - -/* -var votefund1 = { - operType: bitcore.util.VoteFund.ADD_FUND, - pubkey: '0210a1a5ad1b00492fcd241905e361c80f7bb641361ef219350018e3205ca322f7', - value: 100000000 -} - -var item1 = new bitcore.util.VoteFund(votefund1) -var itemList = [] -itemList.push(item1) - -var votefund2 = { - operType: bitcore.util.VoteFund.ADD_FUND, - pubkey: '03d1ed364d09d95605a173f8fea3fac84ae73fdb87e52ff4d7c837f16a9ba6b1e6', - value: 200000000 -} - -var item2 = new bitcore.util.VoteFund(votefund2) -itemList.push(item2) - -var delegateData = bitcore.util.util.getDelegateData(itemList) -console.log(delegateData.toString('hex')) - -var delegateTxinfo = { - nTxType: 6, - nVersion: 1, - nValidHeight: 770746, - srcRegId: '54528-1', - delegateData: delegateData, - fees: 1000000 - }; - - var delegateTx = new bitcore.Transaction.DelegateTx(delegateTxinfo); - console.log(delegateTx.delegateData.toString('hex')) - - var ret = delegateTx._SignatureHash() - console.log(ret.toString('hex')) - - delegateTx._Signtx(privateKey); - - var hex = delegateTx.SerializeTx(privateKey) - console.log(hex) - - -var code = new bitcore.Mnemonic(bitcore.Mnemonic.Words.ENGLISH); -console.log(code.toString()); // natal hada sutil año sólido papel jamón combate aula flota ver esfera... -var xpriv = code.toHDPrivateKey(null, 'livenet'); -console.log(xpriv.toString()) -var seed = code.toSeed() -console.log(seed.toString('hex')) - -var password = "pleaseletmein" -var salt = "SodiumChloride" -var data = scrypt(password, salt, 16384, 8, 1, 64) -console.log(data.toString('hex')) -*/ -//var arg = {network: 'livenet'} -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -var strMne = wiccApi.createAllCoinMnemonicCode() -console.log(strMne) - -var begin1 = new Date().getTime(); -var priKey = wiccApi.getPriKeyFromMnemonicCode(strMne)//计算耗时 -var end1 = new Date().getTime(); -console.log('耗时:'+(end1-begin1),'priKey:'+priKey); - -var begin2 = new Date().getTime(); -var addressFromMn = wiccApi.getAddressFromMnemonicCode(strMne)//计算耗时 -var end2 = new Date().getTime(); -console.log('耗时:'+(end2-begin2),'addressFromMn:'+addressFromMn) - -var ret = wiccApi.checkMnemonicCode(strMne) -console.log(ret) - -ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) - -var reginfo = { - nTxType: 2, - nVersion: 1, - nValidHeight: 601606, - fees: 10000, - pubkey: publicKey.toString(), - minerPubkey: '' - }; - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.REGISTER_ACCOUNT_TX, reginfo) -console.log("test createSignTrasaction: ") -console.log(rawtx) - -var begin3 = new Date().getTime(); -var walletinfo = wiccApi.createWallet(strMne, '12345678')//计算耗时 -var end3 = new Date().getTime(); -console.log('耗时:'+(end3-begin3),'walletinfo:'+walletinfo) - -var begin4 = new Date().getTime(); -var pri = wiccApi.getPriKeyFromSeed(walletinfo.seedinfo, '12345678')//计算耗时 -var end4 = new Date().getTime(); -console.log('耗时:'+(end4-begin4)) -console.log("test getPriKeyFromSeed:"+pri) - -var privateKey = bitcore.PrivateKey.fromWIF(pri) -var address = privateKey.toAddress(); -console.log(address.toString()) - -var Mne = wiccApi.getMnemonicCodeFromSeed(walletinfo.seedinfo, '12345678') -console.log(Mne) - -var newSeedInfo = wiccApi.changePassword(walletinfo.seedinfo, '12345678', '87654321') -console.log(newSeedInfo) - -pri = wiccApi.getPriKeyFromSeed(newSeedInfo, '87654321') -console.log(pri) \ No newline at end of file diff --git a/test/networks.js b/test/networks.js deleted file mode 100644 index ea265cf..0000000 --- a/test/networks.js +++ /dev/null @@ -1,128 +0,0 @@ -'use strict'; - -var expect = require('chai').expect; -var should = require('chai').should(); -var bitcore = require('..'); -var networks = bitcore.Networks; - -describe('Networks', function() { - - var customnet; - - it('should contain all Networks', function() { - should.exist(networks.livenet); - should.exist(networks.testnet); - should.exist(networks.defaultNetwork); - }); - - it('will enable/disable regtest Network', function() { - networks.enableRegtest(); - networks.testnet.networkMagic.should.deep.equal(new Buffer('fabfb5da', 'hex')); - networks.testnet.port.should.equal(18444); - networks.testnet.dnsSeeds.should.deep.equal([]); - networks.testnet.regtestEnabled.should.equal(true); - - networks.disableRegtest(); - networks.testnet.networkMagic.should.deep.equal(new Buffer('0b110907', 'hex')); - networks.testnet.port.should.equal(18333); - networks.testnet.dnsSeeds.should.deep.equal([ - 'testnet-seed.bitcoin.petertodd.org', - 'testnet-seed.bluematt.me', - 'testnet-seed.alexykot.me', - 'testnet-seed.bitcoin.schildbach.de' - ]); - }); - - it('will get network based on string "regtest" value', function() { - var network = networks.get('regtest'); - network.should.equal(networks.testnet); - }); - - it('should be able to define a custom Network', function() { - var custom = { - name: 'customnet', - alias: 'mynet', - pubkeyhash: 0x10, - privatekey: 0x90, - scripthash: 0x08, - xpubkey: 0x0278b20e, - xprivkey: 0x0278ade4, - networkMagic: 0xe7beb4d4, - port: 20001, - dnsSeeds: [ - 'localhost', - 'mynet.localhost' - ] - }; - networks.add(custom); - customnet = networks.get('customnet'); - for (var key in custom) { - if (key !== 'networkMagic') { - customnet[key].should.equal(custom[key]); - } else { - var expected = new Buffer('e7beb4d4', 'hex'); - customnet[key].should.deep.equal(expected); - } - } - }); - - it('can remove a custom network', function() { - networks.remove(customnet); - var net = networks.get('customnet'); - should.equal(net, undefined); - }); - - it('should not set a network map for an undefined value', function() { - var custom = { - name: 'somenet', - pubkeyhash: 0x13, - privatekey: 0x93, - scripthash: 0x11, - xpubkey: 0x0278b20f, - xprivkey: 0x0278ade5, - networkMagic: 0xe7beb4d5, - port: 20008, - dnsSeeds: [ - 'somenet.localhost' - ] - }; - networks.add(custom); - var network = networks.get(undefined); - should.not.exist(network); - var somenet = networks.get('somenet'); - should.exist(somenet); - somenet.name.should.equal('somenet'); - networks.remove(somenet); - }); - - var constants = ['name', 'alias', 'pubkeyhash', 'scripthash', 'xpubkey', 'xprivkey']; - - constants.forEach(function(key){ - it('should have constant '+key+' for livenet and testnet', function(){ - networks.testnet.hasOwnProperty(key).should.equal(true); - networks.livenet.hasOwnProperty(key).should.equal(true); - }); - }); - - it('tests only for the specified key', function() { - expect(networks.get(0x6f, 'pubkeyhash')).to.equal(networks.testnet); - expect(networks.get(0x6f, 'privatekey')).to.equal(undefined); - }); - - it('can test for multiple keys', function() { - expect(networks.get(0x6f, ['pubkeyhash', 'scripthash'])).to.equal(networks.testnet); - expect(networks.get(0xc4, ['pubkeyhash', 'scripthash'])).to.equal(networks.testnet); - expect(networks.get(0x6f, ['privatekey', 'port'])).to.equal(undefined); - }); - - it('converts to string using the "name" property', function() { - networks.livenet.toString().should.equal('livenet'); - }); - - it('network object should be immutable', function() { - expect(networks.testnet.name).to.equal('testnet') - var fn = function() { networks.testnet.name = 'livenet' } - expect(fn).to.throw(TypeError) - }); - -}); diff --git a/test/opcode.js b/test/opcode.js deleted file mode 100644 index 5de57bd..0000000 --- a/test/opcode.js +++ /dev/null @@ -1,165 +0,0 @@ -'use strict'; - -var _ = require('lodash'); -var chai = require('chai'); -var should = chai.should(); -var expect = chai.expect; -var bitcore = require('..'); -var Opcode = bitcore.Opcode; - -describe('Opcode', function() { - - it('should create a new Opcode', function() { - var opcode = new Opcode(5); - should.exist(opcode); - }); - - it('should convert to a string with this handy syntax', function() { - Opcode(0).toString().should.equal('OP_0'); - Opcode(96).toString().should.equal('OP_16'); - Opcode(97).toString().should.equal('OP_NOP'); - }); - - it('should convert to a number with this handy syntax', function() { - Opcode('OP_0').toNumber().should.equal(0); - Opcode('OP_16').toNumber().should.equal(96); - Opcode('OP_NOP').toNumber().should.equal(97); - }); - - describe('#fromNumber', function() { - it('should work for 0', function() { - Opcode.fromNumber(0).num.should.equal(0); - }); - it('should fail for non-number', function() { - Opcode.fromNumber.bind(null, 'a string').should.throw('Invalid Argument'); - }); - }); - - describe('#set', function() { - it('should work for object', function() { - Opcode(42).num.should.equal(42); - }); - it('should fail for empty-object', function() { - expect(function() { - Opcode(); - }).to.throw(TypeError); - }); - }); - - describe('#toNumber', function() { - it('should work for 0', function() { - Opcode.fromNumber(0).toNumber().should.equal(0); - }); - }); - - describe('#buffer', function() { - it('should correctly input/output a buffer', function() { - var buf = new Buffer('a6', 'hex'); - Opcode.fromBuffer(buf).toBuffer().should.deep.equal(buf); - }); - }); - - describe('#fromString', function() { - it('should work for OP_0', function() { - Opcode.fromString('OP_0').num.should.equal(0); - }); - it('should fail for invalid string', function() { - Opcode.fromString.bind(null, 'OP_SATOSHI').should.throw('Invalid opcodestr'); - Opcode.fromString.bind(null, 'BANANA').should.throw('Invalid opcodestr'); - }); - it('should fail for non-string', function() { - Opcode.fromString.bind(null, 123).should.throw('Invalid Argument'); - }); - }); - - describe('#toString', function() { - it('should work for OP_0', function() { - Opcode.fromString('OP_0').toString().should.equal('OP_0'); - }); - - it('should not work for non-opcode', function() { - expect(function(){ - Opcode('OP_NOTACODE').toString(); - }).to.throw('Opcode does not have a string representation'); - }); - }); - - describe('@map', function() { - it('should have a map containing 117 elements', function() { - _.size(Opcode.map).should.equal(117); - }); - }); - - describe('@reverseMap', function() { - it('should exist and have op 185', function() { - should.exist(Opcode.reverseMap); - Opcode.reverseMap[185].should.equal('OP_NOP10'); - }); - }); - var smallints = [ - Opcode('OP_0'), - Opcode('OP_1'), - Opcode('OP_2'), - Opcode('OP_3'), - Opcode('OP_4'), - Opcode('OP_5'), - Opcode('OP_6'), - Opcode('OP_7'), - Opcode('OP_8'), - Opcode('OP_9'), - Opcode('OP_10'), - Opcode('OP_11'), - Opcode('OP_12'), - Opcode('OP_13'), - Opcode('OP_14'), - Opcode('OP_15'), - Opcode('OP_16') - ]; - - describe('@smallInt', function() { - var testSmallInt = function(n, op) { - Opcode.smallInt(n).toString().should.equal(op.toString()); - }; - - for (var i = 0; i < smallints.length; i++) { - var op = smallints[i]; - it('should work for small int ' + op, testSmallInt.bind(null, i, op)); - } - - it('with not number', function () { - Opcode.smallInt.bind(null, '2').should.throw('Invalid Argument'); - }); - - it('with n equal -1', function () { - Opcode.smallInt.bind(null, -1).should.throw('Invalid Argument'); - }); - - it('with n equal 17', function () { - Opcode.smallInt.bind(null, 17).should.throw('Invalid Argument'); - }); - }); - describe('@isSmallIntOp', function() { - var testIsSmallInt = function(op) { - Opcode.isSmallIntOp(op).should.equal(true); - }; - for (var i = 0; i < smallints.length; i++) { - var op = smallints[i]; - it('should work for small int ' + op, testIsSmallInt.bind(null, op)); - } - - it('should work for non-small ints', function() { - Opcode.isSmallIntOp(Opcode('OP_RETURN')).should.equal(false); - Opcode.isSmallIntOp(Opcode('OP_CHECKSIG')).should.equal(false); - Opcode.isSmallIntOp(Opcode('OP_IF')).should.equal(false); - Opcode.isSmallIntOp(Opcode('OP_NOP')).should.equal(false); - }); - - }); - - describe('#inspect', function() { - it('should output opcode by name, hex, and decimal', function() { - Opcode.fromString('OP_NOP').inspect().should.equal(''); - }); - }); - -}); diff --git a/test/privatekey.js b/test/privatekey.js deleted file mode 100644 index db45f60..0000000 --- a/test/privatekey.js +++ /dev/null @@ -1,457 +0,0 @@ -'use strict'; - -var chai = require('chai'); -var should = chai.should(); -var expect = chai.expect; - -var bitcore = require('..'); -var BN = bitcore.crypto.BN; -var Point = bitcore.crypto.Point; -var PrivateKey = bitcore.PrivateKey; -var Networks = bitcore.Networks; -var Base58Check = bitcore.encoding.Base58Check; - -var validbase58 = require('./data/bitcoind/base58_keys_valid.json'); -var invalidbase58 = require('./data/bitcoind/base58_keys_invalid.json'); - -describe('PrivateKey', function() { - var hex = '96c132224121b509b7d0a16245e957d9192609c5637c6228311287b1be21627a'; - var hex2 = '8080808080808080808080808080808080808080808080808080808080808080'; - var buf = new Buffer(hex, 'hex'); - var wifTestnet = 'cSdkPxkAjA4HDr5VHgsebAPDEh9Gyub4HK8UJr2DFGGqKKy4K5sG'; - var wifTestnetUncompressed = '92jJzK4tbURm1C7udQXxeCBvXHoHJstDXRxAMouPG1k1XUaXdsu'; - var wifLivenet = 'L2Gkw3kKJ6N24QcDuH4XDqt9cTqsKTVNDGz1CRZhk9cq4auDUbJy'; - var wifLivenetUncompressed = '5JxgQaFM1FMd38cd14e3mbdxsdSa9iM2BV6DHBYsvGzxkTNQ7Un'; - var wifNamecoin = '74pxNKNpByQ2kMow4d9kF6Z77BYeKztQNLq3dSyU4ES1K5KLNiz'; - - it('should create a new random private key', function() { - var a = new PrivateKey(); - should.exist(a); - should.exist(a.bn); - var b = PrivateKey(); - should.exist(b); - should.exist(b.bn); - }); - - it('should create a privatekey from hexa string', function() { - var a = new PrivateKey(hex2); - should.exist(a); - should.exist(a.bn); - }); - - it('should create a new random testnet private key with only one argument', function() { - var a = new PrivateKey(Networks.testnet); - should.exist(a); - should.exist(a.bn); - }); - - it('should create a private key from a custom network WIF string', function() { - var nmc = { - name: 'namecoin', - alias: 'namecoin', - pubkeyhash: 0x34, - privatekey: 0xB4, - // these below aren't the real NMC version numbers - scripthash: 0x08, - xpubkey: 0x0278b20e, - xprivkey: 0x0278ade4, - networkMagic: 0xf9beb4fe, - port: 20001, - dnsSeeds: [ - 'localhost', - 'mynet.localhost' - ] - }; - Networks.add(nmc); - var nmcNet = Networks.get('namecoin'); - var a = new PrivateKey(wifNamecoin, nmcNet); - should.exist(a); - should.exist(a.bn); - Networks.remove(nmcNet); - }); - - it('should create a new random testnet private key with empty data', function() { - var a = new PrivateKey(null, Networks.testnet); - should.exist(a); - should.exist(a.bn); - }); - - it('should create a private key from WIF string', function() { - var a = new PrivateKey('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - should.exist(a); - should.exist(a.bn); - }); - - it('should create a private key from WIF buffer', function() { - var a = new PrivateKey(Base58Check.decode('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m')); - should.exist(a); - should.exist(a.bn); - }); - - describe('bitcoind compliance', function() { - validbase58.map(function(d){ - if (d[2].isPrivkey) { - it('should instantiate WIF private key ' + d[0] + ' with correct properties', function() { - var network = Networks.livenet; - if (d[2].isTestnet) { - network = Networks.testnet; - } - var key = new PrivateKey(d[0]); - key.compressed.should.equal(d[2].isCompressed); - key.network.should.equal(network); - }); - } - }); - invalidbase58.map(function(d){ - it('should describe input ' + d[0].slice(0,10) + '... as invalid', function() { - expect(function() { - return new PrivateKey(d[0]); - }).to.throw(Error); - }); - }); - }); - - describe('instantiation', function() { - it('should not be able to instantiate private key greater than N', function() { - expect(function() { - return new PrivateKey(Point.getN()); - }).to.throw('Number must be less than N'); - }); - - it('should not be able to instantiate private key because of network mismatch', function() { - expect(function() { - return new PrivateKey('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m', 'testnet'); - }).to.throw('Private key network mismatch'); - }); - - it('should not be able to instantiate private key WIF is too long', function() { - expect(function() { - var buf = Base58Check.decode('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - var buf2 = Buffer.concat([buf, new Buffer(0x01)]); - return new PrivateKey(buf2); - }).to.throw('Length of buffer must be 33 (uncompressed) or 34 (compressed'); - }); - - it('should not be able to instantiate private key WIF because of unknown network byte', function() { - expect(function() { - var buf = Base58Check.decode('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - var buf2 = Buffer.concat([new Buffer('ff', 'hex'), buf.slice(1, 33)]); - return new PrivateKey(buf2); - }).to.throw('Invalid network'); - }); - - it('should not be able to instantiate private key WIF because of network mismatch', function() { - expect(function(){ - var a = new PrivateKey(wifNamecoin, 'testnet'); - }).to.throw('Invalid network'); - }); - - it('can be instantiated from a hex string', function() { - var privhex = '906977a061af29276e40bf377042ffbde414e496ae2260bbf1fa9d085637bfff'; - var pubhex = '02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc'; - var privkey = new PrivateKey(privhex); - privkey.publicKey.toString().should.equal(pubhex); - }); - - it('should not be able to instantiate because of unrecognized data', function() { - expect(function() { - return new PrivateKey(new Error()); - }).to.throw('First argument is an unrecognized data type.'); - }); - - it('should not be able to instantiate with unknown network', function() { - expect(function() { - return new PrivateKey(new BN(2), 'unknown'); - }).to.throw('Must specify the network ("livenet" or "testnet")'); - }); - - it('should not create a zero private key', function() { - expect(function() { - var bn = new BN(0); - return new PrivateKey(bn); - }).to.throw(TypeError); - }); - - it('should create a livenet private key', function() { - var privkey = new PrivateKey(BN.fromBuffer(buf), 'livenet'); - privkey.toWIF().should.equal(wifLivenet); - }); - - it('should create a default network private key', function() { - // keep the original - var network = Networks.defaultNetwork; - Networks.defaultNetwork = Networks.livenet; - var a = new PrivateKey(BN.fromBuffer(buf)); - a.network.should.equal(Networks.livenet); - // change the default - Networks.defaultNetwork = Networks.testnet; - var b = new PrivateKey(BN.fromBuffer(buf)); - b.network.should.equal(Networks.testnet); - // restore the default - Networks.defaultNetwork = network; - }); - - it('returns the same instance if a PrivateKey is provided (immutable)', function() { - var privkey = new PrivateKey(); - new PrivateKey(privkey).should.equal(privkey); - }); - - }); - - describe('#json/object', function() { - - it('should input/output json', function() { - var json = JSON.stringify({ - bn: '96c132224121b509b7d0a16245e957d9192609c5637c6228311287b1be21627a', - compressed: false, - network: 'livenet' - }); - var key = PrivateKey.fromObject(JSON.parse(json)); - JSON.stringify(key).should.equal(json); - }); - - it('input json should correctly initialize network field', function() { - ['livenet', 'testnet', 'mainnet'].forEach(function (net) { - var pk = PrivateKey.fromObject({ - bn: '96c132224121b509b7d0a16245e957d9192609c5637c6228311287b1be21627a', - compressed: false, - network: net - }); - pk.network.should.be.deep.equal(Networks.get(net)); - }); - }); - - it('fails on invalid argument', function() { - expect(function() { - return PrivateKey.fromJSON('¹'); - }).to.throw(); - }); - - it('also accepts an object as argument', function() { - expect(function() { - return PrivateKey.fromObject(new PrivateKey().toObject()); - }).to.not.throw(); - }); - }); - - it('coverage: public key cache', function() { - expect(function() { - var privateKey = new PrivateKey(); - /* jshint unused: false */ - var publicKey = privateKey.publicKey; - return privateKey.publicKey; - }).to.not.throw(); - }); - - describe('#toString', function() { - - it('should output this address correctly', function() { - var privkey = PrivateKey.fromWIF(wifLivenetUncompressed); - privkey.toWIF().should.equal(wifLivenetUncompressed); - }); - - }); - - describe('#toAddress', function() { - it('should output this known livenet address correctly', function() { - var privkey = PrivateKey.fromWIF('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - var address = privkey.toAddress(); - address.toString().should.equal('1A6ut1tWnUq1SEQLMr4ttDh24wcbJ5o9TT'); - }); - - it('should output this known testnet address correctly', function() { - var privkey = PrivateKey.fromWIF('cR4qogdN9UxLZJXCNFNwDRRZNeLRWuds9TTSuLNweFVjiaE4gPaq'); - var address = privkey.toAddress(); - address.toString().should.equal('mtX8nPZZdJ8d3QNLRJ1oJTiEi26Sj6LQXS'); - }); - - it('creates network specific address', function() { - var pk = PrivateKey.fromWIF('cR4qogdN9UxLZJXCNFNwDRRZNeLRWuds9TTSuLNweFVjiaE4gPaq'); - pk.toAddress(Networks.livenet).network.name.should.equal(Networks.livenet.name); - pk.toAddress(Networks.testnet).network.name.should.equal(Networks.testnet.name); - }); - - }); - - describe('#inspect', function() { - it('should output known livenet address for console', function() { - var privkey = PrivateKey.fromWIF('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - privkey.inspect().should.equal( - '' - ); - }); - - it('should output known testnet address for console', function() { - var privkey = PrivateKey.fromWIF('cR4qogdN9UxLZJXCNFNwDRRZNeLRWuds9TTSuLNweFVjiaE4gPaq'); - privkey.inspect().should.equal( - '' - ); - }); - - it('outputs "uncompressed" for uncompressed imported WIFs', function() { - var privkey = PrivateKey.fromWIF(wifLivenetUncompressed); - privkey.inspect().should.equal(''); - }); - }); - - describe('#getValidationError', function(){ - it('should get an error because private key greater than N', function() { - var n = Point.getN(); - var a = PrivateKey.getValidationError(n); - a.message.should.equal('Number must be less than N'); - }); - - it('should validate as false because private key greater than N', function() { - var n = Point.getN(); - var a = PrivateKey.isValid(n); - a.should.equal(false); - }); - - it('should recognize that undefined is an invalid private key', function() { - PrivateKey.isValid().should.equal(false); - }); - - it('should validate as true', function() { - var a = PrivateKey.isValid('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - a.should.equal(true); - }); - - }); - - describe('buffer serialization', function() { - it('returns an expected value when creating a PrivateKey from a buffer', function() { - var privkey = new PrivateKey(BN.fromBuffer(buf), 'livenet'); - privkey.toString().should.equal(buf.toString('hex')); - }); - - it('roundtrips correctly when using toBuffer/fromBuffer', function() { - var privkey = new PrivateKey(BN.fromBuffer(buf)); - var toBuffer = new PrivateKey(privkey.toBuffer()); - var fromBuffer = PrivateKey.fromBuffer(toBuffer.toBuffer()); - fromBuffer.toString().should.equal(privkey.toString()); - }); - - it('will output a 31 byte buffer', function() { - var bn = BN.fromBuffer(new Buffer('9b5a0e8fee1835e21170ce1431f9b6f19b487e67748ed70d8a4462bc031915', 'hex')); - var privkey = new PrivateKey(bn); - var buffer = privkey.toBufferNoPadding(); - buffer.length.should.equal(31); - }); - - // TODO: enable for v1.0.0 when toBuffer is changed to always be 32 bytes long - // it('will output a 32 byte buffer', function() { - // var bn = BN.fromBuffer(new Buffer('9b5a0e8fee1835e21170ce1431f9b6f19b487e67748ed70d8a4462bc031915', 'hex')); - // var privkey = new PrivateKey(bn); - // var buffer = privkey.toBuffer(); - // buffer.length.should.equal(32); - // }); - - // TODO: enable for v1.0.0 when toBuffer is changed to always be 32 bytes long - // it('should return buffer with length equal 32', function() { - // var bn = BN.fromBuffer(buf.slice(0, 31)); - // var privkey = new PrivateKey(bn, 'livenet'); - // var expected = Buffer.concat([ new Buffer([0]), buf.slice(0, 31) ]); - // privkey.toBuffer().toString('hex').should.equal(expected.toString('hex')); - // }); - }); - - describe('#toBigNumber', function() { - it('should output known BN', function() { - var a = BN.fromBuffer(buf); - var privkey = new PrivateKey(a, 'livenet'); - var b = privkey.toBigNumber(); - b.toString('hex').should.equal(a.toString('hex')); - }); - }); - - describe('#fromRandom', function() { - - it('should set bn gt 0 and lt n, and should be compressed', function() { - var privkey = PrivateKey.fromRandom(); - privkey.bn.gt(new BN(0)).should.equal(true); - privkey.bn.lt(Point.getN()).should.equal(true); - privkey.compressed.should.equal(true); - }); - - }); - - describe('#fromWIF', function() { - - it('should parse this compressed testnet address correctly', function() { - var privkey = PrivateKey.fromWIF(wifLivenet); - privkey.toWIF().should.equal(wifLivenet); - }); - - }); - - describe('#toWIF', function() { - - it('should parse this compressed testnet address correctly', function() { - var privkey = PrivateKey.fromWIF(wifTestnet); - privkey.toWIF().should.equal(wifTestnet); - }); - - }); - - describe('#fromString', function() { - - it('should parse this uncompressed testnet address correctly', function() { - var privkey = PrivateKey.fromString(wifTestnetUncompressed); - privkey.toWIF().should.equal(wifTestnetUncompressed); - }); - - }); - - describe('#toString', function() { - - it('should parse this uncompressed livenet address correctly', function() { - var privkey = PrivateKey.fromString(wifLivenetUncompressed); - privkey.toString().should.equal("96c132224121b509b7d0a16245e957d9192609c5637c6228311287b1be21627a"); - }); - - }); - - describe('#toPublicKey', function() { - - it('should convert this known PrivateKey to known PublicKey', function() { - var privhex = '906977a061af29276e40bf377042ffbde414e496ae2260bbf1fa9d085637bfff'; - var pubhex = '02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc'; - var privkey = new PrivateKey(new BN(new Buffer(privhex, 'hex'))); - var pubkey = privkey.toPublicKey(); - pubkey.toString().should.equal(pubhex); - }); - - it('should have a "publicKey" property', function() { - var privhex = '906977a061af29276e40bf377042ffbde414e496ae2260bbf1fa9d085637bfff'; - var pubhex = '02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc'; - var privkey = new PrivateKey(new BN(new Buffer(privhex, 'hex'))); - privkey.publicKey.toString().should.equal(pubhex); - }); - - it('should convert this known PrivateKey to known PublicKey and preserve compressed=true', function() { - var privwif = 'L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'; - var privkey = new PrivateKey(privwif, 'livenet'); - var pubkey = privkey.toPublicKey(); - pubkey.compressed.should.equal(true); - }); - - it('should convert this known PrivateKey to known PublicKey and preserve compressed=false', function() { - var privwif = '92jJzK4tbURm1C7udQXxeCBvXHoHJstDXRxAMouPG1k1XUaXdsu'; - var privkey = new PrivateKey(privwif, 'testnet'); - var pubkey = privkey.toPublicKey(); - pubkey.compressed.should.equal(false); - }); - - }); - - it('creates an address as expected from WIF, livenet', function() { - var privkey = new PrivateKey('5J2NYGstJg7aJQEqNwYp4enG5BSfFdKXVTtBLvHicnRGD5kjxi6'); - privkey.publicKey.toAddress().toString().should.equal('135bwugFCmhmNU3SeCsJeTqvo5ViymgwZ9'); - }); - - it('creates an address as expected from WIF, testnet', function() { - var privkey = new PrivateKey('92VYMmwFLXRwXn5688edGxYYgMFsc3fUXYhGp17WocQhU6zG1kd'); - privkey.publicKey.toAddress().toString().should.equal('moiAvLUw16qgrwhFGo1eDnXHC2wPMYiv7Y'); - }); - -}); diff --git a/test/publickey.js b/test/publickey.js deleted file mode 100644 index d0a52a6..0000000 --- a/test/publickey.js +++ /dev/null @@ -1,430 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var expect = require('chai').expect; - -var bitcore = require('..'); -var Point = bitcore.crypto.Point; -var BN = bitcore.crypto.BN; -var PublicKey = bitcore.PublicKey; -var PrivateKey = bitcore.PrivateKey; -var Address = bitcore.Address; -var Networks = bitcore.Networks; - -/* jshint maxlen: 200 */ - -describe('PublicKey', function() { - /* jshint maxstatements: 30 */ - - var invalidPoint = '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; - - describe('validating errors on creation', function() { - it('errors if data is missing', function() { - (function() { - return new PublicKey(); - }).should.throw('First argument is required, please include public key data.'); - }); - - it('errors if an invalid point is provided', function() { - (function() { - return new PublicKey(invalidPoint); - }).should.throw('Point does not lie on the curve'); - }); - - it('errors if a point not on the secp256k1 curve is provided', function() { - (function() { - return new PublicKey(new Point(1000, 1000)); - }).should.throw('Point does not lie on the curve'); - }); - - it('errors if the argument is of an unrecognized type', function() { - (function() { - return new PublicKey(new Error()); - }).should.throw('First argument is an unrecognized data format.'); - }); - }); - - describe('instantiation', function() { - - it('from a private key', function() { - var privhex = '906977a061af29276e40bf377042ffbde414e496ae2260bbf1fa9d085637bfff'; - var pubhex = '02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc'; - var privkey = new PrivateKey(new BN(new Buffer(privhex, 'hex'))); - var pk = new PublicKey(privkey); - pk.toString().should.equal(pubhex); - }); - - it('problematic secp256k1 public keys', function() { - - var knownKeys = [ - { - wif: 'KzsjKq2FVqVuQv2ueHVFuB65A9uEZ6S1L6F8NuokCrE3V3kE3Ack', - priv: '6d1229a6b24c2e775c062870ad26bc261051e0198c67203167273c7c62538846', - pub: '03d6106302d2698d6a41e9c9a114269e7be7c6a0081317de444bb2980bf9265a01', - pubx: 'd6106302d2698d6a41e9c9a114269e7be7c6a0081317de444bb2980bf9265a01', - puby: 'e05fb262e64b108991a29979809fcef9d3e70cafceb3248c922c17d83d66bc9d' - }, - { - wif: 'L5MgSwNB2R76xBGorofRSTuQFd1bm3hQMFVf3u2CneFom8u1Yt7G', - priv: 'f2cc9d2b008927db94b89e04e2f6e70c180e547b3e5e564b06b8215d1c264b53', - pub: '03e275faa35bd1e88f5df6e8f9f6edb93bdf1d65f4915efc79fd7a726ec0c21700', - pubx: 'e275faa35bd1e88f5df6e8f9f6edb93bdf1d65f4915efc79fd7a726ec0c21700', - puby: '367216cb35b086e6686d69dddd822a8f4d52eb82ac5d9de18fdcd9bf44fa7df7' - } - ]; - - for(var i = 0; i < knownKeys.length; i++) { - var privkey = new PrivateKey(knownKeys[i].wif); - var pubkey = privkey.toPublicKey(); - pubkey.toString().should.equal(knownKeys[i].pub); - pubkey.point.x.toString('hex').should.equal(knownKeys[i].pubx); - pubkey.point.y.toString('hex').should.equal(knownKeys[i].puby); - } - - }); - - it('from a compressed public key', function() { - var publicKeyHex = '031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'; - var publicKey = new PublicKey(publicKeyHex); - publicKey.toString().should.equal(publicKeyHex); - }); - - it('from another publicKey', function() { - var publicKeyHex = '031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'; - var publicKey = new PublicKey(publicKeyHex); - var publicKey2 = new PublicKey(publicKey); - publicKey.should.equal(publicKey2); - }); - - it('sets the network to defaultNetwork if none provided', function() { - var publicKeyHex = '031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'; - var publicKey = new PublicKey(publicKeyHex); - publicKey.network.should.equal(Networks.defaultNetwork); - }); - - it('from a hex encoded DER string', function() { - var pk = new PublicKey('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - should.exist(pk.point); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }); - - it('from a hex encoded DER buffer', function() { - var pk = new PublicKey(new Buffer('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341', 'hex')); - should.exist(pk.point); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }); - - it('from a point', function() { - var p = new Point('86a80a5a2bfc48dddde2b0bd88bd56b0b6ddc4e6811445b175b90268924d7d48', - '3b402dfc89712cfe50963e670a0598e6b152b3cd94735001cdac6794975d3afd'); - var a = new PublicKey(p); - should.exist(a.point); - a.point.toString().should.equal(p.toString()); - var c = new PublicKey(p); - should.exist(c.point); - c.point.toString().should.equal(p.toString()); - }); - }); - - - describe('#getValidationError', function(){ - - it('should recieve an invalid point error', function() { - var error = PublicKey.getValidationError(invalidPoint); - should.exist(error); - error.message.should.equal('Point does not lie on the curve'); - }); - - it('should recieve a boolean as false', function() { - var valid = PublicKey.isValid(invalidPoint); - valid.should.equal(false); - }); - - it('should recieve a boolean as true for uncompressed', function() { - var valid = PublicKey.isValid('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - valid.should.equal(true); - }); - - it('should recieve a boolean as true for compressed', function() { - var valid = PublicKey.isValid('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - valid.should.equal(true); - }); - - }); - - describe('#fromPoint', function() { - - it('should instantiate from a point', function() { - var p = new Point('86a80a5a2bfc48dddde2b0bd88bd56b0b6ddc4e6811445b175b90268924d7d48', - '3b402dfc89712cfe50963e670a0598e6b152b3cd94735001cdac6794975d3afd'); - var b = PublicKey.fromPoint(p); - should.exist(b.point); - b.point.toString().should.equal(p.toString()); - }); - - it('should error because paramater is not a point', function() { - (function() { - PublicKey.fromPoint(new Error()); - }).should.throw('First argument must be an instance of Point.'); - }); - }); - - describe('#json/object', function() { - - it('should input/ouput json', function() { - var json = JSON.stringify({ - x: '1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', - y: '7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341', - compressed: false - }); - var pubkey = new PublicKey(JSON.parse(json)); - JSON.stringify(pubkey).should.deep.equal(json); - }); - - it('fails if "y" is not provided', function() { - expect(function() { - return new PublicKey({ - x: '1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a' - }); - }).to.throw(); - }); - - it('fails if invalid JSON is provided', function() { - expect(function() { - return PublicKey._transformJSON('¹'); - }).to.throw(); - }); - - it('works for X starting with 0x00', function() { - var a = new PublicKey('030589ee559348bd6a7325994f9c8eff12bd5d73cc683142bd0dd1a17abc99b0dc'); - var b = new PublicKey('03'+a.toObject().x); - b.toString().should.equal(a.toString()); - }); - - }); - - describe('#fromPrivateKey', function() { - - it('should make a public key from a privkey', function() { - should.exist(PublicKey.fromPrivateKey(PrivateKey.fromRandom())); - }); - - it('should error because not an instance of privkey', function() { - (function() { - PublicKey.fromPrivateKey(new Error()); - }).should.throw('Must be an instance of PrivateKey'); - }); - - }); - - describe('#fromBuffer', function() { - - it('should parse this uncompressed public key', function() { - var pk = PublicKey.fromBuffer(new Buffer('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341', 'hex')); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - it('should parse this compressed public key', function() { - var pk = PublicKey.fromBuffer(new Buffer('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - it('should throw an error on this invalid public key', function() { - (function() { - PublicKey.fromBuffer(new Buffer('091ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - }).should.throw(); - }); - - it('should throw error because not a buffer', function() { - (function() { - PublicKey.fromBuffer('091ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }).should.throw('Must be a hex buffer of DER encoded public key'); - }); - - it('should throw error because buffer is the incorrect length', function() { - (function() { - PublicKey.fromBuffer(new Buffer('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a34112', 'hex')); - }).should.throw('Length of x and y must be 32 bytes'); - }); - - }); - - describe('#fromDER', function() { - - it('should parse this uncompressed public key', function() { - var pk = PublicKey.fromDER(new Buffer('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341', 'hex')); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - it('should parse this compressed public key', function() { - var pk = PublicKey.fromDER(new Buffer('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - it('should throw an error on this invalid public key', function() { - (function() { - PublicKey.fromDER(new Buffer('091ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - }).should.throw(); - }); - - }); - - describe('#fromString', function() { - - it('should parse this known valid public key', function() { - var pk = PublicKey.fromString('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - }); - - describe('#fromX', function() { - - it('should create this known public key', function() { - var x = BN.fromBuffer(new Buffer('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - var pk = PublicKey.fromX(true, x); - pk.point.getX().toString(16).should.equal('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pk.point.getY().toString(16).should.equal('7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - - - it('should error because odd was not included as a param', function() { - var x = BN.fromBuffer(new Buffer('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - (function() { - return PublicKey.fromX(null, x); - }).should.throw('Must specify whether y is odd or not (true or false)'); - }); - - }); - - describe('#toBuffer', function() { - - it('should return this compressed DER format', function() { - var x = BN.fromBuffer(new Buffer('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - var pk = PublicKey.fromX(true, x); - pk.toBuffer().toString('hex').should.equal('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }); - - it('should return this uncompressed DER format', function() { - var x = BN.fromBuffer(new Buffer('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - var pk = PublicKey.fromX(true, x); - pk.toBuffer().toString('hex').should.equal('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }); - - }); - - describe('#toDER', function() { - - it('should return this compressed DER format', function() { - var x = BN.fromBuffer(new Buffer('1ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a', 'hex')); - var pk = PublicKey.fromX(true, x); - pk.toDER().toString('hex').should.equal('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - }); - - it('should return this uncompressed DER format', function() { - var pk = PublicKey.fromString('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - pk.toDER().toString('hex').should.equal('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - }); - }); - - describe('#toAddress', function() { - - it('should output this known mainnet address correctly', function() { - var pk = new PublicKey('03c87bd0e162f26969da8509cafcb7b8c8d202af30b928c582e263dd13ee9a9781'); - var address = pk.toAddress('livenet'); - address.toString().should.equal('1A6ut1tWnUq1SEQLMr4ttDh24wcbJ5o9TT'); - }); - - it('should output this known testnet address correctly', function() { - var pk = new PublicKey('0293126ccc927c111b88a0fe09baa0eca719e2a3e087e8a5d1059163f5c566feef'); - var address = pk.toAddress('testnet'); - address.toString().should.equal('mtX8nPZZdJ8d3QNLRJ1oJTiEi26Sj6LQXS'); - }); - - }); - - describe('hashes', function() { - - // wif private key, address - // see: https://github.com/bitcoin/bitcoin/blob/master/src/test/key_tests.cpp#L20 - var data = [ - ['5HxWvvfubhXpYYpS3tJkw6fq9jE9j18THftkZjHHfmFiWtmAbrj', '1QFqqMUD55ZV3PJEJZtaKCsQmjLT6JkjvJ'], - ['5KC4ejrDjv152FGwP386VD1i2NYc5KkfSMyv1nGy1VGDxGHqVY3', '1F5y5E5FMc5YzdJtB9hLaUe43GDxEKXENJ'], - ['Kwr371tjA9u2rFSMZjTNun2PXXP3WPZu2afRHTcta6KxEUdm1vEw', '1NoJrossxPBKfCHuJXT4HadJrXRE9Fxiqs'], - ['L3Hq7a8FEQwJkW1M2GNKDW28546Vp5miewcCzSqUD9kCAXrJdS3g', '1CRj2HyM1CXWzHAXLQtiGLyggNT9WQqsDs'] - ]; - - data.forEach(function(d){ - var publicKey = PrivateKey.fromWIF(d[0]).toPublicKey(); - var address = Address.fromString(d[1]); - address.hashBuffer.should.deep.equal(publicKey._getID()); - }); - - }); - - describe('#toString', function() { - - it('should print this known public key', function() { - var hex = '031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'; - var pk = PublicKey.fromString(hex); - pk.toString().should.equal(hex); - }); - - }); - - describe('#inspect', function() { - it('should output known uncompressed pubkey for console', function() { - var pubkey = PublicKey.fromString('041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a7baad41d04514751e6851f5304fd243751703bed21b914f6be218c0fa354a341'); - pubkey.inspect().should.equal(''); - }); - - it('should output known compressed pubkey for console', function() { - var pubkey = PublicKey.fromString('031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'); - pubkey.inspect().should.equal(''); - }); - - it('should output known compressed pubkey with network for console', function() { - var privkey = PrivateKey.fromWIF('L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m'); - var pubkey = new PublicKey(privkey); - pubkey.inspect().should.equal(''); - }); - - }); - - describe('#validate', function() { - - it('should not have an error if pubkey is valid', function() { - var hex = '031ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a'; - expect(function() { - return PublicKey.fromString(hex); - }).to.not.throw(); - }); - - it('should throw an error if pubkey is invalid', function() { - var hex = '041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a0000000000000000000000000000000000000000000000000000000000000000'; - (function() { - return PublicKey.fromString(hex); - }).should.throw('Invalid y value for curve.'); - }); - - it('should throw an error if pubkey is invalid', function() { - var hex = '041ff0fe0f7b15ffaa85ff9f4744d539139c252a49710fb053bb9f2b933173ff9a00000000000000000000000000000000000000000000000000000000000000FF'; - (function() { - return PublicKey.fromString(hex); - }).should.throw('Invalid y value for curve.'); - }); - - it('should throw an error if pubkey is infinity', function() { - (function() { - return new PublicKey(Point.getG().mul(Point.getN())); - }).should.throw('Point cannot be equal to Infinity'); - }); - - }); - -}); diff --git a/test/script/interpreter.js b/test/script/interpreter.js deleted file mode 100644 index 70b9519..0000000 --- a/test/script/interpreter.js +++ /dev/null @@ -1,417 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var sinon = require('sinon'); -var bitcore = require('../..'); -var Interpreter = bitcore.Script.Interpreter; -var Transaction = bitcore.Transaction; -var PrivateKey = bitcore.PrivateKey; -var Script = bitcore.Script; -var BN = bitcore.crypto.BN; -var BufferWriter = bitcore.encoding.BufferWriter; -var Opcode = bitcore.Opcode; -var _ = require('lodash'); - -var script_valid = require('../data/bitcoind/script_valid'); -var script_invalid = require('../data/bitcoind/script_invalid'); -var tx_valid = require('../data/bitcoind/tx_valid'); -var tx_invalid = require('../data/bitcoind/tx_invalid'); - -//the script string format used in bitcoind data tests -Script.fromBitcoindString = function(str) { - var bw = new BufferWriter(); - var tokens = str.split(' '); - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i]; - if (token === '') { - continue; - } - - var opstr; - var opcodenum; - var tbuf; - if (token[0] === '0' && token[1] === 'x') { - var hex = token.slice(2); - bw.write(new Buffer(hex, 'hex')); - } else if (token[0] === '\'') { - var tstr = token.slice(1, token.length - 1); - var cbuf = new Buffer(tstr); - tbuf = Script().add(cbuf).toBuffer(); - bw.write(tbuf); - } else if (typeof Opcode['OP_' + token] !== 'undefined') { - opstr = 'OP_' + token; - opcodenum = Opcode[opstr]; - bw.writeUInt8(opcodenum); - } else if (typeof Opcode[token] === 'number') { - opstr = token; - opcodenum = Opcode[opstr]; - bw.writeUInt8(opcodenum); - } else if (!isNaN(parseInt(token))) { - var script = Script().add(new BN(token).toScriptNumBuffer()); - tbuf = script.toBuffer(); - bw.write(tbuf); - } else { - throw new Error('Could not determine type of script value'); - } - } - var buf = bw.concat(); - return this.fromBuffer(buf); -}; - - - -describe('Interpreter', function() { - - it('should make a new interp', function() { - var interp = new Interpreter(); - (interp instanceof Interpreter).should.equal(true); - interp.stack.length.should.equal(0); - interp.altstack.length.should.equal(0); - interp.pc.should.equal(0); - interp.pbegincodehash.should.equal(0); - interp.nOpCount.should.equal(0); - interp.vfExec.length.should.equal(0); - interp.errstr.should.equal(''); - interp.flags.should.equal(0); - }); - - describe('@castToBool', function() { - - it('should cast these bufs to bool correctly', function() { - Interpreter.castToBool(new BN(0).toSM({ - endian: 'little' - })).should.equal(false); - Interpreter.castToBool(new Buffer('0080', 'hex')).should.equal(false); //negative 0 - Interpreter.castToBool(new BN(1).toSM({ - endian: 'little' - })).should.equal(true); - Interpreter.castToBool(new BN(-1).toSM({ - endian: 'little' - })).should.equal(true); - - var buf = new Buffer('00', 'hex'); - var bool = BN.fromSM(buf, { - endian: 'little' - }).cmp(BN.Zero) !== 0; - Interpreter.castToBool(buf).should.equal(bool); - }); - - }); - - describe('#verifyWitnessProgram', function() { - it('will return true if witness program greater than 0', function() { - var si = Interpreter(); - var version = 1; - var program = new Buffer('bcbd1db07ce89d1f4050645c26c90ce78b67eff78460002a4d5c10410958e064', 'hex'); - var witness = [new Buffer('bda0eeeb166c8bfeaee88dedc8efa82d3bea35aac5be253902f59d52908bfe25', 'hex')]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(true); - }); - it('will return false with error if witness length is 0', function() { - var si = Interpreter(); - var version = 0; - var program = new Buffer('bcbd1db07ce89d1f4050645c26c90ce78b67eff78460002a4d5c10410958e064', 'hex'); - var witness = []; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY'); - }); - it('will return false if program hash mismatch (version 0, 32 byte program)', function() { - var si = Interpreter(); - var version = 0; - var program = new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH'); - }); - it('will return false if witness stack doesn\'t have two items (version 0, 20 byte program)', function() { - var si = Interpreter(); - var version = 0; - var program = new Buffer('b8bcb07f6344b42ab04250c86a6e8b75d3fdbbc6', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH'); - }); - it('will return false if program wrong length for version 0', function() { - var si = Interpreter(); - var version = 0; - var program = new Buffer('b8bcb07f6344b42ab04250c86a6e8b75d3', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH'); - }); - it('will return false with discourage upgradable witness program', function() { - var si = Interpreter(); - var version = 1; - var program = new Buffer('b8bcb07f6344b42ab04250c86a6e8b75d3fdbbc6', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = Interpreter.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM'); - }); - it('will return false with error if stack doesn\'t have exactly one item', function() { - var si = Interpreter(); - si.evaluate = sinon.stub().returns(true); - var version = 0; - var program = new Buffer('b8bcb07f6344b42ab04250c86a6e8b75d3fdbbc6', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_EVAL_FALSE'); - }); - it('will return false if last item in stack casts to false', function() { - var si = Interpreter(); - si.evaluate = function() { - si.stack = [new Buffer('00', 'hex')]; - return true; - }; - var version = 0; - var program = new Buffer('b8bcb07f6344b42ab04250c86a6e8b75d3fdbbc6', 'hex'); - var witness = [ - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), - new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex') - ]; - var satoshis = 1; - var flags = 0; - si.verifyWitnessProgram(version, program, witness, satoshis, flags).should.equal(false); - si.errstr.should.equal('SCRIPT_ERR_EVAL_FALSE_IN_STACK'); - }); - }); - - describe('#verify', function() { - - it('should verify these trivial scripts', function() { - var verified; - var si = Interpreter(); - verified = si.verify(Script('OP_1'), Script('OP_1')); - verified.should.equal(true); - verified = Interpreter().verify(Script('OP_1'), Script('OP_0')); - verified.should.equal(false); - verified = Interpreter().verify(Script('OP_0'), Script('OP_1')); - verified.should.equal(true); - verified = Interpreter().verify(Script('OP_CODESEPARATOR'), Script('OP_1')); - verified.should.equal(true); - verified = Interpreter().verify(Script(''), Script('OP_DEPTH OP_0 OP_EQUAL')); - verified.should.equal(true); - verified = Interpreter().verify(Script('OP_1 OP_2'), Script('OP_2 OP_EQUALVERIFY OP_1 OP_EQUAL')); - verified.should.equal(true); - verified = Interpreter().verify(Script('9 0x000000000000000010'), Script('')); - verified.should.equal(true); - verified = Interpreter().verify(Script('OP_1'), Script('OP_15 OP_ADD OP_16 OP_EQUAL')); - verified.should.equal(true); - verified = Interpreter().verify(Script('OP_0'), Script('OP_IF OP_VER OP_ELSE OP_1 OP_ENDIF')); - verified.should.equal(true); - }); - - it('should verify these simple transaction', function() { - // first we create a transaction - var privateKey = new PrivateKey('cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY'); - var publicKey = privateKey.publicKey; - var fromAddress = publicKey.toAddress(); - var toAddress = 'mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc'; - var scriptPubkey = Script.buildPublicKeyHashOut(fromAddress); - var utxo = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: scriptPubkey, - satoshis: 100000 - }; - var tx = new Transaction() - .from(utxo) - .to(toAddress, 100000) - .sign(privateKey); - - // we then extract the signature from the first input - var inputIndex = 0; - var signature = tx.getSignatures(privateKey)[inputIndex].signature; - - var scriptSig = Script.buildPublicKeyHashIn(publicKey, signature); - var flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_STRICTENC; - var verified = Interpreter().verify(scriptSig, scriptPubkey, tx, inputIndex, flags); - verified.should.equal(true); - }); - }); - - - var getFlags = function getFlags(flagstr) { - var flags = 0; - if (flagstr.indexOf('NONE') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_NONE; - } - if (flagstr.indexOf('P2SH') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_P2SH; - } - if (flagstr.indexOf('STRICTENC') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_STRICTENC; - } - if (flagstr.indexOf('DERSIG') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_DERSIG; - } - if (flagstr.indexOf('LOW_S') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_LOW_S; - } - if (flagstr.indexOf('NULLDUMMY') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_NULLDUMMY; - } - if (flagstr.indexOf('SIGPUSHONLY') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_SIGPUSHONLY; - } - if (flagstr.indexOf('MINIMALDATA') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_MINIMALDATA; - } - if (flagstr.indexOf('DISCOURAGE_UPGRADABLE_NOPS') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS; - } - if (flagstr.indexOf('CHECKLOCKTIMEVERIFY') !== -1) { - flags = flags | Interpreter.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY; - } - return flags; - }; - - - var testToFromString = function(script) { - var s = script.toString(); - Script.fromString(s).toString().should.equal(s); - }; - - var testFixture = function(vector, expected) { - var scriptSig = Script.fromBitcoindString(vector[0]); - var scriptPubkey = Script.fromBitcoindString(vector[1]); - var flags = getFlags(vector[2]); - - var hashbuf = new Buffer(32); - hashbuf.fill(0); - var credtx = new Transaction(); - credtx.uncheckedAddInput(new Transaction.Input({ - prevTxId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 0xffffffff, - sequenceNumber: 0xffffffff, - script: Script('OP_0 OP_0') - })); - credtx.addOutput(new Transaction.Output({ - script: scriptPubkey, - satoshis: 0 - })); - var idbuf = credtx.id; - - var spendtx = new Transaction(); - spendtx.uncheckedAddInput(new Transaction.Input({ - prevTxId: idbuf.toString('hex'), - outputIndex: 0, - sequenceNumber: 0xffffffff, - script: scriptSig - })); - spendtx.addOutput(new Transaction.Output({ - script: new Script(), - satoshis: 0 - })); - - var interp = new Interpreter(); - var verified = interp.verify(scriptSig, scriptPubkey, spendtx, 0, flags); - verified.should.equal(expected); - }; - describe('bitcoind script evaluation fixtures', function() { - var testAllFixtures = function(set, expected) { - var c = 0; - set.forEach(function(vector) { - if (vector.length === 1) { - return; - } - c++; - var descstr = vector[3]; - var fullScriptString = vector[0] + ' ' + vector[1]; - var comment = descstr ? (' (' + descstr + ')') : ''; - it('should pass script_' + (expected ? '' : 'in') + 'valid ' + - 'vector #' + c + ': ' + fullScriptString + comment, - function() { - testFixture(vector, expected); - }); - }); - }; - testAllFixtures(script_valid, true); - testAllFixtures(script_invalid, false); - - }); - describe('bitcoind transaction evaluation fixtures', function() { - var test_txs = function(set, expected) { - var c = 0; - set.forEach(function(vector) { - if (vector.length === 1) { - return; - } - c++; - var cc = c; //copy to local - it('should pass tx_' + (expected ? '' : 'in') + 'valid vector ' + cc, function() { - var inputs = vector[0]; - var txhex = vector[1]; - var flags = getFlags(vector[2]); - - var map = {}; - inputs.forEach(function(input) { - var txid = input[0]; - var txoutnum = input[1]; - var scriptPubKeyStr = input[2]; - if (txoutnum === -1) { - txoutnum = 0xffffffff; //bitcoind casts -1 to an unsigned int - } - map[txid + ':' + txoutnum] = Script.fromBitcoindString(scriptPubKeyStr); - }); - - var tx = new Transaction(txhex); - var allInputsVerified = true; - tx.inputs.forEach(function(txin, j) { - if (txin.isNull()) { - return; - } - var scriptSig = txin.script; - var txidhex = txin.prevTxId.toString('hex'); - var txoutnum = txin.outputIndex; - var scriptPubkey = map[txidhex + ':' + txoutnum]; - should.exist(scriptPubkey); - (scriptSig !== undefined).should.equal(true); - var interp = new Interpreter(); - var verified = interp.verify(scriptSig, scriptPubkey, tx, j, flags); - if (!verified) { - allInputsVerified = false; - } - }); - var txVerified = tx.verify(); - txVerified = (txVerified === true) ? true : false; - allInputsVerified = allInputsVerified && txVerified; - allInputsVerified.should.equal(expected); - - }); - }); - }; - test_txs(tx_valid, true); - test_txs(tx_invalid, false); - - }); - -}); diff --git a/test/script/script.js b/test/script/script.js deleted file mode 100644 index e1ff03f..0000000 --- a/test/script/script.js +++ /dev/null @@ -1,1079 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var expect = require('chai').expect; -var bitcore = require('../..'); - -var BufferUtil = bitcore.util.buffer; -var Script = bitcore.Script; -var Networks = bitcore.Networks; -var Opcode = bitcore.Opcode; -var PublicKey = bitcore.PublicKey; -var Address = bitcore.Address; - -describe('Script', function() { - - it('should make a new script', function() { - var script = new Script(); - expect(script).to.be.instanceof(Script); - expect(script.chunks).to.deep.equal([]); - }); - - it('should make a new script when from is null', function() { - var script = new Script(null); - expect(script).to.be.instanceof(Script); - expect(script.chunks).to.deep.equal([]); - }); - - describe('#set', function() { - var script = new Script(); - - it('should be object', function() { - expect(function() { - script.set(null); - }).to.throw(/^Invalid Argument$/) - }); - - it('chunks should be array', function() { - expect(function() { - script.set({chunks: 1}); - }).to.throw(/^Invalid Argument$/); - }); - - it('set chunks', function() { - script.set({chunks: [1]}); - expect(script.chunks).to.deep.equal([1]); - }); - }); - - describe('#fromBuffer', function() { - - it('should parse this buffer containing an OP code', function() { - var buf = new Buffer(1); - buf[0] = Opcode.OP_0; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].opcodenum.should.equal(buf[0]); - }); - - it('should parse this buffer containing another OP code', function() { - var buf = new Buffer(1); - buf[0] = Opcode.OP_CHECKMULTISIG; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].opcodenum.should.equal(buf[0]); - }); - - it('should parse this buffer containing three bytes of data', function() { - var buf = new Buffer([3, 1, 2, 3]); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - }); - - it('should parse this buffer containing OP_PUSHDATA1 and three bytes of data', function() { - var buf = new Buffer([0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA1; - buf.writeUInt8(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - }); - - it('should parse this buffer containing OP_PUSHDATA2 and three bytes of data', function() { - var buf = new Buffer([0, 0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA2; - buf.writeUInt16LE(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - }); - - it('should parse this buffer containing OP_PUSHDATA4 and three bytes of data', function() { - var buf = new Buffer([0, 0, 0, 0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA4; - buf.writeUInt16LE(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - }); - - it('should parse this buffer an OP code, data, and another OP code', function() { - var buf = new Buffer([0, 0, 0, 0, 0, 0, 1, 2, 3, 0]); - buf[0] = Opcode.OP_0; - buf[1] = Opcode.OP_PUSHDATA4; - buf.writeUInt16LE(3, 2); - buf[buf.length - 1] = Opcode.OP_0; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(3); - script.chunks[0].opcodenum.should.equal(buf[0]); - script.chunks[1].buf.toString('hex').should.equal('010203'); - script.chunks[2].opcodenum.should.equal(buf[buf.length - 1]); - }); - - }); - - describe('#toBuffer', function() { - - it('should output this buffer containing an OP code', function() { - var buf = new Buffer(1); - buf[0] = Opcode.OP_0; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].opcodenum.should.equal(buf[0]); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer containing another OP code', function() { - var buf = new Buffer(1); - buf[0] = Opcode.OP_CHECKMULTISIG; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].opcodenum.should.equal(buf[0]); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer containing three bytes of data', function() { - var buf = new Buffer([3, 1, 2, 3]); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer containing OP_PUSHDATA1 and three bytes of data', function() { - var buf = new Buffer([0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA1; - buf.writeUInt8(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer containing OP_PUSHDATA2 and three bytes of data', function() { - var buf = new Buffer([0, 0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA2; - buf.writeUInt16LE(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer containing OP_PUSHDATA4 and three bytes of data', function() { - var buf = new Buffer([0, 0, 0, 0, 0, 1, 2, 3]); - buf[0] = Opcode.OP_PUSHDATA4; - buf.writeUInt16LE(3, 1); - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(1); - script.chunks[0].buf.toString('hex').should.equal('010203'); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - it('should output this buffer an OP code, data, and another OP code', function() { - var buf = new Buffer([0, 0, 0, 0, 0, 0, 1, 2, 3, 0]); - buf[0] = Opcode.OP_0; - buf[1] = Opcode.OP_PUSHDATA4; - buf.writeUInt16LE(3, 2); - buf[buf.length - 1] = Opcode.OP_0; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(3); - script.chunks[0].opcodenum.should.equal(buf[0]); - script.chunks[1].buf.toString('hex').should.equal('010203'); - script.chunks[2].opcodenum.should.equal(buf[buf.length - 1]); - script.toBuffer().toString('hex').should.equal(buf.toString('hex')); - }); - - }); - - describe('#fromASM', function() { - it('should parse this known script in ASM', function() { - var asm = 'OP_DUP OP_HASH160 f4c03610e60ad15100929cc23da2f3a799af1725 OP_EQUALVERIFY OP_CHECKSIG'; - var script = Script.fromASM(asm); - script.chunks[0].opcodenum.should.equal(Opcode.OP_DUP); - script.chunks[1].opcodenum.should.equal(Opcode.OP_HASH160); - script.chunks[2].opcodenum.should.equal(20); - script.chunks[2].buf.toString('hex').should.equal('f4c03610e60ad15100929cc23da2f3a799af1725'); - script.chunks[3].opcodenum.should.equal(Opcode.OP_EQUALVERIFY); - script.chunks[4].opcodenum.should.equal(Opcode.OP_CHECKSIG); - }); - }); - - describe('#fromString', function() { - - it('should parse these known scripts', function() { - Script.fromString('OP_0 OP_PUSHDATA4 3 0x010203 OP_0').toString().should.equal('OP_0 OP_PUSHDATA4 3 0x010203 OP_0'); - Script.fromString('OP_0 OP_PUSHDATA2 3 0x010203 OP_0').toString().should.equal('OP_0 OP_PUSHDATA2 3 0x010203 OP_0'); - Script.fromString('OP_0 OP_PUSHDATA1 3 0x010203 OP_0').toString().should.equal('OP_0 OP_PUSHDATA1 3 0x010203 OP_0'); - Script.fromString('OP_0 3 0x010203 OP_0').toString().should.equal('OP_0 3 0x010203 OP_0'); - }); - - }); - - describe('#toString', function() { - - it('should work with an empty script', function() { - var script = new Script(); - script.toString().should.equal(''); - }); - - it('should output this buffer an OP code, data, and another OP code', function() { - var buf = new Buffer([0, 0, 0, 0, 0, 0, 1, 2, 3, 0]); - buf[0] = Opcode.OP_0; - buf[1] = Opcode.OP_PUSHDATA4; - buf.writeUInt16LE(3, 2); - buf[buf.length - 1] = Opcode.OP_0; - var script = Script.fromBuffer(buf); - script.chunks.length.should.equal(3); - script.chunks[0].opcodenum.should.equal(buf[0]); - script.chunks[1].buf.toString('hex').should.equal('010203'); - script.chunks[2].opcodenum.should.equal(buf[buf.length - 1]); - script.toString().toString('hex').should.equal('OP_0 OP_PUSHDATA4 3 0x010203 OP_0'); - }); - - it('should output this known script as ASM', function() { - var script = Script.fromHex('76a914f4c03610e60ad15100929cc23da2f3a799af172588ac'); - script.toASM().should.equal('OP_DUP OP_HASH160 f4c03610e60ad15100929cc23da2f3a799af1725 OP_EQUALVERIFY OP_CHECKSIG'); - }); - - it('should output this known script with pushdata1 opcode as ASM', function() { - // network: livenet - // txid: dd6fabd2d879be7b8394ad170ff908e9a36b5d5d0b394508df0cca36d2931589 - var script = Script.fromHex('00483045022100beb1d83771c04faaeb40bded4f031ed0e0730aaab77cf70102ecd05734a1762002206f168fb00f3b9d7c04b8c78e1fc11e81b9caa49885a904bf22780a7e14a8373101483045022100a319839e37828bf164ff45de34a3fe22d542ebc8297c5d87dbc56fc3068ff9d5022077081a877b6e7f104d8a2fe0985bf2eb7de2e08edbac9499fc3710a353f65461014c69522103a70ae7bde64333461fb88aaafe12ad6c67ca17c8213642469ae191e0aabc7251210344a62338c8ddf138771516d38187146242db50853aa588bcb10a5e49c86421a52102b52a1aed304c4d6cedcf82911f90ca6e1ffed0a5b8f7f19c68213d6fcbde677e53ae'); - script.toASM().should.equal('0 3045022100beb1d83771c04faaeb40bded4f031ed0e0730aaab77cf70102ecd05734a1762002206f168fb00f3b9d7c04b8c78e1fc11e81b9caa49885a904bf22780a7e14a8373101 3045022100a319839e37828bf164ff45de34a3fe22d542ebc8297c5d87dbc56fc3068ff9d5022077081a877b6e7f104d8a2fe0985bf2eb7de2e08edbac9499fc3710a353f6546101 522103a70ae7bde64333461fb88aaafe12ad6c67ca17c8213642469ae191e0aabc7251210344a62338c8ddf138771516d38187146242db50853aa588bcb10a5e49c86421a52102b52a1aed304c4d6cedcf82911f90ca6e1ffed0a5b8f7f19c68213d6fcbde677e53ae'); - }); - - it('should OP_1NEGATE opcode as -1 with ASM', function() { - var script = Script.fromString('OP_1NEGATE'); - script.toASM().should.equal('-1'); - }); - - }); - - describe('toHex', function() { - it('should return an hexa string "03010203" as expected from [3, 1, 2, 3]', function() { - var buf = new Buffer([3, 1, 2, 3]); - var script = Script.fromBuffer(buf); - script.toHex().should.equal('03010203'); - }); - }); - - describe('#isDataOut', function() { - - it('should know this is a (blank) OP_RETURN script', function() { - Script('OP_RETURN').isDataOut().should.equal(true); - }); - - it('validates that this 40-byte OP_RETURN is standard', function() { - var buf = new Buffer(40); - buf.fill(0); - Script('OP_RETURN 40 0x' + buf.toString('hex')).isDataOut().should.equal(true); - }); - it('validates that this 80-byte OP_RETURN is standard', function() { - var buf = new Buffer(80); - buf.fill(0); - Script('OP_RETURN OP_PUSHDATA1 80 0x' + buf.toString('hex')).isDataOut().should.equal(true); - }); - - it('validates that this 40-byte long OP_CHECKMULTISIG is not standard op_return', function() { - var buf = new Buffer(40); - buf.fill(0); - Script('OP_CHECKMULTISIG 40 0x' + buf.toString('hex')).isDataOut().should.equal(false); - }); - - it('validates that this 81-byte OP_RETURN is not a valid standard OP_RETURN', function() { - var buf = new Buffer(81); - buf.fill(0); - Script('OP_RETURN OP_PUSHDATA1 81 0x' + buf.toString('hex')).isDataOut().should.equal(false); - }); - }); - - describe('#isPublicKeyIn', function() { - it('correctly identify scriptSig as a public key in', function() { - // from txid: 5c85ed63469aa9971b5d01063dbb8bcdafd412b2f51a3d24abf2e310c028bbf8 - // and input index: 5 - var scriptBuffer = new Buffer('483045022050eb59c79435c051f45003d9f82865c8e4df5699d7722e77113ef8cadbd92109022100d4ab233e070070eb8e0e62e3d2d2eb9474a5bf135c9eda32755acb0875a6c20601', 'hex'); - var script = bitcore.Script.fromBuffer(scriptBuffer); - script.isPublicKeyIn().should.equal(true); - }); - }); - - describe('#isPublicKeyHashIn', function() { - - it('should identify this known pubkeyhashin (uncompressed pubkey version)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 65 0x04e365859b3c78a8b7c202412b949ebca58e147dba297be29eee53cd3e1d300a6419bc780cc9aec0dc94ed194e91c8f6433f1b781ee00eac0ead2aae1e8e0712c6').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known pubkeyhashin (hybrid pubkey version w/06)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 65 0x06e365859b3c78a8b7c202412b949ebca58e147dba297be29eee53cd3e1d300a6419bc780cc9aec0dc94ed194e91c8f6433f1b781ee00eac0ead2aae1e8e0712c6').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known pubkeyhashin (hybrid pubkey version w/07)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 65 0x07e365859b3c78a8b7c202412b949ebca58e147dba297be29eee53cd3e1d300a6419bc780cc9aec0dc94ed194e91c8f6433f1b781ee00eac0ead2aae1e8e0712c6').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known pubkeyhashin (compressed pubkey w/ 0x02)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 21 0x02aec6b86621e7fef63747fbfd6a6e7d54c8e1052044ef2dd2c5e46656ef1194d4').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known pubkeyhashin (compressed pubkey w/ 0x03)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 21 0x03e724d93c4fda5f1236c525de7ffac6c5f1f72b0f5cdd1fc4b4f5642b6d055fcc').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known non-pubkeyhashin (bad ops length)', function() { - Script('73 0x3046022100bb3c194a30e460d81d34be0a230179c043a656f67e3c5c8bf47eceae7c4042ee0221008bf54ca11b2985285be0fd7a212873d243e6e73f5fad57e8eb14c4f39728b8c601 65 0x04e365859b3c78a8b7c202412b949ebca58e147dba297be29eee53cd3e1d300a6419bc780cc9aec0dc94ed194e91c8f6433f1b781ee00eac0ead2aae1e8e0712c6 OP_CHECKSIG').isPublicKeyHashIn().should.equal(false); - }); - - it('should identify this known pubkey', function() { - Script('70 0x3043021f336721e4343f67c835cbfd465477db09073dc38a936f9c445d573c1c8a7fdf022064b0e3cb6892a9ecf870030e3066bc259e1f24841c9471d97f9be08b73f6530701 33 0x0370b2e1dcaa8f51cb0ead1221dd8cb31721502b3b5b7d4b374d263dfec63a4369').isPublicKeyHashIn().should.equal(true); - }); - - it('should identify this known non-pubkeyhashin (bad version)', function() { - Script('70 0x3043021f336721e4343f67c835cbfd465477db09073dc38a936f9c445d573c1c8a7fdf022064b0e3cb6892a9ecf870030e3066bc259e1f24841c9471d97f9be08b73f6530701 33 0x1270b2e1dcaa8f51cb0ead1221dd8cb31721502b3b5b7d4b374d263dfec63a4369').isPublicKeyHashIn().should.equal(false); - }); - - it('should identify this known non-pubkeyhashin (bad signature version)', function() { - Script('70 0x4043021f336721e4343f67c835cbfd465477db09073dc38a936f9c445d573c1c8a7fdf022064b0e3cb6892a9ecf870030e3066bc259e1f24841c9471d97f9be08b73f6530701 33 0x0370b2e1dcaa8f51cb0ead1221dd8cb31721502b3b5b7d4b374d263dfec63a4369').isPublicKeyHashIn().should.equal(false); - }); - - it('should identify this known non-pubkeyhashin (no public key)', function() { - Script('70 0x3043021f336721e4343f67c835cbfd465477db09073dc38a936f9c445d573c1c8a7fdf022064b0e3cb6892a9ecf870030e3066bc259e1f24841c9471d97f9be08b73f6530701 OP_CHECKSIG').isPublicKeyHashIn().should.equal(false); - }); - - it('should identify this known non-pubkeyhashin (no signature)', function() { - Script('OP_DROP OP_CHECKSIG').isPublicKeyHashIn().should.equal(false); - }); - - }); - - describe('#isPublicKeyHashOut', function() { - - it('should identify this known pubkeyhashout as pubkeyhashout', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG').isPublicKeyHashOut().should.equal(true); - }); - - it('should identify this known non-pubkeyhashout as not pubkeyhashout 1', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000').isPublicKeyHashOut().should.equal(false); - }); - - it('should identify this known non-pubkeyhashout as not pubkeyhashout 2', function() { - Script('OP_DUP OP_HASH160 2 0x0000 OP_EQUALVERIFY OP_CHECKSIG').isPublicKeyHashOut().should.equal(false); - }); - - }); - - describe('#isMultisigOut', function() { - it('should identify known multisig out 1', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG').isMultisigOut().should.equal(true); - }); - it('should identify known multisig out 2', function() { - Script('OP_1 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG').isMultisigOut().should.equal(true); - }); - it('should identify known multisig out 3', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 OP_3 OP_CHECKMULTISIG').isMultisigOut().should.equal(true); - }); - - it('should identify non-multisig out 1', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG OP_EQUAL').isMultisigOut().should.equal(false); - }); - it('should identify non-multisig out 2', function() { - Script('OP_2').isMultisigOut().should.equal(false); - }); - }); - - describe('#isMultisigIn', function() { - it('should identify multisig in 1', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01').isMultisigIn().should.equal(true); - }); - it('should identify multisig in 2', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01 0x48 0x30450220357011fd3b3ad2b8f2f2d01e05dc6108b51d2a245b4ef40c112d6004596f0475022100a8208c93a39e0c366b983f9a80bfaf89237fcd64ca543568badd2d18ee2e1d7501').isMultisigIn().should.equal(true); - }); - it('should identify non-multisig in 1', function() { - Script('0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01').isMultisigIn().should.equal(false); - }); - it('should identify non-multisig in 2', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01 OP_0').isMultisigIn().should.equal(false); - }); - }); - - describe('#isScriptHashIn', function() { - it('should identify this known scripthashin', function() { - var sstr = 'OP_0 73 0x30460221008ca148504190c10eea7f5f9c283c719a37be58c3ad617928011a1bb9570901d2022100ced371a23e86af6f55ff4ce705c57d2721a09c4d192ca39d82c4239825f75a9801 72 0x30450220357011fd3b3ad2b8f2f2d01e05dc6108b51d2a245b4ef40c112d6004596f0475022100a8208c93a39e0c366b983f9a80bfaf89237fcd64ca543568badd2d18ee2e1d7501 OP_PUSHDATA1 105 0x5221024c02dff2f0b8263a562a69ec875b2c95ffad860f428acf2f9e8c6492bd067d362103546324a1351a6b601c623b463e33b6103ca444707d5b278ece1692f1aa7724a42103b1ad3b328429450069cc3f9fa80d537ee66ba1120e93f3f185a5bf686fb51e0a53ae'; - var s = Script(sstr); - s.toString().should.equal(sstr); - s.isScriptHashIn().should.equal(true); - }); - - it('should identify this known non-scripthashin', function() { - Script('20 0000000000000000000000000000000000000000 OP_CHECKSIG').isScriptHashIn().should.equal(false); - }); - - it('should identify this problematic non-scripthashin scripts', function() { - var s = new Script('71 0x3044022017053dad84aa06213749df50a03330cfd24d6' + - 'b8e7ddbb6de66c03697b78a752a022053bc0faca8b4049fb3944a05fcf7c93b2861' + - '734d39a89b73108f605f70f5ed3401 33 0x0225386e988b84248dc9c30f784b06e' + - '02fdec57bbdbd443768eb5744a75ce44a4c'); - var s2 = new Script('OP_RETURN 32 0x19fdb20634911b6459e6086658b3a6ad2dc6576bd6826c73ee86a5f9aec14ed9'); - s.isScriptHashIn().should.equal(false); - s2.isScriptHashIn().should.equal(false); - }); - it('identifies this other problematic non-p2sh in', function() { - var s = Script.fromString('73 0x3046022100dc7a0a812de14acc479d98ae209402cc9b5e0692bc74b9fe0a2f083e2f9964b002210087caf04a711bebe5339fd7554c4f7940dc37be216a3ae082424a5e164faf549401'); - s.isScriptHashIn().should.equal(false); - }); - }); - - describe('#isScripthashOut', function() { - - it('should identify this known p2shout as p2shout', function() { - Script('OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUAL').isScriptHashOut().should.equal(true); - }); - - it('should identify result of .isScriptHashOut() as p2sh', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG') - .toScriptHashOut().isScriptHashOut().should.equal(true); - }); - - it('should identify these known non-p2shout as not p2shout', function() { - Script('OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUAL OP_EQUAL').isScriptHashOut().should.equal(false); - Script('OP_HASH160 21 0x000000000000000000000000000000000000000000 OP_EQUAL').isScriptHashOut().should.equal(false); - }); - - }); - - describe('#isWitnessScriptHashOut', function() { - it('should recognize this script as p2wsh', function() { - Script('OP_0 32 0xa99d08fbec6958f4d4a3776c3728ec448934d25fe1142054b8b68bac866dfc3a') - .isWitnessScriptHashOut().should.equal(true); - Script('0020a99d08fbec6958f4d4a3776c3728ec448934d25fe1142054b8b68bac866dfc3a') - .isWitnessScriptHashOut().should.equal(true); - }); - it('should NOT identify as p2wsh', function() { - Script('OP_0 20 0x799d283e7f92af1dd242bf4eea513c6efd117de2') - .isWitnessScriptHashOut().should.equal(false); - }); - }); - - describe('#isWitnessPublicKeyHashOut', function() { - it('should identify as p2wpkh', function() { - Script('OP_0 20 0x799d283e7f92af1dd242bf4eea513c6efd117de2') - .isWitnessPublicKeyHashOut().should.equal(true); - Script('0014799d283e7f92af1dd242bf4eea513c6efd117de2').isWitnessPublicKeyHashOut().should.equal(true); - }); - it('should NOT identify as p2wpkh', function() { - Script('OP_0 32 0xa99d08fbec6958f4d4a3776c3728ec448934d25fe1142054b8b68bac866dfc3a') - .isWitnessPublicKeyHashOut().should.equal(false); - }); - }); - - describe('#isWitnessProgram', function() { - it('will default values to empty object', function() { - Script('OP_0 20 0x799d283e7f92af1dd242bf4eea513c6efd117de2') - .isWitnessProgram().should.equal(true); - }); - it('will return false if script is data push longer than 40 bytes', function() { - Script('OP_0 42 0xd06863c385592423903682926825c495b6cf88fd7cd6159ffd72f778ca475d3046e7b87835d3b457cd') - .isWitnessProgram().should.equal(false); - }); - it('will return false if first byte op_code is greater than OP_16', function() { - Script('OP_NOP 20 0x799d283e7f92af1dd242bf4eea513c6efd117de2') - .isWitnessProgram().should.equal(false); - }); - it('will return true with datapush of 20', function() { - var values = {}; - Script('OP_0 20 0x799d283e7f92af1dd242bf4eea513c6efd117de2') - .isWitnessProgram(values).should.equal(true); - values.version.should.equal(0); - values.program.toString('hex').should.equal('799d283e7f92af1dd242bf4eea513c6efd117de2'); - }); - it('will return true with datapush of 32', function() { - var values = {}; - Script('OP_0 32 0xc756f6d660d4aaad55534cac599a0d9bf5c7e8f70363d22926291811a168c620') - .isWitnessProgram(values).should.equal(true); - values.version.should.equal(0); - values.program.toString('hex').should.equal('c756f6d660d4aaad55534cac599a0d9bf5c7e8f70363d22926291811a168c620'); - }); - }); - - describe('#isPushOnly', function() { - it('should know these scripts are or aren\'t push only', function() { - Script('OP_NOP 1 0x01').isPushOnly().should.equal(false); - Script('OP_0').isPushOnly().should.equal(true); - Script('OP_0 OP_RETURN').isPushOnly().should.equal(false); - Script('OP_PUSHDATA1 5 0x1010101010').isPushOnly().should.equal(true); - // like bitcoind, we regard OP_RESERVED as being "push only" - Script('OP_RESERVED').isPushOnly().should.equal(true); - }); - }); - - describe('#classifyInput', function() { - it('shouldn\'t classify public key hash out', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('should classify public key hash in', function() { - Script('47 0x3044022077a8d81e656c4a1c1721e68ce35fa0b27f13c342998e75854858c12396a15ffa02206378a8c6959283c008c87a14a9c0ada5cf3934ac5ee29f1fef9cac6969783e9801 21 0x03993c230da7dabb956292851ae755f971c50532efc095a16bee07f83ab9d262df').classifyInput().should.equal(Script.types.PUBKEYHASH_IN); - }); - it('shouldn\'t classify script hash out', function() { - Script('OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUAL').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('should classify script hash in', function() { - Script('OP_0 73 0x30460221008ca148504190c10eea7f5f9c283c719a37be58c3ad617928011a1bb9570901d2022100ced371a23e86af6f55ff4ce705c57d2721a09c4d192ca39d82c4239825f75a9801 72 0x30450220357011fd3b3ad2b8f2f2d01e05dc6108b51d2a245b4ef40c112d6004596f0475022100a8208c93a39e0c366b983f9a80bfaf89237fcd64ca543568badd2d18ee2e1d7501 OP_PUSHDATA1 105 0x5221024c02dff2f0b8263a562a69ec875b2c95ffad860f428acf2f9e8c6492bd067d362103546324a1351a6b601c623b463e33b6103ca444707d5b278ece1692f1aa7724a42103b1ad3b328429450069cc3f9fa80d537ee66ba1120e93f3f185a5bf686fb51e0a53ae').classifyInput().should.equal(Script.types.SCRIPTHASH_IN); - }); - it('shouldn\'t classify MULTISIG out', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('should classify MULTISIG in', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01').classifyInput().should.equal(Script.types.MULTISIG_IN); - }); - it('shouldn\'t classify OP_RETURN data out', function() { - Script('OP_RETURN 1 0x01').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('shouldn\'t classify public key out', function() { - Script('41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 OP_CHECKSIG').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('should classify public key in', function() { - Script('47 0x3044022007415aa37ce7eaa6146001ac8bdefca0ddcba0e37c5dc08c4ac99392124ebac802207d382307fd53f65778b07b9c63b6e196edeadf0be719130c5db21ff1e700d67501').classifyInput().should.equal(Script.types.PUBKEY_IN); - }); - it('should classify unknown', function() { - Script('OP_TRUE OP_FALSE').classifyInput().should.equal(Script.types.UNKNOWN); - }); - it('should classify scriptHashIn, eventhough it\'s opreturn', function() { - Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba').classifyInput().should.equal(Script.types.SCRIPTHASH_IN); - }); - }); - - describe('#classifyOutput', function() { - it('should classify public key hash out', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG').classifyOutput().should.equal(Script.types.PUBKEYHASH_OUT); - }); - it('shouldn\'t classify public key hash in', function() { - Script('47 0x3044022077a8d81e656c4a1c1721e68ce35fa0b27f13c342998e75854858c12396a15ffa02206378a8c6959283c008c87a14a9c0ada5cf3934ac5ee29f1fef9cac6969783e9801 21 0x03993c230da7dabb956292851ae755f971c50532efc095a16bee07f83ab9d262df').classifyOutput().should.equal(Script.types.UNKNOWN); - }); - it('should classify script hash out', function() { - Script('OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUAL').classifyOutput().should.equal(Script.types.SCRIPTHASH_OUT); - }); - it('shouldn\'t classify script hash in', function() { - Script('OP_0 73 0x30460221008ca148504190c10eea7f5f9c283c719a37be58c3ad617928011a1bb9570901d2022100ced371a23e86af6f55ff4ce705c57d2721a09c4d192ca39d82c4239825f75a9801 72 0x30450220357011fd3b3ad2b8f2f2d01e05dc6108b51d2a245b4ef40c112d6004596f0475022100a8208c93a39e0c366b983f9a80bfaf89237fcd64ca543568badd2d18ee2e1d7501 OP_PUSHDATA1 105 0x5221024c02dff2f0b8263a562a69ec875b2c95ffad860f428acf2f9e8c6492bd067d362103546324a1351a6b601c623b463e33b6103ca444707d5b278ece1692f1aa7724a42103b1ad3b328429450069cc3f9fa80d537ee66ba1120e93f3f185a5bf686fb51e0a53ae').classifyOutput().should.equal(Script.types.UNKNOWN); - }); - it('should classify MULTISIG out', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG').classifyOutput().should.equal(Script.types.MULTISIG_OUT); - }); - it('shouldn\'t classify MULTISIG in', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01').classifyOutput().should.equal(Script.types.UNKNOWN); - }); - it('should classify OP_RETURN data out', function() { - Script('OP_RETURN 1 0x01').classifyOutput().should.equal(Script.types.DATA_OUT); - }); - it('should classify public key out', function() { - Script('41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 OP_CHECKSIG').classifyOutput().should.equal(Script.types.PUBKEY_OUT); - }); - it('shouldn\'t classify public key in', function() { - Script('47 0x3044022007415aa37ce7eaa6146001ac8bdefca0ddcba0e37c5dc08c4ac99392124ebac802207d382307fd53f65778b07b9c63b6e196edeadf0be719130c5db21ff1e700d67501').classifyOutput().should.equal(Script.types.UNKNOWN); - }); - it('should classify unknown', function() { - Script('OP_TRUE OP_FALSE').classifyOutput().should.equal(Script.types.UNKNOWN); - }); - it('should classify opreturn eventhough it also looks like a scriptHashIn', function() { - Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba').classifyOutput().should.equal(Script.types.DATA_OUT); - }); - }); - - describe('#classify', function() { - it('should classify public key hash out', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG').classify().should.equal(Script.types.PUBKEYHASH_OUT); - }); - it('should classify public key hash in', function() { - Script('47 0x3044022077a8d81e656c4a1c1721e68ce35fa0b27f13c342998e75854858c12396a15ffa02206378a8c6959283c008c87a14a9c0ada5cf3934ac5ee29f1fef9cac6969783e9801 21 0x03993c230da7dabb956292851ae755f971c50532efc095a16bee07f83ab9d262df').classify().should.equal(Script.types.PUBKEYHASH_IN); - }); - it('should classify script hash out', function() { - Script('OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUAL').classify().should.equal(Script.types.SCRIPTHASH_OUT); - }); - it('should classify script hash in', function() { - Script('OP_0 73 0x30460221008ca148504190c10eea7f5f9c283c719a37be58c3ad617928011a1bb9570901d2022100ced371a23e86af6f55ff4ce705c57d2721a09c4d192ca39d82c4239825f75a9801 72 0x30450220357011fd3b3ad2b8f2f2d01e05dc6108b51d2a245b4ef40c112d6004596f0475022100a8208c93a39e0c366b983f9a80bfaf89237fcd64ca543568badd2d18ee2e1d7501 OP_PUSHDATA1 105 0x5221024c02dff2f0b8263a562a69ec875b2c95ffad860f428acf2f9e8c6492bd067d362103546324a1351a6b601c623b463e33b6103ca444707d5b278ece1692f1aa7724a42103b1ad3b328429450069cc3f9fa80d537ee66ba1120e93f3f185a5bf686fb51e0a53ae').classify().should.equal(Script.types.SCRIPTHASH_IN); - }); - it('should classify MULTISIG out', function() { - Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG').classify().should.equal(Script.types.MULTISIG_OUT); - }); - it('should classify MULTISIG in', function() { - Script('OP_0 0x47 0x3044022002a27769ee33db258bdf7a3792e7da4143ec4001b551f73e6a190b8d1bde449d02206742c56ccd94a7a2e16ca52fc1ae4a0aa122b0014a867a80de104f9cb18e472c01').classify().should.equal(Script.types.MULTISIG_IN); - }); - it('should classify OP_RETURN data out', function() { - Script('OP_RETURN 1 0x01').classify().should.equal(Script.types.DATA_OUT); - }); - it('should classify public key out', function() { - Script('41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 OP_CHECKSIG').classify().should.equal(Script.types.PUBKEY_OUT); - }); - it('should classify public key in', function() { - Script('47 0x3044022007415aa37ce7eaa6146001ac8bdefca0ddcba0e37c5dc08c4ac99392124ebac802207d382307fd53f65778b07b9c63b6e196edeadf0be719130c5db21ff1e700d67501').classify().should.equal(Script.types.PUBKEY_IN); - }); - it('should classify unknown', function() { - Script('OP_TRUE OP_FALSE').classify().should.equal(Script.types.UNKNOWN); - }); - it('should classify opreturn eventhough it also looks like a scriptHashIn', function() { - Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba').classifyInput().should.equal(Script.types.SCRIPTHASH_IN); - Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba').classify().should.equal(Script.types.DATA_OUT); - }); - it('should classify scriptHashIn eventhough it is opreturn when script is marked is input', function() { - Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba').classify().should.equal(Script.types.DATA_OUT); - var s = Script('6a1c3630fd3792f7e847ae5e27985dfb127542ef37ac2a5147c3b9cec7ba'); - s._isInput = true; // this is normally set by when Script is initiated as part if Input or Output objects - s.classify().should.equal(Script.types.SCRIPTHASH_IN); - }); - it('should classify unknown eventhough it is public key hash when marked as input', function() { - Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG').classify().should.equal(Script.types.PUBKEYHASH_OUT); - var s = Script('OP_DUP OP_HASH160 20 0x0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG'); - s._isInput = true; // this is normally set by when Script is initiated as part if Input or Output objects - s.classify().should.equal(Script.types.UNKNOWN); - }); - it('should classify unknown eventhough it is public key hash in when marked as output', function() { - var s = Script('47 0x3044022077a8d81e656c4a1c1721e68ce35fa0b27f13c342998e75854858c12396a15ffa02206378a8c6959283c008c87a14a9c0ada5cf3934ac5ee29f1fef9cac6969783e9801 21 0x03993c230da7dabb956292851ae755f971c50532efc095a16bee07f83ab9d262df'); - s.classify().should.equal(Script.types.PUBKEYHASH_IN); - s._isOutput = true; // this is normally set by when Script is initiated as part if Input or Output objects - s.classify().should.equal(Script.types.UNKNOWN); - }); - }); - - describe('#add and #prepend', function() { - - it('should add these ops', function() { - Script().add(1).add(10).add(186).toString().should.equal('0x01 0x0a 0xba'); - Script().add(1000).toString().should.equal('0x03e8'); - Script().add('OP_CHECKMULTISIG').toString().should.equal('OP_CHECKMULTISIG'); - Script().add('OP_1').add('OP_2').toString().should.equal('OP_1 OP_2'); - Script().add(Opcode.OP_CHECKMULTISIG).toString().should.equal('OP_CHECKMULTISIG'); - Script().add(Opcode.map.OP_CHECKMULTISIG).toString().should.equal('OP_CHECKMULTISIG'); - }); - - it('should prepend these ops', function() { - Script().prepend('OP_CHECKMULTISIG').toString().should.equal('OP_CHECKMULTISIG'); - Script().prepend('OP_1').prepend('OP_2').toString().should.equal('OP_2 OP_1'); - }); - - it('should add and prepend correctly', function() { - Script().add('OP_1').prepend('OP_2').add('OP_3').prepend('OP_4').toString() - .should.equal('OP_4 OP_2 OP_1 OP_3'); - }); - - it('should add these push data', function() { - var buf = new Buffer(1); - buf.fill(0); - Script().add(buf).toString().should.equal('1 0x00'); - buf = new Buffer(255); - buf.fill(0); - Script().add(buf).toString().should.equal('OP_PUSHDATA1 255 0x' + buf.toString('hex')); - buf = new Buffer(256); - buf.fill(0); - Script().add(buf).toString().should.equal('OP_PUSHDATA2 256 0x' + buf.toString('hex')); - buf = new Buffer(Math.pow(2, 16)); - buf.fill(0); - Script().add(buf).toString().should.equal('OP_PUSHDATA4 ' + Math.pow(2, 16) + ' 0x' + buf.toString('hex')); - }); - - it('should add both pushdata and non-pushdata chunks', function() { - Script().add('OP_CHECKMULTISIG').toString().should.equal('OP_CHECKMULTISIG'); - Script().add(Opcode.map.OP_CHECKMULTISIG).toString().should.equal('OP_CHECKMULTISIG'); - var buf = new Buffer(1); - buf.fill(0); - Script().add(buf).toString().should.equal('1 0x00'); - }); - - it('should work for no data OP_RETURN', function() { - Script().add(Opcode.OP_RETURN).add(new Buffer('')).toString().should.equal('OP_RETURN'); - }); - it('works with objects', function() { - Script().add({ - opcodenum: 106 - }).toString().should.equal('OP_RETURN'); - }); - it('works with another script', function() { - var someScript = Script('OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 ' + - '21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG'); - var s = new Script().add(someScript); - s.toString() - .should.equal(someScript.toString()); - }); - it('fails with wrong type', function() { - var fails = function() { - return new Script().add(true); - }; - fails.should.throw('Invalid script chunk'); - }); - }); - - describe('#isStandard', function() { - it('should classify correctly standard script', function() { - Script('OP_RETURN 1 0x00').isStandard().should.equal(true); - }); - it('should classify correctly non standard script', function() { - Script('OP_TRUE OP_FALSE').isStandard().should.equal(false); - }); - }); - - describe('#buildMultisigOut', function() { - var pubKeyHexes = [ - '022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da', - '03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9', - '021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18', - '02bf97f572a02a8900246d72c2e8fa3d3798a6e59c4e17de2d131d9c60d0d9b574', - '036a98a36aa7665874b1ba9130bc6d318e52fd3bdb5969532d7fc09bf2476ff842', - '033aafcbead78c08b0e0aacc1b0cdb40702a7c709b660bebd286e973242127e15b', - ]; - var sortkeys = pubKeyHexes.slice(0, 3).map(PublicKey); - it('should create sorted script by default', function() { - var s = Script.buildMultisigOut(sortkeys, 2); - s.toString().should.equal('OP_2 33 0x021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18 33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da 33 0x03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9 OP_3 OP_CHECKMULTISIG'); - s.isMultisigOut().should.equal(true); - }); - it('should fail when number of required signatures is greater than number of pubkeys', function() { - expect(sortkeys.length).to.equal(3); - expect(function() { - return Script.buildMultisigOut(sortkeys, 4); - }).to.throw('Number of required signatures must be less than or equal to the number of public keys'); - }); - it('should create unsorted script if specified', function() { - var s = Script.buildMultisigOut(sortkeys, 2); - var u = Script.buildMultisigOut(sortkeys, 2, { - noSorting: true - }); - s.toString().should.not.equal(u.toString()); - u.toString().should.equal('OP_2 33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da 33 0x03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9 33 0x021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18 OP_3 OP_CHECKMULTISIG'); - s.isMultisigOut().should.equal(true); - }); - var test_mn = function(m, n) { - var pubkeys = pubKeyHexes.slice(0, n).map(PublicKey); - var s = Script.buildMultisigOut(pubkeys, m); - s.isMultisigOut().should.equal(true); - }; - for (var n = 1; n < 6; n++) { - for (var m = 1; m <= n; m++) { - it('should create ' + m + '-of-' + n, test_mn.bind(null, m, n)); - } - } - }); - - describe('#buildWitnessMultisigOutFromScript', function() { - it('it will build nested witness scriptSig', function() { - var redeemScript = bitcore.Script(); - var redeemHash = bitcore.crypto.Hash.sha256(redeemScript.toBuffer()); - var s = Script.buildWitnessMultisigOutFromScript(redeemScript); - var buf = s.toBuffer(); - buf[0].should.equal(0); - buf.slice(2, 34).toString('hex').should.equal(redeemHash.toString('hex')); - }); - }); - - describe('#buildPublicKeyHashOut', function() { - it('should create script from livenet address', function() { - var address = Address.fromString('1NaTVwXDDUJaXDQajoa9MqHhz4uTxtgK14'); - var s = Script.buildPublicKeyHashOut(address); - should.exist(s); - s.toString().should.equal('OP_DUP OP_HASH160 20 0xecae7d092947b7ee4998e254aa48900d26d2ce1d OP_EQUALVERIFY OP_CHECKSIG'); - s.isPublicKeyHashOut().should.equal(true); - s.toAddress().toString().should.equal('1NaTVwXDDUJaXDQajoa9MqHhz4uTxtgK14'); - }); - it('should create script from testnet address', function() { - var address = Address.fromString('mxRN6AQJaDi5R6KmvMaEmZGe3n5ScV9u33'); - var s = Script.buildPublicKeyHashOut(address); - should.exist(s); - s.toString().should.equal('OP_DUP OP_HASH160 20 0xb96b816f378babb1fe585b7be7a2cd16eb99b3e4 OP_EQUALVERIFY OP_CHECKSIG'); - s.isPublicKeyHashOut().should.equal(true); - s.toAddress().toString().should.equal('mxRN6AQJaDi5R6KmvMaEmZGe3n5ScV9u33'); - }); - it('should create script from public key', function() { - var pubkey = new PublicKey('022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da'); - var s = Script.buildPublicKeyHashOut(pubkey); - should.exist(s); - s.toString().should.equal('OP_DUP OP_HASH160 20 0x9674af7395592ec5d91573aa8d6557de55f60147 OP_EQUALVERIFY OP_CHECKSIG'); - s.isPublicKeyHashOut().should.equal(true); - should.exist(s._network); - s._network.should.equal(pubkey.network); - }); - }); - describe('#buildPublicKeyOut', function() { - it('should create script from public key', function() { - var pubkey = new PublicKey('022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da'); - var s = Script.buildPublicKeyOut(pubkey); - should.exist(s); - s.toString().should.equal('33 0x022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da OP_CHECKSIG'); - s.isPublicKeyOut().should.equal(true); - }); - }); - describe('#buildDataOut', function() { - it('should create script from no data', function() { - var s = Script.buildDataOut(); - should.exist(s); - s.toString().should.equal('OP_RETURN'); - s.isDataOut().should.equal(true); - }); - it('should create script from empty data', function() { - var data = new Buffer(''); - var s = Script.buildDataOut(data); - should.exist(s); - s.toString().should.equal('OP_RETURN'); - s.isDataOut().should.equal(true); - }); - it('should create script from some data', function() { - var data = new Buffer('bacacafe0102030405', 'hex'); - var s = Script.buildDataOut(data); - should.exist(s); - s.toString().should.equal('OP_RETURN 9 0xbacacafe0102030405'); - s.isDataOut().should.equal(true); - }); - it('should create script from string', function() { - var data = 'hello world!!!'; - var s = Script.buildDataOut(data); - should.exist(s); - s.toString().should.equal('OP_RETURN 14 0x68656c6c6f20776f726c64212121'); - s.isDataOut().should.equal(true); - }); - it('should create script from a hex string', function() { - var hexString = 'abcdef0123456789'; - var s = Script.buildDataOut(hexString, 'hex'); - should.exist(s); - s.toString().should.equal('OP_RETURN 8 0xabcdef0123456789'); - s.isDataOut().should.equal(true); - }); - }); - describe('#buildScriptHashOut', function() { - it('should create script from another script', function() { - var inner = new Script('OP_DUP OP_HASH160 20 0x06c06f6d931d7bfba2b5bd5ad0d19a8f257af3e3 OP_EQUALVERIFY OP_CHECKSIG'); - var s = Script.buildScriptHashOut(inner); - should.exist(s); - s.toString().should.equal('OP_HASH160 20 0x45ea3f9133e7b1cef30ba606f8433f993e41e159 OP_EQUAL'); - s.isScriptHashOut().should.equal(true); - }); - - it('inherits network property from other script', function() { - var s1 = new Script.fromAddress(new Address('1FSMWkjVPAxzUNjbxT52p3mVKC971rfW3S')); - var s2 = Script.buildScriptHashOut(s1); - should.exist(s1._network); - s1._network.should.equal(s2._network); - }); - - it('inherits network property form an address', function() { - var address = new Address('34Nn91aTGaULqWsZiunrBPHzFBDrZ3B8XS'); - var script = Script.buildScriptHashOut(address); - should.exist(script._network); - script._network.should.equal(address.network); - }); - }); - describe('#toScriptHashOut', function() { - it('should create script from another script', function() { - var s = new Script('OP_DUP OP_HASH160 20 0x06c06f6d931d7bfba2b5bd5ad0d19a8f257af3e3 OP_EQUALVERIFY OP_CHECKSIG'); - var sho = s.toScriptHashOut(); - sho.toString().should.equal('OP_HASH160 20 0x45ea3f9133e7b1cef30ba606f8433f993e41e159 OP_EQUAL'); - sho.isScriptHashOut().should.equal(true); - }); - }); - - describe('#removeCodeseparators', function() { - it('should remove any OP_CODESEPARATORs', function() { - Script('OP_CODESEPARATOR OP_0 OP_CODESEPARATOR').removeCodeseparators().toString().should.equal('OP_0'); - }); - }); - - - describe('#findAndDelete', function() { - it('should find and delete this buffer', function() { - Script('OP_RETURN 2 0xf0f0') - .findAndDelete(Script('2 0xf0f0')) - .toString() - .should.equal('OP_RETURN'); - }); - it('should do nothing', function() { - Script('OP_RETURN 2 0xf0f0') - .findAndDelete(Script('2 0xffff')) - .toString() - .should.equal('OP_RETURN 2 0xf0f0'); - }); - }); - - - describe('#checkMinimalPush', function() { - - it('should check these minimal pushes', function() { - Script().add(1).checkMinimalPush(0).should.equal(true); - Script().add(0).checkMinimalPush(0).should.equal(true); - Script().add(-1).checkMinimalPush(0).should.equal(true); - Script().add(1000).checkMinimalPush(0).should.equal(true); - Script().add(0xffffffff).checkMinimalPush(0).should.equal(true); - Script().add(0xffffffffffffffff).checkMinimalPush(0).should.equal(true); - Script().add(new Buffer([0])).checkMinimalPush(0).should.equal(true); - - var buf = new Buffer(75); - buf.fill(1); - Script().add(buf).checkMinimalPush(0).should.equal(true); - - buf = new Buffer(76); - buf.fill(1); - Script().add(buf).checkMinimalPush(0).should.equal(true); - - buf = new Buffer(256); - buf.fill(1); - Script().add(buf).checkMinimalPush(0).should.equal(true); - }); - - }); - - describe('getData returns associated data', function() { - it('works with this testnet transaction', function() { - // testnet block: 00000000a36400fc06440512354515964bc36ecb0020bd0b0fd48ae201965f54 - // txhash: e362e21ff1d2ef78379d401d89b42ce3e0ce3e245f74b1f4cb624a8baa5d53ad (output 0); - var script = Script.fromBuffer(new Buffer('6a', 'hex')); - var dataout = script.isDataOut(); - dataout.should.equal(true); - var data = script.getData(); - data.should.deep.equal(new Buffer(0)); - }); - it('for a P2PKH address', function() { - var address = Address.fromString('1NaTVwXDDUJaXDQajoa9MqHhz4uTxtgK14'); - var script = Script.buildPublicKeyHashOut(address); - expect(BufferUtil.equal(script.getData(), address.hashBuffer)).to.be.true(); - }); - it('for a P2SH address', function() { - var address = Address.fromString('3GhtMmAbWrUf6Y8vDxn9ETB14R6V7Br3mt'); - var script = new Script(address); - expect(BufferUtil.equal(script.getData(), address.hashBuffer)).to.be.true(); - }); - it('for a standard opreturn output', function() { - expect(BufferUtil.equal(Script('OP_RETURN 1 0xFF').getData(), new Buffer([255]))).to.be.true(); - }); - it('fails if content is not recognized', function() { - expect(function() { - return Script('1 0xFF').getData(); - }).to.throw(); - }); - }); - - describe('toAddress', function() { - var pubkey = new PublicKey('027ffeb8c7795d529ee9cd96512d472cefe398a0597623438ac5d066a64af50072'); - var liveAddress = pubkey.toAddress(Networks.livenet); - var testAddress = pubkey.toAddress(Networks.testnet); - - it('priorize the network argument', function() { - var script = new Script(liveAddress); - script.toAddress(Networks.testnet).toString().should.equal(testAddress.toString()); - script.toAddress(Networks.testnet).network.should.equal(Networks.testnet); - }); - it('use the inherited network', function() { - var script = new Script(liveAddress); - script.toAddress().toString().should.equal(liveAddress.toString()); - script = new Script(testAddress); - script.toAddress().toString().should.equal(testAddress.toString()); - }); - it('uses default network', function() { - var script = new Script('OP_DUP OP_HASH160 20 ' + - '0x06c06f6d931d7bfba2b5bd5ad0d19a8f257af3e3 OP_EQUALVERIFY OP_CHECKSIG'); - script.toAddress().network.should.equal(Networks.defaultNetwork); - }); - it('for a P2PKH address', function() { - var stringAddress = '1NaTVwXDDUJaXDQajoa9MqHhz4uTxtgK14'; - var address = new Address(stringAddress); - var script = new Script(address); - script.toAddress().toString().should.equal(stringAddress); - }); - it('for a P2SH address', function() { - var stringAddress = '3GhtMmAbWrUf6Y8vDxn9ETB14R6V7Br3mt'; - var address = new Address(stringAddress); - var script = new Script(address); - script.toAddress().toString().should.equal(stringAddress); - }); - it('fails if content is not recognized', function() { - Script().toAddress(Networks.livenet).should.equal(false); - }); - - it('works for p2pkh output', function() { - // taken from tx 7e519caca256423320b92e3e17be5701f87afecbdb3f53af598032bfd8d164f5 - var script = new Script('OP_DUP OP_HASH160 20 ' + - '0xc8e11b0eb0d2ad5362d894f048908341fa61b6e1 OP_EQUALVERIFY OP_CHECKSIG'); - script.toAddress().toString().should.equal('1KK9oz4bFH8c1t6LmighHaoSEGx3P3FEmc'); - }); - it('works for p2pkh input', function() { - // taken from tx 7e519caca256423320b92e3e17be5701f87afecbdb3f53af598032bfd8d164f5 - var script = new Script('72 0x3045022100eff96230ca0f55b1e8c7a63e014f48611ff1af40875ecd33dee9062d7a6f5e2002206320405b5f6992c756e03e66b21a05a812b60996464ac6af815c2638b930dd7a01 65 0x04150defa035a2c7d826d7d5fc8ab2154bd1bb832f1a5c8ecb338f436362ad232e428b57db44677c5a8bd42c5ed9e2d7e04e742c59bee1b40080cfd57dec64b23a'); - script.toAddress().toString().should.equal('1KK9oz4bFH8c1t6LmighHaoSEGx3P3FEmc'); - // taken from tx 7f8f95752a59d715dae9e0008a42e7968d2736741591bbfc6685f6e1649c21ed - var s2 = new Script('71 0x3044022017053dad84aa06213749df50a03330cfd24d6b8e7ddbb6de66c03697b78a752a022053bc0faca8b4049fb3944a05fcf7c93b2861734d39a89b73108f605f70f5ed3401 33 0x0225386e988b84248dc9c30f784b06e02fdec57bbdbd443768eb5744a75ce44a4c'); - s2.toAddress().toString().should.equal('17VArX6GRE6i6MVscBUZoXwi6NhnHa68B7'); - }); - - it('works for p2sh output', function() { - // taken from tx fe1f764299dc7f3b5a8fae912050df2b633bf99554c68bf1c456edb9c2b63585 - var script = new Script('OP_HASH160 20 0x99d29051af0c29adcb9040034752bba7dde33e35 OP_EQUAL'); - script.toAddress().toString().should.equal('3FiMZ7stbfH2WG5JQ7CiuzrFo7CEnGUcAP'); - }); - it('works for p2sh input', function() { - // taken from tx fe1f764299dc7f3b5a8fae912050df2b633bf99554c68bf1c456edb9c2b63585 - var script = new Script('OP_FALSE 72 0x3045022100e824fbe979fac5834d0062dd5a4e82a898e00ac454bd254cd708ad28530816f202206251ff0fa4dd70c0524c690d4e4deb2bd167297e7bbdf6743b4a8050d681555001 37 0x512102ff3ae0aaa4679ea156d5581dbe6695cc0c311df0aa42af76670d0debbd8f672951ae'); - script.toAddress().toString().should.equal('3GYicPxCvsKvbJmZNBBeWkC3cLuGFhtrQi'); - }); - - // no address scripts - it('works for OP_RETURN script', function() { - var script = new Script('OP_RETURN 20 0x99d29051af0c29adcb9040034752bba7dde33e35'); - script.toAddress().should.equal(false); - }); - - }); - describe('equals', function() { - it('returns true for same script', function() { - Script('OP_TRUE').equals(Script('OP_TRUE')).should.equal(true); - }); - it('returns false for different chunks sizes', function() { - Script('OP_TRUE').equals(Script('OP_TRUE OP_TRUE')).should.equal(false); - }); - it('returns false for different opcodes', function() { - Script('OP_TRUE OP_TRUE').equals(Script('OP_TRUE OP_FALSE')).should.equal(false); - }); - it('returns false for different data', function() { - Script().add(new Buffer('a')).equals(Script('OP_TRUE')).should.equal(false); - }); - it('returns false for different data', function() { - Script().add(new Buffer('a')).equals(Script().add(new Buffer('b'))).should.equal(false); - }); - }); - - describe('#getSignatureOperationsCount', function() { - // comes from bitcoind src/test/sigopcount_tests - // only test calls to function with boolean param, not signature ref param - var pubKeyHexes = [ - '022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da', - '03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9', - '021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18', - ]; - it('should return zero for empty scripts', function() { - Script().getSignatureOperationsCount(false).should.equal(0); - Script().getSignatureOperationsCount(true).should.equal(0); - }); - it('should handle multi-sig multisig scripts from string', function() { - var s1 = 'OP_1 01 FF OP_2 OP_CHECKMULTISIG'; - Script(s1).getSignatureOperationsCount(true).should.equal(2); - s1 += ' OP_IF OP_CHECKSIG OP_ENDIF'; - Script(s1).getSignatureOperationsCount(true).should.equal(3); - Script(s1).getSignatureOperationsCount(false).should.equal(21); - }); - it('should handle multi-sig-out scripts from utility function', function() { - var sortKeys = pubKeyHexes.slice(0, 3).map(PublicKey); - var s2 = Script.buildMultisigOut(sortKeys, 1); - Script(s2).getSignatureOperationsCount(true).should.equal(3); - Script(s2).getSignatureOperationsCount(false).should.equal(20); - }); - it('should handle P2SH-multisig-in scripts from utility', function() { - // create a well-formed signature, does not need to match pubkeys - var signature = bitcore.crypto.Signature.fromString('30060201FF0201FF'); - var signatures = [ signature.toBuffer() ]; - var p2sh = Script.buildP2SHMultisigIn(pubKeyHexes, 1, signatures, {}); - p2sh.getSignatureOperationsCount(true).should.equal(0); - p2sh.getSignatureOperationsCount(false).should.equal(0); - }); - it('should default the one and only argument to true', function() { - var s1 = 'OP_1 01 FF OP_2 OP_CHECKMULTISIG'; - var trueCount = Script(s1).getSignatureOperationsCount(true); - var falseCount = Script(s1).getSignatureOperationsCount(false); - var defaultCount = Script(s1).getSignatureOperationsCount(); - trueCount.should.not.equal(falseCount); - trueCount.should.equal(defaultCount); - }); - }); -}); diff --git a/test/test-assetcreatetx.js b/test/test-assetcreatetx.js deleted file mode 100644 index 92cb96a..0000000 --- a/test/test-assetcreatetx.js +++ /dev/null @@ -1,77 +0,0 @@ -'use strict'; - -// usage: node test-assetcreatetx.js - -/* -Build a transaction for asset create -note: -In addition to publishing assets miners fee, we need additional deduction 550WICC - -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4. assetSymbol: Asset symbols, publishing success can not be modified (asset Symbol Capital letter A-Z 1-7 digits [A_Z]) -5. ownerAddress: asset owner -6. tokeName: asset name -7. totalSupply: total asset circulation -8. minTable: Whether the asset can be issued -9、feesCoinSymbol: fee type(WICC/WUSD) -*/ -/* -构建发布资产交易 - -发布资产除了矿工费,还需额外扣除550WICC - -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) -3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 -4、assetSymbol: 资产符号,发布成功无法再修改(1-7位大写字母) -5、ownerAddress: 资产拥有者 -6、assetName: 资产名称 -7、totalSupply: 资产总发行量 -8、minTable: 资产是否可以增发 -9、feesCoinSymbol: 小费类型(WICC/WUSD) -*/ - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var arg = { - network: 'testnet' -} -var wiccApi = new bitcore.WiccApi(arg) - -var assetData = { - assetSymbol: "STOKENN", //asset Symbol Capital letter A-Z 6-7 digits [A_Z] - ownerAddress: "0-1", //asset owner - assetName:"SS Token", //asset token name - totalSupply:10000000000000000,// total Supply *10^8 - minTable:false //Whether to increase the number - } - - -//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result -var assetCreateInfo = { - nTxType: bitcore.WiccApi.ASSET_ISUUE, - nVersion: 1, - nValidHeight: 8720, // create height - srcRegId: "8267-2", // sender's regId - assetData: assetData, - feesCoinSymbol:WriterHelper.prototype.CoinType.WICC, - fees: 10000000, // fees pay for miner min 0.01 wicc +550wicc -}; - -var wiccPrivateKey = 'Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.ASSET_ISUUE, assetCreateInfo) -console.log("asset create tx raw: ") -console.log(rawtx) diff --git a/test/test-assetupdatetx.js b/test/test-assetupdatetx.js deleted file mode 100644 index 28ad82b..0000000 --- a/test/test-assetupdatetx.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; - -// usage: node test-assetupdatetx.js - -/* -Build a transaction for asset update - -In addition to updating assets miners fee, we need additional deduction 110WICC - -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4. assetSymbol: Asset symbols, publishing success can not be modified -5、feesCoinSymbol: fee type(WICC/WUSD) -6、 updateType: update type 1: asset owner 2: asset name 3. number of assets -*/ -/* -构建发布资产交易 - -更新资产除了矿工费,还需额外扣除110WICC - -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) -3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 -4、assetSymbol: 资产符号,发布成功无法再修改 -5、feesCoinSymbol: 小费类型(WICC/WUSD) -6、updateType:更新类型 1:资产拥有者 2:资产名称 3.资产数量 -*/ - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var arg = { - network: 'testnet' -} -var wiccApi = new bitcore.WiccApi(arg) - -//update asset owner regid -var assetUpdateData = { - updateType:WriterHelper.prototype.UpdateAssetType.OWNER_UID, - updateValue:"0-1", //owner address - } - -//update asset name -// var assetUpdateData = { -// updateType:WriterHelper.prototype.UpdateAssetType.NAME, -// updateValue:"TokenName", //asset name -// } - -//update asset token number -// var assetUpdateData = { -// updateType: WriterHelper.prototype.UpdateAssetType.MINT_AMOUNT, -// updateValue: 11000000000000000, //Increase the number of asset -// } - - -//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result -var assetUpdateInfo = { - nTxType: bitcore.WiccApi.ASSET_UPDATE, - nVersion: 1, - nValidHeight: 28128, // create height - srcRegId: "0-1", // sender's regId - assetUpdateData: assetUpdateData, - feesCoinSymbol: WriterHelper.prototype.CoinType.WICC, - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - assetSymbol: "LOLLLL", //Symbol Capital letter A-Z 6-7 digits [A_Z] - fees: 11000000000, // fees pay for miner min 0.01 wicc +110wicc -}; - -var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.ASSET_UPDATE, assetUpdateInfo) -console.log("asset update tx raw: ") -console.log(rawtx) diff --git a/test/test-callcontracttx.js b/test/test-callcontracttx.js deleted file mode 100644 index a6cfc8a..0000000 --- a/test/test-callcontracttx.js +++ /dev/null @@ -1,49 +0,0 @@ -'use strict'; - -// usage: node test-contracttx.js - -var bitcore = require('..'); - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for calling smart contract -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建调用合约的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var regAppInfo = { - nTxType: bitcore.WiccApi.CONTRACT_TX, - nVersion: 1, - nValidHeight: 34400, // create height - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - srcRegId: '', // sender's regId - destRegId: "24555-1", // app regId - fees: 1000000, // fees pay for miner - value: 8, // amount of WICC to be sent to the app account - vContract: "f018" // contract method, hex format string -}; - -var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CONTRACT_TX, regAppInfo) -console.log("contract tx raw: ") -console.log(rawtx) diff --git a/test/test-cancelordertx.js b/test/test-cancelordertx.js deleted file mode 100644 index 5f3c564..0000000 --- a/test/test-cancelordertx.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict' - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) -/* -Build a transaction for cancel order transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, orderId:pending trading hash -5, fee_symbol: fee type (WICC/WUSD) -*/ -/* -构建取消交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、orderId:挂单的交易hash -5, fee_symbol: 小费类型(WICC/WUSD) -*/ -var dexCancelTxinfo = { - nTxType: bitcore.WiccApi.DEX_CANCEL_ORDER_TX, - nVersion: 1, - nValidHeight: 5360, - fees: 10000, - feeSymbol: WriterHelper.prototype.CoinType.WICC, - srcRegId: '', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - orderId: '009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144', - network: 'testnet' - }; - - var dexCancelOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_CANCEL_ORDER_TX, dexCancelTxinfo); - - console.log("----dexCancelOrderTx----",dexCancelOrderTx) diff --git a/test/test-cdpliquidatetx.js b/test/test-cdpliquidatetx.js deleted file mode 100644 index 6d2e03d..0000000 --- a/test/test-cdpliquidatetx.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for cdp liquidate transaction -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4. cdpOwnerRegId: reg of the cdp creator -5. cdpTxId: the transaction hash created by the cdp -6. scoinsToLiquidate: the number of liquidation -7, fee_symbol: fee type (WICC/WUSD) -8、assetSymbol:get stake coin symbol -*/ -/* -构建cdp清算交易 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、cdpOwnerRegId:cdp创建者的regid -5、cdpTxId:该cdp的创建的交易hash -6、scoinsToLiquidate:清算的数量 -7、fee_symbol:小费类型(WICC/WUSD) -8、assetSymbol:赎回币种类型 -*/ -var cdpliquidateTxinfo = { - nTxType: bitcore.WiccApi.CDP_LIQUIDATE_TX, - nVersion: 1, - nValidHeight: 501, - txUid:"", - fees: 100000, - fee_symbol:WriterHelper.prototype.CoinType.WICC, - cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - scoinsToLiquidate: 2000000000000, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - network: 'testnet' - }; - - - var cdpliquidateTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_LIQUIDATE_TX, cdpliquidateTxinfo) - console.log("-----cdpliquidateTx-----",cdpliquidateTx) diff --git a/test/test-cdpredeemtx.js b/test/test-cdpredeemtx.js deleted file mode 100644 index afa66dd..0000000 --- a/test/test-cdpredeemtx.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for cdp redeem -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, cdpTxId: cdp transaction hash -5, assetAmount: stake coin amount -6, assetSymbol: stake asset symbol -7, fee_symbol: fee type (WICC/WUSD) -*/ -/* -构建cdp赎回的交易 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、cdpTxId:cdp交易hash -5、scoins_to_repay:销毁的wusd数量 -6、assetAmount:赎回的数量 -7、assetSymbol: 赎回币种类型 -8、fee_symbol:小费类型(WICC/WUSD) -*/ -var assetSymbol=WriterHelper.prototype.CoinType.WICC -var assetAmount=100000000 -var map=new Map([[assetSymbol,assetAmount]]) -var cdpRedeemTxinfo = { - nTxType: bitcore.WiccApi.CDP_REDEEMP_TX, - nVersion: 1, - nValidHeight: 78, - txUid:"", - fees: 100000, - cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", - publicKey:"03af0341d7470d6e02687bec8920dbfba83544571a71f1cd6ef487c7fd88768c01", - fee_symbol:WriterHelper.prototype.CoinType.WICC, - scoins_to_repay: 0, - assetMap: map, - network: 'testnet' - }; - - - var cdpRedeemTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_REDEEMP_TX, cdpRedeemTxinfo) - - console.log('----cdpRedeemTx----', cdpRedeemTx) diff --git a/test/test-cdpstaketx.js b/test/test-cdpstaketx.js deleted file mode 100644 index f3ebe50..0000000 --- a/test/test-cdpstaketx.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) - -/* -Build a transaction for cdp stake transaction -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -5、assetAmount:stake coin amount -6、scoinsToMint:get coin amount -7、fee_symbol:fee symbol(WICC/WUSD) -8、assetAmount:stake coin symbol -9、coin_symbol:get coind symbol -*/ -/* -构建cdp抵押交易 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、cdpTxId:cdp创建生成的交易hash -5、assetAmount:抵押的数量(最低1WICC) -6、scoinsToMint:获得的wusd -7、fee_symbol:小费类型(WICC/WUSD) -8、assetAmount:抵押币种 -9、coin_symbol:获得币种 -*/ -var assetSymbol=WriterHelper.prototype.CoinType.WICC -var assetAmount=100000000 -var map=new Map([[assetSymbol,assetAmount]]) -var cdpStakeTxinfo = { - nTxType: bitcore.WiccApi.CDP_STAKE_TX, - nVersion: 1, - nValidHeight: 25, - txUid:"0-1", - fees: 100000, - fee_symbol:WriterHelper.prototype.CoinType.WICC, - cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - assetMap:map, - scoin_symbol:WriterHelper.prototype.CoinType.WUSD, - scoinsToMint: 0, - network: 'testnet' - }; - - - var cdpStakeTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.CDP_STAKE_TX, cdpStakeTxinfo) - - console.log("----cdpStakeTx----", cdpStakeTx) diff --git a/test/test-commontx.js b/test/test-commontx.js deleted file mode 100644 index 71e0056..0000000 --- a/test/test-commontx.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); - -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) - -/* -Build a transaction for common transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000000 sawi (0.1 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建普通转账交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var commonTxinfo = { - nTxType: 3, - nVersion: 1, - nValidHeight: 34550, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - fees: 10000, - srcRegId: '0-1', - destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', - value:1100000000000, - memo:"test transfer", - network: 'testnet' - }; - - var value = 10000000000 - var tmp = (value >>> 7) - - - var commonTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.COMMON_TX, commonTxinfo) - console.log("----commonTx----", commonTx) diff --git a/test/test-delegatetx.js b/test/test-delegatetx.js deleted file mode 100644 index db5eff8..0000000 --- a/test/test-delegatetx.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -// usage: node test-contracttx.js - -var bitcore = require('..'); - -var arg = { - network: 'testnet' -} -var wiccApi = new bitcore.WiccApi(arg) - -/* -publicKey can get from "getaccountinfo" cmd if the account have registered -*/ -var delegateData = [ // array, item is object data of delegate - { - // address: 'waFdYrQfDSsh1jVsDzPiutAPUKCHZJ4Wyp' - // publicKey: Buffer.from("02e5ee9bd73c561fc9844fc3065c87d297f6ba52f64f409346a4bb5035f2de25ab", 'hex'), - publicKey: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", - votes: 201 - },{ - // address: 'wQsRcb6VcSr9DnpaLiWwrSA6YPuaUMbbYw' - publicKey: "02dc40112e2e12106c749c5bee34b4037b2dff4cd300ee5a57948961a6c9441e27", - votes: 202 - } -] - -//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result -var delegateInfo = { - nTxType: bitcore.WiccApi.DELEGATE_TX, - nVersion: 1, - nValidHeight: 28128, // create height - srcRegId: "", // sender's regId - delegateData: delegateData, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - fees: 1001, // fees pay for miner -}; - -var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DELEGATE_TX, delegateInfo) -console.log("contract tx raw: ") -console.log(rawtx) diff --git a/test/test-dexbuylimitordertx.js b/test/test-dexbuylimitordertx.js deleted file mode 100644 index dadb9da..0000000 --- a/test/test-dexbuylimitordertx.js +++ /dev/null @@ -1,49 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for dex buy limit transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, coinType: currency type -5, assetType: asset type -6, assetAmount: the amount of assets -7, bidPrice: price -*/ -/* -构建普通限价买交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、coinType:币种类型 -5、assetType:资产类型 -6、assetAmount:资产金额 -7、bidPrice:价格 -*/ -var dexBuyLimitTxinfo = { - nTxType: bitcore.WiccApi.DEX_BUY_LIMIT_ORDER_TX, - nVersion: 1, - nValidHeight: 5360, - fees: 10000, - srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - assetAmount:10, - bidPrice:200, - network: 'testnet' - }; - - var dexBuyLimitOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_BUY_LIMIT_ORDER_TX, dexBuyLimitTxinfo) - - console.log("----dexBuyLimitOrderTx----", dexBuyLimitOrderTx) diff --git a/test/test-dexbuymarketordertx.js b/test/test-dexbuymarketordertx.js deleted file mode 100644 index 510eadb..0000000 --- a/test/test-dexbuymarketordertx.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for market buy transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, coinType: currency type -5, assetType: asset type -6, coinAmount: the amount of assets -*/ -/* -构建市价买单交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、coinType:币种类型 -5、assetType:资产类型 -6、coinAmount:资产金额 -*/ -var dexBuyMarketTxinfo = { - nTxType: bitcore.WiccApi.DEX_BUY_MARKET_ORDER_TX, - nVersion: 1, - nValidHeight: 5360, - fees: 10000, - srcRegId: '', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - coinAmount:200, - network: 'testnet' - }; - - var dexBuyMarketOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_BUY_MARKET_ORDER_TX, dexBuyMarketTxinfo) - - console.log("----dexBuyMarketOrderTx----", dexBuyMarketOrderTx) diff --git a/test/test-dexselllimitordertx.js b/test/test-dexselllimitordertx.js deleted file mode 100644 index cedbe18..0000000 --- a/test/test-dexselllimitordertx.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict' - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for sell limit transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建限价卖单交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var dexSellLimitTxinfo = { - nTxType: bitcore.WiccApi.DEX_SELL_LIMIT_ORDER_TX, - nVersion: 1, - nValidHeight: 602371, - fees: 10000, - srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - assetAmount:30000000000, - askPrice:200000000, - network: 'testnet' - }; - - - var dexSellLimitOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_SELL_LIMIT_ORDER_TX, dexSellLimitTxinfo) - console.log("----dexSellLimitOrderTx----", dexSellLimitOrderTx) diff --git a/test/test-dexsellmarketordertx.js b/test/test-dexsellmarketordertx.js deleted file mode 100644 index 009ea08..0000000 --- a/test/test-dexsellmarketordertx.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for sell limit transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建限价卖单交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var dexSellMarketTxinfo = { - nTxType: bitcore.WiccApi.DEX_SELL_MARKET_ORDER_TX, - nVersion: 1, - nValidHeight: 602371, - fees: 10000, - srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - assetAmount:30000000000, - network: 'testnet' - }; - - var dexSellMarketOrderTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.DEX_SELL_MARKET_ORDER_TX, dexSellMarketTxinfo) - console.log("----dexSellMarketOrderTx----", dexSellMarketOrderTx) diff --git a/test/test-fcoinstake.js b/test/test-fcoinstake.js deleted file mode 100644 index a58f108..0000000 --- a/test/test-fcoinstake.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict' - -// const express = require("express"); -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var privateKey = bitcore.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) - -/* -Build a transaction for fcoin stake transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 10000 sawi (0.0001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, txUid: operator's regid -5, fcoinsToStake: the number of coins stake -*/ -/* -构建权益币质押交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、txUid:操作者的regid -5、fcoinsToStake:质押数量 -*/ -var fcoinStakeTxinfo = { - nTxType: bitcore.WiccApi.FCOIN_STAKE_TX, - nVersion: 1, - nValidHeight: 23594, - txUid:"", - fees: 100000, - feeSymbol:WriterHelper.prototype.CoinType.WICC, - stakeType:WriterHelper.prototype.BalanceOpType.ADD_FREE, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - fcoinsToStake: 2000000000000, - network: 'testnet' - }; - - - var cfcoinStakeTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.FCOIN_STAKE_TX, fcoinStakeTxinfo) - console.log("----cointransferTx----", cfcoinStakeTx) diff --git a/test/test-feedpricetx.js b/test/test-feedpricetx.js deleted file mode 100644 index 7511a70..0000000 --- a/test/test-feedpricetx.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -// usage: node test-contracttx.js - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -var feedPriceData = [ - { - coinPriceType: { - coinType:WriterHelper.prototype.CoinType.WICC, - priceType:WriterHelper.prototype.PriceType.KWH - }, - price: 200000 - } -] - -//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result -var regAppInfo = { - nTxType: bitcore.WiccApi.PRICE_FEED_TX, - nVersion: 1, - nValidHeight: 28128, // create height - srcRegId: "28121-3", // sender's regId - feedPriceData: feedPriceData, -}; - -var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.PRICE_FEED_TX, regAppInfo) -console.log("contract tx raw: ") -console.log(rawtx) diff --git a/test/test-messagevertify.js b/test/test-messagevertify.js deleted file mode 100644 index b241088..0000000 --- a/test/test-messagevertify.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -var bitcore = require('..'); -var Hash = require('../lib/crypto/hash'); -var crypto = require('crypto'); -var ECDSA = require('../lib/crypto/ecdsa'); - -var privateKey = bitcore.PrivateKey.fromWIF("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") -var msg = "WaykiChain" -var msgBuff = Buffer.from(msg) - -var msgBuffHash = Hash.sha256(Hash.sha256ripemd160(msgBuff)); -var signMsg = ECDSA.sign(msgBuffHash, privateKey, 'endian') - console.log("签名消息"+signMsg) - //验证消息 -var pubKey=privateKey.toPublicKey(); -console.log("公钥:"+pubKey) -var vertifySuccess=ECDSA.verify(msgBuffHash, signMsg, pubKey, 'endian') - -console.log("验证成功?"+vertifySuccess) diff --git a/test/test-registeraccounttx.js b/test/test-registeraccounttx.js deleted file mode 100644 index df23698..0000000 --- a/test/test-registeraccounttx.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict' -var bitcore = require('..'); - -//environment init -//环境初始化 -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -//import private key -//引入私钥 -var privateKey = bitcore.PrivateKey.fromWIF('Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb') -var publicKey = privateKey.toPublicKey(); - -/* -Build a transaction for register account -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when registering a account, >= 100000000 sawi (0.1 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建注册地址的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:注册账户交易时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var registeraccounttxInfo = { - nTxType: 2, //REGISTER_ACCOUNT_TX - nVersion: 1, - nValidHeight: 34632, - fees: 10000, - pubkey: publicKey.toString(), - minerPubkey: '' - }; - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.REGISTER_ACCOUNT_TX, registeraccounttxInfo) -console.log("genregisteraccountraw rawtx=") -console.log(rawtx) \ No newline at end of file diff --git a/test/test-registercontracttx.js b/test/test-registercontracttx.js deleted file mode 100644 index 2897d46..0000000 --- a/test/test-registercontracttx.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -// usage: -// node test-registerapptx.js - -var _ = require('lodash'); -var bitcore = require('..'); -var fs = require("fs") - -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -var script = fs.readFileSync(__dirname + '/data/contract-hello.lua'); -//console.log("load script file:") -//console.log(script); - -console.log(_.isString(script)) -console.log(_.isArray(script)) -console.log(_.isArrayBuffer(script)) -console.log(_.isBuffer(script)) - -/* -Build a transaction for deploy smart contract -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 110000000 sawi (1.1 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建发布合约的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 110000000 sawi(1.1 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var regAppInfo = { - nTxType: bitcore.WiccApi.REG_APP_TX, - nVersion: 1, - nValidHeight: 110482, // create height - regAcctId: "0-1", // sender's regId - script: script, // contract scrypt content, string or buf - scriptDesc: "test contract", // contract scrypt description, string or buf - fees: 4200000000, // fees pay for miner - }; - -var wiccPrivateKey = 'Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.REG_APP_TX, regAppInfo) -console.log("reg app tx raw: ") -console.log(rawtx) \ No newline at end of file diff --git a/test/test-ucointransfertx.js b/test/test-ucointransfertx.js deleted file mode 100644 index c1fb7e5..0000000 --- a/test/test-ucointransfertx.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict' - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') - -var privateKey = bitcore.PrivateKey.fromWIF('Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ') -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for common transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, srcRegId: the regid of the transferor -5, value: transfer amount -6, coinType: currency type -7, feesCoinType: fees type -*/ -/* -构建转账交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、srcRegId:转账者的regid -5、value:转账金额 -6、coinType:币种类型 -7、feesCoinType:小费类型 -*/ - -var coinType = WriterHelper.prototype.CoinType.WUSD -var destAddr = 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65' -var value = 32432 -var destArr = [{ - "coinType":coinType, - "destAddr":destAddr, - "value":value - } -] -var cointransferTxinfo = { - nTxType: bitcore.WiccApi.UCOIN_TRANSFER_TX, - nVersion: 1, - nValidHeight: 602371, - fees: 10000, - srcRegId: '', - destArr:destArr, - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - memo: "test transfer", - feesCoinType: WriterHelper.prototype.CoinType.WICC, - network: 'testnet' -}; - -var cointransferTx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.UCOIN_TRANSFER_TX, cointransferTxinfo) -console.log("----cointransferTx----", cointransferTx) - diff --git a/test/test-ucontractinvoketx.js b/test/test-ucontractinvoketx.js deleted file mode 100644 index bae7c55..0000000 --- a/test/test-ucontractinvoketx.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -// usage: node test-contracttx.js - -var bitcore = require('..'); -var WriterHelper = require('../lib/util/writerhelper') -var arg = { network: 'testnet' } -var wiccApi = new bitcore.WiccApi(arg) - -/* -Build a transaction for calling smart contract -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -*/ -/* -构建调用合约的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -*/ -var invokeAppInfo = { - nTxType: bitcore.WiccApi.UCOIN_CONTRACT_INVOKE_TX, - nVersion: 1, - nValidHeight: 34400, // create height - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - srcRegId: '0-1', // sender's regId - destRegId: "24555-1", // app regId - feesCoinType: WriterHelper.prototype.CoinType.WICC, - coinType: WriterHelper.prototype.CoinType.WUSD, - fees: 1000000, // fees pay for miner - value: 8, // amount of WICC to be sent to the app account - vContract: "f018" // contract method, hex format string -}; - -var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = bitcore.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, bitcore.WiccApi.UCOIN_CONTRACT_INVOKE_TX, invokeAppInfo) -console.log("contract tx raw: ") -console.log(rawtx) diff --git a/test/test-wallet.js b/test/test-wallet.js deleted file mode 100644 index 8cbdb73..0000000 --- a/test/test-wallet.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -var bitcore = require('..'); - -//environment init -//环境初始化 -var arg = {network: 'testnet'} -var wiccApi = new bitcore.WiccApi(arg) - -//Create Mnemonic Code -//创建助记词 -var strMne = wiccApi.createAllCoinMnemonicCode() -console.log('New MnemonicCode='+ strMne) - -//Check if the mnemonic is valid -//检查助记词是否有效 -var ret = wiccApi.checkMnemonicCode(strMne) -console.log('Check MnemonicCode Result=' + ret) - -//Get WIF privatekey from mnemoniccode -//根据助记词获取对应的WIF格式私钥 -var privateKey1 = wiccApi.getPriKeyFromMnemonicCode(strMne) -console.log('privateKey1='+privateKey1) - -//Create a wallet based on the mnemonic, '12345678' is the wallet password -//根据助记词创建钱包,'12345678'为钱包密码 -var walletInfo = wiccApi.createWallet(strMne, '12345678') -console.log('walletInfo=') -console.log(walletInfo) - -//Get WIF privatekey from wallet -//根据钱包种子获取对应的WIF格式私钥 -var privateKey2 = wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, '12345678') -console.log('privateKey2='+privateKey2) - -//Get mnemonics based on wallet seeds -//根据钱包种子获取助记词 -var Mne = wiccApi.getMnemonicCodeFromSeed(walletInfo.seedinfo, '12345678') -console.log("Get MnemonicCode from wallet seed="+Mne) - -//Get an address based on the WIF format private key. Note: privateKey2 and privateKey1 are equal. -//根据WIF格式私钥获取地址 ,注意:privateKey2 和 privateKey1 是一样的 -var privateKey = bitcore.PrivateKey.fromWIF("Y9dJaHVk7Rs4sVq1Uk8TGLW4PQzzesA7Lss2Xz1inZY9KMfHBSPE") -var pubKey=privateKey.toPublicKey(); -var address = privateKey.toAddress(); -console.log("New Create publicKey1="+pubKey,"New Create address="+address.toString()) - -//Check if the address is valid -//检查地址是否有效 -ret = wiccApi.validateAddress(address) -console.log("Check address Result="+ret) - diff --git a/test/transaction/deserialize.js b/test/transaction/deserialize.js deleted file mode 100644 index e9f43b8..0000000 --- a/test/transaction/deserialize.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -var Transaction = require('../../lib/transaction'); - -var vectors_valid = require('../data/bitcoind/tx_valid.json'); -var vectors_invalid = require('../data/bitcoind/tx_invalid.json'); - -describe('Transaction deserialization', function() { - - describe('valid transaction test case', function() { - var index = 0; - vectors_valid.forEach(function(vector) { - it('vector #' + index, function() { - if (vector.length > 1) { - var hexa = vector[1]; - Transaction(hexa).serialize(true).should.equal(hexa); - index++; - } - }); - }); - }); - describe('invalid transaction test case', function() { - var index = 0; - vectors_invalid.forEach(function(vector) { - it('invalid vector #' + index, function() { - if (vector.length > 1) { - var hexa = vector[1]; - Transaction(hexa).serialize(true).should.equal(hexa); - index++; - } - }); - }); - }); -}); diff --git a/test/transaction/input/input.js b/test/transaction/input/input.js deleted file mode 100644 index ff2e8fb..0000000 --- a/test/transaction/input/input.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); - -var bitcore = require('../../..'); -var errors = bitcore.errors; -var PrivateKey = bitcore.PrivateKey; -var Address = bitcore.Address; -var Script = bitcore.Script; -var Networks = bitcore.Networks; -var Input = bitcore.Transaction.Input; - -describe('Transaction.Input', function() { - - var privateKey = new PrivateKey('KwF9LjRraetZuEjR8VqEq539z137LW5anYDUnVK11vM3mNMHTWb4'); - var publicKey = privateKey.publicKey; - var address = new Address(publicKey, Networks.livenet); - var output = { - address: '33zbk2aSZYdNbRsMPPt6jgy6Kq1kQreqeb', - prevTxId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script(address), - satoshis: 1000000 - }; - var coinbase = { - prevTxId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 0xFFFFFFFF, - script: new Script(), - satoshis: 1000000 - }; - - var coinbaseJSON = JSON.stringify({ - prevTxId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 4294967295, - script:'' - }); - - var otherJSON = JSON.stringify({ - txidbuf: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - txoutnum: 0, - seqnum:4294967295, - script: '71 0x3044022006553276ec5b885ddf5cc1d79e1e3dadbb404b60ad4cc00318e21565' + - '4f13242102200757c17b36e3d0492fb9cf597032e5afbea67a59274e64af5a05d12e5ea2303901 ' + - '33 0x0223078d2942df62c45621d209fab84ea9a7a23346201b7727b9b45a29c4e76f5e', - output: { - 'satoshis':100000, - 'script':'OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a ' + - 'OP_EQUALVERIFY OP_CHECKSIG' - } - }); - - it('has abstract methods: "getSignatures", "isFullySigned", "addSignature", "clearSignatures"', function() { - var input = new Input(output); - _.each(['getSignatures', 'isFullySigned', 'addSignature', 'clearSignatures'], function(method) { - expect(function() { - return input[method](); - }).to.throw(errors.AbstractMethodInvoked); - }); - }); - it('detects coinbase transactions', function() { - new Input(output).isNull().should.equal(false); - var ci = new Input(coinbase); - ci.isNull().should.equal(true); - }); - - describe('instantiation', function() { - it('works without new', function() { - var input = Input(); - should.exist(input); - }); - it('fails with no script info', function() { - expect(function() { - var input = new Input({}); - input.toString(); - }).to.throw('Need a script to create an input'); - }); - it('fromObject should work', function() { - var jsonData = JSON.parse(coinbaseJSON); - var input = Input.fromObject(jsonData); - should.exist(input); - input.prevTxId.toString('hex').should.equal(jsonData.prevTxId); - input.outputIndex.should.equal(jsonData.outputIndex); - }); - it('fromObject should work', function() { - var input = Input.fromObject(JSON.parse(coinbaseJSON)); - var obj = input.toObject(); - Input.fromObject(obj).should.deep.equal(input); - obj.script = 42; - Input.fromObject.bind(null, obj).should.throw('Invalid argument type: script'); - }); - }); - - it('_estimateSize returns correct size', function() { - var input = new Input(output); - input._estimateSize().should.equal(66); - }); -}); diff --git a/test/transaction/input/multisig.js b/test/transaction/input/multisig.js deleted file mode 100644 index 16a63b0..0000000 --- a/test/transaction/input/multisig.js +++ /dev/null @@ -1,177 +0,0 @@ -'use strict'; -/* jshint unused: false */ - -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); - -var bitcore = require('../../..'); -var Transaction = bitcore.Transaction; -var PrivateKey = bitcore.PrivateKey; -var Address = bitcore.Address; -var Script = bitcore.Script; -var Signature = bitcore.crypto.Signature; -var MultiSigInput = bitcore.Transaction.Input.MultiSig; - -describe('MultiSigInput', function() { - - var privateKey1 = new PrivateKey('KwF9LjRraetZuEjR8VqEq539z137LW5anYDUnVK11vM3mNMHTWb4'); - var privateKey2 = new PrivateKey('L4PqnaPTCkYhAqH3YQmefjxQP6zRcF4EJbdGqR8v6adtG9XSsadY'); - var privateKey3 = new PrivateKey('L4CTX79zFeksZTyyoFuPQAySfmP7fL3R41gWKTuepuN7hxuNuJwV'); - var public1 = privateKey1.publicKey; - var public2 = privateKey2.publicKey; - var public3 = privateKey3.publicKey; - var address = new Address('33zbk2aSZYdNbRsMPPt6jgy6Kq1kQreqeb'); - - var output = { - txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script("5221025c95ec627038e85b5688a9b3d84d28c5ebe66e8c8d697d498e20fe96e3b1ab1d2102cdddfc974d41a62f1f80081deee70592feb7d6e6cf6739d6592edbe7946720e72103c95924e02c240b5545089c69c6432447412b58be43fd671918bd184a5009834353ae"), - satoshis: 1000000 - }; - it('can count missing signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - - input.countSignatures().should.equal(0); - - transaction.sign(privateKey1); - input.countSignatures().should.equal(1); - input.countMissingSignatures().should.equal(1); - input.isFullySigned().should.equal(false); - - transaction.sign(privateKey2); - input.countSignatures().should.equal(2); - input.countMissingSignatures().should.equal(0); - input.isFullySigned().should.equal(true); - }); - it('can count missing signatures, signed with key 3 and 1', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - - input.countSignatures().should.equal(0); - - transaction.sign(privateKey3); - input.countSignatures().should.equal(1); - input.countMissingSignatures().should.equal(1); - input.isFullySigned().should.equal(false); - - transaction.sign(privateKey1); - input.countSignatures().should.equal(2); - input.countMissingSignatures().should.equal(0); - input.isFullySigned().should.equal(true); - }); - it('returns a list of public keys with missing signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - - _.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { - var serialized = publicKeyMissing.toString(); - return serialized === public1.toString() || - serialized === public2.toString() || - serialized === public3.toString(); - }).should.equal(true); - transaction.sign(privateKey1); - _.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { - var serialized = publicKeyMissing.toString(); - return serialized === public2.toString() || - serialized === public3.toString(); - }).should.equal(true); - }); - it('can clear all signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000) - .sign(privateKey1) - .sign(privateKey2); - - var input = transaction.inputs[0]; - input.isFullySigned().should.equal(true); - input.clearSignatures(); - input.isFullySigned().should.equal(false); - }); - it('can estimate how heavy is the output going to be', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - input._estimateSize().should.equal(147); - }); - it('uses SIGHASH_ALL by default', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - var sigs = input.getSignatures(transaction, privateKey1, 0); - sigs[0].sigtype.should.equal(Signature.SIGHASH_ALL); - }); - it('roundtrips to/from object', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000) - .sign(privateKey1); - var input = transaction.inputs[0]; - var roundtrip = new MultiSigInput(input.toObject()); - roundtrip.toObject().should.deep.equal(input.toObject()); - }); - it('roundtrips to/from object when not signed', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - var roundtrip = new MultiSigInput(input.toObject()); - roundtrip.toObject().should.deep.equal(input.toObject()); - }); - it('can parse list of signature buffers, from TX signed with key 1 and 2', function() { - var transaction = new Transaction("010000000140c1ae9d6933e4a08594f814ba73a4e94d19c8a83f45784b1684b3a3f84ee666000000009200473044022012bd2f15e56ab1b63d5ee23e194ed995ad4b81a21bcb8e0d913e5e791c07f7280220278bdb6b54cdc608193c869affe28dc2f700902218122770faff25c56142102b01483045022100e74e9955e042aca36f4f3ad907a0926c5b85e5d9608b0678a78a9cbc0259c7a2022053ff761e5f9a80558db7023e45c4979ac3c19a423f0184fb0596d3da308cc4b501ffffffff0140420f000000000017a91419438da7d16709643be5abd8df62ca4034a489a78700000000"); - - var inputObj = transaction.inputs[0].toObject(); - inputObj.output = output; - transaction.inputs[0] = new Transaction.Input(inputObj); - - inputObj.signatures = MultiSigInput.normalizeSignatures( - transaction, - transaction.inputs[0], - 0, - transaction.inputs[0].script.chunks.slice(1).map(function(s) { return s.buf; }), - [public1, public2, public3] - ); - - transaction.inputs[0] = new MultiSigInput(inputObj, [public1, public2, public3], 2); - - transaction.inputs[0].signatures[0].publicKey.should.deep.equal(public1); - transaction.inputs[0].signatures[1].publicKey.should.deep.equal(public2); - should.equal(transaction.inputs[0].signatures[2], undefined); - transaction.inputs[0].isValidSignature(transaction, transaction.inputs[0].signatures[0]).should.be.true; - transaction.inputs[0].isValidSignature(transaction, transaction.inputs[0].signatures[1]).should.be.true; - }); - it('can parse list of signature buffers, from TX signed with key 3 and 1', function() { - var transaction = new Transaction("010000000140c1ae9d6933e4a08594f814ba73a4e94d19c8a83f45784b1684b3a3f84ee666000000009300483045022100fc39ce4f51b2766ec8e978296e0594ea4578a3eb2543722fd4053e92bf16e6b1022030f739868397a881b019508b9c725a5c69a3652cb8928027748e93e67dfaef5501483045022100e74e9955e042aca36f4f3ad907a0926c5b85e5d9608b0678a78a9cbc0259c7a2022053ff761e5f9a80558db7023e45c4979ac3c19a423f0184fb0596d3da308cc4b501ffffffff0140420f000000000017a91419438da7d16709643be5abd8df62ca4034a489a78700000000"); - - var inputObj = transaction.inputs[0].toObject(); - inputObj.output = output; - transaction.inputs[0] = new Transaction.Input(inputObj); - - inputObj.signatures = MultiSigInput.normalizeSignatures( - transaction, - transaction.inputs[0], - 0, - transaction.inputs[0].script.chunks.slice(1).map(function(s) { return s.buf; }), - [public1, public2, public3] - ); - - transaction.inputs[0] = new MultiSigInput(inputObj, [public1, public2, public3], 2); - - transaction.inputs[0].signatures[0].publicKey.should.deep.equal(public1); - should.equal(transaction.inputs[0].signatures[1], undefined); - transaction.inputs[0].signatures[2].publicKey.should.deep.equal(public3); - transaction.inputs[0].isValidSignature(transaction, transaction.inputs[0].signatures[0]).should.be.true; - transaction.inputs[0].isValidSignature(transaction, transaction.inputs[0].signatures[2]).should.be.true; - }); -}); diff --git a/test/transaction/input/multisigscripthash.js b/test/transaction/input/multisigscripthash.js deleted file mode 100644 index b3bcd83..0000000 --- a/test/transaction/input/multisigscripthash.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict'; -/* jshint unused: false */ - -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); - -var bitcore = require('../../..'); -var Transaction = bitcore.Transaction; -var PrivateKey = bitcore.PrivateKey; -var Address = bitcore.Address; -var Script = bitcore.Script; -var Signature = bitcore.crypto.Signature; -var MultiSigScriptHashInput = bitcore.Transaction.Input.MultiSigScriptHash; - -describe('MultiSigScriptHashInput', function() { - - var privateKey1 = new PrivateKey('KwF9LjRraetZuEjR8VqEq539z137LW5anYDUnVK11vM3mNMHTWb4'); - var privateKey2 = new PrivateKey('L4PqnaPTCkYhAqH3YQmefjxQP6zRcF4EJbdGqR8v6adtG9XSsadY'); - var privateKey3 = new PrivateKey('L4CTX79zFeksZTyyoFuPQAySfmP7fL3R41gWKTuepuN7hxuNuJwV'); - var public1 = privateKey1.publicKey; - var public2 = privateKey2.publicKey; - var public3 = privateKey3.publicKey; - var address = new Address('33zbk2aSZYdNbRsMPPt6jgy6Kq1kQreqeb'); - - var output = { - address: '33zbk2aSZYdNbRsMPPt6jgy6Kq1kQreqeb', - txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script(address), - satoshis: 1000000 - }; - it('can count missing signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - - input.countSignatures().should.equal(0); - - transaction.sign(privateKey1); - input.countSignatures().should.equal(1); - input.countMissingSignatures().should.equal(1); - input.isFullySigned().should.equal(false); - - transaction.sign(privateKey2); - input.countSignatures().should.equal(2); - input.countMissingSignatures().should.equal(0); - input.isFullySigned().should.equal(true); - }); - it('returns a list of public keys with missing signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - - _.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { - var serialized = publicKeyMissing.toString(); - return serialized === public1.toString() || - serialized === public2.toString() || - serialized === public3.toString(); - }).should.equal(true); - transaction.sign(privateKey1); - _.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { - var serialized = publicKeyMissing.toString(); - return serialized === public2.toString() || - serialized === public3.toString(); - }).should.equal(true); - }); - it('can clear all signatures', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000) - .sign(privateKey1) - .sign(privateKey2); - - var input = transaction.inputs[0]; - input.isFullySigned().should.equal(true); - input.clearSignatures(); - input.isFullySigned().should.equal(false); - }); - it('can estimate how heavy is the output going to be', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - input._estimateSize().should.equal(257); - }); - it('uses SIGHASH_ALL by default', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - var sigs = input.getSignatures(transaction, privateKey1, 0); - sigs[0].sigtype.should.equal(Signature.SIGHASH_ALL); - }); - it('roundtrips to/from object', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000) - .sign(privateKey1); - var input = transaction.inputs[0]; - var roundtrip = new MultiSigScriptHashInput(input.toObject()); - roundtrip.toObject().should.deep.equal(input.toObject()); - }); - it('roundtrips to/from object when not signed', function() { - var transaction = new Transaction() - .from(output, [public1, public2, public3], 2) - .to(address, 1000000); - var input = transaction.inputs[0]; - var roundtrip = new MultiSigScriptHashInput(input.toObject()); - roundtrip.toObject().should.deep.equal(input.toObject()); - }); - it('will get the scriptCode for nested witness', function() { - var address = Address.createMultisig([public1, public2, public3], 2, 'testnet', true); - var utxo = { - address: address.toString(), - txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script(address), - satoshis: 1000000 - }; - var transaction = new Transaction() - .from(utxo, [public1, public2, public3], 2, true) - .to(address, 1000000); - var input = transaction.inputs[0]; - var scriptCode = input.getScriptCode(); - scriptCode.toString('hex').should.equal('695221025c95ec627038e85b5688a9b3d84d28c5ebe66e8c8d697d498e20fe96e3b1ab1d2102cdddfc974d41a62f1f80081deee70592feb7d6e6cf6739d6592edbe7946720e72103c95924e02c240b5545089c69c6432447412b58be43fd671918bd184a5009834353ae'); - }); - it('will get the satoshis buffer for nested witness', function() { - var address = Address.createMultisig([public1, public2, public3], 2, 'testnet', true); - var utxo = { - address: address.toString(), - txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script(address), - satoshis: 1000000 - }; - var transaction = new Transaction() - .from(utxo, [public1, public2, public3], 2, true) - .to(address, 1000000); - var input = transaction.inputs[0]; - var satoshisBuffer = input.getSatoshisBuffer(); - satoshisBuffer.toString('hex').should.equal('40420f0000000000'); - }); - -}); diff --git a/test/transaction/input/publickey.js b/test/transaction/input/publickey.js deleted file mode 100644 index 5d6b366..0000000 --- a/test/transaction/input/publickey.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var bitcore = require('../../..'); -var Transaction = bitcore.Transaction; -var PrivateKey = bitcore.PrivateKey; - -describe('PublicKeyInput', function() { - - var utxo = { - txid: '7f3b688cb224ed83e12d9454145c26ac913687086a0a62f2ae0bc10934a4030f', - vout: 0, - address: 'n4McBrSkw42eYGX5YMACGpkGUJKL3jVSbo', - scriptPubKey: '2103c9594cb2ebfebcb0cfd29eacd40ba012606a197beef76f0269ed8c101e56ceddac', - amount: 50, - confirmations: 104, - spendable: true - }; - var privateKey = PrivateKey.fromWIF('cQ7tSSQDEwaxg9usnnP1Aztqvm9nCQVfNWz9kU2rdocDjknF2vd6'); - var address = privateKey.toAddress(); - utxo.address.should.equal(address.toString()); - - var destKey = new PrivateKey(); - - it('will correctly sign a publickey out transaction', function() { - var tx = new Transaction(); - tx.from(utxo); - tx.to(destKey.toAddress(), 10000); - tx.sign(privateKey); - tx.inputs[0].script.toBuffer().length.should.be.above(0); - }); - - it('count can count missing signatures', function() { - var tx = new Transaction(); - tx.from(utxo); - tx.to(destKey.toAddress(), 10000); - var input = tx.inputs[0]; - input.isFullySigned().should.equal(false); - tx.sign(privateKey); - input.isFullySigned().should.equal(true); - }); - - it('it\'s size can be estimated', function() { - var tx = new Transaction(); - tx.from(utxo); - tx.to(destKey.toAddress(), 10000); - var input = tx.inputs[0]; - input._estimateSize().should.equal(73); - }); - - it('it\'s signature can be removed', function() { - var tx = new Transaction(); - tx.from(utxo); - tx.to(destKey.toAddress(), 10000); - var input = tx.inputs[0]; - tx.sign(privateKey); - input.isFullySigned().should.equal(true); - input.clearSignatures(); - input.isFullySigned().should.equal(false); - }); - - it('returns an empty array if private key mismatches', function() { - var tx = new Transaction(); - tx.from(utxo); - tx.to(destKey.toAddress(), 10000); - var input = tx.inputs[0]; - var signatures = input.getSignatures(tx, new PrivateKey(), 0); - signatures.length.should.equal(0); - }); - -}); diff --git a/test/transaction/input/publickeyhash.js b/test/transaction/input/publickeyhash.js deleted file mode 100644 index d0ae623..0000000 --- a/test/transaction/input/publickeyhash.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; -/* jshint unused: false */ - -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); - -var bitcore = require('../../..'); -var Transaction = bitcore.Transaction; -var PrivateKey = bitcore.PrivateKey; -var Address = bitcore.Address; -var Script = bitcore.Script; -var Networks = bitcore.Networks; -var Signature = bitcore.crypto.Signature; - -describe('PublicKeyHashInput', function() { - - var privateKey = new PrivateKey('KwF9LjRraetZuEjR8VqEq539z137LW5anYDUnVK11vM3mNMHTWb4'); - var publicKey = privateKey.publicKey; - var address = new Address(publicKey, Networks.livenet); - - var output = { - address: '33zbk2aSZYdNbRsMPPt6jgy6Kq1kQreqeb', - txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140', - outputIndex: 0, - script: new Script(address), - satoshis: 1000000 - }; - it('can count missing signatures', function() { - var transaction = new Transaction() - .from(output) - .to(address, 1000000); - var input = transaction.inputs[0]; - - input.isFullySigned().should.equal(false); - transaction.sign(privateKey); - input.isFullySigned().should.equal(true); - }); - it('it\'s size can be estimated', function() { - var transaction = new Transaction() - .from(output) - .to(address, 1000000); - var input = transaction.inputs[0]; - input._estimateSize().should.equal(107); - }); - it('it\'s signature can be removed', function() { - var transaction = new Transaction() - .from(output) - .to(address, 1000000); - var input = transaction.inputs[0]; - - transaction.sign(privateKey); - input.clearSignatures(); - input.isFullySigned().should.equal(false); - }); - it('returns an empty array if private key mismatches', function() { - var transaction = new Transaction() - .from(output) - .to(address, 1000000); - var input = transaction.inputs[0]; - var signatures = input.getSignatures(transaction, new PrivateKey(), 0); - signatures.length.should.equal(0); - }); -}); diff --git a/test/transaction/output.js b/test/transaction/output.js deleted file mode 100644 index de5d920..0000000 --- a/test/transaction/output.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; - -/* jshint unused: false */ -/* jshint latedef: false */ -var should = require("chai").should(); -var expect = require("chai").expect; -var _ = require("lodash"); - -var bitcore = require("../.."); -var BN = bitcore.crypto.BN; -var BufferWriter = bitcore.encoding.BufferWriter; -var BufferReader = bitcore.encoding.BufferReader; -var Output = bitcore.Transaction.Output; -var Script = bitcore.Script; - -var errors = bitcore.errors; - -describe("Output", function() { - var output = new Output({ - satoshis: 0, - script: Script.empty() - }); - - it("throws error with unrecognized argument", function() { - (function() { - var out = new Output(12345); - }.should.throw(TypeError)); - }); - - it("can be assigned a satoshi amount in big number", function() { - var newOutput = new Output({ - satoshis: new BN(100), - script: Script.empty() - }); - newOutput.satoshis.should.equal(100); - }); - - it("can be assigned a satoshi amount with a string", function() { - var newOutput = new Output({ - satoshis: "100", - script: Script.empty() - }); - newOutput.satoshis.should.equal(100); - }); - - describe("will error if output is not a positive integer", function() { - it("-100", function() { - (function() { - var newOutput = new Output({ - satoshis: -100, - script: Script.empty() - }); - }.should.throw("Output satoshis is not a natural number")); - }); - - it("1.1", function() { - (function() { - var newOutput = new Output({ - satoshis: 1.1, - script: Script.empty() - }); - }.should.throw("Output satoshis is not a natural number")); - }); - - it("NaN", function() { - (function() { - var newOutput = new Output({ - satoshis: NaN, - script: Script.empty() - }); - }.should.throw("Output satoshis is not a natural number")); - }); - - it("Infinity", function() { - (function() { - var newOutput = new Output({ - satoshis: Infinity, - script: Script.empty() - }); - }.should.throw("Output satoshis is not a natural number")); - }); - }); - - var expectEqualOutputs = function(a, b) { - a.satoshis.should.equal(b.satoshis); - a.script.toString().should.equal(b.script.toString()); - }; - - it("deserializes correctly a simple output", function() { - var writer = new BufferWriter(); - output.toBufferWriter(writer); - var deserialized = Output.fromBufferReader( - new BufferReader(writer.toBuffer()) - ); - expectEqualOutputs(output, deserialized); - }); - - it("can instantiate from an object", function() { - var out = new Output(output.toObject()); - should.exist(out); - }); - - it("can set a script from a buffer", function() { - var newOutput = new Output(output.toObject()); - newOutput.setScript(Script().add(0).toBuffer()); - newOutput.inspect().should.equal(">"); - }); - - it("has a inspect property", function() { - output.inspect().should.equal(">"); - }); - - var output2 = new Output({ - satoshis: 1100000000, - script: new Script( - "OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39" + - "cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de23" + - "8d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG OP_EQUAL" - ) - }); - - it("toBufferWriter", function() { - output2 - .toBufferWriter() - .toBuffer() - .toString("hex") - .should.equal( - "00ab904100000000485215038282263212c609d9ea2a6e3e172de2" + - "38d8c39cabd5ac1ca10646e23fd5f5150815038282263212c609d9ea2a6e3e172d" + - "e238d8c39cabd5ac1ca10646e23fd5f5150852ae87" - ); - }); - - it("roundtrips to/from object", function() { - var newOutput = new Output({ - satoshis: 50, - script: new Script().add(0) - }); - var otherOutput = new Output(newOutput.toObject()); - expectEqualOutputs(newOutput, otherOutput); - }); - - it("toObject will handle an invalid (null) script", function() { - // block 000000000000000b7e48f88e86ceee3e97b4df7c139f5411d14735c1b3c36791 (livenet) - // transaction index 2 - // txid ebc9fa1196a59e192352d76c0f6e73167046b9d37b8302b6bb6968dfd279b767 - var transaction = bitcore.Transaction(); - transaction.fromString( - "01000000019ac03d5ae6a875d970128ef9086cef276a1919684a6988023cc7254691d97e6d010000006b4830450221009d41dc793ba24e65f571473d40b299b6459087cea1509f0d381740b1ac863cb6022039c425906fcaf51b2b84d8092569fb3213de43abaff2180e2a799d4fcb4dd0aa012102d5ede09a8ae667d0f855ef90325e27f6ce35bbe60a1e6e87af7f5b3c652140fdffffffff080100000000000000010101000000000000000202010100000000000000014c0100000000000000034c02010100000000000000014d0100000000000000044dffff010100000000000000014e0100000000000000064effffffff0100000000" - ); - var obj = transaction.toObject(); - obj.outputs[2].script.should.equal("4c"); - obj.outputs[4].script.should.equal("4d"); - obj.outputs[6].script.should.equal("4e"); - }); - - it("#toObject roundtrip will handle an invalid (null) script", function() { - var invalidOutputScript = new Buffer("0100000000000000014c", "hex"); - var br = new bitcore.encoding.BufferReader(invalidOutputScript); - var output = Output.fromBufferReader(br); - var output2 = new Output(output.toObject()); - should.equal(output2.script, null); - should.equal(output2._scriptBuffer.toString("hex"), "4c"); - }); - - it("inspect will work with an invalid (null) script", function() { - var invalidOutputScript = new Buffer("0100000000000000014c", "hex"); - var br = new bitcore.encoding.BufferReader(invalidOutputScript); - var output = Output.fromBufferReader(br); - output.inspect().should.equal(""); - }); - - it("roundtrips to/from JSON", function() { - var json = JSON.stringify(output2); - var o3 = new Output(JSON.parse(json)); - JSON.stringify(o3).should.equal(json); - }); - - it("setScript fails with invalid input", function() { - var out = new Output(output2.toJSON()); - out.setScript.bind(out, 45).should.throw("Invalid argument type: script"); - }); - - it("sets script to null if it is an InvalidBuffer", function() { - var output = new Output({ - satoshis: 1000, - script: new Buffer("4c", "hex") - }); - should.equal(output.script, null); - }); -}); diff --git a/test/transaction/sighash.js b/test/transaction/sighash.js deleted file mode 100644 index d5fbc16..0000000 --- a/test/transaction/sighash.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -var buffer = require('buffer'); - -var chai = require('chai'); -var should = chai.should(); -var bitcore = require('../../'); -var Script = bitcore.Script; -var Transaction = bitcore.Transaction; -var sighash = Transaction.sighash; - -var vectors_sighash = require('../data/sighash.json'); - -describe('sighash', function() { - - vectors_sighash.forEach(function(vector, i) { - if (i === 0) { - // First element is just a row describing the next ones - return; - } - it('test vector from bitcoind #' + i + ' (' + vector[4].substring(0, 16) + ')', function() { - var txbuf = new buffer.Buffer(vector[0], 'hex'); - var scriptbuf = new buffer.Buffer(vector[1], 'hex'); - var subscript = Script(scriptbuf); - var nin = vector[2]; - var nhashtype = vector[3]; - var sighashbuf = new buffer.Buffer(vector[4], 'hex'); - var tx = new Transaction(txbuf); - - //make sure transacion to/from buffer is isomorphic - tx.uncheckedSerialize().should.equal(txbuf.toString('hex')); - - //sighash ought to be correct - sighash.sighash(tx, nhashtype, nin, subscript).toString('hex').should.equal(sighashbuf.toString('hex')); - }); - }); -}); diff --git a/test/transaction/sighashwitness.js b/test/transaction/sighashwitness.js deleted file mode 100644 index 4ea76f3..0000000 --- a/test/transaction/sighashwitness.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var chai = require('chai'); -var should = chai.should(); -var bitcore = require('../../'); -var Transaction = bitcore.Transaction; -var Signature = bitcore.crypto.Signature; -var SighashWitness = Transaction.SighashWitness; - -describe('Sighash Witness Program Version 0', function() { - - it('should create hash for sighash all', function() { - // https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki - var unsignedTx = bitcore.Transaction('0100000002fff7f7881a8099afa6940d42d1e7f6362bec38171ea3edf433541db4e4ad969f0000000000eeffffffef51e1b804cc89d182d279655c3aa89e815b1b309fe287d9b2b55d57b90ec68a0100000000ffffffff02202cb206000000001976a9148280b37df378db99f66f85c95a783a76ac7a6d5988ac9093510d000000001976a9143bde42dbee7e4dbe6a21b2d50ce2f0167faa815988ac11000000'); - - var scriptCode = new Buffer('1976a9141d0f172a0ecb48aee1be1f2687d2963ae33f71a188ac', 'hex'); - var satoshisBuffer = new Buffer('0046c32300000000', 'hex'); - - var hash = SighashWitness.sighash(unsignedTx, Signature.SIGHASH_ALL, 1, scriptCode, satoshisBuffer); - - hash.toString('hex').should.equal('c37af31116d1b27caf68aae9e3ac82f1477929014d5b917657d0eb49478cb670'); - }); - -}); diff --git a/test/transaction/signature.js b/test/transaction/signature.js deleted file mode 100644 index 51727e0..0000000 --- a/test/transaction/signature.js +++ /dev/null @@ -1,133 +0,0 @@ -'use strict'; - -/* jshint unused: false */ -/* jshint latedef: false */ -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); - -var bitcore = require('../..'); -var Transaction = bitcore.Transaction; -var TransactionSignature = bitcore.Transaction.Signature; -var Script = bitcore.Script; -var PrivateKey = bitcore.PrivateKey; -var errors = bitcore.errors; - -describe('TransactionSignature', function() { - - var fromAddress = 'mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1'; - var privateKey = 'cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY'; - var simpleUtxoWith100000Satoshis = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 100000 - }; - - var getSignatureFromTransaction = function() { - var transaction = new Transaction(); - transaction.from(simpleUtxoWith100000Satoshis); - return transaction.getSignatures(privateKey)[0]; - }; - - it('can be created without the `new` keyword', function() { - var signature = getSignatureFromTransaction(); - var serialized = signature.toObject(); - var nonew = TransactionSignature(serialized); - expect(nonew.toObject()).to.deep.equal(serialized); - }); - - it('can be retrieved from Transaction#getSignatures', function() { - var signature = getSignatureFromTransaction(); - expect(signature instanceof TransactionSignature).to.equal(true); - }); - - it('fails when trying to create from invalid arguments', function() { - expect(function() { - return new TransactionSignature(); - }).to.throw(errors.InvalidArgument); - expect(function() { - return new TransactionSignature(1); - }).to.throw(errors.InvalidArgument); - expect(function() { - return new TransactionSignature('hello world'); - }).to.throw(errors.InvalidArgument); - }); - it('returns the same object if called with a TransactionSignature', function() { - var signature = getSignatureFromTransaction(); - expect(new TransactionSignature(signature)).to.equal(signature); - }); - - it('gets returned by a P2SH multisig output', function() { - var private1 = new PrivateKey('6ce7e97e317d2af16c33db0b9270ec047a91bff3eff8558afb5014afb2bb5976'); - var private2 = new PrivateKey('c9b26b0f771a0d2dad88a44de90f05f416b3b385ff1d989343005546a0032890'); - var public1 = private1.publicKey; - var public2 = private2.publicKey; - var utxo = { - txId: '0000000000000000000000000000000000000000000000000000000000000000', // Not relevant - outputIndex: 0, - script: Script.buildMultisigOut([public1, public2], 2).toScriptHashOut(), - satoshis: 100000 - }; - var transaction = new Transaction().from(utxo, [public1, public2], 2); - var signatures = transaction.getSignatures(private1); - expect(signatures[0] instanceof TransactionSignature).to.equal(true); - signatures = transaction.getSignatures(private2); - expect(signatures[0] instanceof TransactionSignature).to.equal(true); - }); - - it('can be aplied to a Transaction with Transaction#addSignature', function() { - var transaction = new Transaction(); - transaction.from(simpleUtxoWith100000Satoshis); - var signature = transaction.getSignatures(privateKey)[0]; - var addSignature = function() { - return transaction.applySignature(signature); - }; - expect(signature instanceof TransactionSignature).to.equal(true); - expect(addSignature).to.not.throw(); - }); - - describe('serialization', function() { - it('serializes to an object and roundtrips correctly', function() { - var signature = getSignatureFromTransaction(); - var serialized = signature.toObject(); - expect(new TransactionSignature(serialized).toObject()).to.deep.equal(serialized); - }); - - it('can be deserialized with fromObject', function() { - var signature = getSignatureFromTransaction(); - var serialized = signature.toObject(); - expect(TransactionSignature.fromObject(serialized).toObject()).to.deep.equal(serialized); - }); - - it('can deserialize when signature is a buffer', function() { - var signature = getSignatureFromTransaction(); - var serialized = signature.toObject(); - serialized.signature = new Buffer(serialized.signature, 'hex'); - expect(TransactionSignature.fromObject(serialized).toObject()).to.deep.equal(signature.toObject()); - }); - - it('can roundtrip to/from json', function() { - var signature = getSignatureFromTransaction(); - var serialized = signature.toObject(); - var json = JSON.stringify(signature); - expect(TransactionSignature(JSON.parse(json)).toObject()).to.deep.equal(serialized); - expect(TransactionSignature.fromObject(JSON.parse(json)).toObject()).to.deep.equal(serialized); - }); - - it('can parse a previously known json string', function() { - var str = JSON.stringify(TransactionSignature(JSON.parse(testJSON))); - expect(JSON.parse(str)).to.deep.equal(JSON.parse(testJSON)); - }); - - it('can deserialize a previously known object', function() { - expect(TransactionSignature(testObject).toObject()).to.deep.equal(testObject); - }); - }); - - /* jshint maxlen: 500 */ - var testJSON = '{"publicKey":"0223078d2942df62c45621d209fab84ea9a7a23346201b7727b9b45a29c4e76f5e","prevTxId":"a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458","outputIndex":0,"inputIndex":0,"signature":"3045022100c728eac064154edba15d4f3e6cbd9be6da3498f80a783ab3391f992b4d9d71ca0220729eff4564dc06aa1d80ab73100540fe5ebb6f280b4a87bc32399f861a7b2563","sigtype":1}'; - var testObject = JSON.parse(testJSON); - -}); diff --git a/test/transaction/transaction.js b/test/transaction/transaction.js deleted file mode 100644 index b553d36..0000000 --- a/test/transaction/transaction.js +++ /dev/null @@ -1,1677 +0,0 @@ -'use strict'; - -/* jshint unused: false */ -/* jshint latedef: false */ -var should = require('chai').should(); -var expect = require('chai').expect; -var _ = require('lodash'); -var sinon = require('sinon'); - -var bitcore = require('../..'); -var BN = bitcore.crypto.BN; -var Transaction = bitcore.Transaction; -var Input = bitcore.Transaction.Input; -var Output = bitcore.Transaction.Output; -var PrivateKey = bitcore.PrivateKey; -var Script = bitcore.Script; -var Interpreter = bitcore.Script.Interpreter; -var Address = bitcore.Address; -var Networks = bitcore.Networks; -var Opcode = bitcore.Opcode; -var errors = bitcore.errors; - -var transactionVector = require('../data/tx_creation'); - -describe('Transaction', function() { - - it('should serialize and deserialize correctly a given transaction', function() { - var transaction = new Transaction(tx_1_hex); - transaction.uncheckedSerialize().should.equal(tx_1_hex); - }); - - it('should parse the version as a signed integer', function () { - var transaction = Transaction('ffffffff0000ffffffff') - transaction.version.should.equal(-1); - transaction.nLockTime.should.equal(0xffffffff); - }); - - it('fails if an invalid parameter is passed to constructor', function() { - expect(function() { - return new Transaction(1); - }).to.throw(errors.InvalidArgument); - }); - - var testScript = 'OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG'; - var testScriptHex = '76a91488d9931ea73d60eaf7e5671efc0552b912911f2a88ac'; - var testPrevTx = 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458'; - var testAmount = 1020000; - var testTransaction = new Transaction() - .from({ - 'txId': testPrevTx, - 'outputIndex': 0, - 'script': testScript, - 'satoshis': testAmount - }) - .to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', testAmount - 10000); - - it('can serialize to a plain javascript object', function() { - var object = testTransaction.toObject(); - object.inputs[0].output.satoshis.should.equal(testAmount); - object.inputs[0].output.script.should.equal(testScriptHex); - object.inputs[0].prevTxId.should.equal(testPrevTx); - object.inputs[0].outputIndex.should.equal(0); - object.outputs[0].satoshis.should.equal(testAmount - 10000); - }); - - it('will not accept NaN as an amount', function() { - (function() { - var stringTx = new Transaction().to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', NaN); - }).should.throw('Amount is expected to be a positive integer'); - }); - - it('returns the fee correctly', function() { - testTransaction.getFee().should.equal(10000); - }); - - it('will return zero as the fee for a coinbase', function() { - // block #2: 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098 - var coinbaseTransaction = new Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac00000000'); - coinbaseTransaction.getFee().should.equal(0); - }); - - it('serialize to Object roundtrip', function() { - var a = testTransaction.toObject(); - var newTransaction = new Transaction(a); - var b = newTransaction.toObject(); - a.should.deep.equal(b); - }); - - it('toObject/fromObject with signatures and custom fee', function() { - var tx = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - - var txData = JSON.stringify(tx); - var tx2 = new Transaction(JSON.parse(txData)); - var txData2 = JSON.stringify(tx2); - txData.should.equal(txData2); - }); - - it('toObject/fromObject with p2sh signatures and custom fee', function() { - var tx = new Transaction() - .from(p2shUtxoWith1BTC, [p2shPublicKey1, p2shPublicKey2, p2shPublicKey3], 2) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .sign(p2shPrivateKey1) - .sign(p2shPrivateKey2); - - var txData = JSON.stringify(tx); - var tx2 = new Transaction(JSON.parse(txData)); - var tx2Data = JSON.stringify(tx2); - txData.should.equal(tx2Data); - }); - - it('fromObject with pay-to-public-key previous outputs', function() { - var tx = bitcore.Transaction({ - hash: '132856bf03d6415562a556437d22ac63c37a4595fd986c796eb8e02dc031aa25', - version: 1, - inputs: [ - { - prevTxId: 'e30ac3db24ef28500f023775d8eb06ad8a26241690080260308208a4020012a4', - outputIndex: 0, - sequenceNumber: 4294967294, - script: '473044022024dbcf41ccd4f3fe325bebb7a87d0bf359eefa03826482008e0fe7795586ad440220676f5f211ebbc311cfa631f14a8223a343cbadc6fa97d6d17f8d2531308b533201', - scriptString: '71 0x3044022024dbcf41ccd4f3fe325bebb7a87d0bf359eefa03826482008e0fe7795586ad440220676f5f211ebbc311cfa631f14a8223a343cbadc6fa97d6d17f8d2531308b533201', - output: { - satoshis: 5000000000, - script: '2103b1c65d65f1ff3fe145a4ede692460ae0606671d04e8449e99dd11c66ab55a7feac' - } - } - ], - outputs: [ - { - satoshis: 3999999040, - script: '76a914fa1e0abfb8d26e494375f47e04b4883c44dd44d988ac' - }, - { - satoshis: 1000000000, - script: '76a9140b2f0a0c31bfe0406b0ccc1381fdbe311946dadc88ac' - } - ], - nLockTime: 139 - }); - tx.inputs[0].should.be.instanceof(bitcore.Transaction.Input.PublicKey); - tx.inputs[0].output.satoshis.should.equal(5000000000); - tx.inputs[0].output.script.toHex().should.equal('2103b1c65d65f1ff3fe145a4ede692460ae0606671d04e8449e99dd11c66ab55a7feac'); - }); - - it('constructor returns a shallow copy of another transaction', function() { - var transaction = new Transaction(tx_1_hex); - var copy = new Transaction(transaction); - copy.uncheckedSerialize().should.equal(transaction.uncheckedSerialize()); - }); - - it('should display correctly in console', function() { - var transaction = new Transaction(tx_1_hex); - transaction.inspect().should.equal(''); - }); - - it('standard hash of transaction should be decoded correctly', function() { - var transaction = new Transaction(tx_1_hex); - transaction.id.should.equal(tx_1_id); - }); - - it('serializes an empty transaction', function() { - var transaction = new Transaction(); - transaction.uncheckedSerialize().should.equal(tx_empty_hex); - }); - - it('serializes and deserializes correctly', function() { - var transaction = new Transaction(tx_1_hex); - transaction.uncheckedSerialize().should.equal(tx_1_hex); - }); - - describe('transaction creation test vector', function() { - this.timeout(5000); - var index = 0; - transactionVector.forEach(function(vector) { - index++; - it('case ' + index, function() { - var i = 0; - var transaction = new Transaction(); - while (i < vector.length) { - var command = vector[i]; - var args = vector[i + 1]; - if (command === 'serialize') { - transaction.serialize().should.equal(args); - } else { - transaction[command].apply(transaction, args); - } - i += 2; - } - }); - }); - }); - - // TODO: Migrate this into a test for inputs - - var fromAddress = 'mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1'; - var simpleUtxoWith100000Satoshis = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 100000 - }; - - var simpleUtxoWith1000000Satoshis = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 1000000 - }; - var anyoneCanSpendUTXO = JSON.parse(JSON.stringify(simpleUtxoWith100000Satoshis)); - anyoneCanSpendUTXO.script = new Script().add('OP_TRUE'); - var toAddress = 'mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc'; - var changeAddress = 'mgBCJAsvzgT2qNNeXsoECg2uPKrUsZ76up'; - var changeAddressP2SH = '2N7T3TAetJrSCruQ39aNrJvYLhG1LJosujf'; - var privateKey = 'cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY'; - var private1 = '6ce7e97e317d2af16c33db0b9270ec047a91bff3eff8558afb5014afb2bb5976'; - var private2 = 'c9b26b0f771a0d2dad88a44de90f05f416b3b385ff1d989343005546a0032890'; - var public1 = new PrivateKey(private1).publicKey; - var public2 = new PrivateKey(private2).publicKey; - - var simpleUtxoWith1BTC = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 1, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 1e8 - }; - - var tenth = 1e7; - var fourth = 25e6; - var half = 5e7; - - var p2shPrivateKey1 = PrivateKey.fromWIF('cNuW8LX2oeQXfKKCGxajGvqwhCgBtacwTQqiCGHzzKfmpHGY4TE9'); - var p2shPublicKey1 = p2shPrivateKey1.toPublicKey(); - var p2shPrivateKey2 = PrivateKey.fromWIF('cTtLHt4mv6zuJytSnM7Vd6NLxyNauYLMxD818sBC8PJ1UPiVTRSs'); - var p2shPublicKey2 = p2shPrivateKey2.toPublicKey(); - var p2shPrivateKey3 = PrivateKey.fromWIF('cQFMZ5gP9CJtUZPc9X3yFae89qaiQLspnftyxxLGvVNvM6tS6mYY'); - var p2shPublicKey3 = p2shPrivateKey3.toPublicKey(); - - var p2shAddress = Address.createMultisig([ - p2shPublicKey1, - p2shPublicKey2, - p2shPublicKey3 - ], 2, 'testnet'); - var p2shUtxoWith1BTC = { - address: p2shAddress.toString(), - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: Script(p2shAddress).toString(), - satoshis: 1e8 - }; - - describe('adding inputs', function() { - - it('adds just once one utxo', function() { - var tx = new Transaction(); - tx.from(simpleUtxoWith1BTC); - tx.from(simpleUtxoWith1BTC); - tx.inputs.length.should.equal(1); - }); - - describe('isFullySigned', function() { - it('works for normal p2pkh', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .change(changeAddress) - .sign(privateKey); - transaction.isFullySigned().should.equal(true); - }); - it('fails when Inputs are not subclassed and isFullySigned is called', function() { - var tx = new Transaction(tx_1_hex); - expect(function() { - return tx.isFullySigned(); - }).to.throw(errors.Transaction.UnableToVerifySignature); - }); - it('fails when Inputs are not subclassed and verifySignature is called', function() { - var tx = new Transaction(tx_1_hex); - expect(function() { - return tx.isValidSignature({ - inputIndex: 0 - }); - }).to.throw(errors.Transaction.UnableToVerifySignature); - }); - it('passes result of input.isValidSignature', function() { - var tx = new Transaction(tx_1_hex); - tx.from(simpleUtxoWith1BTC); - tx.inputs[0].isValidSignature = sinon.stub().returns(true); - var sig = { - inputIndex: 0 - }; - tx.isValidSignature(sig).should.equal(true); - }); - }); - }); - - describe('change address', function() { - it('can calculate simply the output amount', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1000000Satoshis) - .to(toAddress, 500000) - .change(changeAddress) - .sign(privateKey); - transaction.outputs.length.should.equal(2); - transaction.outputs[1].satoshis.should.equal(400000); - transaction.outputs[1].script.toString() - .should.equal(Script.fromAddress(changeAddress).toString()); - var actual = transaction.getChangeOutput().script.toString(); - var expected = Script.fromAddress(changeAddress).toString(); - actual.should.equal(expected); - }); - it('accepts a P2SH address for change', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1000000Satoshis) - .to(toAddress, 500000) - .change(changeAddressP2SH) - .sign(privateKey); - transaction.outputs.length.should.equal(2); - transaction.outputs[1].script.isScriptHashOut().should.equal(true); - }); - it('can recalculate the change amount', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 50000) - .change(changeAddress) - .fee(0) - .sign(privateKey); - - transaction.getChangeOutput().satoshis.should.equal(50000); - - transaction = transaction - .to(toAddress, 20000) - .sign(privateKey); - - transaction.outputs.length.should.equal(3); - transaction.outputs[2].satoshis.should.equal(30000); - transaction.outputs[2].script.toString() - .should.equal(Script.fromAddress(changeAddress).toString()); - }); - it('adds no fee if no change is available', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 99000) - .sign(privateKey); - transaction.outputs.length.should.equal(1); - }); - it('adds no fee if no money is available', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 100000) - .change(changeAddress) - .sign(privateKey); - transaction.outputs.length.should.equal(1); - }); - it('fee can be set up manually', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 80000) - .fee(10000) - .change(changeAddress) - .sign(privateKey); - transaction.outputs.length.should.equal(2); - transaction.outputs[1].satoshis.should.equal(10000); - }); - it('fee per kb can be set up manually', function() { - var inputs = _.map(_.range(10), function(i) { - var utxo = _.clone(simpleUtxoWith100000Satoshis); - utxo.outputIndex = i; - return utxo; - }); - var transaction = new Transaction() - .from(inputs) - .to(toAddress, 950000) - .feePerKb(8000) - .change(changeAddress) - .sign(privateKey); - transaction._estimateSize().should.be.within(1000, 1999); - transaction.outputs.length.should.equal(2); - transaction.outputs[1].satoshis.should.equal(34000); - }); - it('if satoshis are invalid', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 99999) - .change(changeAddress) - .sign(privateKey); - transaction.outputs[0]._satoshis = 100; - transaction.outputs[0]._satoshisBN = new BN(101, 10); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.InvalidSatoshis); - }); - it('if fee is too small, fail serialization', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 99999) - .change(changeAddress) - .sign(privateKey); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.FeeError.TooSmall); - }); - it('on second call to sign, change is not recalculated', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 100000) - .change(changeAddress) - .sign(privateKey) - .sign(privateKey); - transaction.outputs.length.should.equal(1); - }); - it('getFee() returns the difference between inputs and outputs if no change address set', function() { - var transaction = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 1000); - transaction.getFee().should.equal(99000); - }); - }); - - describe('serialization', function() { - it('stores the change address correctly', function() { - var serialized = new Transaction() - .change(changeAddress) - .toObject(); - var deserialized = new Transaction(serialized); - expect(deserialized._changeScript.toString()).to.equal(Script.fromAddress(changeAddress).toString()); - expect(deserialized.getChangeOutput()).to.equal(null); - }); - it('can avoid checked serialize', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(fromAddress, 1); - expect(function() { - return transaction.serialize(); - }).to.throw(); - expect(function() { - return transaction.serialize(true); - }).to.not.throw(); - }); - it('stores the fee set by the user', function() { - var fee = 1000000; - var serialized = new Transaction() - .fee(fee) - .toObject(); - var deserialized = new Transaction(serialized); - expect(deserialized._fee).to.equal(fee); - }); - }); - - describe('checked serialize', function() { - it('fails if no change address was set', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, 1); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.ChangeAddressMissing); - }); - it('fails if a high fee was set', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .change(changeAddress) - .fee(50000000) - .to(toAddress, 40000000); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.FeeError.TooLarge); - }); - it('fails if a dust output is created', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, 545) - .change(changeAddress) - .sign(privateKey); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.DustOutputs); - }); - it('doesn\'t fail if a dust output is not dust', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, 546) - .change(changeAddress) - .sign(privateKey); - expect(function() { - return transaction.serialize(); - }).to.not.throw(errors.Transaction.DustOutputs); - }); - it('doesn\'t fail if a dust output is an op_return', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .addData('not dust!') - .change(changeAddress) - .sign(privateKey); - expect(function() { - return transaction.serialize(); - }).to.not.throw(errors.Transaction.DustOutputs); - }); - it('fails when outputs and fee don\'t add to total input', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, 99900000) - .fee(99999) - .sign(privateKey); - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.FeeError.Different); - }); - it('checks output amount before fee errors', function() { - var transaction = new Transaction(); - transaction.from(simpleUtxoWith1BTC); - transaction - .to(toAddress, 10000000000000) - .change(changeAddress) - .fee(5); - - expect(function() { - return transaction.serialize(); - }).to.throw(errors.Transaction.InvalidOutputAmountSum); - }); - it('will throw fee error with disableMoreOutputThanInput enabled (but not triggered)', function() { - var transaction = new Transaction(); - transaction.from(simpleUtxoWith1BTC); - transaction - .to(toAddress, 84000000) - .change(changeAddress) - .fee(16000000); - - expect(function() { - return transaction.serialize({ - disableMoreOutputThanInput: true - }); - }).to.throw(errors.Transaction.FeeError.TooLarge); - }); - describe('skipping checks', function() { - var buildSkipTest = function(builder, check, expectedError) { - return function() { - var transaction = new Transaction(); - transaction.from(simpleUtxoWith1BTC); - builder(transaction); - - var options = {}; - options[check] = true; - - expect(function() { - return transaction.serialize(options); - }).not.to.throw(); - expect(function() { - return transaction.serialize(); - }).to.throw(expectedError); - }; - }; - it('can skip the check for too much fee', buildSkipTest( - function(transaction) { - return transaction - .fee(50000000) - .change(changeAddress) - .sign(privateKey); - }, 'disableLargeFees', errors.Transaction.FeeError.TooLarge - )); - it('can skip the check for a fee that is too small', buildSkipTest( - function(transaction) { - return transaction - .fee(1) - .change(changeAddress) - .sign(privateKey); - }, 'disableSmallFees', errors.Transaction.FeeError.TooSmall - )); - it('can skip the check that prevents dust outputs', buildSkipTest( - function(transaction) { - return transaction - .to(toAddress, 100) - .change(changeAddress) - .sign(privateKey); - }, 'disableDustOutputs', errors.Transaction.DustOutputs - )); - it('can skip the check that prevents unsigned outputs', buildSkipTest( - function(transaction) { - return transaction - .to(toAddress, 10000) - .change(changeAddress); - }, 'disableIsFullySigned', errors.Transaction.MissingSignatures - )); - it('can skip the check that avoids spending more bitcoins than the inputs for a transaction', buildSkipTest( - function(transaction) { - return transaction - .to(toAddress, 10000000000000) - .change(changeAddress) - .sign(privateKey); - }, 'disableMoreOutputThanInput', errors.Transaction.InvalidOutputAmountSum - )); - }); - }); - - describe('#verify', function() { - - it('not if _satoshis and _satoshisBN have different values', function() { - var tx = new Transaction() - .from({ - 'txId': testPrevTx, - 'outputIndex': 0, - 'script': testScript, - 'satoshis': testAmount - }) - .to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', testAmount - 10000); - - tx.outputs[0]._satoshis = 100; - tx.outputs[0]._satoshisBN = new BN('fffffffffffffff', 16); - var verify = tx.verify(); - verify.should.equal('transaction txout 0 satoshis is invalid'); - }); - - it('not if _satoshis is negative', function() { - var tx = new Transaction() - .from({ - 'txId': testPrevTx, - 'outputIndex': 0, - 'script': testScript, - 'satoshis': testAmount - }) - .to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', testAmount - 10000); - - tx.outputs[0]._satoshis = -100; - tx.outputs[0]._satoshisBN = new BN(-100, 10); - var verify = tx.verify(); - verify.should.equal('transaction txout 0 satoshis is invalid'); - }); - - it('not if transaction is greater than max block size', function() { - - var tx = new Transaction() - .from({ - 'txId': testPrevTx, - 'outputIndex': 0, - 'script': testScript, - 'satoshis': testAmount - }) - .to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', testAmount - 10000); - - tx.toBuffer = sinon.stub().returns({ - length: 10000000 - }); - - var verify = tx.verify(); - verify.should.equal('transaction over the maximum block size'); - - }); - - it('not if has null input (and not coinbase)', function() { - - var tx = new Transaction() - .from({ - 'txId': testPrevTx, - 'outputIndex': 0, - 'script': testScript, - 'satoshis': testAmount - }) - .to('mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc', testAmount - 10000); - - tx.isCoinbase = sinon.stub().returns(false); - tx.inputs[0].isNull = sinon.stub().returns(true); - var verify = tx.verify(); - verify.should.equal('transaction input 0 has null input'); - - }); - - }); - - describe('to and from JSON', function() { - it('takes a string that is a valid JSON and deserializes from it', function() { - var simple = new Transaction(); - expect(new Transaction(simple.toJSON()).uncheckedSerialize()).to.equal(simple.uncheckedSerialize()); - var complex = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to(toAddress, 50000) - .change(changeAddress) - .sign(privateKey); - var cj = complex.toJSON(); - var ctx = new Transaction(cj); - expect(ctx.uncheckedSerialize()).to.equal(complex.uncheckedSerialize()); - - }); - it('serializes the `change` information', function() { - var transaction = new Transaction(); - transaction.change(changeAddress); - expect(transaction.toJSON().changeScript).to.equal(Script.fromAddress(changeAddress).toString()); - expect(new Transaction(transaction.toJSON()).uncheckedSerialize()).to.equal(transaction.uncheckedSerialize()); - }); - it('serializes correctly p2sh multisig signed tx', function() { - var t = new Transaction(tx2hex); - expect(t.toString()).to.equal(tx2hex); - var r = new Transaction(t); - expect(r.toString()).to.equal(tx2hex); - var j = new Transaction(t.toObject()); - expect(j.toString()).to.equal(tx2hex); - }); - }); - - describe('serialization of inputs', function() { - it('can serialize and deserialize a P2PKH input', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC); - var deserialized = new Transaction(transaction.toObject()); - expect(deserialized.inputs[0] instanceof Transaction.Input.PublicKeyHash).to.equal(true); - }); - it('can serialize and deserialize a P2SH input', function() { - var transaction = new Transaction() - .from({ - txId: '0000', // Not relevant - outputIndex: 0, - script: Script.buildMultisigOut([public1, public2], 2).toScriptHashOut(), - satoshis: 10000 - }, [public1, public2], 2); - var deserialized = new Transaction(transaction.toObject()); - expect(deserialized.inputs[0] instanceof Transaction.Input.MultiSigScriptHash).to.equal(true); - }); - }); - - describe('checks on adding inputs', function() { - var transaction = new Transaction(); - it('fails if no output script is provided', function() { - expect(function() { - transaction.addInput(new Transaction.Input()); - }).to.throw(errors.Transaction.NeedMoreInfo); - }); - it('fails if no satoshi amount is provided', function() { - var input = new Transaction.Input(); - expect(function() { - transaction.addInput(input); - }).to.throw(errors.Transaction.NeedMoreInfo); - expect(function() { - transaction.addInput(new Transaction.Input(), Script.empty()); - }).to.throw(errors.Transaction.NeedMoreInfo); - }); - it('allows output and transaction to be feed as arguments', function() { - expect(function() { - transaction.addInput(new Transaction.Input(), Script.empty(), 0); - }).to.not.throw(); - }); - it('does not allow a threshold number greater than the amount of public keys', function() { - expect(function() { - transaction = new Transaction(); - return transaction.from({ - txId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 0, - script: Script(), - satoshis: 10000 - }, [], 1); - }).to.throw('Number of required signatures must be greater than the number of public keys'); - }); - it('will add an empty script if not supplied', function() { - transaction = new Transaction(); - var outputScriptString = 'OP_2 21 0x038282263212c609d9ea2a6e3e172de238d8c39' + - 'cabd5ac1ca10646e23fd5f51508 21 0x038282263212c609d9ea2a6e3e172de23' + - '8d8c39cabd5ac1ca10646e23fd5f51508 OP_2 OP_CHECKMULTISIG OP_EQUAL'; - transaction.addInput(new Transaction.Input({ - prevTxId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 0, - script: new Script() - }), outputScriptString, 10000); - transaction.inputs[0].output.script.should.be.instanceof(bitcore.Script); - transaction.inputs[0].output.script.toString().should.equal(outputScriptString); - }); - }); - - describe('removeInput and removeOutput', function() { - it('can remove an input by index', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC); - transaction.inputs.length.should.equal(1); - transaction.inputAmount.should.equal(simpleUtxoWith1BTC.satoshis); - transaction.removeInput(0); - transaction.inputs.length.should.equal(0); - transaction.inputAmount.should.equal(0); - }); - it('can remove an input by transaction id', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC); - transaction.inputs.length.should.equal(1); - transaction.inputAmount.should.equal(simpleUtxoWith1BTC.satoshis); - transaction.removeInput(simpleUtxoWith1BTC.txId, simpleUtxoWith1BTC.outputIndex); - transaction.inputs.length.should.equal(0); - transaction.inputAmount.should.equal(0); - }); - it('fails if the index provided is invalid', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC); - expect(function() { - transaction.removeInput(2); - }).to.throw(errors.Transaction.InvalidIndex); - }); - it('an output can be removed by index', function() { - var transaction = new Transaction() - .to([ - {address: toAddress, satoshis: 40000000}, - {address: toAddress, satoshis: 40000000} - ]) - transaction.outputs.length.should.equal(2); - transaction.outputAmount.should.equal(80000000); - transaction.removeOutput(0); - transaction.outputs.length.should.equal(1); - transaction.outputAmount.should.equal(40000000); - }); - }); - - describe('handling the nLockTime', function() { - var MILLIS_IN_SECOND = 1000; - var timestamp = 1423504946; - var blockHeight = 342734; - var date = new Date(timestamp * MILLIS_IN_SECOND); - it('handles a null locktime', function() { - var transaction = new Transaction(); - expect(transaction.getLockTime()).to.equal(null); - }); - it('handles a simple example', function() { - var future = new Date(2025, 10, 30); // Sun Nov 30 2025 - var transaction = new Transaction() - .lockUntilDate(future); - transaction.nLockTime.should.equal(future.getTime() / 1000); - transaction.getLockTime().should.deep.equal(future); - }); - it('accepts a date instance', function() { - var transaction = new Transaction() - .lockUntilDate(date); - transaction.nLockTime.should.equal(timestamp); - transaction.getLockTime().should.deep.equal(date); - }); - it('accepts a number instance with a timestamp', function() { - var transaction = new Transaction() - .lockUntilDate(timestamp); - transaction.nLockTime.should.equal(timestamp); - transaction.getLockTime().should.deep.equal(new Date(timestamp * 1000)); - }); - it('accepts a block height', function() { - var transaction = new Transaction() - .lockUntilBlockHeight(blockHeight); - transaction.nLockTime.should.equal(blockHeight); - transaction.getLockTime().should.deep.equal(blockHeight); - }); - it('fails if the block height is too high', function() { - expect(function() { - return new Transaction().lockUntilBlockHeight(5e8); - }).to.throw(errors.Transaction.BlockHeightTooHigh); - }); - it('fails if the date is too early', function() { - expect(function() { - return new Transaction().lockUntilDate(1); - }).to.throw(errors.Transaction.LockTimeTooEarly); - expect(function() { - return new Transaction().lockUntilDate(499999999); - }).to.throw(errors.Transaction.LockTimeTooEarly); - }); - it('fails if the block height is negative', function() { - expect(function() { - return new Transaction().lockUntilBlockHeight(-1); - }).to.throw(errors.Transaction.NLockTimeOutOfRange); - }); - it('has a non-max sequenceNumber for effective date locktime tx', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .lockUntilDate(date); - transaction.inputs[0].sequenceNumber - .should.equal(Transaction.Input.DEFAULT_LOCKTIME_SEQNUMBER); - }); - it('has a non-max sequenceNumber for effective blockheight locktime tx', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .lockUntilBlockHeight(blockHeight); - transaction.inputs[0].sequenceNumber - .should.equal(Transaction.Input.DEFAULT_LOCKTIME_SEQNUMBER); - }); - it('should serialize correctly for date locktime ', function() { - var transaction= new Transaction() - .from(simpleUtxoWith1BTC) - .lockUntilDate(date); - var serialized_tx = transaction.uncheckedSerialize(); - var copy = new Transaction(serialized_tx); - serialized_tx.should.equal(copy.uncheckedSerialize()); - copy.inputs[0].sequenceNumber - .should.equal(Transaction.Input.DEFAULT_LOCKTIME_SEQNUMBER) - }); - it('should serialize correctly for a block height locktime', function() { - var transaction= new Transaction() - .from(simpleUtxoWith1BTC) - .lockUntilBlockHeight(blockHeight); - var serialized_tx = transaction.uncheckedSerialize(); - var copy = new Transaction(serialized_tx); - serialized_tx.should.equal(copy.uncheckedSerialize()); - copy.inputs[0].sequenceNumber - .should.equal(Transaction.Input.DEFAULT_LOCKTIME_SEQNUMBER) - }); - }); - - it('handles anyone-can-spend utxo', function() { - var transaction = new Transaction() - .from(anyoneCanSpendUTXO) - .to(toAddress, 50000); - should.exist(transaction); - }); - - it('handles unsupported utxo in tx object', function() { - var transaction = new Transaction(); - transaction.fromObject.bind(transaction, JSON.parse(unsupportedTxObj)) - .should.throw('Unsupported input script type: OP_1 OP_ADD OP_2 OP_EQUAL'); - }); - - it('will error if object hash does not match transaction hash', function() { - var tx = new Transaction(tx_1_hex); - var txObj = tx.toObject(); - txObj.hash = 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458'; - (function() { - var tx2 = new Transaction(txObj); - }).should.throw('Hash in object does not match transaction hash'); - }); - - describe('inputAmount + outputAmount', function() { - it('returns correct values for simple transaction', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, 40000000); - transaction.inputAmount.should.equal(100000000); - transaction.outputAmount.should.equal(40000000); - }); - it('returns correct values for transaction with change', function() { - var transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .change(changeAddress) - .to(toAddress, 1000); - transaction.inputAmount.should.equal(100000000); - transaction.outputAmount.should.equal(99900000); - }); - it('returns correct values for coinjoin transaction', function() { - // see livenet tx c16467eea05f1f30d50ed6dbc06a38539d9bb15110e4b7dc6653046a3678a718 - var transaction = new Transaction(txCoinJoinHex); - transaction.outputAmount.should.equal(4191290961); - expect(function() { - var ia = transaction.inputAmount; - }).to.throw('No previous output information'); - }); - }); - - describe('output ordering', function() { - - var transaction, out1, out2, out3, out4; - - beforeEach(function() { - transaction = new Transaction() - .from(simpleUtxoWith1BTC) - .to([ - {address: toAddress, satoshis: tenth}, - {address: toAddress, satoshis: fourth} - ]) - .to(toAddress, half) - .change(changeAddress); - out1 = transaction.outputs[0]; - out2 = transaction.outputs[1]; - out3 = transaction.outputs[2]; - out4 = transaction.outputs[3]; - }); - - it('allows the user to sort outputs according to a criteria', function() { - var sorting = function(array) { - return [array[3], array[2], array[1], array[0]]; - }; - transaction.sortOutputs(sorting); - transaction.outputs[0].should.equal(out4); - transaction.outputs[1].should.equal(out3); - transaction.outputs[2].should.equal(out2); - transaction.outputs[3].should.equal(out1); - }); - - it('allows the user to randomize the output order', function() { - var shuffle = sinon.stub(_, 'shuffle'); - shuffle.onFirstCall().returns([out2, out1, out4, out3]); - - transaction._changeIndex.should.equal(3); - transaction.shuffleOutputs(); - transaction.outputs[0].should.equal(out2); - transaction.outputs[1].should.equal(out1); - transaction.outputs[2].should.equal(out4); - transaction.outputs[3].should.equal(out3); - transaction._changeIndex.should.equal(2); - - _.shuffle.restore(); - }); - - it('fails if the provided function does not work as expected', function() { - var sorting = function(array) { - return [array[0], array[1], array[2]]; - }; - expect(function() { - transaction.sortOutputs(sorting); - }).to.throw(errors.Transaction.InvalidSorting); - }); - - it('shuffle without change', function() { - var tx = new Transaction(transaction.toObject()).to(toAddress, half); - expect(tx.getChangeOutput()).to.be.null; - expect(function() { - tx.shuffleOutputs(); - }).to.not.throw(errors.Transaction.InvalidSorting); - }) - }); - - describe('clearOutputs', function() { - - it('removes all outputs and maintains the transaction in order', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .to(toAddress, tenth) - .to([ - {address: toAddress, satoshis: fourth}, - {address: toAddress, satoshis: half} - ]) - .change(changeAddress); - tx.clearOutputs(); - tx.outputs.length.should.equal(1); - tx.to(toAddress, tenth); - tx.outputs.length.should.equal(2); - tx.outputs[0].satoshis.should.equal(10000000); - tx.outputs[0].script.toAddress().toString().should.equal(toAddress); - tx.outputs[1].satoshis.should.equal(89900000); - tx.outputs[1].script.toAddress().toString().should.equal(changeAddress); - }); - - }); - - describe('BIP69 Sorting', function() { - - it('sorts inputs correctly', function() { - var from1 = { - txId: '0000000000000000000000000000000000000000000000000000000000000000', - outputIndex: 0, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 100000 - }; - var from2 = { - txId: '0000000000000000000000000000000000000000000000000000000000000001', - outputIndex: 0, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 100000 - }; - var from3 = { - txId: '0000000000000000000000000000000000000000000000000000000000000001', - outputIndex: 1, - script: Script.buildPublicKeyHashOut(fromAddress).toString(), - satoshis: 100000 - }; - var tx = new Transaction() - .from(from3) - .from(from2) - .from(from1); - tx.sort(); - tx.inputs[0].prevTxId.toString('hex').should.equal(from1.txId); - tx.inputs[1].prevTxId.toString('hex').should.equal(from2.txId); - tx.inputs[2].prevTxId.toString('hex').should.equal(from3.txId); - tx.inputs[0].outputIndex.should.equal(from1.outputIndex); - tx.inputs[1].outputIndex.should.equal(from2.outputIndex); - tx.inputs[2].outputIndex.should.equal(from3.outputIndex); - }); - - it('sorts outputs correctly', function() { - var tx = new Transaction() - .addOutput(new Transaction.Output({ - script: new Script().add(Opcode(0)), - satoshis: 2 - })) - .addOutput(new Transaction.Output({ - script: new Script().add(Opcode(1)), - satoshis: 2 - })) - .addOutput(new Transaction.Output({ - script: new Script().add(Opcode(0)), - satoshis: 1 - })); - tx.sort(); - tx.outputs[0].satoshis.should.equal(1); - tx.outputs[1].satoshis.should.equal(2); - tx.outputs[2].satoshis.should.equal(2); - tx.outputs[0].script.toString().should.equal('OP_0'); - tx.outputs[1].script.toString().should.equal('OP_0'); - tx.outputs[2].script.toString().should.equal('0x01'); - }); - - describe('bitcoinjs fixtures', function() { - - var fixture = require('../data/bip69.json'); - - // returns index-based order of sorted against original - var getIndexOrder = function(original, sorted) { - return sorted.map(function (value) { - return original.indexOf(value); - }); - }; - - fixture.inputs.forEach(function(inputSet) { - it(inputSet.description, function() { - var tx = new Transaction(); - inputSet.inputs = inputSet.inputs.map(function(input) { - var input = new Input({ - prevTxId: input.txId, - outputIndex: input.vout, - script: new Script(), - output: new Output({ script: new Script(), satoshis: 0 }) - }); - input.clearSignatures = function () {}; - return input; - }); - tx.inputs = inputSet.inputs; - tx.sort(); - getIndexOrder(inputSet.inputs, tx.inputs).should.deep.equal(inputSet.expected); - }); - }); - fixture.outputs.forEach(function(outputSet) { - it(outputSet.description, function() { - var tx = new Transaction(); - outputSet.outputs = outputSet.outputs.map(function(output) { - return new Output({ - script: new Script(output.script), - satoshis: output.value - }); - }); - tx.outputs = outputSet.outputs; - tx.sort(); - getIndexOrder(outputSet.outputs, tx.outputs).should.deep.equal(outputSet.expected); - }); - }); - - }); - }); - describe('Replace-by-fee', function() { - describe('#enableRBF', function() { - it('only enable inputs not already enabled (0xffffffff)', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0x00000000; - tx.enableRBF(); - tx.inputs[0].sequenceNumber.should.equal(0x00000000); - tx.inputs[1].sequenceNumber.should.equal(0xfffffffd); - }); - it('enable for inputs with 0xffffffff and 0xfffffffe', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0xffffffff; - tx.inputs[1].sequenceNumber = 0xfffffffe; - tx.enableRBF(); - tx.inputs[0].sequenceNumber.should.equal(0xfffffffd); - tx.inputs[1].sequenceNumber.should.equal(0xfffffffd); - }); - }); - describe('#isRBF', function() { - it('enable and determine opt-in', function() { - var tx = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .enableRBF() - .sign(privateKey); - tx.isRBF().should.equal(true); - }); - it('determine opt-out with default sequence number', function() { - var tx = new Transaction() - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.isRBF().should.equal(false); - }); - it('determine opt-out with 0xfffffffe', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000 + 1e8}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0xfffffffe; - tx.inputs[1].sequenceNumber = 0xfffffffe; - tx.isRBF().should.equal(false); - }); - it('determine opt-out with 0xffffffff', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000 + 1e8}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0xffffffff; - tx.inputs[1].sequenceNumber = 0xffffffff; - tx.isRBF().should.equal(false); - }); - it('determine opt-in with 0xfffffffd (first input)', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000 + 1e8}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0xfffffffd; - tx.inputs[1].sequenceNumber = 0xffffffff; - tx.isRBF().should.equal(true); - }); - it('determine opt-in with 0xfffffffd (second input)', function() { - var tx = new Transaction() - .from(simpleUtxoWith1BTC) - .from(simpleUtxoWith100000Satoshis) - .to([{address: toAddress, satoshis: 50000 + 1e8}]) - .fee(15000) - .change(changeAddress) - .sign(privateKey); - tx.inputs[0].sequenceNumber = 0xffffffff; - tx.inputs[1].sequenceNumber = 0xfffffffd; - tx.isRBF().should.equal(true); - }); - }); - }); - - describe('Segregated Witness', function() { - it('identify as segwit transaction', function() { - // https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki - var version = new Buffer('01000000', 'hex'); - var marker = new Buffer('00', 'hex'); //always zero - var flag = new Buffer('01', 'hex'); //non zero - var inputCount = new Buffer('01', 'hex'); - var inputDummy = new Buffer('2052cda8bc0c2cb743f154881fc85cb675527dcf2f7a5938241020c33341b3f70000000000ffffffff', 'hex'); - var outputCount = new Buffer('00', 'hex'); - var witness = new Buffer('01', 'hex'); - var witnessItems = new Buffer('00', 'hex'); - var locktime = new Buffer('00000000', 'hex'); - var txBuffer = Buffer.concat([version, marker, flag, inputCount, inputDummy, outputCount, witness, - witnessItems, locktime]); - var tx = bitcore.Transaction().fromBuffer(txBuffer); - tx.hasWitnesses().should.equal(true); - }); - it('correctly calculate hash for segwit transaction', function() { - var txBuffer = new Buffer('01000000000101b0e5caa7e37d4b8530c3e1071a36dd5e05d1065cf7224ddff42c69e3387689870000000000ffffffff017b911100000000001600144ff831574da8bef07f8bc97244a1666147b071570247304402203fcbcfddbd6ca3a90252610dd63f1be50b2d926b8d87c912da0a3e42bb03fba002202a90c8aad75da22b0549c72618b754114583e934c0b0d2ccd6c13fcd859ba4ed01210363f3f47f4555779de405eab8d0dc8c2a4f3e09f4171a3fa47c7a77715795319800000000', 'hex'); - var tx = bitcore.Transaction().fromBuffer(txBuffer); - tx.hash.should.equal('7f1a2d46746f1bfbb22ab797d5aad1fd9723477b417fa34dff73d8a7dbb14570'); - tx.witnessHash.should.equal('3c26fc8b5cfe65f96d955cecfe4d11db2659d052171f9f31af043e9f5073e46b'); - }); - it('round trip nested witness p2sh', function() { - var txBuffer = new Buffer('010000000001010894bb2bbfd5249b1c55f7bc64352bb64894938bc6439f43f28a58bfa7c73205000000002322002077b16b966ee6a4b8a0901351221d279afd31d3f90df52a3fc53436ea9abde5b0ffffffff01010000000000000000030047304402200fa23efa9a8d6ae285cfc82f81e6c2196d14167553b10da1845abd2c9fe38dc502207a40a58ee5b739e902b275018dfa1bee0d608736ff4317b028fbc29391f4554f01475221037b8dc5861a0ef7b0a97b41d2d1e27186f019d4834dbc99f24952b6f5080f5cce21027152378182102b68b5fce42f9f365ec272c48afda6b0816e735c1dc4b96dd45a52ae00000000', 'hex'); - var tx = bitcore.Transaction().fromBuffer(txBuffer); - tx.toBuffer().toString('hex').should.equal(txBuffer.toString('hex')); - }); - describe('verifying', function() { - it('will verify these signatures', function() { - var signedTxBuffer = new Buffer('0100000000010103752b9d2baadb95480e2571a4854a68ffd8264462168346461b7cdda76beac20000000023220020fde78ea47ae10cc93c6a850d8a86d8575ddacff38ee9b0bc6535dc016a197068ffffffff010100000000000000000400483045022100ea1508225a6d37c0545d22acaee88d29d1675696953f93d657a419613bcee9b802207b8d80ca8176586878f51e001cb9e92f7640b8c9dc530fabf9087142c752de89014830450221008c6f4a9ebdee89968ec00ecc12fda67442b589296e86bf3e9bde19f4ba923406022048c3409831a55bf61f2d5defffd3b91767643b6c5981cb32338dd7e9f02821b1014752210236c8204d62fd70e7ca206a36d39f9674fa832964d787c60d44250624242bada4210266cd5a3507d6df5346aa42bd23d4c44c079aef0d7a59534758a0dabb82345c2052ae00000000', 'hex'); - var unsignedBuffer = new Buffer('0100000000010103752b9d2baadb95480e2571a4854a68ffd8264462168346461b7cdda76beac20000000023220020fde78ea47ae10cc93c6a850d8a86d8575ddacff38ee9b0bc6535dc016a197068ffffffff010100000000000000000300483045022100ea1508225a6d37c0545d22acaee88d29d1675696953f93d657a419613bcee9b802207b8d80ca8176586878f51e001cb9e92f7640b8c9dc530fabf9087142c752de89014752210236c8204d62fd70e7ca206a36d39f9674fa832964d787c60d44250624242bada4210266cd5a3507d6df5346aa42bd23d4c44c079aef0d7a59534758a0dabb82345c2052ae00000000', 'hex'); - var signedTx = bitcore.Transaction().fromBuffer(signedTxBuffer); - - var signatures = [ - { - publicKey: '0236c8204d62fd70e7ca206a36d39f9674fa832964d787c60d44250624242bada4', - prevTxId: 'c2ea6ba7dd7c1b46468316624426d8ff684a85a471250e4895dbaa2b9d2b7503', - outputIndex: 0, - inputIndex: 0, - signature: '3045022100ea1508225a6d37c0545d22acaee88d29d1675696953f93d657a419613bcee9b802207b8d80ca8176586878f51e001cb9e92f7640b8c9dc530fabf9087142c752de89', - sigtype: bitcore.crypto.Signature.SIGHASH_ALL - }, - { - publicKey: '0266cd5a3507d6df5346aa42bd23d4c44c079aef0d7a59534758a0dabb82345c20', - prevTxId: 'c2ea6ba7dd7c1b46468316624426d8ff684a85a471250e4895dbaa2b9d2b7503', - outputIndex: 0, - inputIndex: 0, - signature: '30450221008c6f4a9ebdee89968ec00ecc12fda67442b589296e86bf3e9bde19f4ba923406022048c3409831a55bf61f2d5defffd3b91767643b6c5981cb32338dd7e9f02821b1', - sigtype: bitcore.crypto.Signature.SIGHASH_ALL - } - ]; - - var pubkey1 = bitcore.PublicKey('0236c8204d62fd70e7ca206a36d39f9674fa832964d787c60d44250624242bada4'); - var pubkey3 = bitcore.PublicKey('0266cd5a3507d6df5346aa42bd23d4c44c079aef0d7a59534758a0dabb82345c20'); - var expectedDestScript = bitcore.Script('a914382ead50307554bcdda12e1238368e9f0e10b11787'); - var expectedMultiSigString = '52210236c8204d62fd70e7ca206a36d39f9674fa832964d787c60d44250624242bada4210266cd5a3507d6df5346aa42bd23d4c44c079aef0d7a59534758a0dabb82345c2052ae'; - var expectedMultiSig = bitcore.Script(expectedMultiSigString); - var multiSig = bitcore.Script.buildMultisigOut([pubkey1, pubkey3], 2, { - noSorting: true - }); - multiSig.toBuffer().toString('hex').should.equal(expectedMultiSigString); - var wits = bitcore.Script.buildWitnessMultisigOutFromScript(multiSig); - - var expectedWits = bitcore.Script('0020fde78ea47ae10cc93c6a850d8a86d8575ddacff38ee9b0bc6535dc016a197068'); - wits.toBuffer().toString('hex').should.equal('0020fde78ea47ae10cc93c6a850d8a86d8575ddacff38ee9b0bc6535dc016a197068'); - - var address = Address.payingTo(wits); - address.hashBuffer.toString('hex').should.equal('382ead50307554bcdda12e1238368e9f0e10b117'); - - var destScript = Script.buildScriptHashOut(wits); - destScript.toBuffer().toString('hex').should.equal('a914382ead50307554bcdda12e1238368e9f0e10b11787'); - - var signedamount = 1; - var input = new Transaction.Input.MultiSigScriptHash({ - output: new Output({ - script: destScript, - satoshis: signedamount - }), - prevTxId: 'c2ea6ba7dd7c1b46468316624426d8ff684a85a471250e4895dbaa2b9d2b7503', - outputIndex: 0, - script: Script('220020fde78ea47ae10cc93c6a850d8a86d8575ddacff38ee9b0bc6535dc016a197068') - }, [pubkey1, pubkey3], 2, signatures, true); - - signedTx.inputs[0] = input; - signedTx.inputs[0]._updateScript(); - signedTx.toBuffer().toString('hex').should.equal(signedTxBuffer.toString('hex')); - - var interpreter = new Interpreter(); - var flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - - var check = interpreter.verify(signedTx.inputs[0].script, destScript, signedTx, 0, flags, input.getWitnesses(), signedamount); - check.should.equal(true); - - check = interpreter.verify(signedTx.inputs[0].script, destScript, signedTx, 0, flags, input.getWitnesses(), 1999199); - check.should.equal(false); - - var valid1 = signedTx.inputs[0].isValidSignature(signedTx, signedTx.inputs[0].signatures[1]); - valid1.should.equal(true); - - var valid = signedTx.inputs[0].isValidSignature(signedTx, signedTx.inputs[0].signatures[0]); - valid.should.equal(true); - }); - describe('Bitcoin Core tests', function() { - // from bitcoin core tests at src/test/transaction_tests.cpp - it('will verify pay-to-compressed publickey (v0) part 1', function() { - var check; - var flags; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000016001457d5e8f4701ae218576e4fdbcf702e4716808f5f00000000'); - var input1 = bitcore.Transaction('01000000000101da3ca8fe74ee2f6cc6ed02927a5fc8e9832f4ff6ad10521598f7985dcd5d17740000000000ffffffff010100000000000000000247304402202eee148a880846e3ebf9b61b5875a0c5121428d272a8336d10bae745ec401042022063b65baea1adc0e7a15801922242ab89d103143071680cfd4ba6072f8685a76c0121031fa0febd51842888a36c43873d1520c5b186894c5ac04520b096f8a3b49f8a5b00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify pay-to-compressed publickey (v0) part 2', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000016001457d5e8f4701ae218576e4fdbcf702e4716808f5f00000000'); - var input2 = bitcore.Transaction('01000000000101cdc27b7132dc20e463d20458aa9d5c38e664ff114ddab8277af4ed859f2b90e20000000000ffffffff0101000000000000000002483045022100db56d1a70244f478a345478be51891b38b9a46140402cddf85b3024ca1652b4b02202c00aaa41ac941ce426ae358aa8372b63aeba945372002c47dc3725d9dca8343012103585c9f7105e09a0abbc60dc72d9d0a456030d0f10f7c47c0616e71c325085cbd00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify p2sh witness pay-to-compressed pubkey (v0) part 1', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a914ca8abcc57aff5ba3fb36f76fe8e260ce6a08e0bf8700000000'); - var input1 = bitcore.Transaction('01000000000101b85d4c861b00d31ac95ae0b2cad8635d8310fb7ca86b44fefcbe2b98c4e905bd000000001716001469f84dbc7f9ae8626aa2d4aee6c73ef726b53ac2ffffffff0101000000000000000002483045022100c0237a5743c684642b26347cf82df0f3b3e91c76aff171f7d065cea305f059a502205c168682630ea4e6bd42627c237207be3d43aeba5c1b8078f3043455bdb6a2270121036240793eedd7e6e53a7c236d069e4d8558f4c6e5950114d7e3d5e1579c93fdf100000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify p2sh witness pay-to-compressed pubkey (v0) part 2', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a9145675f64cbe03b43fb6d9d42debd207e4be3337db8700000000'); - var input2 = bitcore.Transaction('0100000000010104410fc0d228780b20ff790212aef558df008421a110d56d9c9a9b6e5eeb1a680000000017160014b9c556bc9c34cf70d4c253ff86a9eac64e355a25ffffffff0101000000000000000002483045022100dd41426f5eb82ef2b72a0b4e5112022c80045ae4919b2fdef7f438f7ed3c59ee022043494b6f9a9f28d7e5a5c221f92d5325d941722c0ffd00f8be335592015a44d2012103587155d2618b140244799f7a408a85836403f447d51778bdb832088c4a9dd1e300000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify witness 2-of-2 multisig (part 1)', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff0101000000000000002200204cd0c4dc1a95d8909396d0c1648793fa673518849e1b25259c581ede30e61b7900000000'); - var input1 = bitcore.Transaction('010000000001010d81757bb9f141a2d002138e86e54e8cb92b72201b38480a50377913e918612f0000000000ffffffff010100000000000000000300483045022100aa92d26d830b7529d906f7e72c1015b96b067664b68abae2d960a501e76f07780220694f4850e0003cb7e0d08bd4c67ee5fcb604c42684eb805540db5723c4383f780147522102f30bb0258f12a3bbf4fe0b5ada99974d6dbdd06876cb2687a59fa2ea7c7268aa2103d74fd4c6f08e3a4d32dde8e1404d00b2a3d323f94f5c43b4edda962b1f4cb55852ae00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = 0; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify witness 2-of-2 multisig (part 2)', function() { - var flags; - var check; - var interpreter; - var output2 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000022002067b786a598572a1a0fad2f8f48e90c3f2cc89ef110f029f35323b15ba6e9b2f900000000'); - var input2 = bitcore.Transaction('01000000000101812d39aa60f01c994c43bc160c87420b6b93bf8db2fe658df45f152250fae9100000000000ffffffff010100000000000000000300483045022100ae56c6d646656366601835e6bc2d151a9974cb1b7cbdeba27cc51ef8c59d2e3f022041e95e80d3e068eb278e31b07f984800869115111c647e2ca32718d26d8e8cd401475221032ac79a7160a0af81d59ffeb914537b1d126a3629271ac1393090c6c9a94bc81e2103eb8129ad88864e7702604ae5b36bad74dbb0f5abfd8ee9ee5def3869756b6c4152ae00000000'); - var scriptPubkey = output2.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = 0; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify witness 2-of-2 multisig (part 3)', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff0101000000000000002200207780f1145ef7ba4e703388c155d94bc399e24345e11c4559e683d5070feeb27400000000'); - var input1 = bitcore.Transaction('01000000000101791890e3effa9d4061a984812a90675418d0eb141655c106cce9b4bbbf9a3be00000000000ffffffff010100000000000000000400483045022100db977a31834033466eb103131b1ef9c57d6cea17f9a7eb3f3bafde1d7c1ddff502205ad84c9ca9c4139dce6e8e7850cc09a49ad57197b266814e79a78527ab4a9f950147304402205bd26da7dab9e379019ffd5e76fa77e161090bf577ed875e8e969f06cd66ba0a0220082cf7315ff7dc7aa8f6cebf7e70af1ffa45e63581c08e6fbc4e964035e6326b0147522102f86e3dc39cf9cd6c0eeb5fe25e3abe34273b8e79cc888dd5512001c7dac31b9921032e16a3c764fb6485345d91b39fb6da52c7026b8819e1e7d2f838a0df1445851a52ae00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify p2sh witness 2-of-2 multisig (part 1)', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a914d0e24dc9fac5cfc616b364797de40f100086e9d58700000000'); - var input1 = bitcore.Transaction('010000000001015865ee582f91c2ac646114493c3c39a3b2b08607cd96ba573f4525a01d1f85da000000002322002055423059d7eb9252d1abd6e85a4710c0bb8fabcd48cf9ddd811377557a77fc0dffffffff010100000000000000000300473044022031f9630a8ed776d6cef9ecab58cc9ee384338f4304152d93ac19482ac1ccbc030220616f194c7228484af208433b734b59ec82e21530408ed7a61e896cfefb5c4d6b014752210361424173f5b273fc134ce02a5009b07422b3f4ee63edc82cfd5bba7f72e530732102014ba09ca8cc68720bdf565f55a28b7b845be8ef6a17188b0fddcd55c16d450652ae00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = 0; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify p2sh witness 2-of-2 multisig (part 2)', function() { - var flags; - var check; - var interpreter; - var output2 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a914294b319a1c23951902e25e0147527c8eac3009c68700000000'); - var input2 = bitcore.Transaction('01000000000101d93fa44db148929eada630dd419142935c75a72d3678291327ab35d0983b37500000000023220020786e2abd1a684f8337c637f54f6ba3da75b5d75ef96cc7e7369cc69d8ca80417ffffffff010100000000000000000300483045022100b36be4297f2e1d115aba5a5fbb19f6882c61016ba9d6fa01ebb517d14109ec6602207de237433c7534d766ec36d9bddf839b961805e336e42fae574e209b1dc8e30701475221029569b67a4c695502aa31c8a7992b975aa591f2d7de61a4def63771213792288c2103ad3b7eeedf4cba17836ff9a29044a782889cd74ca8f426e83112fa199611676652ae00000000'); - var scriptPubkey = output2.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = 0; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify p2sh witness 2-of-2 multisig (part 3)', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a9143f588990832299c654d8032bc6c5d181427a321e8700000000'); - var input1 = bitcore.Transaction('01000000000101ef6f782539d100d563d736339c4a57485b562f9705b28680b08b3efe9dd815870000000023220020a51db581b721c64132415f985ac3086bcf7817f1bbf45be984718b41f4189b39ffffffff01010000000000000000040047304402203202c4c3b40c091a051707421def9adb0d101076672ab220db36a3f87bbecad402205f976ff87af9149e83c87c94ec3b308c1abe4b8c5b3f43c842ebffc22885fc530147304402203c0a50f199774f6393e42ee29d3540cf868441b47efccb11139a357ecd45c5b702205e8442ff34f6f836cd9ad96c158504469db178d63a309d813ba68b86c7293f66014752210334f22ecf25636ba18f8c89e90d38f05036094fe0be48187fb9842374a237b1062102993d85ece51cec8c4d841fce02faa6130f57c811078c5f2a48c204caf12853b552ae00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify witness pay-to-uncompressed-pubkey (v1) part 1', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000016001449ca7f5980799857e4cc236a288b95dc7e647de200000000'); - var input1 = bitcore.Transaction('010000000001014cc98b43a012d8cb56cee7e2011e041c23a622a69a8b97d6f53144e5eb319d1c0000000000ffffffff010100000000000000000248304502210085fb71eecc4b65fd31102bc93f46ec564fce6d22f749ad2d9b4adf4d9477c52602204c4fb00a48bafb4f1c0d7a397d3e0ae12bb8ae394d8b5632e894eafccabf4b160141047dc77183e8fef00c7839a272c4dc2c9b25fb109c0eebe74b27fa98cfd6fa83c76c44a145827bf880162ff7ae48574b5d42595601eee5b8733f1507f028ba401000000000'); - var input2 = bitcore.Transaction('0100000000010170ccaf8888099cee3cb869e768f6f24a85838a936cfda787186b179392144cbc0000000000ffffffff010100000000000000000247304402206667f8681ecdc66ad160ff4916c6f3e2946a1eda9e031535475f834c11d5e07c022064360fce49477fa0898b3928eb4503ca71043c67df9229266316961a6bbcc2ef014104a8288183cc741b814a286414ee5fe81ab189ecae5bb1c42794b270c33ac9702ab279fd97a5ed87437659b45197bbd3a87a449fa5b244a6941303683aa68bd11e00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify witness pay-to-uncompressed-pubkey (v1) part 2', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000016001449ca7f5980799857e4cc236a288b95dc7e647de200000000'); - var input2 = bitcore.Transaction('0100000000010170ccaf8888099cee3cb869e768f6f24a85838a936cfda787186b179392144cbc0000000000ffffffff010100000000000000000247304402206667f8681ecdc66ad160ff4916c6f3e2946a1eda9e031535475f834c11d5e07c022064360fce49477fa0898b3928eb4503ca71043c67df9229266316961a6bbcc2ef014104a8288183cc741b814a286414ee5fe81ab189ecae5bb1c42794b270c33ac9702ab279fd97a5ed87437659b45197bbd3a87a449fa5b244a6941303683aa68bd11e00000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS;; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - it('will verify p2sh witness pay-to-uncompressed-pubkey (v1) part 1', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a9147b615f35c476c8f3c555b4d52e54760b2873742f8700000000'); - var input1 = bitcore.Transaction('01000000000101160aa337bd325875674904f80d706b4d02cec9888eb2dbae788e18ed01f7712d0000000017160014eff6eebd0dcd3923ca3ab3ea57071fa82ea1faa5ffffffff010100000000000000000247304402205c87348896d3a9de62b1a646c29c4728bec62e384fa16167e302357883c04134022024a98e0fbfde9c24528fbe8f36e05a19a6f37dea16822b80259fcfc8ab2358fb0141048b4e234c057e32d2304697b4d2273679417355bb6bf2d946add731de9719d6801892b6154291ce2cf45c106a6d754c76f81e4316187aa54938af224d9eddb36400000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input1.inputs[0].script; - var witnesses = input1.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS;; - check = interpreter.verify(scriptSig, scriptPubkey, input1, 0, flags, witnesses, satoshis); - check.should.equal(true); - }); - it('will verify p2sh witness pay-to-uncompressed-pubkey (v1) part 2', function() { - var flags; - var check; - var interpreter; - var output1 = bitcore.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff01010000000000000017a9147b615f35c476c8f3c555b4d52e54760b2873742f8700000000'); - var input2 = bitcore.Transaction('01000000000101eefb67109c118e958d81f3f98638d48bc6c14eae97cedfce7c397eabb92b4e320000000017160014eff6eebd0dcd3923ca3ab3ea57071fa82ea1faa5ffffffff010100000000000000000247304402200ed4fa4bc8fbae2d1e88bbe8691b21233c23770e5eebf9767853de8579f5790a022015cb3f3dc88720199ee1ed5a9f4cf3186a29a0c361512f03b648c9998b3da7b4014104dfaee8168fe5d1ead2e0c8bb12e2d3ba500ade4f6c4983f3dbe5b70ffeaca1551d43c6c962b69fb8d2f4c02faaf1d4571aae7bbd209df5f3b8cd153e60e1627300000000'); - var scriptPubkey = output1.outputs[0].script; - var scriptSig = input2.inputs[0].script; - var witnesses = input2.inputs[0].getWitnesses(); - var satoshis = 1; - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(true); - - interpreter = new Interpreter(); - flags = Interpreter.SCRIPT_VERIFY_P2SH | Interpreter.SCRIPT_VERIFY_WITNESS;; - check = interpreter.verify(scriptSig, scriptPubkey, input2, 0, flags, witnesses, satoshis); - check.should.equal(false); - }); - }); - }); - describe('signing', function() { - var privateKey1 = PrivateKey.fromWIF('cNuW8LX2oeQXfKKCGxajGvqwhCgBtacwTQqiCGHzzKfmpHGY4TE9'); - var publicKey1 = p2shPrivateKey1.toPublicKey(); - var privateKey2 = PrivateKey.fromWIF('cTtLHt4mv6zuJytSnM7Vd6NLxyNauYLMxD818sBC8PJ1UPiVTRSs'); - var publicKey2 = p2shPrivateKey2.toPublicKey(); - var privateKey3 = PrivateKey.fromWIF('cQFMZ5gP9CJtUZPc9X3yFae89qaiQLspnftyxxLGvVNvM6tS6mYY'); - var publicKey3 = p2shPrivateKey3.toPublicKey(); - var address = Address.createMultisig([ - publicKey1 - ], 1, 'testnet', true); - var utxo = { - address: address.toString(), - txId: '1d732950d99f821b8a8d11972ea56000b0666e4d31fa71861ffd80a83797dc61', - outputIndex: 1, - script: Script.buildScriptHashOut(address).toHex(), - satoshis: 1e8 - }; - it('will sign with nested p2sh witness program', function() { - var tx = new Transaction() - .from(utxo, [publicKey1], 1, true) - .to([{address: 'n3LsXgyStG2CkS2CnWZtDqxTfCnXB8PvD9', satoshis: 50000}]) - .fee(150000) - .change('mqWDcnW3jMzthB8qdB9SnFam6N96GDqM4W') - .sign(privateKey1); - var sighash = tx.inputs[0].getSighash(tx, privateKey1, 0, bitcore.crypto.Signature.SIGHASH_ALL); - sighash.toString('hex').should.equal('51b7c5271ae04071a6d3d4c4cde28003d8e9a09e51931ebae4003539767a4955'); - tx.toBuffer().toString('hex').should.equal('0100000000010161dc9737a880fd1f8671fa314d6e66b00060a52e97118d8a1b829fd95029731d010000002322002028ba8620c84df12e3283de37d02cfa7bcae3894e118388d6b3ae50f9aeb38798ffffffff0250c30000000000001976a914ef6aa14d8f5ba65a12c327a9659681c44cd821b088acc0d3f205000000001976a9146d8da2015c6d2890896485edd5897b3b2ec9ebb188ac030047304402203fdbd6604939ed9b46bd07bea993b102336a6fbc0a0c987f05b8522a2079037f022064466db4b0c6cc6697a28e0ba9b28c9738ecba56033a60aab7f04d5da2a8241e0125512102feab7deafbdb39885ef92a285dfa0f4ada0feefce43685e6551c95e71496d98051ae00000000'); - }); - }); - }); - -}); - - -var tx_empty_hex = '01000000000000000000'; - -/* jshint maxlen: 1000 */ -var tx_1_hex = '01000000015884e5db9de218238671572340b207ee85b628074e7e467096c267266baf77a4000000006a473044022013fa3089327b50263029265572ae1b022a91d10ac80eb4f32f291c914533670b02200d8a5ed5f62634a7e1a0dc9188a3cc460a986267ae4d58faf50c79105431327501210223078d2942df62c45621d209fab84ea9a7a23346201b7727b9b45a29c4e76f5effffffff0150690f00000000001976a9147821c0a3768aa9d1a37e16cf76002aef5373f1a888ac00000000'; -var tx_1_id = '779a3e5b3c2c452c85333d8521f804c1a52800e60f4b7c3bbe36f4bab350b72c'; - - -var tx2hex = '0100000001e07d8090f4d4e6fcba6a2819e805805517eb19e669e9d2f856b41d4277953d640000000091004730440220248bc60bb309dd0215fbde830b6371e3fdc55685d11daa9a3c43828892e26ce202205f10cd4011f3a43657260a211f6c4d1fa81b6b6bdd6577263ed097cc22f4e5b50147522102fa38420cec94843ba963684b771ba3ca7ce1728dc2c7e7cade0bf298324d6b942103f948a83c20b2e7228ca9f3b71a96c2f079d9c32164cd07f08fbfdb483427d2ee52aeffffffff01180fe200000000001976a914ccee7ce8e8b91ec0bc23e1cfb6324461429e6b0488ac00000000'; - -var unsupportedTxObj = '{"version":1,"inputs":[{"prevTxId":"a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458","outputIndex":0,"sequenceNumber":4294967295,"script":"OP_1","output":{"satoshis":1020000,"script":"OP_1 OP_ADD OP_2 OP_EQUAL"}}],"outputs":[{"satoshis":1010000,"script":"OP_DUP OP_HASH160 20 0x7821c0a3768aa9d1a37e16cf76002aef5373f1a8 OP_EQUALVERIFY OP_CHECKSIG"}],"nLockTime":0}'; - -var txCoinJoinHex = '0100000013440a4e2471a0afd66c9db54db7d414507981eb3db35970dadf722453f08bdc8d0c0000006a47304402200098a7f838ff267969971f5d9d4b2c1db11b8e39c81eebf3c8fe22dd7bf0018302203fa16f0aa3559752462c20ddd8a601620eb176b4511507d11a361a7bb595c57c01210343ead2c0e2303d880bf72dfc04fc9c20d921fc53949c471e22b3c68c0690b828ffffffff0295eef5ad85c9b6b91a3d77bce015065dc64dab526b2f27fbe56f51149bb67f100000006b483045022100c46d6226167e6023e5a058b1ae541c5ca4baf4a69afb65adbfce2cc276535a6a022006320fdc8a438009bbfebfe4ab63e415ee231456a0137d167ee2113677f8e3130121032e38a3e15bee5ef272eaf71033a054637f7b74a51882e659b0eacb8db3e417a9ffffffffee0a35737ab56a0fdb84172c985f1597cffeb33c1d8e4adf3b3b4cc6d430d9b50a0000006b483045022100d02737479b676a35a5572bfd027ef9713b2ef34c87aabe2a2939a448d06c0569022018b262f34191dd2dcf5cbf1ecae8126b35aeb4afcb0426922e1d3dfc86e4dc970121022056d76bd198504c05350c415a80900aaf1174ad95ef42105c2c7976c7094425ffffffffee0a35737ab56a0fdb84172c985f1597cffeb33c1d8e4adf3b3b4cc6d430d9b5100000006a47304402207f541994740dd1aff3dbf633b7d7681c5251f2aa1f48735370dd4694ebdb049802205f4c92f3c9d8e3e758b462a5e0487c471cf7e58757815200c869801403c5ed57012102778e7fe0fc66a2746a058bbe25029ee32bfbed75a6853455ffab7c2bf764f1aeffffffff0295eef5ad85c9b6b91a3d77bce015065dc64dab526b2f27fbe56f51149bb67f050000006a473044022050304b69e695bdba599379c52d872410ae5d78804d3f3c60fb887fd0d95f617b02205f0e27fd566849f7be7d1965219cd63484cc0f37b77b62be6fdbf48f5887ae01012103c8ac0d519ba794b2e3fe7b85717d48b8b47f0e6f94015d0cb8b2ca84bce93e22ffffffff490673d994be7c9be1a39c2d45b3c3738fde5e4b54af91740a442e1cde947114110000006b48304502210085f6b6285d30a5ea3ee6b6f0e73c39e5919d5254bc09ff57b11a7909a9f3f6b7022023ffc24406384c3ee574b836f57446980d5e79c1cd795136a2160782544037a9012103152a37a23618dcc6c41dbb0d003c027215c4ce467bffc29821e067d97fa052e7ffffffffc1365292b95156f7d68ad6dfa031910f3284d9d2e9c267670c5cfa7d97bae482010000006b483045022100e59095f9bbb1daeb04c8105f6f0cf123fcf59c80d319a0e2012326d12bb0e02702206d67b31b24ed60b3f3866755ce122abb09200f9bb331d7be214edfd74733bb830121026db18f5b27ce4e60417364ce35571096927339c6e1e9d0a9f489be6a4bc03252ffffffff0295eef5ad85c9b6b91a3d77bce015065dc64dab526b2f27fbe56f51149bb67f0d0000006b483045022100ec5f0ef35f931fa047bb0ada3f23476fded62d8f114fa547093d3b5fbabf6dbe0220127d6d28388ffeaf2a282ec5f6a7b1b7cc2cb8e35778c2f7c3be834f160f1ff8012102b38aca3954870b28403cae22139004e0756ae325208b3e692200e9ddc6e33b54ffffffff73675af13a01c64ee60339613debf81b9e1dd8d9a3515a25f947353459d3af3c0c0000006b483045022100ff17593d4bff4874aa556c5f8f649d4135ea26b37baf355e793f30303d7bfb9102200f51704d8faccbaa22f58488cb2bebe523e00a436ce4d58179d0570e55785daa0121022a0c75b75739d182076c16d3525e83b1bc7362bfa855959c0cd48e5005140166ffffffff73675af13a01c64ee60339613debf81b9e1dd8d9a3515a25f947353459d3af3c0e0000006b483045022100c7d5a379e2870d03a0f3a5bdd4054a653b29804913f8720380a448f4e1f19865022051501eae29ba44a13ddd3780bc97ac5ec86e881462d0e08d9cc4bd2b29bcc815012103abe21a9dc0e9f995e3c58d6c60971e6d54559afe222bca04c2b331f42b38c0f3ffffffff6f70aeaa54516863e16fa2082cb5471e0f66b4c7dac25d9da4969e70532f6da00d0000006b483045022100afbeaf9fe032fd77c4e46442b178bdc37c7d6409985caad2463b7ab28befccfd0220779783a9b898d94827ff210c9183ff66bfb56223b0e0118cbba66c48090a4f700121036385f64e18f00d6e56417aa33ad3243356cc5879342865ee06f3b2c17552fe7efffffffffae31df57ccb4216853c0f3cc5af1f8ad7a99fc8de6bc6d80e7b1c81f4baf1e4140000006a473044022076c7bb674a88d9c6581e9c26eac236f6dd9cb38b5ffa2a3860d8083a1751302e022033297ccaaab0a6425c2afbfb6525b75e6f27cd0c9f23202bea28f8fa8a7996b40121031066fb64bd605b8f9d07c45d0d5c42485325b9289213921736bf7b048dec1df3ffffffff909d6efb9e08780c8b8e0fccff74f3e21c5dd12d86dcf5cbea494e18bbb9995c120000006a47304402205c945293257a266f8d575020fa409c1ba28742ff3c6d66f33059675bd6ba676a02204ca582141345a161726bd4ec5f53a6d50b2afbb1aa811acbad44fd295d01948501210316a04c4b9dc5035bc9fc3ec386896dcba281366e8a8a67b4904e4e4307820f56ffffffff90ac0c55af47a073de7c3f98ac5a59cd10409a8069806c8afb9ebbbf0c232436020000006a47304402200e05f3a9db10a3936ede2f64844ebcbdeeef069f4fd7e34b18d66b185217d5e30220479b734d591ea6412ded39665463f0ae90b0b21028905dd8586f74b4eaa9d6980121030e9ba4601ae3c95ce90e01aaa33b2d0426d39940f278325023d9383350923477ffffffff3e2f391615f885e626f70940bc7daf71bcdc0a7c6bf5a5eaece5b2e08d10317c000000006b4830450221009b675247b064079c32b8e632e9ee8bd62b11b5c89f1e0b37068fe9be16ae9653022044bff9be38966d3eae77eb9adb46c20758bc106f91cd022400999226b3cd6064012103239b99cadf5350746d675d267966e9597b7f5dd5a6f0f829b7bc6e5802152abcffffffffe1ce8f7faf221c2bcab3aa74e6b1c77a73d1a5399a9d401ddb4b45dc1bdc4636090000006b483045022100a891ee2286649763b1ff45b5a3ef66ce037e86e11b559d15270e8a61cfa0365302200c1e7aa62080af45ba18c8345b5f37a94e661f6fb1d62fd2f3917aa2897ae4af012102fa6980f47e0fdc80fb94bed1afebec70eb5734308cd30f850042cd9ddf01aebcffffffffe1ce8f7faf221c2bcab3aa74e6b1c77a73d1a5399a9d401ddb4b45dc1bdc4636010000006a4730440220296dbfacd2d3f3bd4224a40b7685dad8d60292a38be994a0804bdd1d1e84edef022000f30139285e6da863bf6821d46b8799a582d453e696589233769ad9810c9f6a01210314936e7118052ac5c4ba2b44cb5b7b577346a5e6377b97291e1207cf5dae47afffffffff0295eef5ad85c9b6b91a3d77bce015065dc64dab526b2f27fbe56f51149bb67f120000006b483045022100b21b2413eb7de91cab6416efd2504b15a12b34c11e6906f44649827f9c343b4702205691ab43b72862ea0ef60279f03b77d364aa843cb8fcb16d736368e432d44698012103f520fb1a59111b3d294861d3ac498537216d4a71d25391d1b3538ccbd8b023f6ffffffff5a7eaeadd2570dd5b9189eb825d6b1876266940789ebb05deeeac954ab520d060c0000006b483045022100949c7c91ae9addf549d828ed51e0ef42255149e29293a34fb8f81dc194c2f4b902202612d2d6251ef13ed936597f979a26b38916ed844a1c3fded0b3b0ea18b54380012103eda1fa3051306238c35d83e8ff8f97aa724d175dede4c0783926c98f106fb194ffffffff15620f5723000000001976a91406595e074efdd41ef65b0c3dba3d69dd3c6e494b88ac58a3fb03000000001976a914b037b0650a691c56c1f98e274e9752e2157d970288ac18c0f702000000001976a914b68642906bca6bb6c883772f35caaeed9f7a1b7888ac83bd5723000000001976a9148729016d0c88ac01d110e7d75006811f283f119788ace41f3823000000001976a9147acd2478d13395a64a0b8eadb62d501c2b41a90c88ac31d50000000000001976a91400d2a28bc7a4486248fab573d72ef6db46f777ea88aca09c0306000000001976a914d43c27ffb4a76590c245cd55447550ffe99f346a88ac80412005000000001976a914997efabe5dce8a24d4a1f3c0f9236bf2f6a2087588ac99bb0000000000001976a914593f550a3f8afe8e90b7bae14f0f0b2c31c4826688ace2c71500000000001976a914ee85450df9ca44a4e330fd0b7d681ec6fbad6fb488acb0eb4a00000000001976a914e7a48c6f7079d95e1505b45f8307197e6191f13888acea015723000000001976a9149537e8f15a7f8ef2d9ff9c674da57a376cf4369b88ac2002c504000000001976a9141821265cd111aafae46ac62f60eed21d1544128388acb0c94f0e000000001976a914a7aef50f0868fe30389b02af4fae7dda0ec5e2e988ac40b3d509000000001976a9140f9ac28f8890318c50cffe1ec77c05afe5bb036888ac9f9d1f00000000001976a914e70288cab4379092b2d694809d555c79ae59223688ac52e85623000000001976a914a947ce2aca9c6e654e213376d8d35db9e36398d788ac21ae0000000000001976a914ff3bc00eac7ec252cd5fb3318a87ac2a86d229e188ace0737a09000000001976a9146189be3daa18cb1b1fa86859f7ed79cc5c8f2b3388acf051a707000000001976a914453b1289f3f8a0248d8d914d7ad3200c6be0d28888acc0189708000000001976a914a5e2e6e7b740cef68eb374313d53a7fab1a8a3cd88ac00000000'; diff --git a/test/transaction/unspentoutput.js b/test/transaction/unspentoutput.js deleted file mode 100644 index b9c707a..0000000 --- a/test/transaction/unspentoutput.js +++ /dev/null @@ -1,94 +0,0 @@ -'use strict'; - -var _ = require('lodash'); -var chai = require('chai'); -var should = chai.should(); -var expect = chai.expect; - -var bitcore = require('../..'); -var UnspentOutput = bitcore.Transaction.UnspentOutput; - -describe('UnspentOutput', function() { - - var sampleData1 = { - 'address': 'mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1', - 'txId': 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - 'outputIndex': 0, - 'script': 'OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG', - 'satoshis': 1020000 - }; - var sampleData2 = { - 'txid': 'e42447187db5a29d6db161661e4bc66d61c3e499690fe5ea47f87b79ca573986', - 'vout': 1, - 'address': 'mgBCJAsvzgT2qNNeXsoECg2uPKrUsZ76up', - 'scriptPubKey': '76a914073b7eae2823efa349e3b9155b8a735526463a0f88ac', - 'amount': 0.01080000 - }; - - it('roundtrip from raw data', function() { - expect(UnspentOutput(sampleData2).toObject()).to.deep.equal(sampleData2); - }); - - it('can be created without "new" operand', function() { - expect(UnspentOutput(sampleData1) instanceof UnspentOutput).to.equal(true); - }); - - it('fails if no tx id is provided', function() { - expect(function() { - return new UnspentOutput({}); - }).to.throw(); - }); - - it('fails if vout is not a number', function() { - var sample = _.cloneDeep(sampleData2); - sample.vout = '1'; - expect(function() { - return new UnspentOutput(sample); - }).to.throw(); - }); - - it('displays nicely on the console', function() { - var expected = ''; - expect(new UnspentOutput(sampleData1).inspect()).to.equal(expected); - }); - - describe('checking the constructor parameters', function() { - var notDefined = { - 'txId': 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - 'outputIndex': 0, - 'script': 'OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG', - }; - var zero = { - 'txId': 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - 'outputIndex': 0, - 'script': 'OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG', - 'amount': 0 - }; - it('fails when no amount is defined', function() { - expect(function() { - return new UnspentOutput(notDefined); - }).to.throw('Must provide an amount for the output'); - }); - it('does not fail when amount is zero', function() { - expect(function() { - return new UnspentOutput(zero); - }).to.not.throw(); - }); - }); - - it('toString returns txid:vout', function() { - var expected = 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458:0'; - expect(new UnspentOutput(sampleData1).toString()).to.equal(expected); - }); - - it('to/from JSON roundtrip', function() { - var utxo = new UnspentOutput(sampleData2); - var obj = UnspentOutput.fromObject(utxo.toJSON()).toObject(); - expect(obj).to.deep.equal(sampleData2); - var str = JSON.stringify(UnspentOutput.fromObject(obj)); - expect(JSON.parse(str)).to.deep.equal(sampleData2); - var str2 = JSON.stringify(new UnspentOutput(JSON.parse(str))); - expect(JSON.parse(str2)).to.deep.equal(sampleData2); - }); -}); diff --git a/test/unit.js b/test/unit.js deleted file mode 100644 index 5668e45..0000000 --- a/test/unit.js +++ /dev/null @@ -1,197 +0,0 @@ -'use strict'; - -var should = require('chai').should(); -var expect = require('chai').expect; - -var bitcore = require('..'); -var errors = bitcore.errors; -var Unit = bitcore.Unit; - -describe('Unit', function() { - - it('can be created from a number and unit', function() { - expect(function() { - return new Unit(1.2, 'BTC'); - }).to.not.throw(); - }); - - it('can be created from a number and exchange rate', function() { - expect(function() { - return new Unit(1.2, 350); - }).to.not.throw(); - }); - - it('no "new" is required for creating an instance', function() { - expect(function() { - return Unit(1.2, 'BTC'); - }).to.not.throw(); - - expect(function() { - return Unit(1.2, 350); - }).to.not.throw(); - }); - - it('has property accesors "BTC", "mBTC", "uBTC", "bits", and "satoshis"', function() { - var unit = new Unit(1.2, 'BTC'); - unit.BTC.should.equal(1.2); - unit.mBTC.should.equal(1200); - unit.uBTC.should.equal(1200000); - unit.bits.should.equal(1200000); - unit.satoshis.should.equal(120000000); - }); - - it('a string amount is allowed', function() { - var unit; - - unit = Unit.fromBTC('1.00001'); - unit.BTC.should.equal(1.00001); - - unit = Unit.fromMilis('1.00001'); - unit.mBTC.should.equal(1.00001); - - unit = Unit.fromMillis('1.00001'); - unit.mBTC.should.equal(1.00001); - - unit = Unit.fromBits('100'); - unit.bits.should.equal(100); - - unit = Unit.fromSatoshis('8999'); - unit.satoshis.should.equal(8999); - - unit = Unit.fromFiat('43', 350); - unit.BTC.should.equal(0.12285714); - }); - - it('should have constructor helpers', function() { - var unit; - - unit = Unit.fromBTC(1.00001); - unit.BTC.should.equal(1.00001); - - unit = Unit.fromMilis(1.00001); - unit.mBTC.should.equal(1.00001); - - unit = Unit.fromBits(100); - unit.bits.should.equal(100); - - unit = Unit.fromSatoshis(8999); - unit.satoshis.should.equal(8999); - - unit = Unit.fromFiat(43, 350); - unit.BTC.should.equal(0.12285714); - }); - - it('converts to satoshis correctly', function() { - /* jshint maxstatements: 25 */ - var unit; - - unit = Unit.fromBTC(1.3); - unit.mBTC.should.equal(1300); - unit.bits.should.equal(1300000); - unit.satoshis.should.equal(130000000); - - unit = Unit.fromMilis(1.3); - unit.BTC.should.equal(0.0013); - unit.bits.should.equal(1300); - unit.satoshis.should.equal(130000); - - unit = Unit.fromBits(1.3); - unit.BTC.should.equal(0.0000013); - unit.mBTC.should.equal(0.0013); - unit.satoshis.should.equal(130); - - unit = Unit.fromSatoshis(3); - unit.BTC.should.equal(0.00000003); - unit.mBTC.should.equal(0.00003); - unit.bits.should.equal(0.03); - }); - - it('takes into account floating point problems', function() { - var unit = Unit.fromBTC(0.00000003); - unit.mBTC.should.equal(0.00003); - unit.bits.should.equal(0.03); - unit.satoshis.should.equal(3); - }); - - it('exposes unit codes', function() { - should.exist(Unit.BTC); - Unit.BTC.should.equal('BTC'); - - should.exist(Unit.mBTC); - Unit.mBTC.should.equal('mBTC'); - - should.exist(Unit.bits); - Unit.bits.should.equal('bits'); - - should.exist(Unit.satoshis); - Unit.satoshis.should.equal('satoshis'); - }); - - it('exposes a method that converts to different units', function() { - var unit = new Unit(1.3, 'BTC'); - unit.to(Unit.BTC).should.equal(unit.BTC); - unit.to(Unit.mBTC).should.equal(unit.mBTC); - unit.to(Unit.bits).should.equal(unit.bits); - unit.to(Unit.satoshis).should.equal(unit.satoshis); - }); - - it('exposes shorthand conversion methods', function() { - var unit = new Unit(1.3, 'BTC'); - unit.toBTC().should.equal(unit.BTC); - unit.toMilis().should.equal(unit.mBTC); - unit.toMillis().should.equal(unit.mBTC); - unit.toBits().should.equal(unit.bits); - unit.toSatoshis().should.equal(unit.satoshis); - }); - - it('can convert to fiat', function() { - var unit = new Unit(1.3, 350); - unit.atRate(350).should.equal(1.3); - unit.to(350).should.equal(1.3); - - unit = Unit.fromBTC(0.0123); - unit.atRate(10).should.equal(0.12); - }); - - it('toString works as expected', function() { - var unit = new Unit(1.3, 'BTC'); - should.exist(unit.toString); - unit.toString().should.be.a('string'); - }); - - it('can be imported and exported from/to JSON', function() { - var json = JSON.stringify({amount:1.3, code:'BTC'}); - var unit = Unit.fromObject(JSON.parse(json)); - JSON.stringify(unit).should.deep.equal(json); - }); - - it('importing from invalid JSON fails quickly', function() { - expect(function() { - return Unit.fromJSON('¹'); - }).to.throw(); - }); - - it('inspect method displays nicely', function() { - var unit = new Unit(1.3, 'BTC'); - unit.inspect().should.equal(''); - }); - - it('fails when the unit is not recognized', function() { - expect(function() { - return new Unit(100, 'USD'); - }).to.throw(errors.Unit.UnknownCode); - expect(function() { - return new Unit(100, 'BTC').to('USD'); - }).to.throw(errors.Unit.UnknownCode); - }); - - it('fails when the exchange rate is invalid', function() { - expect(function() { - return new Unit(100, -123); - }).to.throw(errors.Unit.InvalidRate); - expect(function() { - return new Unit(100, 'BTC').atRate(-123); - }).to.throw(errors.Unit.InvalidRate); - }); - -}); diff --git a/test/uri.js b/test/uri.js deleted file mode 100644 index 01694b2..0000000 --- a/test/uri.js +++ /dev/null @@ -1,257 +0,0 @@ -'use strict'; - -var chai = chai || require('chai'); -var bitcore = require('..'); -var expect = chai.expect; -var Networks = bitcore.Networks; -var should = chai.should(); -var URI = bitcore.URI; - -describe('URI', function() { - /* jshint maxstatements: 30 */ - - // TODO: Split this and explain tests - it('parses uri strings correctly (test vector)', function() { - var uri; - - URI.parse.bind(URI, 'badURI').should.throw(TypeError); - - uri = URI.parse('bitcoin:'); - expect(uri.address).to.be.undefined(); - expect(uri.amount).to.be.undefined(); - expect(uri.otherParam).to.be.undefined(); - - uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.address.should.equal('1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - expect(uri.amount).to.be.undefined(); - expect(uri.otherParam).to.be.undefined(); - - uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22'); - uri.address.should.equal('1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.amount.should.equal('123.22'); - expect(uri.otherParam).to.be.undefined(); - - uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22' + - '&other-param=something&req-extra=param'); - uri.address.should.equal('1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.amount.should.equal('123.22'); - uri['other-param'].should.equal('something'); - uri['req-extra'].should.equal('param'); - }); - - // TODO: Split this and explain tests - it('URIs can be validated statically (test vector)', function() { - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj').should.equal(true); - URI.isValid('bitcoin:mkYY5NRvikVBY1EPtaq9fAFgquesdjqECw').should.equal(true); - - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2') - .should.equal(true); - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2&other=param') - .should.equal(true); - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2&req-other=param', - ['req-other']).should.equal(true); - URI.isValid('bitcoin:mmrqEBJxUCf42vdb3oozZtyz5mKr3Vb2Em?amount=0.1&' + - 'r=https%3A%2F%2Ftest.bitpay.com%2Fi%2F6DKgf8cnJC388irbXk5hHu').should.equal(true); - - URI.isValid('bitcoin:').should.equal(false); - URI.isValid('bitcoin:badUri').should.equal(false); - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfk?amount=bad').should.equal(false); - URI.isValid('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfk?amount=1.2&req-other=param') - .should.equal(false); - URI.isValid('bitcoin:?r=https%3A%2F%2Ftest.bitpay.com%2Fi%2F6DKgf8cnJC388irbXk5hHu') - .should.equal(false); - }); - - it('fails on creation with no params', function() { - (function(){ - return new URI(); - }).should.throw(TypeError); - }); - - it('do not need new keyword', function() { - var uri = URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.should.be.instanceof(URI); - }); - - describe('instantiation from bitcoin uri', function() { - /* jshint maxstatements: 25 */ - var uri; - - it('parses address', function() { - uri = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.address.should.be.instanceof(bitcore.Address); - uri.network.should.equal(Networks.livenet); - }); - - it('parses amount', function() { - uri = URI.fromString('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22'); - uri.address.toString().should.equal('1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.amount.should.equal(12322000000); - expect(uri.otherParam).to.be.undefined(); - }); - - it('parses a testnet address', function() { - uri = new URI('bitcoin:mkYY5NRvikVBY1EPtaq9fAFgquesdjqECw'); - uri.address.should.be.instanceof(bitcore.Address); - uri.network.should.equal(Networks.testnet); - }); - - it('stores unknown parameters as "extras"', function() { - uri = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2&other=param'); - uri.address.should.be.instanceof(bitcore.Address); - expect(uri.other).to.be.undefined(); - uri.extras.other.should.equal('param'); - }); - - it('throws error when a required feature is not supported', function() { - (function() { - return new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2&other=param&req-required=param'); - }).should.throw(Error); - }); - - it('has no false negative when checking supported features', function() { - uri = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.2&other=param&' + - 'req-required=param', ['req-required']); - uri.address.should.be.instanceof(bitcore.Address); - uri.amount.should.equal(120000000); - uri.extras.other.should.equal('param'); - uri.extras['req-required'].should.equal('param'); - }); - }); - - // TODO: Split this and explain tests - it('should create instance from object', function() { - /* jshint maxstatements: 25 */ - var uri; - - uri = new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' - }); - uri.address.should.be.instanceof(bitcore.Address); - uri.network.should.equal(Networks.livenet); - - uri = new URI({ - address: 'mkYY5NRvikVBY1EPtaq9fAFgquesdjqECw' - }); - uri.address.should.be.instanceof(bitcore.Address); - uri.network.should.equal(Networks.testnet); - - uri = new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - amount: 120000000, - other: 'param' - }); - uri.address.should.be.instanceof(bitcore.Address); - uri.amount.should.equal(120000000); - expect(uri.other).to.be.undefined(); - uri.extras.other.should.equal('param'); - - (function() { - return new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - 'req-required': 'param' - }); - }).should.throw(Error); - - uri = new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - amount: 120000000, - other: 'param', - 'req-required': 'param' - }, ['req-required']); - uri.address.should.be.instanceof(bitcore.Address); - uri.amount.should.equal(120000000); - uri.extras.other.should.equal('param'); - uri.extras['req-required'].should.equal('param'); - }); - - it('should support double slash scheme', function() { - var uri = new URI('bitcoin://1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - uri.address.toString().should.equal('1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - }); - - it('should input/output String', function() { - var str = 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?' + - 'message=Donation%20for%20project%20xyz&label=myLabel&other=xD'; - URI.fromString(str).toString().should.equal(str); - }); - - it('should input/output JSON', function() { - var json = JSON.stringify({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - message: 'Donation for project xyz', - label: 'myLabel', - other: 'xD' - }); - JSON.stringify(URI.fromObject(JSON.parse(json))).should.equal(json); - }); - - it('should support numeric amounts', function() { - var uri = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=12.10001'); - expect(uri.amount).to.be.equal(1210001000); - }); - - it('should support extra arguments', function() { - var uri = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?' + - 'message=Donation%20for%20project%20xyz&label=myLabel&other=xD'); - - should.exist(uri.message); - uri.message.should.equal('Donation for project xyz'); - - should.exist(uri.label); - uri.label.should.equal('myLabel'); - - should.exist(uri.extras.other); - uri.extras.other.should.equal('xD'); - }); - - it('should generate a valid URI', function() { - new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - }).toString().should.equal( - 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' - ); - - new URI({ - address: '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj', - amount: 110001000, - message: 'Hello World', - something: 'else' - }).toString().should.equal( - 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=1.10001&message=Hello%20World&something=else' - ); - - }); - - it('should be case insensitive to protocol', function() { - var uri1 = new URI('bItcOin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - var uri2 = new URI('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'); - - uri1.address.toString().should.equal(uri2.address.toString()); - }); - - it('writes correctly the "r" parameter on string serialization', function() { - var originalString = 'bitcoin:mmrqEBJxUCf42vdb3oozZtyz5mKr3Vb2Em?amount=0.1&' + - 'r=https%3A%2F%2Ftest.bitpay.com%2Fi%2F6DKgf8cnJC388irbXk5hHu'; - var uri = new URI(originalString); - uri.toString().should.equal(originalString); - }); - - it('displays nicely on the console (#inspect)', function() { - var uri = 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'; - var instance = new URI(uri); - instance.inspect().should.equal(''); - }); - - it('fails early when fromString isn\'t provided a string', function() { - expect(function() { - return URI.fromString(1); - }).to.throw(); - }); - - it('fails early when fromJSON isn\'t provided a valid JSON string', function() { - expect(function() { - return URI.fromJSON('¹'); - }).to.throw(); - }); -}); diff --git a/test/util/buffer.js b/test/util/buffer.js deleted file mode 100644 index bbc1e26..0000000 --- a/test/util/buffer.js +++ /dev/null @@ -1,156 +0,0 @@ -'use strict'; -/* jshint unused: false */ - -var should = require('chai').should(); -var expect = require('chai').expect; - -var bitcore = require('../..'); -var errors = bitcore.errors; -var BufferUtil = bitcore.util.buffer; - -describe('buffer utils', function() { - - describe('equals', function() { - it('recognizes these two equal buffers', function() { - var bufferA = new Buffer([1, 2, 3]); - var bufferB = new Buffer('010203', 'hex'); - BufferUtil.equal(bufferA, bufferB).should.equal(true); - }); - it('no false positive: returns false with two different buffers', function() { - var bufferA = new Buffer([1, 2, 3]); - var bufferB = new Buffer('010204', 'hex'); - BufferUtil.equal(bufferA, bufferB).should.equal(false); - }); - it('coverage: quickly realizes a difference in size and returns false', function() { - var bufferA = new Buffer([1, 2, 3]); - var bufferB = new Buffer([]); - BufferUtil.equal(bufferA, bufferB).should.equal(false); - }); - it('"equals" is an an alias for "equal"', function() { - var bufferA = new Buffer([1, 2, 3]); - var bufferB = new Buffer([1, 2, 3]); - BufferUtil.equal(bufferA, bufferB).should.equal(true); - BufferUtil.equals(bufferA, bufferB).should.equal(true); - }); - }); - - describe('fill', function() { - it('checks arguments', function() { - expect(function() { - BufferUtil.fill('something'); - }).to.throw(errors.InvalidArgumentType); - expect(function() { - BufferUtil.fill(new Buffer([0, 0, 0]), 'invalid'); - }).to.throw(errors.InvalidArgumentType); - }); - it('works correctly for a small buffer', function() { - var buffer = BufferUtil.fill(new Buffer(10), 6); - for (var i = 0; i < 10; i++) { - buffer[i].should.equal(6); - } - }); - }); - - describe('isBuffer', function() { - it('has no false positive', function() { - expect(BufferUtil.isBuffer(1)).to.equal(false); - }); - it('has no false negative', function() { - expect(BufferUtil.isBuffer(new Buffer(0))).to.equal(true); - }); - }); - - describe('emptyBuffer', function() { - it('creates a buffer filled with zeros', function() { - var buffer = BufferUtil.emptyBuffer(10); - expect(buffer.length).to.equal(10); - for (var i = 0; i < 10; i++) { - expect(buffer[i]).to.equal(0); - } - }); - it('checks arguments', function() { - expect(function() { - BufferUtil.emptyBuffer('invalid'); - }).to.throw(errors.InvalidArgumentType); - }); - }); - - describe('single byte buffer <=> integer', function() { - it('integerAsSingleByteBuffer should return a buffer of length 1', function() { - expect(BufferUtil.integerAsSingleByteBuffer(100)[0]).to.equal(100); - }); - it('should check the type', function() { - expect(function() { - BufferUtil.integerAsSingleByteBuffer('invalid'); - }).to.throw(errors.InvalidArgumentType); - expect(function() { - BufferUtil.integerFromSingleByteBuffer('invalid'); - }).to.throw(errors.InvalidArgumentType); - }); - it('works correctly for edge cases', function() { - expect(BufferUtil.integerAsSingleByteBuffer(255)[0]).to.equal(255); - expect(BufferUtil.integerAsSingleByteBuffer(-1)[0]).to.equal(255); - }); - it('does a round trip', function() { - expect(BufferUtil.integerAsSingleByteBuffer( - BufferUtil.integerFromSingleByteBuffer(new Buffer([255])) - )[0]).to.equal(255); - }); - }); - - describe('4byte buffer integer <=> integer', function() { - it('integerAsBuffer should return a buffer of length 4', function() { - expect(BufferUtil.integerAsBuffer(100).length).to.equal(4); - }); - it('is little endian', function() { - expect(BufferUtil.integerAsBuffer(100)[3]).to.equal(100); - }); - it('should check the type', function() { - expect(function() { - BufferUtil.integerAsBuffer('invalid'); - }).to.throw(errors.InvalidArgumentType); - expect(function() { - BufferUtil.integerFromBuffer('invalid'); - }).to.throw(errors.InvalidArgumentType); - }); - it('works correctly for edge cases', function() { - expect(BufferUtil.integerAsBuffer(4294967295)[0]).to.equal(255); - expect(BufferUtil.integerAsBuffer(4294967295)[3]).to.equal(255); - expect(BufferUtil.integerAsBuffer(-1)[0]).to.equal(255); - expect(BufferUtil.integerAsBuffer(-1)[3]).to.equal(255); - }); - it('does a round trip', function() { - expect(BufferUtil.integerFromBuffer( - BufferUtil.integerAsBuffer(10000) - )).to.equal(10000); - }); - }); - - describe('buffer to hex', function() { - it('returns an expected value in hexa', function() { - expect(BufferUtil.bufferToHex(new Buffer([255, 0, 128]))).to.equal('ff0080'); - }); - it('checks the argument type', function() { - expect(function() { - BufferUtil.bufferToHex('invalid'); - }).to.throw(errors.InvalidArgumentType); - }); - it('round trips', function() { - var original = new Buffer([255, 0, 128]); - var hexa = BufferUtil.bufferToHex(original); - var back = BufferUtil.hexToBuffer(hexa); - expect(BufferUtil.equal(original, back)).to.equal(true); - }); - }); - - describe('reverse', function() { - it('reverses a buffer', function() { - // http://bit.ly/1J2Ai4x - var original = new Buffer([255, 0, 128]); - var reversed = BufferUtil.reverse(original); - original[0].should.equal(reversed[2]); - original[1].should.equal(reversed[1]); - original[2].should.equal(reversed[0]); - }); - }); -}); diff --git a/test/util/js.js b/test/util/js.js deleted file mode 100644 index 0928b8d..0000000 --- a/test/util/js.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; -/* jshint unused: false */ - -var should = require('chai').should(); -var expect = require('chai').expect; - -var bitcore = require('../..'); -var JSUtil = bitcore.util.js; - -describe('js utils', function() { - - describe('isValidJSON', function() { - - var hexa = '8080808080808080808080808080808080808080808080808080808080808080'; - var json = '{"key": ["value", "value2"]}'; - var json2 = '["value", "value2", {"key": "value"}]'; - - it('does not mistake an integer as valid json object', function() { - var valid = JSUtil.isValidJSON(hexa); - valid.should.equal(false); - }); - - it('correctly validates a json object', function() { - var valid = JSUtil.isValidJSON(json); - valid.should.equal(true); - }); - - it('correctly validates an array json object', function() { - var valid = JSUtil.isValidJSON(json); - valid.should.equal(true); - }); - - }); - - describe('isNaturalNumber', function() { - it('false for float', function() { - var a = JSUtil.isNaturalNumber(0.1); - a.should.equal(false); - }); - - it('false for string float', function() { - var a = JSUtil.isNaturalNumber('0.1'); - a.should.equal(false); - }); - - it('false for string integer', function() { - var a = JSUtil.isNaturalNumber('1'); - a.should.equal(false); - }); - - it('false for negative integer', function() { - var a = JSUtil.isNaturalNumber(-1); - a.should.equal(false); - }); - - it('false for negative integer string', function() { - var a = JSUtil.isNaturalNumber('-1'); - a.should.equal(false); - }); - - it('false for infinity', function() { - var a = JSUtil.isNaturalNumber(Infinity); - a.should.equal(false); - }); - - it('false for NaN', function() { - var a = JSUtil.isNaturalNumber(NaN); - a.should.equal(false); - }); - - it('true for zero', function() { - var a = JSUtil.isNaturalNumber(0); - a.should.equal(true); - }); - - it('true for positive integer', function() { - var a = JSUtil.isNaturalNumber(1000); - a.should.equal(true); - }); - - }); - -}); diff --git a/test/util/preconditions.js b/test/util/preconditions.js deleted file mode 100644 index 74a727f..0000000 --- a/test/util/preconditions.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; - -var should = require('chai').should(); - -var bitcore = require('../..'); -var errors = bitcore.errors; -var $ = bitcore.util.preconditions; -var PrivateKey = bitcore.PrivateKey; - -describe('preconditions', function() { - - it('can be used to assert state', function() { - (function() { - $.checkState(false, 'testing'); - }).should.throw(errors.InvalidState); - }); - it('throws no false negative', function() { - (function() { - $.checkState(true, 'testing'); - }).should.not.throw(); - }); - - it('can be used to check an argument', function() { - (function() { - $.checkArgument(false, 'testing'); - }).should.throw(errors.InvalidArgument); - - (function() { - $.checkArgument(true, 'testing'); - }).should.not.throw(errors.InvalidArgument); - }); - - it('can be used to check an argument type', function() { - var error; - try { - $.checkArgumentType(1, 'string', 'argumentName'); - } catch (e) { - error = e; - e.message.should.equal('Invalid Argument for argumentName, expected string but got number'); - } - should.exist(error); - }); - it('has no false negatives when used to check an argument type', function() { - (function() { - $.checkArgumentType('a String', 'string', 'argumentName'); - }).should.not.throw(); - }); - - it('can be used to check an argument type for a class', function() { - var error; - try { - $.checkArgumentType(1, PrivateKey); - } catch (e) { - error = e; - var fail = !(~e.message.indexOf('Invalid Argument for (unknown name)')); - fail.should.equal(false); - } - should.exist(error); - }); - it('has no false negatives when checking a type for a class', function() { - (function() { - $.checkArgumentType(new PrivateKey(), PrivateKey); - }).should.not.throw(); - }); - - it('formats correctly a message on InvalidArgument()', function() { - var error = new errors.InvalidArgument(); - error.message.should.equal('Invalid Argument'); - }); - - it('formats correctly a message on checkArgument', function() { - var error; - try { - $.checkArgument(null, 'parameter must be provided'); - } catch (e) { - error = e; - } - error.message.should.equal('Invalid Argument: parameter must be provided'); - }); -}); diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..105736a --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,13 @@ +const path = require('path'); + +module.exports = { + mode: 'production', + entry: './main.js', + output: { + path: path.resolve(__dirname, './dist'), + filename: 'wicc-wallet-lib.js', + library: 'WiccWalletApi', + libraryTarget: 'umd', + globalObject: 'this' + } +} From bc99c0768756c07e12fafce4586703d9d2ebc9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 24 Oct 2019 19:53:18 +0800 Subject: [PATCH 03/33] update --- demo/data/bip69.json | 215 +++++ demo/data/bitcoind/base58_keys_invalid.json | 152 ++++ demo/data/bitcoind/base58_keys_valid.json | 452 +++++++++++ demo/data/bitcoind/blocks.json | 27 + demo/data/bitcoind/script_invalid.json | 672 ++++++++++++++++ demo/data/bitcoind/script_valid.json | 821 ++++++++++++++++++++ demo/data/bitcoind/sig_canonical.json | 7 + demo/data/bitcoind/sig_noncanonical.json | 22 + demo/data/bitcoind/tx_invalid.json | 174 +++++ demo/data/bitcoind/tx_valid.json | 224 ++++++ demo/data/blk86756-testnet.dat | Bin 0 -> 9500 bytes demo/data/blk86756-testnet.js | 12 + demo/data/blk86756-testnet.json | 684 ++++++++++++++++ demo/data/contract-hello.lua | 47 ++ demo/data/ecdsa.json | 230 ++++++ demo/data/merkleblocks.js | 486 ++++++++++++ demo/data/messages.json | 22 + demo/data/sighash.json | 503 ++++++++++++ demo/data/tx_creation.json | 85 ++ demo/index.js | 8 + demo/test-assetcreatetx.js | 78 ++ demo/test-assetupdatetx.js | 85 ++ demo/test-callcontracttx.js | 50 ++ demo/test-cancelordertx.js | 41 + demo/test-cdpliquidatetx.js | 52 ++ demo/test-cdpredeemtx.js | 55 ++ demo/test-cdpstaketx.js | 63 ++ demo/test-commontx.js | 48 ++ demo/test-delegatetx.js | 54 ++ demo/test-dexbuylimitordertx.js | 50 ++ demo/test-dexbuymarketordertx.js | 47 ++ demo/test-dexselllimitordertx.js | 41 + demo/test-dexsellmarketordertx.js | 40 + demo/test-fcoinstake.js | 50 ++ demo/test-messagevertify.js | 20 + demo/test-registeraccounttx.js | 41 + demo/test-registercontracttx.js | 60 ++ demo/test-ucointransfertx.js | 58 ++ demo/test-ucontractinvoketx.js | 52 ++ demo/test-wallet.js | 53 ++ dist/wicc-wallet-lib.js | 16 +- index.js | 5 + main.js | 2 - package.json | 3 +- src/lib/transaction/cpricefeedtx.js | 153 ---- src/lib/wiccapi.js | 4 - webpack.config.js | 2 +- 47 files changed, 5897 insertions(+), 169 deletions(-) create mode 100644 demo/data/bip69.json create mode 100644 demo/data/bitcoind/base58_keys_invalid.json create mode 100644 demo/data/bitcoind/base58_keys_valid.json create mode 100644 demo/data/bitcoind/blocks.json create mode 100644 demo/data/bitcoind/script_invalid.json create mode 100644 demo/data/bitcoind/script_valid.json create mode 100644 demo/data/bitcoind/sig_canonical.json create mode 100644 demo/data/bitcoind/sig_noncanonical.json create mode 100644 demo/data/bitcoind/tx_invalid.json create mode 100644 demo/data/bitcoind/tx_valid.json create mode 100644 demo/data/blk86756-testnet.dat create mode 100644 demo/data/blk86756-testnet.js create mode 100644 demo/data/blk86756-testnet.json create mode 100644 demo/data/contract-hello.lua create mode 100644 demo/data/ecdsa.json create mode 100644 demo/data/merkleblocks.js create mode 100644 demo/data/messages.json create mode 100644 demo/data/sighash.json create mode 100644 demo/data/tx_creation.json create mode 100644 demo/index.js create mode 100644 demo/test-assetcreatetx.js create mode 100644 demo/test-assetupdatetx.js create mode 100644 demo/test-callcontracttx.js create mode 100644 demo/test-cancelordertx.js create mode 100644 demo/test-cdpliquidatetx.js create mode 100644 demo/test-cdpredeemtx.js create mode 100644 demo/test-cdpstaketx.js create mode 100644 demo/test-commontx.js create mode 100644 demo/test-delegatetx.js create mode 100644 demo/test-dexbuylimitordertx.js create mode 100644 demo/test-dexbuymarketordertx.js create mode 100644 demo/test-dexselllimitordertx.js create mode 100644 demo/test-dexsellmarketordertx.js create mode 100644 demo/test-fcoinstake.js create mode 100644 demo/test-messagevertify.js create mode 100644 demo/test-registeraccounttx.js create mode 100644 demo/test-registercontracttx.js create mode 100644 demo/test-ucointransfertx.js create mode 100644 demo/test-ucontractinvoketx.js create mode 100644 demo/test-wallet.js create mode 100644 index.js delete mode 100644 main.js delete mode 100644 src/lib/transaction/cpricefeedtx.js diff --git a/demo/data/bip69.json b/demo/data/bip69.json new file mode 100644 index 0000000..7a46d81 --- /dev/null +++ b/demo/data/bip69.json @@ -0,0 +1,215 @@ +{ + "inputs": [ + { + "description": "Ordered by txId, descending (reverse-byte-order ascending)", + "inputs": [ + { + "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "vout": 0 + }, + { + "txId": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "vout": 0 + }, + { + "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + "vout": 0 + }, + { + "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbff", + "vout": 0 + }, + { + "txId": "ffbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + "vout": 0 + } + ], + "expected": [0, 2, 3, 1, 4] + }, + { + "description": "Ordered by vout, ascending", + "inputs": [ + { + "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "vout": 1 + }, + { + "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "vout": 2 + }, + { + "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "vout": 0 + } + ], + "expected": [2, 0, 1] + }, + { + "description": "Ordered by txId, then vout", + "inputs": [ + { + "txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "vout": 99 + }, + { + "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + "vout": 99 + }, + { + "txId": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "vout": 0 + }, + { + "txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + "vout": 0 + } + ], + "expected": [0, 3, 1, 2] + }, + { + "description": "BIP69 test vector 1", + "inputs": [ + { "txId": "0e53ec5dfb2cb8a71fec32dc9a634a35b7e24799295ddd5278217822e0b31f57", "vout": 0 }, + { "txId": "26aa6e6d8b9e49bb0630aac301db6757c02e3619feb4ee0eea81eb1672947024", "vout": 1 }, + { "txId": "28e0fdd185542f2c6ea19030b0796051e7772b6026dd5ddccd7a2f93b73e6fc2", "vout": 0 }, + { "txId": "381de9b9ae1a94d9c17f6a08ef9d341a5ce29e2e60c36a52d333ff6203e58d5d", "vout": 1 }, + { "txId": "3b8b2f8efceb60ba78ca8bba206a137f14cb5ea4035e761ee204302d46b98de2", "vout": 0 }, + { "txId": "402b2c02411720bf409eff60d05adad684f135838962823f3614cc657dd7bc0a", "vout": 1 }, + { "txId": "54ffff182965ed0957dba1239c27164ace5a73c9b62a660c74b7b7f15ff61e7a", "vout": 1 }, + { "txId": "643e5f4e66373a57251fb173151e838ccd27d279aca882997e005016bb53d5aa", "vout": 0 }, + { "txId": "6c1d56f31b2de4bfc6aaea28396b333102b1f600da9c6d6149e96ca43f1102b1", "vout": 1 }, + { "txId": "7a1de137cbafb5c70405455c49c5104ca3057a1f1243e6563bb9245c9c88c191", "vout": 0 }, + { "txId": "7d037ceb2ee0dc03e82f17be7935d238b35d1deabf953a892a4507bfbeeb3ba4", "vout": 1 }, + { "txId": "a5e899dddb28776ea9ddac0a502316d53a4a3fca607c72f66c470e0412e34086", "vout": 0 }, + { "txId": "b4112b8f900a7ca0c8b0e7c4dfad35c6be5f6be46b3458974988e1cdb2fa61b8", "vout": 0 }, + { "txId": "bafd65e3c7f3f9fdfdc1ddb026131b278c3be1af90a4a6ffa78c4658f9ec0c85", "vout": 0 }, + { "txId": "de0411a1e97484a2804ff1dbde260ac19de841bebad1880c782941aca883b4e9", "vout": 1 }, + { "txId": "f0a130a84912d03c1d284974f563c5949ac13f8342b8112edff52971599e6a45", "vout": 0 }, + { "txId": "f320832a9d2e2452af63154bc687493484a0e7745ebd3aaf9ca19eb80834ad60", "vout": 0 } + ], + "expected": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] + }, + { + "description": "BIP69 test vector 2", + "inputs": [ + { "txId": "35288d269cee1941eaebb2ea85e32b42cdb2b04284a56d8b14dcc3f5c65d6055", "vout": 0 }, + { "txId": "35288d269cee1941eaebb2ea85e32b42cdb2b04284a56d8b14dcc3f5c65d6055", "vout": 1 } + ], + "expected": [0, 1] + } + ], + "outputs": [ + { + "description": "Ordered by Amount, ascending", + "outputs": [ + { + "script": "00000000", + "value": 3000 + }, + { + "script": "00000000", + "value": 2000 + }, + { + "script": "00000000", + "value": 1000 + } + ], + "expected": [2, 1, 0] + }, + { + "description": "Ordered by Script, ascending", + "outputs": [ + { + "script": "00000000", + "value": 1000 + }, + { + "script": "22222222", + "value": 1000 + }, + { + "script": "11111111", + "value": 1000 + } + ], + "expected": [0, 2, 1] + }, + { + "description": "Ordered by Amount, then Script", + "outputs": [ + { + "script": "11111111", + "value": 1000 + }, + { + "script": "11111111", + "value": 2000 + }, + { + "script": "00000000", + "value": 3000 + }, + { + "script": "00000000", + "value": 2000 + } + ], + "expected": [0, 3, 1, 2] + }, + { + "description": "Sorting is irrelevant for equivalent outputs", + "outputs": [ + { + "script": "00000000", + "value": 2000 + }, + { + "script": "11111111", + "value": 2000 + }, + { + "script": "00000000", + "value": 2000 + }, + { + "script": "11111111", + "value": 3000 + }, + { + "script": "22222222", + "value": 3000 + } + ], + "expected": [0, 2, 1, 3, 4] + }, + { + "description": "BIP69 test vector 1", + "outputs": [ + { + "script": "76a9144a5fba237213a062f6f57978f796390bdcf8d01588ac", + "value": 400057456 + }, + { + "script": "76a9145be32612930b8323add2212a4ec03c1562084f8488ac", + "value": 40000000000 + } + ], + "expected": [0, 1] + }, + { + "description": "BIP69 test vector 2", + "outputs": [ + { + "script": "41046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac", + "value": 100000000 + }, + { + "script": "41044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac", + "value": 2400000000 + } + ], + "expected": [0, 1] + } + ] +} diff --git a/demo/data/bitcoind/base58_keys_invalid.json b/demo/data/bitcoind/base58_keys_invalid.json new file mode 100644 index 0000000..615fe55 --- /dev/null +++ b/demo/data/bitcoind/base58_keys_invalid.json @@ -0,0 +1,152 @@ +[ + [ + "" + ], + [ + "x" + ], + [ + "37qgekLpCCHrQuSjvX3fs496FWTGsHFHizjJAs6NPcR47aefnnCWECAhHV6E3g4YN7u7Yuwod5Y" + ], + [ + "dzb7VV1Ui55BARxv7ATxAtCUeJsANKovDGWFVgpTbhq9gvPqP3yv" + ], + [ + "MuNu7ZAEDFiHthiunm7dPjwKqrVNCM3mAz6rP9zFveQu14YA8CxExSJTHcVP9DErn6u84E6Ej7S" + ], + [ + "rPpQpYknyNQ5AEHuY6H8ijJJrYc2nDKKk9jjmKEXsWzyAQcFGpDLU2Zvsmoi8JLR7hAwoy3RQWf" + ], + [ + "4Uc3FmN6NQ6zLBK5QQBXRBUREaaHwCZYsGCueHauuDmJpZKn6jkEskMB2Zi2CNgtb5r6epWEFfUJq" + ], + [ + "7aQgR5DFQ25vyXmqZAWmnVCjL3PkBcdVkBUpjrjMTcghHx3E8wb" + ], + [ + "17QpPprjeg69fW1DV8DcYYCKvWjYhXvWkov6MJ1iTTvMFj6weAqW7wybZeH57WTNxXVCRH4veVs" + ], + [ + "KxuACDviz8Xvpn1xAh9MfopySZNuyajYMZWz16Dv2mHHryznWUp3" + ], + [ + "7nK3GSmqdXJQtdohvGfJ7KsSmn3TmGqExug49583bDAL91pVSGq5xS9SHoAYL3Wv3ijKTit65th" + ], + [ + "cTivdBmq7bay3RFGEBBuNfMh2P1pDCgRYN2Wbxmgwr4ki3jNUL2va" + ], + [ + "gjMV4vjNjyMrna4fsAr8bWxAbwtmMUBXJS3zL4NJt5qjozpbQLmAfK1uA3CquSqsZQMpoD1g2nk" + ], + [ + "emXm1naBMoVzPjbk7xpeTVMFy4oDEe25UmoyGgKEB1gGWsK8kRGs" + ], + [ + "7VThQnNRj1o3Zyvc7XHPRrjDf8j2oivPTeDXnRPYWeYGE4pXeRJDZgf28ppti5hsHWXS2GSobdqyo" + ], + [ + "1G9u6oCVCPh2o8m3t55ACiYvG1y5BHewUkDSdiQarDcYXXhFHYdzMdYfUAhfxn5vNZBwpgUNpso" + ], + [ + "31QQ7ZMLkScDiB4VyZjuptr7AEc9j1SjstF7pRoLhHTGkW4Q2y9XELobQmhhWxeRvqcukGd1XCq" + ], + [ + "DHqKSnpxa8ZdQyH8keAhvLTrfkyBMQxqngcQA5N8LQ9KVt25kmGN" + ], + [ + "2LUHcJPbwLCy9GLH1qXmfmAwvadWw4bp4PCpDfduLqV17s6iDcy1imUwhQJhAoNoN1XNmweiJP4i" + ], + [ + "7USRzBXAnmck8fX9HmW7RAb4qt92VFX6soCnts9s74wxm4gguVhtG5of8fZGbNPJA83irHVY6bCos" + ], + [ + "1DGezo7BfVebZxAbNT3XGujdeHyNNBF3vnficYoTSp4PfK2QaML9bHzAMxke3wdKdHYWmsMTJVu" + ], + [ + "2D12DqDZKwCxxkzs1ZATJWvgJGhQ4cFi3WrizQ5zLAyhN5HxuAJ1yMYaJp8GuYsTLLxTAz6otCfb" + ], + [ + "8AFJzuTujXjw1Z6M3fWhQ1ujDW7zsV4ePeVjVo7D1egERqSW9nZ" + ], + [ + "163Q17qLbTCue8YY3AvjpUhotuaodLm2uqMhpYirsKjVqnxJRWTEoywMVY3NbBAHuhAJ2cF9GAZ" + ], + [ + "2MnmgiRH4eGLyLc9eAqStzk7dFgBjFtUCtu" + ], + [ + "461QQ2sYWxU7H2PV4oBwJGNch8XVTYYbZxU" + ], + [ + "2UCtv53VttmQYkVU4VMtXB31REvQg4ABzs41AEKZ8UcB7DAfVzdkV9JDErwGwyj5AUHLkmgZeobs" + ], + [ + "cSNjAsnhgtiFMi6MtfvgscMB2Cbhn2v1FUYfviJ1CdjfidvmeW6mn" + ], + [ + "gmsow2Y6EWAFDFE1CE4Hd3Tpu2BvfmBfG1SXsuRARbnt1WjkZnFh1qGTiptWWbjsq2Q6qvpgJVj" + ], + [ + "nksUKSkzS76v8EsSgozXGMoQFiCoCHzCVajFKAXqzK5on9ZJYVHMD5CKwgmX3S3c7M1U3xabUny" + ], + [ + "L3favK1UzFGgdzYBF2oBT5tbayCo4vtVBLJhg2iYuMeePxWG8SQc" + ], + [ + "7VxLxGGtYT6N99GdEfi6xz56xdQ8nP2dG1CavuXx7Rf2PrvNMTBNevjkfgs9JmkcGm6EXpj8ipyPZ" + ], + [ + "2mbZwFXF6cxShaCo2czTRB62WTx9LxhTtpP" + ], + [ + "dB7cwYdcPSgiyAwKWL3JwCVwSk6epU2txw" + ], + [ + "HPhFUhUAh8ZQQisH8QQWafAxtQYju3SFTX" + ], + [ + "4ctAH6AkHzq5ioiM1m9T3E2hiYEev5mTsB" + ], + [ + "Hn1uFi4dNexWrqARpjMqgT6cX1UsNPuV3cHdGg9ExyXw8HTKadbktRDtdeVmY3M1BxJStiL4vjJ" + ], + [ + "Sq3fDbvutABmnAHHExJDgPLQn44KnNC7UsXuT7KZecpaYDMU9Txs" + ], + [ + "6TqWyrqdgUEYDQU1aChMuFMMEimHX44qHFzCUgGfqxGgZNMUVWJ" + ], + [ + "giqJo7oWqFxNKWyrgcBxAVHXnjJ1t6cGoEffce5Y1y7u649Noj5wJ4mmiUAKEVVrYAGg2KPB3Y4" + ], + [ + "cNzHY5e8vcmM3QVJUcjCyiKMYfeYvyueq5qCMV3kqcySoLyGLYUK" + ], + [ + "37uTe568EYc9WLoHEd9jXEvUiWbq5LFLscNyqvAzLU5vBArUJA6eydkLmnMwJDjkL5kXc2VK7ig" + ], + [ + "EsYbG4tWWWY45G31nox838qNdzksbPySWc" + ], + [ + "nbuzhfwMoNzA3PaFnyLcRxE9bTJPDkjZ6Rf6Y6o2ckXZfzZzXBT" + ], + [ + "cQN9PoxZeCWK1x56xnz6QYAsvR11XAce3Ehp3gMUdfSQ53Y2mPzx" + ], + [ + "1Gm3N3rkef6iMbx4voBzaxtXcmmiMTqZPhcuAepRzYUJQW4qRpEnHvMojzof42hjFRf8PE2jPde" + ], + [ + "2TAq2tuN6x6m233bpT7yqdYQPELdTDJn1eU" + ], + [ + "ntEtnnGhqPii4joABvBtSEJG6BxjT2tUZqE8PcVYgk3RHpgxgHDCQxNbLJf7ardf1dDk2oCQ7Cf" + ], + [ + "Ky1YjoZNgQ196HJV3HpdkecfhRBmRZdMJk89Hi5KGfpfPwS2bUbfd" + ], + [ + "2A1q1YsMZowabbvta7kTy2Fd6qN4r5ZCeG3qLpvZBMzCixMUdkN2Y4dHB1wPsZAeVXUGD83MfRED" + ] +] diff --git a/demo/data/bitcoind/base58_keys_valid.json b/demo/data/bitcoind/base58_keys_valid.json new file mode 100644 index 0000000..4a8d352 --- /dev/null +++ b/demo/data/bitcoind/base58_keys_valid.json @@ -0,0 +1,452 @@ +[ + [ + "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", + "65a16059864a2fdbc7c99a4723a8395bc6f188eb", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou", + "74f209f6ea907e2ea48f74fae05782ae8a665257", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "mo9ncXisMeAoXwqcV5EWuyncbmCcQN4rVs", + "53c0307d6851aa0ce7825ba883c6bd9ad242b486", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2N2JD6wb56AfK4tfmM6PwdVmoYk2dCKf4Br", + "6349a418fc4578d10a372b54b45c280cc8c4382f", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr", + "eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD", + "55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "9213qJab2HNEpMpYNBa7wHGFKKbkDn24jpANDs2huN3yi4J11ko", + "36cb93b9ab1bdabf7fb9f2c04f1b9cc879933530ae7842398eef5a63a56800c2", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cTpB4YiyKiBcPxnefsDpbnDxFDffjqJob8wGCEDXxgQ7zQoMXJdH", + "b9f4892c9e8282028fea1d2667c4dc5213564d41fc5783896a0d843fc15089f3", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ", + "6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy", + "fcc5460dd6e2487c7d75b1963625da0e8f4c5975", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "n3ZddxzLvAY9o7184TB4c6FJasAybsw4HZ", + "f1d470f9b02370fdec2e6b708b08ac431bf7a5f7", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2NBFNJTktNa7GZusGbDbGKRZTxdK9VVez3n", + "c579342c2c4c9220205e2cdc285617040c924a0a", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc", + "a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi", + "7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "93DVKyFYwSN6wEo3E2fCrFPUp17FtrtNi2Lf7n4G3garFb16CRj", + "d6bca256b5abc5602ec2e1c121a08b0da2556587430bcf7e1898af2224885203", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cTDVKtMGVYWTHCb1AFjmVbEbWjvKpKqKgMaR3QJxToMSQAhmCeTN", + "a81ca4e8f90181ec4b61b6a7eb998af17b2cb04de8a03b504b9e34c4c61db7d9", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv", + "7987ccaa53d02c8873487ef919677cd3db7a6912", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks", + "63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "n3LnJXCqbPjghuVs8ph9CYsAe4Sh4j97wk", + "ef66444b5b17f14e8fae6e7e19b045a78c54fd79", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2NB72XtkjpnATMggui83aEtPawyyKvnbX2o", + "c3e55fceceaa4391ed2a9677f4a4d34eacd021a0", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9", + "e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT", + "8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "927CnUkUbasYtDwYwVn2j8GdTuACNnKkjZ1rpZd2yBB1CLcnXpo", + "44c4f6a096eac5238291a94cc24c01e3b19b8d8cef72874a079e00a242237a52", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cUcfCMRjiQf85YMzzQEk9d1s5A4K7xL5SmBCLrezqXFuTVefyhY7", + "d1de707020a9059d6d3abaf85e17967c6555151143db13dbb06db78df0f15c69", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu", + "adc1cc2081a27206fae25792f28bbc55b831549d", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk", + "188f91a931947eddd7432d6e614387e32b244709", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "mhaMcBxNh5cqXm4aTQ6EcVbKtfL6LGyK2H", + "1694f5bc1a7295b600f40018a618a6ea48eeb498", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2MxgPqX1iThW3oZVk9KoFcE5M4JpiETssVN", + "3b9b3fd7a50d4f08d1a5b0f62f644fa7115ae2f3", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR", + "091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8", + "ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "92xFEve1Z9N8Z641KQQS7ByCSb8kGjsDzw6fAmjHN1LZGKQXyMq", + "b4204389cef18bbe2b353623cbf93e8678fbc92a475b664ae98ed594e6cf0856", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cVM65tdYu1YK37tNoAyGoJTR13VBYFva1vg9FLuPAsJijGvG6NEA", + "e7b230133f1b5489843260236b06edca25f66adb1be455fbd38d4010d48faeef", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4", + "c4c1b72491ede1eedaca00618407ee0b772cad0d", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y", + "f6fe69bcb548a829cce4c57bf6fff8af3a5981f9", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "mizXiucXRCsEriQCHUkCqef9ph9qtPbZZ6", + "261f83568a098a8638844bd7aeca039d5f2352c0", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2NEWDzHWwY5ZZp8CQWbB7ouNMLqCia6YRda", + "e930e1834a4d234702773951d627cce82fbb5d2e", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg", + "d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi", + "b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "91cTVUcgydqyZLgaANpf1fvL55FH53QMm4BsnCADVNYuWuqdVys", + "037f4192c630f399d9271e26c575269b1d15be553ea1a7217f0cb8513cef41cb", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cQspfSzsgLeiJGB2u8vrAiWpCU4MxUT6JseWo2SjXy4Qbzn2fwDw", + "6251e205e8ad508bab5596bee086ef16cd4b239e0cc0c5d7c4e6035441e7d5de", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r", + "5eadaf9bb7121f0f192561a5a62f5e5f54210292", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3", + "3f210e7277c899c3a155cc1c90f4106cbddeec6e", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "myoqcgYiehufrsnnkqdqbp69dddVDMopJu", + "c8a3c2a09a298592c3e180f02487cd91ba3400b5", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "2N7FuwuUuoTBrDFdrAZ9KxBmtqMLxce9i1C", + "99b31df7c9068d1481b596578ddbb4d3bd90baeb", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": true + } + ], + [ + "5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4", + "c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2", + "07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": false + } + ], + [ + "93N87D6uxSBzwXvpokpzg8FFmfQPmvX4xHoWQe3pLdYpbiwT5YV", + "ea577acfb5d1d14d3b7b195c321566f12f87d2b77ea3a53f68df7ebf8604a801", + { + "isCompressed": false, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "cMxXusSihaX58wpJ3tNuuUcZEQGt6DKJ1wEpxys88FFaQCYjku9h", + "0b3b34f0958d8a268193a9814da92c3e8b58b4a4378a542863e34ac289cd830c", + { + "isCompressed": true, + "isPrivkey": true, + "isTestnet": true + } + ], + [ + "13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE", + "1ed467017f043e91ed4c44b4e8dd674db211c4e6", + { + "addrType": "pubkey", + "isPrivkey": false, + "isTestnet": false + } + ], + [ + "3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G", + "5ece0cadddc415b1980f001785947120acdb36fc", + { + "addrType": "script", + "isPrivkey": false, + "isTestnet": false + } + ] +] diff --git a/demo/data/bitcoind/blocks.json b/demo/data/bitcoind/blocks.json new file mode 100644 index 0000000..8f7ceb8 --- /dev/null +++ b/demo/data/bitcoind/blocks.json @@ -0,0 +1,27 @@ +[ + { + "comment": "A random real block (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 transactions", + "transactions": 9, + "data": "0100000090f0a9f110702f808219ebea1173056042a714bad51b916cb6800000000000005275289558f51c9966699404ae2294730c3c9f9bda53523ce50e9b95e558da2fdb261b4d4c86041b1ab1bf930901000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07044c86041b0146ffffffff0100f2052a01000000434104e18f7afbe4721580e81e8414fc8c24d7cfacf254bb5c7b949450c3e997c2dc1242487a8169507b631eb3771f2b425483fb13102c4eb5d858eef260fe70fbfae0ac00000000010000000196608ccbafa16abada902780da4dc35dafd7af05fa0da08cf833575f8cf9e836000000004a493046022100dab24889213caf43ae6adc41cf1c9396c08240c199f5225acf45416330fd7dbd022100fe37900e0644bf574493a07fc5edba06dbc07c311b947520c2d514bc5725dcb401ffffffff0100f2052a010000001976a914f15d1921f52e4007b146dfa60f369ed2fc393ce288ac000000000100000001fb766c1288458c2bafcfec81e48b24d98ec706de6b8af7c4e3c29419bfacb56d000000008c493046022100f268ba165ce0ad2e6d93f089cfcd3785de5c963bb5ea6b8c1b23f1ce3e517b9f022100da7c0f21adc6c401887f2bfd1922f11d76159cbc597fbd756a23dcbb00f4d7290141042b4e8625a96127826915a5b109852636ad0da753c9e1d5606a50480cd0c40f1f8b8d898235e571fe9357d9ec842bc4bba1827daaf4de06d71844d0057707966affffffff0280969800000000001976a9146963907531db72d0ed1a0cfb471ccb63923446f388ac80d6e34c000000001976a914f0688ba1c0d1ce182c7af6741e02658c7d4dfcd388ac000000000100000002c40297f730dd7b5a99567eb8d27b78758f607507c52292d02d4031895b52f2ff010000008b483045022100f7edfd4b0aac404e5bab4fd3889e0c6c41aa8d0e6fa122316f68eddd0a65013902205b09cc8b2d56e1cd1f7f2fafd60a129ed94504c4ac7bdc67b56fe67512658b3e014104732012cb962afa90d31b25d8fb0e32c94e513ab7a17805c14ca4c3423e18b4fb5d0e676841733cb83abaf975845c9f6f2a8097b7d04f4908b18368d6fc2d68ecffffffffca5065ff9617cbcba45eb23726df6498a9b9cafed4f54cbab9d227b0035ddefb000000008a473044022068010362a13c7f9919fa832b2dee4e788f61f6f5d344a7c2a0da6ae740605658022006d1af525b9a14a35c003b78b72bd59738cd676f845d1ff3fc25049e01003614014104732012cb962afa90d31b25d8fb0e32c94e513ab7a17805c14ca4c3423e18b4fb5d0e676841733cb83abaf975845c9f6f2a8097b7d04f4908b18368d6fc2d68ecffffffff01001ec4110200000043410469ab4181eceb28985b9b4e895c13fa5e68d85761b7eee311db5addef76fa8621865134a221bd01f28ec9999ee3e021e60766e9d1f3458c115fb28650605f11c9ac000000000100000001cdaf2f758e91c514655e2dc50633d1e4c84989f8aa90a0dbc883f0d23ed5c2fa010000008b48304502207ab51be6f12a1962ba0aaaf24a20e0b69b27a94fac5adf45aa7d2d18ffd9236102210086ae728b370e5329eead9accd880d0cb070aea0c96255fae6c4f1ddcce1fd56e014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff02404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac002d3101000000001976a9141befba0cdc1ad56529371864d9f6cb042faa06b588ac000000000100000001b4a47603e71b61bc3326efd90111bf02d2f549b067f4c4a8fa183b57a0f800cb010000008a4730440220177c37f9a505c3f1a1f0ce2da777c339bd8339ffa02c7cb41f0a5804f473c9230220585b25a2ee80eb59292e52b987dad92acb0c64eced92ed9ee105ad153cdb12d001410443bd44f683467e549dae7d20d1d79cbdb6df985c6e9c029c8d0c6cb46cc1a4d3cf7923c5021b27f7a0b562ada113bc85d5fda5a1b41e87fe6e8802817cf69996ffffffff0280651406000000001976a9145505614859643ab7b547cd7f1f5e7e2a12322d3788ac00aa0271000000001976a914ea4720a7a52fc166c55ff2298e07baf70ae67e1b88ac00000000010000000586c62cd602d219bb60edb14a3e204de0705176f9022fe49a538054fb14abb49e010000008c493046022100f2bc2aba2534becbdf062eb993853a42bbbc282083d0daf9b4b585bd401aa8c9022100b1d7fd7ee0b95600db8535bbf331b19eed8d961f7a8e54159c53675d5f69df8c014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff03ad0e58ccdac3df9dc28a218bcf6f1997b0a93306faaa4b3a28ae83447b2179010000008b483045022100be12b2937179da88599e27bb31c3525097a07cdb52422d165b3ca2f2020ffcf702200971b51f853a53d644ebae9ec8f3512e442b1bcb6c315a5b491d119d10624c83014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff2acfcab629bbc8685792603762c921580030ba144af553d271716a95089e107b010000008b483045022100fa579a840ac258871365dd48cd7552f96c8eea69bd00d84f05b283a0dab311e102207e3c0ee9234814cfbb1b659b83671618f45abc1326b9edcc77d552a4f2a805c0014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffffdcdc6023bbc9944a658ddc588e61eacb737ddf0a3cd24f113b5a8634c517fcd2000000008b4830450221008d6df731df5d32267954bd7d2dda2302b74c6c2a6aa5c0ca64ecbabc1af03c75022010e55c571d65da7701ae2da1956c442df81bbf076cdbac25133f99d98a9ed34c014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffffe15557cd5ce258f479dfd6dc6514edf6d7ed5b21fcfa4a038fd69f06b83ac76e010000008b483045022023b3e0ab071eb11de2eb1cc3a67261b866f86bf6867d4558165f7c8c8aca2d86022100dc6e1f53a91de3efe8f63512850811f26284b62f850c70ca73ed5de8771fb451014104462e76fd4067b3a0aa42070082dcb0bf2f388b6495cf33d789904f07d0f55c40fbd4b82963c69b3dc31895d0c772c812b1d5fbcade15312ef1c0e8ebbb12dcd4ffffffff01404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac00000000010000000166d7577163c932b4f9690ca6a80b6e4eb001f0a2fa9023df5595602aae96ed8d000000008a4730440220262b42546302dfb654a229cefc86432b89628ff259dc87edd1154535b16a67e102207b4634c020a97c3e7bbd0d4d19da6aa2269ad9dded4026e896b213d73ca4b63f014104979b82d02226b3a4597523845754d44f13639e3bf2df5e82c6aab2bdc79687368b01b1ab8b19875ae3c90d661a3d0a33161dab29934edeb36aa01976be3baf8affffffff02404b4c00000000001976a9144854e695a02af0aeacb823ccbc272134561e0a1688ac40420f00000000001976a914abee93376d6b37b5c2940655a6fcaf1c8e74237988ac0000000001000000014e3f8ef2e91349a9059cb4f01e54ab2597c1387161d3da89919f7ea6acdbb371010000008c49304602210081f3183471a5ca22307c0800226f3ef9c353069e0773ac76bb580654d56aa523022100d4c56465bdc069060846f4fbf2f6b20520b2a80b08b168b31e66ddb9c694e240014104976c79848e18251612f8940875b2b08d06e6dc73b9840e8860c066b7e87432c477e9a59a453e71e6d76d5fe34058b800a098fc1740ce3012e8fc8a00c96af966ffffffff02c0e1e400000000001976a9144134e75a6fcb6042034aab5e18570cf1f844f54788ac404b4c00000000001976a9142b6ba7c9d796b75eef7942fc9288edd37c32f5c388ac00000000" + }, + { + "comment": "Random real block (000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6) with 4 transactions", + "transactions": 4, + "data": "0100000075616236cc2126035fadb38deb65b9102cc2c41c09cdf29fc051906800000000fe7d5e12ef0ff901f6050211249919b1c0653771832b3a80c66cea42847f0ae1d4d26e49ffff001d00f0a4410401000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d029105ffffffff0100f2052a010000004341046d8709a041d34357697dfcb30a9d05900a6294078012bf3bb09c6f9b525f1d16d5503d7905db1ada9501446ea00728668fc5719aa80be2fdfc8a858a4dbdd4fbac00000000010000000255605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d28350000000049483045022100aa46504baa86df8a33b1192b1b9367b4d729dc41e389f2c04f3e5c7f0559aae702205e82253a54bf5c4f65b7428551554b2045167d6d206dfe6a2e198127d3f7df1501ffffffff55605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d2835010000004847304402202329484c35fa9d6bb32a55a70c0982f606ce0e3634b69006138683bcd12cbb6602200c28feb1e2555c3210f1dddb299738b4ff8bbe9667b68cb8764b5ac17b7adf0001ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac0000000001000000025f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028000000004847304402205d6058484157235b06028c30736c15613a28bdb768ee628094ca8b0030d4d6eb0220328789c9a2ec27ddaec0ad5ef58efded42e6ea17c2e1ce838f3d6913f5e95db601ffffffff5f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028010000004a493046022100c45af050d3cea806cedd0ab22520c53ebe63b987b8954146cdca42487b84bdd6022100b9b027716a6b59e640da50a864d6dd8a0ef24c76ce62391fa3eabaf4d2886d2d01ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac000000000100000002e2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b0000000048473044022016e7a727a061ea2254a6c358376aaa617ac537eb836c77d646ebda4c748aac8b0220192ce28bf9f2c06a6467e6531e27648d2b3e2e2bae85159c9242939840295ba501ffffffffe2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b010000004a493046022100b7a1a755588d4190118936e15cd217d133b0e4a53c3c15924010d5648d8925c9022100aaef031874db2114f2d869ac2de4ae53908fbfea5b2b1862e181626bb9005c9f01ffffffff0200e1f505000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00000000" + }, + { + "comment": "A random real block (000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6) with 4 transactions", + "transactions": 4, + "data": "0100000075616236cc2126035fadb38deb65b9102cc2c41c09cdf29fc051906800000000fe7d5e12ef0ff901f6050211249919b1c0653771832b3a80c66cea42847f0ae1d4d26e49ffff001d00f0a4410401000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d029105ffffffff0100f2052a010000004341046d8709a041d34357697dfcb30a9d05900a6294078012bf3bb09c6f9b525f1d16d5503d7905db1ada9501446ea00728668fc5719aa80be2fdfc8a858a4dbdd4fbac00000000010000000255605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d28350000000049483045022100aa46504baa86df8a33b1192b1b9367b4d729dc41e389f2c04f3e5c7f0559aae702205e82253a54bf5c4f65b7428551554b2045167d6d206dfe6a2e198127d3f7df1501ffffffff55605dc6f5c3dc148b6da58442b0b2cd422be385eab2ebea4119ee9c268d2835010000004847304402202329484c35fa9d6bb32a55a70c0982f606ce0e3634b69006138683bcd12cbb6602200c28feb1e2555c3210f1dddb299738b4ff8bbe9667b68cb8764b5ac17b7adf0001ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac0000000001000000025f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028000000004847304402205d6058484157235b06028c30736c15613a28bdb768ee628094ca8b0030d4d6eb0220328789c9a2ec27ddaec0ad5ef58efded42e6ea17c2e1ce838f3d6913f5e95db601ffffffff5f9a06d3acdceb56be1bfeaa3e8a25e62d182fa24fefe899d1c17f1dad4c2028010000004a493046022100c45af050d3cea806cedd0ab22520c53ebe63b987b8954146cdca42487b84bdd6022100b9b027716a6b59e640da50a864d6dd8a0ef24c76ce62391fa3eabaf4d2886d2d01ffffffff0200e1f505000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac000000000100000002e2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b0000000048473044022016e7a727a061ea2254a6c358376aaa617ac537eb836c77d646ebda4c748aac8b0220192ce28bf9f2c06a6467e6531e27648d2b3e2e2bae85159c9242939840295ba501ffffffffe2274e5fea1bf29d963914bd301aa63b64daaf8a3e88f119b5046ca5738a0f6b010000004a493046022100b7a1a755588d4190118936e15cd217d133b0e4a53c3c15924010d5648d8925c9022100aaef031874db2114f2d869ac2de4ae53908fbfea5b2b1862e181626bb9005c9f01ffffffff0200e1f505000000004341044a656f065871a353f216ca26cef8dde2f03e8c16202d2e8ad769f02032cb86a5eb5e56842e92e19141d60a01928f8dd2c875a390f67c1f6c94cfc617c0ea45afac00180d8f000000004341046a0765b5865641ce08dd39690aade26dfbf5511430ca428a3089261361cef170e3929a68aee3d8d4848b0c5111b0a37b82b86ad559fd2a745b44d8e8d9dfdc0cac00000000" + }, + { + "comment": "A random real block (000000000000dab0130bbcc991d3d7ae6b81aa6f50a798888dfe62337458dc45) with one tx", + "transactions": 1, + "data": "0100000079cda856b143d9db2c1caff01d1aecc8630d30625d10e8b4b8b0000000000000b50cc069d6a3e33e3ff84a5c41d9d3febe7c770fdcc96b2c3ff60abe184f196367291b4d4c86041b8fa45d630101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff08044c86041b020a02ffffffff0100f2052a01000000434104ecd3229b0571c3be876feaac0442a9f13c5a572742927af1dc623353ecf8c202225f64868137a18cdd85cbbb4c74fbccfd4f49639cf1bdc94a5672bb15ad5d4cac00000000" + }, + { + "comment": "A random real block (000000000000b731f2eef9e8c63173adfb07e41bd53eb0ef0a6b720d6cb6dea4) with 7 transactions", + "transactions": 7, + "data": "0100000082bb869cf3a793432a66e826e05a6fc37469f8efb7421dc880670100000000007f16c5962e8bd963659c793ce370d95f093bc7e367117b3c30c1f8fdd0d9728776381b4d4c86041b554b85290701000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07044c86041b0136ffffffff0100f2052a01000000434104eaafc2314def4ca98ac970241bcab022b9c1e1f4ea423a20f134c876f2c01ec0f0dd5b2e86e7168cefe0d81113c3807420ce13ad1357231a2252247d97a46a91ac000000000100000001bcad20a6a29827d1424f08989255120bf7f3e9e3cdaaa6bb31b0737fe048724300000000494830450220356e834b046cadc0f8ebb5a8a017b02de59c86305403dad52cd77b55af062ea10221009253cd6c119d4729b77c978e1e2aa19f5ea6e0e52b3f16e32fa608cd5bab753901ffffffff02008d380c010000001976a9142b4b8072ecbba129b6453c63e129e643207249ca88ac0065cd1d000000001976a9141b8dd13b994bcfc787b32aeadf58ccb3615cbd5488ac000000000100000003fdacf9b3eb077412e7a968d2e4f11b9a9dee312d666187ed77ee7d26af16cb0b000000008c493046022100ea1608e70911ca0de5af51ba57ad23b9a51db8d28f82c53563c56a05c20f5a87022100a8bdc8b4a8acc8634c6b420410150775eb7f2474f5615f7fccd65af30f310fbf01410465fdf49e29b06b9a1582287b6279014f834edc317695d125ef623c1cc3aaece245bd69fcad7508666e9c74a49dc9056d5fc14338ef38118dc4afae5fe2c585caffffffff309e1913634ecb50f3c4f83e96e70b2df071b497b8973a3e75429df397b5af83000000004948304502202bdb79c596a9ffc24e96f4386199aba386e9bc7b6071516e2b51dda942b3a1ed022100c53a857e76b724fc14d45311eac5019650d415c3abb5428f3aae16d8e69bec2301ffffffff2089e33491695080c9edc18a428f7d834db5b6d372df13ce2b1b0e0cbcb1e6c10000000049483045022100d4ce67c5896ee251c810ac1ff9ceccd328b497c8f553ab6e08431e7d40bad6b5022033119c0c2b7d792d31f1187779c7bd95aefd93d90a715586d73801d9b47471c601ffffffff0100714460030000001976a914c7b55141d097ea5df7a0ed330cf794376e53ec8d88ac0000000001000000045bf0e214aa4069a3e792ecee1e1bf0c1d397cde8dd08138f4b72a00681743447000000008b48304502200c45de8c4f3e2c1821f2fc878cba97b1e6f8807d94930713aa1c86a67b9bf1e40221008581abfef2e30f957815fc89978423746b2086375ca8ecf359c85c2a5b7c88ad01410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffffd669f7d7958d40fc59d2253d88e0f248e29b599c80bbcec344a83dda5f9aa72c000000008a473044022078124c8beeaa825f9e0b30bff96e564dd859432f2d0cb3b72d3d5d93d38d7e930220691d233b6c0f995be5acb03d70a7f7a65b6bc9bdd426260f38a1346669507a3601410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95fffffffff878af0d93f5229a68166cf051fd372bb7a537232946e0a46f53636b4dafdaa4000000008c493046022100c717d1714551663f69c3c5759bdbb3a0fcd3fab023abc0e522fe6440de35d8290221008d9cbe25bffc44af2b18e81c58eb37293fd7fe1c2e7b46fc37ee8c96c50ab1e201410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffff27f2b668859cd7f2f894aa0fd2d9e60963bcd07c88973f425f999b8cbfd7a1e2000000008c493046022100e00847147cbf517bcc2f502f3ddc6d284358d102ed20d47a8aa788a62f0db780022100d17b2d6fa84dcaf1c95d88d7e7c30385aecf415588d749afd3ec81f6022cecd701410462bb73f76ca0994fcb8b4271e6fb7561f5c0f9ca0cf6485261c4a0dc894f4ab844c6cdfb97cd0b60ffb5018ffd6238f4d87270efb1d3ae37079b794a92d7ec95ffffffff0100c817a8040000001976a914b6efd80d99179f4f4ff6f4dd0a007d018c385d2188ac000000000100000001834537b2f1ce8ef9373a258e10545ce5a50b758df616cd4356e0032554ebd3c4000000008b483045022100e68f422dd7c34fdce11eeb4509ddae38201773dd62f284e8aa9d96f85099d0b002202243bd399ff96b649a0fad05fa759d6a882f0af8c90cf7632c2840c29070aec20141045e58067e815c2f464c6a2a15f987758374203895710c2d452442e28496ff38ba8f5fd901dc20e29e88477167fe4fc299bf818fd0d9e1632d467b2a3d9503b1aaffffffff0280d7e636030000001976a914f34c3e10eb387efe872acb614c89e78bfca7815d88ac404b4c00000000001976a914a84e272933aaf87e1715d7786c51dfaeb5b65a6f88ac00000000010000000143ac81c8e6f6ef307dfe17f3d906d999e23e0189fda838c5510d850927e03ae7000000008c4930460221009c87c344760a64cb8ae6685a3eec2c1ac1bed5b88c87de51acd0e124f266c16602210082d07c037359c3a257b5c63ebd90f5a5edf97b2ac1c434b08ca998839f346dd40141040ba7e521fa7946d12edbb1d1e95a15c34bd4398195e86433c92b431cd315f455fe30032ede69cad9d1e1ed6c3c4ec0dbfced53438c625462afb792dcb098544bffffffff0240420f00000000001976a9144676d1b820d63ec272f1900d59d43bc6463d96f888ac40420f00000000001976a914648d04341d00d7968b3405c034adc38d4d8fb9bd88ac00000000010000000248cc917501ea5c55f4a8d2009c0567c40cfe037c2e71af017d0a452ff705e3f1000000008b483045022100bf5fdc86dc5f08a5d5c8e43a8c9d5b1ed8c65562e280007b52b133021acd9acc02205e325d613e555f772802bf413d36ba807892ed1a690a77811d3033b3de226e0a01410429fa713b124484cb2bd7b5557b2c0b9df7b2b1fee61825eadc5ae6c37a9920d38bfccdc7dc3cb0c47d7b173dbc9db8d37db0a33ae487982c59c6f8606e9d1791ffffffff41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068000000008b4830450221008513ad65187b903aed1102d1d0c47688127658c51106753fed0151ce9c16b80902201432b9ebcb87bd04ceb2de66035fbbaf4bf8b00d1cfe41f1a1f7338f9ad79d210141049d4cf80125bf50be1709f718c07ad15d0fc612b7da1f5570dddc35f2a352f0f27c978b06820edca9ef982c35fda2d255afba340068c5035552368bc7200c1488ffffffff0100093d00000000001976a9148edb68822f1ad580b043c7b3df2e400f8699eb4888ac00000000" + } +] diff --git a/demo/data/bitcoind/script_invalid.json b/demo/data/bitcoind/script_invalid.json new file mode 100644 index 0000000..86d39b5 --- /dev/null +++ b/demo/data/bitcoind/script_invalid.json @@ -0,0 +1,672 @@ +[ +["Format is: [scriptPubKey, scriptSig, flags, ... comments]"], +["It is evaluated as if there was a crediting coinbase transaction with two 0"], +["pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,"], +["followed by a spending transaction which spends this output as only input (and"], +["correct prevout hash), using the given scriptSig. All nLockTimes are 0, all"], +["nSequences are max."], + +["", "DEPTH", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"], +[" ", "DEPTH", "P2SH,STRICTENC", "and multiple spaces should not change that."], +[" ", "DEPTH", "P2SH,STRICTENC"], +[" ", "DEPTH", "P2SH,STRICTENC"], + +["", "", "P2SH,STRICTENC"], +["", "NOP", "P2SH,STRICTENC"], +["", "NOP DEPTH", "P2SH,STRICTENC"], +["NOP", "", "P2SH,STRICTENC"], +["NOP", "DEPTH", "P2SH,STRICTENC"], +["NOP","NOP", "P2SH,STRICTENC"], +["NOP","NOP DEPTH", "P2SH,STRICTENC"], + +["DEPTH", "", "P2SH,STRICTENC"], + +["0x4c01","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA1 with not enough bytes"], +["0x4d0200ff","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA2 with not enough bytes"], +["0x4e03000000ffff","0x01 NOP", "P2SH,STRICTENC", "PUSHDATA4 with not enough bytes"], + +["1", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved"], +["0x52", "0x5f ADD 0x60 EQUAL", "P2SH,STRICTENC", "0x51 through 0x60 push 1 through 16 onto stack"], +["0","NOP", "P2SH,STRICTENC"], +["1", "IF VER ELSE 1 ENDIF", "P2SH,STRICTENC", "VER non-functional"], +["0", "IF VERIF ELSE 1 ENDIF", "P2SH,STRICTENC", "VERIF illegal everywhere"], +["0", "IF ELSE 1 ELSE VERIF ENDIF", "P2SH,STRICTENC", "VERIF illegal everywhere"], +["0", "IF VERNOTIF ELSE 1 ENDIF", "P2SH,STRICTENC", "VERNOTIF illegal everywhere"], +["0", "IF ELSE 1 ELSE VERNOTIF ENDIF", "P2SH,STRICTENC", "VERNOTIF illegal everywhere"], + +["1 IF", "1 ENDIF", "P2SH,STRICTENC", "IF/ENDIF can't span scriptSig/scriptPubKey"], +["1 IF 0 ENDIF", "1 ENDIF", "P2SH,STRICTENC"], +["1 ELSE 0 ENDIF", "1", "P2SH,STRICTENC"], +["0 NOTIF", "123", "P2SH,STRICTENC"], + +["0", "DUP IF ENDIF", "P2SH,STRICTENC"], +["0", "IF 1 ENDIF", "P2SH,STRICTENC"], +["0", "DUP IF ELSE ENDIF", "P2SH,STRICTENC"], +["0", "IF 1 ELSE ENDIF", "P2SH,STRICTENC"], +["0", "NOTIF ELSE 1 ENDIF", "P2SH,STRICTENC"], + +["0 1", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 0", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 0", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 1", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], + +["0 0", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 1", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 1", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], + +["1", "IF RETURN ELSE ELSE 1 ENDIF", "P2SH,STRICTENC", "Multiple ELSEs"], +["1", "IF 1 ELSE ELSE RETURN ENDIF", "P2SH,STRICTENC"], + +["1", "ENDIF", "P2SH,STRICTENC", "Malformed IF/ELSE/ENDIF sequence"], +["1", "ELSE ENDIF", "P2SH,STRICTENC"], +["1", "ENDIF ELSE", "P2SH,STRICTENC"], +["1", "ENDIF ELSE IF", "P2SH,STRICTENC"], +["1", "IF ELSE ENDIF ELSE", "P2SH,STRICTENC"], +["1", "IF ELSE ENDIF ELSE ENDIF", "P2SH,STRICTENC"], +["1", "IF ENDIF ENDIF", "P2SH,STRICTENC"], +["1", "IF ELSE ELSE ENDIF ENDIF", "P2SH,STRICTENC"], + +["1", "RETURN", "P2SH,STRICTENC"], +["1", "DUP IF RETURN ENDIF", "P2SH,STRICTENC"], + +["1", "RETURN 'data'", "P2SH,STRICTENC", "canonical prunable txout format"], +["0 IF", "RETURN ENDIF 1", "P2SH,STRICTENC", "still prunable because IF/ENDIF can't span scriptSig/scriptPubKey"], + +["0", "VERIFY 1", "P2SH,STRICTENC"], +["1", "VERIFY", "P2SH,STRICTENC"], +["1", "VERIFY 0", "P2SH,STRICTENC"], + +["1 TOALTSTACK", "FROMALTSTACK 1", "P2SH,STRICTENC", "alt stack not shared between sig/pubkey"], + +["IFDUP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["DROP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["DUP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["1", "DUP 1 ADD 2 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], +["NOP", "NIP", "P2SH,STRICTENC"], +["NOP", "1 NIP", "P2SH,STRICTENC"], +["NOP", "1 0 NIP", "P2SH,STRICTENC"], +["NOP", "OVER 1", "P2SH,STRICTENC"], +["1", "OVER", "P2SH,STRICTENC"], +["0 1", "OVER DEPTH 3 EQUALVERIFY", "P2SH,STRICTENC"], +["19 20 21", "PICK 19 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["NOP", "0 PICK", "P2SH,STRICTENC"], +["1", "-1 PICK", "P2SH,STRICTENC"], +["19 20 21", "0 PICK 20 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["19 20 21", "1 PICK 21 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["19 20 21", "2 PICK 22 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["NOP", "0 ROLL", "P2SH,STRICTENC"], +["1", "-1 ROLL", "P2SH,STRICTENC"], +["19 20 21", "0 ROLL 20 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["19 20 21", "1 ROLL 21 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["19 20 21", "2 ROLL 22 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["NOP", "ROT 1", "P2SH,STRICTENC"], +["NOP", "1 ROT 1", "P2SH,STRICTENC"], +["NOP", "1 2 ROT 1", "P2SH,STRICTENC"], +["NOP", "0 1 2 ROT", "P2SH,STRICTENC"], +["NOP", "SWAP 1", "P2SH,STRICTENC"], +["1", "SWAP 1", "P2SH,STRICTENC"], +["0 1", "SWAP 1 EQUALVERIFY", "P2SH,STRICTENC"], +["NOP", "TUCK 1", "P2SH,STRICTENC"], +["1", "TUCK 1", "P2SH,STRICTENC"], +["1 0", "TUCK DEPTH 3 EQUALVERIFY SWAP 2DROP", "P2SH,STRICTENC"], +["NOP", "2DUP 1", "P2SH,STRICTENC"], +["1", "2DUP 1", "P2SH,STRICTENC"], +["NOP", "3DUP 1", "P2SH,STRICTENC"], +["1", "3DUP 1", "P2SH,STRICTENC"], +["1 2", "3DUP 1", "P2SH,STRICTENC"], +["NOP", "2OVER 1", "P2SH,STRICTENC"], +["1", "2 3 2OVER 1", "P2SH,STRICTENC"], +["NOP", "2SWAP 1", "P2SH,STRICTENC"], +["1", "2 3 2SWAP 1", "P2SH,STRICTENC"], + +["'a' 'b'", "CAT", "P2SH,STRICTENC", "CAT disabled"], +["'a' 'b' 0", "IF CAT ELSE 1 ENDIF", "P2SH,STRICTENC", "CAT disabled"], +["'abc' 1 1", "SUBSTR", "P2SH,STRICTENC", "SUBSTR disabled"], +["'abc' 1 1 0", "IF SUBSTR ELSE 1 ENDIF", "P2SH,STRICTENC", "SUBSTR disabled"], +["'abc' 2 0", "IF LEFT ELSE 1 ENDIF", "P2SH,STRICTENC", "LEFT disabled"], +["'abc' 2 0", "IF RIGHT ELSE 1 ENDIF", "P2SH,STRICTENC", "RIGHT disabled"], + +["NOP", "SIZE 1", "P2SH,STRICTENC"], + +["'abc'", "IF INVERT ELSE 1 ENDIF", "P2SH,STRICTENC", "INVERT disabled"], +["1 2 0 IF AND ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "AND disabled"], +["1 2 0 IF OR ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "OR disabled"], +["1 2 0 IF XOR ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "XOR disabled"], +["2 0 IF 2MUL ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "2MUL disabled"], +["2 0 IF 2DIV ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "2DIV disabled"], +["2 2 0 IF MUL ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "MUL disabled"], +["2 2 0 IF DIV ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "DIV disabled"], +["2 2 0 IF MOD ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "MOD disabled"], +["2 2 0 IF LSHIFT ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "LSHIFT disabled"], +["2 2 0 IF RSHIFT ELSE 1 ENDIF", "NOP", "P2SH,STRICTENC", "RSHIFT disabled"], + +["0 1","EQUAL", "P2SH,STRICTENC"], +["1 1 ADD", "0 EQUAL", "P2SH,STRICTENC"], +["11 1 ADD 12 SUB", "11 EQUAL", "P2SH,STRICTENC"], + +["2147483648 0 ADD", "NOP", "P2SH,STRICTENC", "arithmetic operands must be in range [-2^31...2^31] "], +["-2147483648 0 ADD", "NOP", "P2SH,STRICTENC", "arithmetic operands must be in range [-2^31...2^31] "], +["2147483647 DUP ADD", "4294967294 NUMEQUAL", "P2SH,STRICTENC", "NUMEQUAL must be in numeric range"], +["'abcdef' NOT", "0 EQUAL", "P2SH,STRICTENC", "NOT is an arithmetic operand"], + +["2 DUP MUL", "4 EQUAL", "P2SH,STRICTENC", "disabled"], +["2 DUP DIV", "1 EQUAL", "P2SH,STRICTENC", "disabled"], +["2 2MUL", "4 EQUAL", "P2SH,STRICTENC", "disabled"], +["2 2DIV", "1 EQUAL", "P2SH,STRICTENC", "disabled"], +["7 3 MOD", "1 EQUAL", "P2SH,STRICTENC", "disabled"], +["2 2 LSHIFT", "8 EQUAL", "P2SH,STRICTENC", "disabled"], +["2 1 RSHIFT", "1 EQUAL", "P2SH,STRICTENC", "disabled"], + +["1","NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10 2 EQUAL", "P2SH,STRICTENC"], +["'NOP_1_to_10' NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10","'NOP_1_to_11' EQUAL", "P2SH,STRICTENC"], + +["Ensure 100% coverage of discouraged NOPS"], +["1", "NOP1", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP2", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP3", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP4", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP5", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP6", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP7", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP8", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP9", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], +["1", "NOP10", "P2SH,DISCOURAGE_UPGRADABLE_NOPS"], + +["NOP10", "1", "P2SH,DISCOURAGE_UPGRADABLE_NOPS", "Discouraged NOP10 in scriptSig"], + +["1 0x01 0xb9", "HASH160 0x14 0x15727299b05b45fdaf9ac9ecf7565cfe27c3e567 EQUAL", + "P2SH,DISCOURAGE_UPGRADABLE_NOPS", "Discouraged NOP10 in redeemScript"], + +["0x50","1", "P2SH,STRICTENC", "opcode 0x50 is reserved"], +["1", "IF 0xba ELSE 1 ENDIF", "P2SH,STRICTENC", "opcodes above NOP10 invalid if executed"], +["1", "IF 0xbb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xbc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xbd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xbe ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xbf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xc9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xca ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xcb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xcc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xcd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xce ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xcf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xd9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xda ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xdb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xdc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xe9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xea ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xeb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xec ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xed ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xee ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xef ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xf9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xfa ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xfb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xfc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xfd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xfe ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 0xff ELSE 1 ENDIF", "P2SH,STRICTENC"], + +["1 IF 1 ELSE", "0xff ENDIF", "P2SH,STRICTENC", "invalid because scriptSig and scriptPubKey are processed separately"], + +["NOP", "RIPEMD160", "P2SH,STRICTENC"], +["NOP", "SHA1", "P2SH,STRICTENC"], +["NOP", "SHA256", "P2SH,STRICTENC"], +["NOP", "HASH160", "P2SH,STRICTENC"], +["NOP", "HASH256", "P2SH,STRICTENC"], + +["NOP", +"'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'", +"P2SH,STRICTENC", +">520 byte push"], +["0", +"IF 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ENDIF 1", +"P2SH,STRICTENC", +">520 byte push in non-executed IF branch"], +["1", +"0x61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", +"P2SH,STRICTENC", +">201 opcodes executed. 0x61 is NOP"], +["0", +"IF 0x6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161 ENDIF 1", +"P2SH,STRICTENC", +">201 opcodes including non-executed IF branch. 0x61 is NOP"], +["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"1 2 3 4 5 6 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"P2SH,STRICTENC", +">1,000 stack size (0x6f is 3DUP)"], +["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"1 TOALTSTACK 2 TOALTSTACK 3 4 5 6 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"P2SH,STRICTENC", +">1,000 stack+altstack size"], +["NOP", +"0 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f 2DUP 0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", +"P2SH,STRICTENC", +"10,001-byte scriptPubKey"], + +["NOP1","NOP10", "P2SH,STRICTENC"], + +["1","VER", "P2SH,STRICTENC", "OP_VER is reserved"], +["1","VERIF", "P2SH,STRICTENC", "OP_VERIF is reserved"], +["1","VERNOTIF", "P2SH,STRICTENC", "OP_VERNOTIF is reserved"], +["1","RESERVED", "P2SH,STRICTENC", "OP_RESERVED is reserved"], +["1","RESERVED1", "P2SH,STRICTENC", "OP_RESERVED1 is reserved"], +["1","RESERVED2", "P2SH,STRICTENC", "OP_RESERVED2 is reserved"], +["1","0xba", "P2SH,STRICTENC", "0xba == OP_NOP10 + 1"], + +["2147483648", "1ADD 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers"], +["2147483648", "NEGATE 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers"], +["-2147483648", "1ADD 1", "P2SH,STRICTENC", "Because we use a sign bit, -2147483648 is also 5 bytes"], +["2147483647", "1ADD 1SUB 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers, even if the result is 4-bytes"], +["2147483648", "1SUB 1", "P2SH,STRICTENC", "We cannot do math on 5-byte integers, even if the result is 4-bytes"], + +["2147483648 1", "BOOLOR 1", "P2SH,STRICTENC", "We cannot do BOOLOR on 5-byte integers (but we can still do IF etc)"], +["2147483648 1", "BOOLAND 1", "P2SH,STRICTENC", "We cannot do BOOLAND on 5-byte integers"], + +["1", "1 ENDIF", "P2SH,STRICTENC", "ENDIF without IF"], +["1", "IF 1", "P2SH,STRICTENC", "IF without ENDIF"], +["1 IF 1", "ENDIF", "P2SH,STRICTENC", "IFs don't carry over"], + +["NOP", "IF 1 ENDIF", "P2SH,STRICTENC", "The following tests check the if(stack.size() < N) tests in each opcode"], +["NOP", "NOTIF 1 ENDIF", "P2SH,STRICTENC", "They are here to catch copy-and-paste errors"], +["NOP", "VERIFY 1", "P2SH,STRICTENC", "Most of them are duplicated elsewhere,"], + +["NOP", "TOALTSTACK 1", "P2SH,STRICTENC", "but, hey, more is always better, right?"], +["1", "FROMALTSTACK", "P2SH,STRICTENC"], +["1", "2DROP 1", "P2SH,STRICTENC"], +["1", "2DUP", "P2SH,STRICTENC"], +["1 1", "3DUP", "P2SH,STRICTENC"], +["1 1 1", "2OVER", "P2SH,STRICTENC"], +["1 1 1 1 1", "2ROT", "P2SH,STRICTENC"], +["1 1 1", "2SWAP", "P2SH,STRICTENC"], +["NOP", "IFDUP 1", "P2SH,STRICTENC"], +["NOP", "DROP 1", "P2SH,STRICTENC"], +["NOP", "DUP 1", "P2SH,STRICTENC"], +["1", "NIP", "P2SH,STRICTENC"], +["1", "OVER", "P2SH,STRICTENC"], +["1 1 1 3", "PICK", "P2SH,STRICTENC"], +["0", "PICK 1", "P2SH,STRICTENC"], +["1 1 1 3", "ROLL", "P2SH,STRICTENC"], +["0", "ROLL 1", "P2SH,STRICTENC"], +["1 1", "ROT", "P2SH,STRICTENC"], +["1", "SWAP", "P2SH,STRICTENC"], +["1", "TUCK", "P2SH,STRICTENC"], + +["NOP", "SIZE 1", "P2SH,STRICTENC"], + +["1", "EQUAL 1", "P2SH,STRICTENC"], +["1", "EQUALVERIFY 1", "P2SH,STRICTENC"], + +["NOP", "1ADD 1", "P2SH,STRICTENC"], +["NOP", "1SUB 1", "P2SH,STRICTENC"], +["NOP", "NEGATE 1", "P2SH,STRICTENC"], +["NOP", "ABS 1", "P2SH,STRICTENC"], +["NOP", "NOT 1", "P2SH,STRICTENC"], +["NOP", "0NOTEQUAL 1", "P2SH,STRICTENC"], + +["1", "ADD", "P2SH,STRICTENC"], +["1", "SUB", "P2SH,STRICTENC"], +["1", "BOOLAND", "P2SH,STRICTENC"], +["1", "BOOLOR", "P2SH,STRICTENC"], +["1", "NUMEQUAL", "P2SH,STRICTENC"], +["1", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], +["1", "NUMNOTEQUAL", "P2SH,STRICTENC"], +["1", "LESSTHAN", "P2SH,STRICTENC"], +["1", "GREATERTHAN", "P2SH,STRICTENC"], +["1", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["1", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], +["1", "MIN", "P2SH,STRICTENC"], +["1", "MAX", "P2SH,STRICTENC"], +["1 1", "WITHIN", "P2SH,STRICTENC"], + +["NOP", "RIPEMD160 1", "P2SH,STRICTENC"], +["NOP", "SHA1 1", "P2SH,STRICTENC"], +["NOP", "SHA256 1", "P2SH,STRICTENC"], +["NOP", "HASH160 1", "P2SH,STRICTENC"], +["NOP", "HASH256 1", "P2SH,STRICTENC"], + +["", +"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG", +"P2SH,STRICTENC", +"202 CHECKMULTISIGS, fails due to 201 op limit"], + +["1", +"0 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY", +"P2SH,STRICTENC"], + +["", +"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG", +"P2SH,STRICTENC", +"Fails due to 201 sig op limit"], + +["1", +"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY", +"P2SH,STRICTENC"], + + +["0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21", "21 CHECKMULTISIG 1", "P2SH,STRICTENC", "nPubKeys > 20"], +["0 'sig' 1 0", "CHECKMULTISIG 1", "P2SH,STRICTENC", "nSigs > nPubKeys"], + + +["NOP 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC", "Tests for Script.IsPushOnly()"], +["NOP1 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC"], + +["0 0x01 0x50", "HASH160 0x14 0xece424a6bb6ddf4db592c0faed60685047a361b1 EQUAL", "P2SH,STRICTENC", "OP_RESERVED in P2SH should fail"], +["0 0x01 VER", "HASH160 0x14 0x0f4d7845db968f2a81b530b6f3c1d6246d4c7e01 EQUAL", "P2SH,STRICTENC", "OP_VER in P2SH should fail"], + +["0x00", "'00' EQUAL", "P2SH,STRICTENC", "Basic OP_0 execution"], + +["MINIMALDATA enforcement for PUSHDATAs"], + +["0x4c 0x00", "DROP 1", "MINIMALDATA", "Empty vector minimally represented by OP_0"], +["0x01 0x81", "DROP 1", "MINIMALDATA", "-1 minimally represented by OP_1NEGATE"], +["0x01 0x01", "DROP 1", "MINIMALDATA", "1 to 16 minimally represented by OP_1 to OP_16"], +["0x01 0x02", "DROP 1", "MINIMALDATA"], +["0x01 0x03", "DROP 1", "MINIMALDATA"], +["0x01 0x04", "DROP 1", "MINIMALDATA"], +["0x01 0x05", "DROP 1", "MINIMALDATA"], +["0x01 0x06", "DROP 1", "MINIMALDATA"], +["0x01 0x07", "DROP 1", "MINIMALDATA"], +["0x01 0x08", "DROP 1", "MINIMALDATA"], +["0x01 0x09", "DROP 1", "MINIMALDATA"], +["0x01 0x0a", "DROP 1", "MINIMALDATA"], +["0x01 0x0b", "DROP 1", "MINIMALDATA"], +["0x01 0x0c", "DROP 1", "MINIMALDATA"], +["0x01 0x0d", "DROP 1", "MINIMALDATA"], +["0x01 0x0e", "DROP 1", "MINIMALDATA"], +["0x01 0x0f", "DROP 1", "MINIMALDATA"], +["0x01 0x10", "DROP 1", "MINIMALDATA"], + +["0x4c 0x48 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", + "PUSHDATA1 of 72 bytes minimally represented by direct push"], + +["0x4d 0xFF00 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", + "PUSHDATA2 of 255 bytes minimally represented by PUSHDATA1"], + +["0x4f 0x00100000 0x11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "DROP 1", "MINIMALDATA", + "PUSHDATA4 of 256 bytes minimally represented by PUSHDATA2"], + + +["MINIMALDATA enforcement for numeric arguments"], + +["0x01 0x00", "NOT DROP 1", "MINIMALDATA", "numequals 0"], +["0x02 0x0000", "NOT DROP 1", "MINIMALDATA", "numequals 0"], +["0x01 0x80", "NOT DROP 1", "MINIMALDATA", "0x80 (negative zero) numequals 0"], +["0x02 0x0080", "NOT DROP 1", "MINIMALDATA", "numequals 0"], +["0x02 0x0500", "NOT DROP 1", "MINIMALDATA", "numequals 5"], +["0x03 0x050000", "NOT DROP 1", "MINIMALDATA", "numequals 5"], +["0x02 0x0580", "NOT DROP 1", "MINIMALDATA", "numequals -5"], +["0x03 0x050080", "NOT DROP 1", "MINIMALDATA", "numequals -5"], +["0x03 0xff7f80", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffff"], +["0x03 0xff7f00", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xff7f"], +["0x04 0xffff7f80", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffffff"], +["0x04 0xffff7f00", "NOT DROP 1", "MINIMALDATA", "Minimal encoding is 0xffff7f"], + +["Test every numeric-accepting opcode for correct handling of the numeric minimal encoding rule"], + +["1 0x02 0x0000", "PICK DROP", "MINIMALDATA"], +["1 0x02 0x0000", "ROLL DROP 1", "MINIMALDATA"], +["0x02 0x0000", "1ADD DROP 1", "MINIMALDATA"], +["0x02 0x0000", "1SUB DROP 1", "MINIMALDATA"], +["0x02 0x0000", "NEGATE DROP 1", "MINIMALDATA"], +["0x02 0x0000", "ABS DROP 1", "MINIMALDATA"], +["0x02 0x0000", "NOT DROP 1", "MINIMALDATA"], +["0x02 0x0000", "0NOTEQUAL DROP 1", "MINIMALDATA"], + +["0 0x02 0x0000", "ADD DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "ADD DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "SUB DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "SUB DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "BOOLAND DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "BOOLAND DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "BOOLOR DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "BOOLOR DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "NUMEQUAL DROP 1", "MINIMALDATA"], +["0x02 0x0000 1", "NUMEQUAL DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "NUMEQUALVERIFY 1", "MINIMALDATA"], +["0x02 0x0000 0", "NUMEQUALVERIFY 1", "MINIMALDATA"], +["0 0x02 0x0000", "NUMNOTEQUAL DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "NUMNOTEQUAL DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "LESSTHAN DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "LESSTHAN DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "GREATERTHAN DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "GREATERTHAN DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "LESSTHANOREQUAL DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "LESSTHANOREQUAL DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "GREATERTHANOREQUAL DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "GREATERTHANOREQUAL DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "MIN DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "MIN DROP 1", "MINIMALDATA"], +["0 0x02 0x0000", "MAX DROP 1", "MINIMALDATA"], +["0x02 0x0000 0", "MAX DROP 1", "MINIMALDATA"], + +["0x02 0x0000 0 0", "WITHIN DROP 1", "MINIMALDATA"], +["0 0x02 0x0000 0", "WITHIN DROP 1", "MINIMALDATA"], +["0 0 0x02 0x0000", "WITHIN DROP 1", "MINIMALDATA"], + +["0 0 0x02 0x0000", "CHECKMULTISIG DROP 1", "MINIMALDATA"], +["0 0x02 0x0000 0", "CHECKMULTISIG DROP 1", "MINIMALDATA"], +["0 0x02 0x0000 0 1", "CHECKMULTISIG DROP 1", "MINIMALDATA"], +["0 0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", "MINIMALDATA"], +["0 0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", "MINIMALDATA"], + + +["Order of CHECKMULTISIG evaluation tests, inverted by swapping the order of"], +["pubkeys/signatures so they fail due to the STRICTENC rules on validly encoded"], +["signatures and pubkeys."], +[ + "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", + "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0 2 CHECKMULTISIG NOT", + "STRICTENC", + "2-of-2 CHECKMULTISIG NOT with the first pubkey invalid, and both signatures validly encoded." +], +[ + "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0", + "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", + "STRICTENC", + "2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but first signature invalid." +], + +["Automatically generated test cases"], +[ + "0x47 0x3044022053205076a7bb12d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801", + "0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", + "", + "P2PK, bad sig" +], +[ + "0x47 0x30440220151ea78fa148b59f399b23731b634645ebc142f299ee9838d46fb78cf7e0bc0102200d62327dcd54ac6bcfb1516b035b1bf8eaea438c52c62d3450d1f3a8f030e0de01 0x21 0x03363d90d446b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", + "DUP HASH160 0x14 0xc0834c0c158f53be706d234c38fd52de7eece656 EQUALVERIFY CHECKSIG", + "", + "P2PKH, bad pubkey" +], +[ + "0x47 0x304402204710a85181663b32d25c70ec2bbd14adff5ddfff6cb50d09e155ef5f541fc86c0220056b0cc949be9386ecc5f6c2ac0493269031dbb185781db90171b54ac127790201", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", + "", + "P2PK anyonecanpay marked with normal hashtype" +], +[ + "0x47 0x304402202166fcd5e607de452d3c6f15e059505cf21654346592f9650ba906b9e8be88fa022005d976d28eb8de477102feba28807b3ad361e7fa24796d259c9d61452f7c318c01 0x23 0x210279be667ef9dcbbac54a06295ce870b07029bfcdb2dce28d959f2815b16f81798ac", + "HASH160 0x14 0x23b0ad3477f2178bc0b3eed26e4e6316f4e83aa1 EQUAL", + "P2SH", + "P2SH(P2PK), bad redeemscript" +], +[ + "0x47 0x3044022064cc90ca89ad721384b231653b945579359a24b928ef8539b331172628c9cc6102203e238869ab5dac3fc293db53c12e7dd3079e86cfde9024b689efc7227e4d671001 0x19 0x76a9147cf9c846cd4882efec4bf07e44ebdad495c94f4b88ac", + "HASH160 0x14 0x2df519943d5acc0ef5222091f9dfe3543f489a82 EQUAL", + "P2SH", + "P2SH(P2PKH), bad sig" +], +[ + "0 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", + "", + "3-of-3, 2 sigs" +], +[ + "0 0x47 0x304402205b7d2c2f177ae76cfbbf14d589c113b0b35db753d305d5562dd0b61cbf366cfb02202e56f93c4f08a27f986cd424ffc48a462c3202c4902104d4d0ff98ed28f4bf8001 0 0x4c69 0x52210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179821038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f515082103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff464053ae", + "HASH160 0x14 0xc9e4a896d149702d0d1695434feddd52e24ad78d EQUAL", + "P2SH", + "P2SH(2-of-3), 1 sig" +], +[ + "0x47 0x30440220001d6702bfa4f49c3a2542af9b1c2844a2eaac55f86f310f42d26a5dd17d6a8002202cdadbe608c00b50dd951c6ba0877d5b07a970f3e265c18697bc413a0a86f69901", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "DERSIG", + "P2PK with too much R padding" +], +[ + "0x48 0x304502207d2b258e959605e2ea50b46fea1325b7391ffb0c14a5b58ef8ad3851da3644380221007e75136df5f2e38216c4338b31c97e8307102edb97d611e06914e1f8fba68ead01", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "DERSIG", + "P2PK with too much S padding" +], +[ + "0x47 0x30440220d7a0417c3f6d1a15094d1cf2a3378ca0503eb8a57630953a9e2987e21ddd0a6502207a6266d686c99090920249991d3d42065b6d43eb70187b219c0db82e4f94d1a201", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "DERSIG", + "P2PK with too little R padding" +], +[ + "0x47 0x30440220003040725f724b0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", + "DERSIG", + "P2PK NOT with bad sig with too much R padding" +], +[ + "0x47 0x30440220003040725f724a0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", + "", + "P2PK NOT with too much R padding but no DERSIG" +], +[ + "0x47 0x30440220003040725f724a0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", + "DERSIG", + "P2PK NOT with too much R padding" +], +[ + "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", + "LOW_S", + "P2PK with high S" +], +[ + "0x47 0x30440220745d63eb70d45652128b450aa5ca7d9b513439963f261cb1c40a60f0785e7ee402204877785b38945ca9dbec78e1c1d4dd12148cc25c868bd27480023b49ae0f310501", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", + "STRICTENC", + "P2PK with hybrid pubkey" +], +[ + "0x47 0x30440220606f6f9f6cebc94ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", + "", + "P2PK NOT with hybrid pubkey but no STRICTENC" +], +[ + "0x47 0x30440220606f6f9f6cebc94ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", + "STRICTENC", + "P2PK NOT with hybrid pubkey" +], +[ + "0x47 0x30440220606f6f9f6cebc84ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", + "STRICTENC", + "P2PK NOT with invalid hybrid pubkey" +], +[ + "0 0x47 0x304402203cdcf66792fe97e3955655ede5dad004950e58b369831ffa7743132c507b272c022031fbcfb4a72b3e00217abf2f5557585f1f9891f12827d2f0a2ae2978e7f9f11001", + "1 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 2 CHECKMULTISIG", + "STRICTENC", + "1-of-2 with the first 1 hybrid pubkey" +], +[ + "0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", + "STRICTENC", + "P2PK with undefined hashtype" +], +[ + "0x47 0x304402207409b5b320296e5e2136a7b281a7f803028ca4ca44e2b83eebd46932677725de02202d4eea1c8d3c98e6f42614f54764e6e5e6542e213eb4d079737e9a8b6e9812ec05", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG NOT", + "STRICTENC", + "P2PK NOT with invalid sig and undefined hashtype" +], +[ + "1 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", + "NULLDUMMY", + "3-of-3 with nonzero dummy" +], +[ + "1 0x47 0x304402201bb2edab700a5d020236df174fefed78087697143731f659bea59642c759c16d022061f42cdbae5bcd3e8790f20bf76687443436e94a634321c16a72aa54cbc7c2ea01 0x47 0x304402204bb4a64f2a6e5c7fb2f07fef85ee56fde5e6da234c6a984262307a20e99842d702206f8303aaba5e625d223897e2ffd3f88ef1bcffef55f38dc3768e5f2e94c923f901 0x47 0x3044022040c2809b71fffb155ec8b82fe7a27f666bd97f941207be4e14ade85a1249dd4d02204d56c85ec525dd18e29a0533d5ddf61b6b1bb32980c2f63edf951aebf7a27bfe01", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG NOT", + "NULLDUMMY", + "3-of-3 NOT with invalid sig with nonzero dummy" +], +[ + "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 DUP", + "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", + "SIGPUSHONLY", + "2-of-2 with two identical keys and sigs pushed using OP_DUP" +], +[ + "0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 0x23 0x2103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640ac", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", + "", + "P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY" +], +[ + "0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 0x23 0x2103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640ac", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", + "SIGPUSHONLY", + "P2SH(P2PK) with non-push scriptSig" +], + +["The End"] +] diff --git a/demo/data/bitcoind/script_valid.json b/demo/data/bitcoind/script_valid.json new file mode 100644 index 0000000..d3075de --- /dev/null +++ b/demo/data/bitcoind/script_valid.json @@ -0,0 +1,821 @@ +[ +["Format is: [scriptPubKey, scriptSig, flags, ... comments]"], +["It is evaluated as if there was a crediting coinbase transaction with two 0"], +["pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,"], +["followed by a spending transaction which spends this output as only input (and"], +["correct prevout hash), using the given scriptSig. All nLockTimes are 0, all"], +["nSequences are max."], + +["", "DEPTH 0 EQUAL", "P2SH,STRICTENC", "Test the test: we should have an empty stack after scriptSig evaluation"], +[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC", "and multiple spaces should not change that."], +[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +[" ", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC", "Similarly whitespace around and between symbols"], +["1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], +[" 1 2", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], +["1 2 ", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], +[" 1 2 ", "2 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], + +["1", "", "P2SH,STRICTENC"], +["0x02 0x01 0x00", "", "P2SH,STRICTENC", "all bytes are significant, not only the last one"], +["0x09 0x00000000 0x00000000 0x10", "", "P2SH,STRICTENC", "equals zero when cast to Int64"], + +["0x01 0x0b", "11 EQUAL", "P2SH,STRICTENC", "push 1 byte"], +["0x02 0x417a", "'Az' EQUAL", "P2SH,STRICTENC"], +["0x4b 0x417a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a", + "'Azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz' EQUAL", "P2SH,STRICTENC", "push 75 bytes"], + +["0x4c 0x01 0x07","7 EQUAL", "P2SH,STRICTENC", "0x4c is OP_PUSHDATA1"], +["0x4d 0x0100 0x08","8 EQUAL", "P2SH,STRICTENC", "0x4d is OP_PUSHDATA2"], +["0x4e 0x01000000 0x09","9 EQUAL", "P2SH,STRICTENC", "0x4e is OP_PUSHDATA4"], + +["0x4c 0x00","0 EQUAL", "P2SH,STRICTENC"], +["0x4d 0x0000","0 EQUAL", "P2SH,STRICTENC"], +["0x4e 0x00000000","0 EQUAL", "P2SH,STRICTENC"], +["0x4f 1000 ADD","999 EQUAL", "P2SH,STRICTENC"], +["0", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved (ok if not executed)"], +["0x51", "0x5f ADD 0x60 EQUAL", "P2SH,STRICTENC", "0x51 through 0x60 push 1 through 16 onto stack"], +["1","NOP", "P2SH,STRICTENC"], +["0", "IF VER ELSE 1 ENDIF", "P2SH,STRICTENC", "VER non-functional (ok if not executed)"], +["0", "IF RESERVED RESERVED1 RESERVED2 ELSE 1 ENDIF", "P2SH,STRICTENC", "RESERVED ok in un-executed IF"], + +["1", "DUP IF ENDIF", "P2SH,STRICTENC"], +["1", "IF 1 ENDIF", "P2SH,STRICTENC"], +["1", "DUP IF ELSE ENDIF", "P2SH,STRICTENC"], +["1", "IF 1 ELSE ENDIF", "P2SH,STRICTENC"], +["0", "IF ELSE 1 ENDIF", "P2SH,STRICTENC"], + +["1 1", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 0", "IF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 1", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 0", "IF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], + +["1 0", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 1", "NOTIF IF 1 ELSE 0 ENDIF ENDIF", "P2SH,STRICTENC"], +["1 0", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], +["0 1", "NOTIF IF 1 ELSE 0 ENDIF ELSE IF 0 ELSE 1 ENDIF ENDIF", "P2SH,STRICTENC"], + +["0", "IF 0 ELSE 1 ELSE 0 ENDIF", "P2SH,STRICTENC", "Multiple ELSE's are valid and executed inverts on each ELSE encountered"], +["1", "IF 1 ELSE 0 ELSE ENDIF", "P2SH,STRICTENC"], +["1", "IF ELSE 0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["1", "IF 1 ELSE 0 ELSE 1 ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], +["'' 1", "IF SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ENDIF 0x14 0x68ca4fec736264c13b859bac43d5173df6871682 EQUAL", "P2SH,STRICTENC"], + +["1", "NOTIF 0 ELSE 1 ELSE 0 ENDIF", "P2SH,STRICTENC", "Multiple ELSE's are valid and execution inverts on each ELSE encountered"], +["0", "NOTIF 1 ELSE 0 ELSE ENDIF", "P2SH,STRICTENC"], +["0", "NOTIF ELSE 0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "NOTIF 1 ELSE 0 ELSE 1 ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], +["'' 0", "NOTIF SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ELSE ELSE SHA1 ENDIF 0x14 0x68ca4fec736264c13b859bac43d5173df6871682 EQUAL", "P2SH,STRICTENC"], + +["0", "IF 1 IF RETURN ELSE RETURN ELSE RETURN ENDIF ELSE 1 IF 1 ELSE RETURN ELSE 1 ENDIF ELSE RETURN ENDIF ADD 2 EQUAL", "P2SH,STRICTENC", "Nested ELSE ELSE"], +["1", "NOTIF 0 NOTIF RETURN ELSE RETURN ELSE RETURN ENDIF ELSE 0 NOTIF 1 ELSE RETURN ELSE 1 ENDIF ELSE RETURN ENDIF ADD 2 EQUAL", "P2SH,STRICTENC"], + +["0", "IF RETURN ENDIF 1", "P2SH,STRICTENC", "RETURN only works if executed"], + +["1 1", "VERIFY", "P2SH,STRICTENC"], +["1 0x05 0x01 0x00 0x00 0x00 0x00", "VERIFY", "P2SH,STRICTENC", "values >4 bytes can be cast to boolean"], + +["10 0 11 TOALTSTACK DROP FROMALTSTACK", "ADD 21 EQUAL", "P2SH,STRICTENC"], +["'gavin_was_here' TOALTSTACK 11 FROMALTSTACK", "'gavin_was_here' EQUALVERIFY 11 EQUAL", "P2SH,STRICTENC"], + +["0 IFDUP", "DEPTH 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], +["1 IFDUP", "DEPTH 2 EQUALVERIFY 1 EQUALVERIFY 1 EQUAL", "P2SH,STRICTENC"], +["0 DROP", "DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["0", "DUP 1 ADD 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], +["0 1", "NIP", "P2SH,STRICTENC"], +["1 0", "OVER DEPTH 3 EQUALVERIFY", "P2SH,STRICTENC"], +["22 21 20", "0 PICK 20 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "1 PICK 21 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "2 PICK 22 EQUALVERIFY DEPTH 3 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "0 ROLL 20 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "1 ROLL 21 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "2 ROLL 22 EQUALVERIFY DEPTH 2 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "ROT 22 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "ROT DROP 20 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "ROT DROP DROP 21 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "ROT ROT 21 EQUAL", "P2SH,STRICTENC"], +["22 21 20", "ROT ROT ROT 20 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 24 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT DROP 25 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2DROP 20 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2DROP DROP 21 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2DROP 2DROP 22 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2DROP 2DROP DROP 23 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2ROT 22 EQUAL", "P2SH,STRICTENC"], +["25 24 23 22 21 20", "2ROT 2ROT 2ROT 20 EQUAL", "P2SH,STRICTENC"], +["1 0", "SWAP 1 EQUALVERIFY 0 EQUAL", "P2SH,STRICTENC"], +["0 1", "TUCK DEPTH 3 EQUALVERIFY SWAP 2DROP", "P2SH,STRICTENC"], +["13 14", "2DUP ROT EQUALVERIFY EQUAL", "P2SH,STRICTENC"], +["-1 0 1 2", "3DUP DEPTH 7 EQUALVERIFY ADD ADD 3 EQUALVERIFY 2DROP 0 EQUALVERIFY", "P2SH,STRICTENC"], +["1 2 3 5", "2OVER ADD ADD 8 EQUALVERIFY ADD ADD 6 EQUAL", "P2SH,STRICTENC"], +["1 3 5 7", "2SWAP ADD 4 EQUALVERIFY ADD 12 EQUAL", "P2SH,STRICTENC"], +["0", "SIZE 0 EQUAL", "P2SH,STRICTENC"], +["1", "SIZE 1 EQUAL", "P2SH,STRICTENC"], +["127", "SIZE 1 EQUAL", "P2SH,STRICTENC"], +["128", "SIZE 2 EQUAL", "P2SH,STRICTENC"], +["32767", "SIZE 2 EQUAL", "P2SH,STRICTENC"], +["32768", "SIZE 3 EQUAL", "P2SH,STRICTENC"], +["8388607", "SIZE 3 EQUAL", "P2SH,STRICTENC"], +["8388608", "SIZE 4 EQUAL", "P2SH,STRICTENC"], +["2147483647", "SIZE 4 EQUAL", "P2SH,STRICTENC"], +["2147483648", "SIZE 5 EQUAL", "P2SH,STRICTENC"], +["549755813887", "SIZE 5 EQUAL", "P2SH,STRICTENC"], +["549755813888", "SIZE 6 EQUAL", "P2SH,STRICTENC"], +["9223372036854775807", "SIZE 8 EQUAL", "P2SH,STRICTENC"], +["-1", "SIZE 1 EQUAL", "P2SH,STRICTENC"], +["-127", "SIZE 1 EQUAL", "P2SH,STRICTENC"], +["-128", "SIZE 2 EQUAL", "P2SH,STRICTENC"], +["-32767", "SIZE 2 EQUAL", "P2SH,STRICTENC"], +["-32768", "SIZE 3 EQUAL", "P2SH,STRICTENC"], +["-8388607", "SIZE 3 EQUAL", "P2SH,STRICTENC"], +["-8388608", "SIZE 4 EQUAL", "P2SH,STRICTENC"], +["-2147483647", "SIZE 4 EQUAL", "P2SH,STRICTENC"], +["-2147483648", "SIZE 5 EQUAL", "P2SH,STRICTENC"], +["-549755813887", "SIZE 5 EQUAL", "P2SH,STRICTENC"], +["-549755813888", "SIZE 6 EQUAL", "P2SH,STRICTENC"], +["-9223372036854775807", "SIZE 8 EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "SIZE 26 EQUAL", "P2SH,STRICTENC"], + +["42", "SIZE 1 EQUALVERIFY 42 EQUAL", "P2SH,STRICTENC", "SIZE does not consume argument"], + +["2 -2 ADD", "0 EQUAL", "P2SH,STRICTENC"], +["2147483647 -2147483647 ADD", "0 EQUAL", "P2SH,STRICTENC"], +["-1 -1 ADD", "-2 EQUAL", "P2SH,STRICTENC"], + +["0 0","EQUAL", "P2SH,STRICTENC"], +["1 1 ADD", "2 EQUAL", "P2SH,STRICTENC"], +["1 1ADD", "2 EQUAL", "P2SH,STRICTENC"], +["111 1SUB", "110 EQUAL", "P2SH,STRICTENC"], +["111 1 ADD 12 SUB", "100 EQUAL", "P2SH,STRICTENC"], +["0 ABS", "0 EQUAL", "P2SH,STRICTENC"], +["16 ABS", "16 EQUAL", "P2SH,STRICTENC"], +["-16 ABS", "-16 NEGATE EQUAL", "P2SH,STRICTENC"], +["0 NOT", "NOP", "P2SH,STRICTENC"], +["1 NOT", "0 EQUAL", "P2SH,STRICTENC"], +["11 NOT", "0 EQUAL", "P2SH,STRICTENC"], +["0 0NOTEQUAL", "0 EQUAL", "P2SH,STRICTENC"], +["1 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], +["111 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], +["-111 0NOTEQUAL", "1 EQUAL", "P2SH,STRICTENC"], +["1 1 BOOLAND", "NOP", "P2SH,STRICTENC"], +["1 0 BOOLAND", "NOT", "P2SH,STRICTENC"], +["0 1 BOOLAND", "NOT", "P2SH,STRICTENC"], +["0 0 BOOLAND", "NOT", "P2SH,STRICTENC"], +["16 17 BOOLAND", "NOP", "P2SH,STRICTENC"], +["1 1 BOOLOR", "NOP", "P2SH,STRICTENC"], +["1 0 BOOLOR", "NOP", "P2SH,STRICTENC"], +["0 1 BOOLOR", "NOP", "P2SH,STRICTENC"], +["0 0 BOOLOR", "NOT", "P2SH,STRICTENC"], +["16 17 BOOLOR", "NOP", "P2SH,STRICTENC"], +["11 10 1 ADD", "NUMEQUAL", "P2SH,STRICTENC"], +["11 10 1 ADD", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], +["11 10 1 ADD", "NUMNOTEQUAL NOT", "P2SH,STRICTENC"], +["111 10 1 ADD", "NUMNOTEQUAL", "P2SH,STRICTENC"], +["11 10", "LESSTHAN NOT", "P2SH,STRICTENC"], +["4 4", "LESSTHAN NOT", "P2SH,STRICTENC"], +["10 11", "LESSTHAN", "P2SH,STRICTENC"], +["-11 11", "LESSTHAN", "P2SH,STRICTENC"], +["-11 -10", "LESSTHAN", "P2SH,STRICTENC"], +["11 10", "GREATERTHAN", "P2SH,STRICTENC"], +["4 4", "GREATERTHAN NOT", "P2SH,STRICTENC"], +["10 11", "GREATERTHAN NOT", "P2SH,STRICTENC"], +["-11 11", "GREATERTHAN NOT", "P2SH,STRICTENC"], +["-11 -10", "GREATERTHAN NOT", "P2SH,STRICTENC"], +["11 10", "LESSTHANOREQUAL NOT", "P2SH,STRICTENC"], +["4 4", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["10 11", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["-11 11", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["-11 -10", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["11 10", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], +["4 4", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], +["10 11", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], +["-11 11", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], +["-11 -10", "GREATERTHANOREQUAL NOT", "P2SH,STRICTENC"], +["1 0 MIN", "0 NUMEQUAL", "P2SH,STRICTENC"], +["0 1 MIN", "0 NUMEQUAL", "P2SH,STRICTENC"], +["-1 0 MIN", "-1 NUMEQUAL", "P2SH,STRICTENC"], +["0 -2147483647 MIN", "-2147483647 NUMEQUAL", "P2SH,STRICTENC"], +["2147483647 0 MAX", "2147483647 NUMEQUAL", "P2SH,STRICTENC"], +["0 100 MAX", "100 NUMEQUAL", "P2SH,STRICTENC"], +["-100 0 MAX", "0 NUMEQUAL", "P2SH,STRICTENC"], +["0 -2147483647 MAX", "0 NUMEQUAL", "P2SH,STRICTENC"], +["0 0 1", "WITHIN", "P2SH,STRICTENC"], +["1 0 1", "WITHIN NOT", "P2SH,STRICTENC"], +["0 -2147483647 2147483647", "WITHIN", "P2SH,STRICTENC"], +["-1 -100 100", "WITHIN", "P2SH,STRICTENC"], +["11 -100 100", "WITHIN", "P2SH,STRICTENC"], +["-2147483647 -100 100", "WITHIN NOT", "P2SH,STRICTENC"], +["2147483647 -100 100", "WITHIN NOT", "P2SH,STRICTENC"], + +["2147483647 2147483647 SUB", "0 EQUAL", "P2SH,STRICTENC"], +["2147483647 DUP ADD", "4294967294 EQUAL", "P2SH,STRICTENC", ">32 bit EQUAL is valid"], +["2147483647 NEGATE DUP ADD", "-4294967294 EQUAL", "P2SH,STRICTENC"], + +["''", "RIPEMD160 0x14 0x9c1185a5c5e9fc54612808977ee8f548b2258d31 EQUAL", "P2SH,STRICTENC"], +["'a'", "RIPEMD160 0x14 0x0bdc9d2d256b3ee9daae347be6f4dc835a467ffe EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "RIPEMD160 0x14 0xf71c27109c692c1b56bbdceb5b9d2865b3708dbc EQUAL", "P2SH,STRICTENC"], +["''", "SHA1 0x14 0xda39a3ee5e6b4b0d3255bfef95601890afd80709 EQUAL", "P2SH,STRICTENC"], +["'a'", "SHA1 0x14 0x86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "SHA1 0x14 0x32d10c7b8cf96570ca04ce37f2a19d84240d3a89 EQUAL", "P2SH,STRICTENC"], +["''", "SHA256 0x20 0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 EQUAL", "P2SH,STRICTENC"], +["'a'", "SHA256 0x20 0xca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "SHA256 0x20 0x71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73 EQUAL", "P2SH,STRICTENC"], +["''", "DUP HASH160 SWAP SHA256 RIPEMD160 EQUAL", "P2SH,STRICTENC"], +["''", "DUP HASH256 SWAP SHA256 SHA256 EQUAL", "P2SH,STRICTENC"], +["''", "NOP HASH160 0x14 0xb472a266d0bd89c13706a4132ccfb16f7c3b9fcb EQUAL", "P2SH,STRICTENC"], +["'a'", "HASH160 NOP 0x14 0x994355199e516ff76c4fa4aab39337b9d84cf12b EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "HASH160 0x4c 0x14 0xc286a1af0947f58d1ad787385b1c2c4a976f9e71 EQUAL", "P2SH,STRICTENC"], +["''", "HASH256 0x20 0x5df6e0e2761359d30a8275058e299fcc0381534545f55cf43e41983f5d4c9456 EQUAL", "P2SH,STRICTENC"], +["'a'", "HASH256 0x20 0xbf5d3affb73efd2ec6c36ad3112dd933efed63c4e1cbffcfa88e2759c144f2d8 EQUAL", "P2SH,STRICTENC"], +["'abcdefghijklmnopqrstuvwxyz'", "HASH256 0x4c 0x20 0xca139bc10c2f660da42666f72e89a225936fc60f193c161124a672050c434671 EQUAL", "P2SH,STRICTENC"], + + +["1","NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10 1 EQUAL", "P2SH,STRICTENC"], +["'NOP_1_to_10' NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10","'NOP_1_to_10' EQUAL", "P2SH,STRICTENC"], + +["1", "NOP", "P2SH,STRICTENC,DISCOURAGE_UPGRADABLE_NOPS", "Discourage NOPx flag allows OP_NOP"], + +["0", "IF NOP10 ENDIF 1", "P2SH,STRICTENC,DISCOURAGE_UPGRADABLE_NOPS", + "Discouraged NOPs are allowed if not executed"], + +["0", "IF 0xba ELSE 1 ENDIF", "P2SH,STRICTENC", "opcodes above NOP10 invalid if executed"], +["0", "IF 0xbb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xbc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xbd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xbe ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xbf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xc9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xca ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xcb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xcc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xcd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xce ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xcf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xd9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xda ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xdb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xdc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xe9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xea ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xeb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xec ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xed ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xee ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xef ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf0 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf1 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf2 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf3 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf4 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf5 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf6 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf7 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf8 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xf9 ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xfa ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xfb ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xfc ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xfd ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xfe ELSE 1 ENDIF", "P2SH,STRICTENC"], +["0", "IF 0xff ELSE 1 ENDIF", "P2SH,STRICTENC"], + +["NOP", +"'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'", +"P2SH,STRICTENC", +"520 byte push"], +["1", +"0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", +"P2SH,STRICTENC", +"201 opcodes executed. 0x61 is NOP"], +["1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"1 2 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"P2SH,STRICTENC", +"1,000 stack size (0x6f is 3DUP)"], +["1 TOALTSTACK 2 TOALTSTACK 3 4 5 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"1 2 3 4 5 6 7 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"P2SH,STRICTENC", +"1,000 stack size (altstack cleared between scriptSig/scriptPubKey)"], +["'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f", +"'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' 0x6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f 2DUP 0x616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161", +"P2SH,STRICTENC", +"Max-size (10,000-byte), max-push(520 bytes), max-opcodes(201), max stack size(1,000 items). 0x6f is 3DUP, 0x61 is NOP"], + +["0", +"IF 0x5050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050 ENDIF 1", +"P2SH,STRICTENC", +">201 opcodes, but RESERVED (0x50) doesn't count towards opcode limit."], + +["NOP","1", "P2SH,STRICTENC"], + +["1", "0x01 0x01 EQUAL", "P2SH,STRICTENC", "The following is useful for checking implementations of BN_bn2mpi"], +["127", "0x01 0x7F EQUAL", "P2SH,STRICTENC"], +["128", "0x02 0x8000 EQUAL", "P2SH,STRICTENC", "Leave room for the sign bit"], +["32767", "0x02 0xFF7F EQUAL", "P2SH,STRICTENC"], +["32768", "0x03 0x008000 EQUAL", "P2SH,STRICTENC"], +["8388607", "0x03 0xFFFF7F EQUAL", "P2SH,STRICTENC"], +["8388608", "0x04 0x00008000 EQUAL", "P2SH,STRICTENC"], +["2147483647", "0x04 0xFFFFFF7F EQUAL", "P2SH,STRICTENC"], +["2147483648", "0x05 0x0000008000 EQUAL", "P2SH,STRICTENC"], +["549755813887", "0x05 0xFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], +["549755813888", "0x06 0xFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], +["9223372036854775807", "0x08 0xFFFFFFFFFFFFFF7F EQUAL", "P2SH,STRICTENC"], +["-1", "0x01 0x81 EQUAL", "P2SH,STRICTENC", "Numbers are little-endian with the MSB being a sign bit"], +["-127", "0x01 0xFF EQUAL", "P2SH,STRICTENC"], +["-128", "0x02 0x8080 EQUAL", "P2SH,STRICTENC"], +["-32767", "0x02 0xFFFF EQUAL", "P2SH,STRICTENC"], +["-32768", "0x03 0x008080 EQUAL", "P2SH,STRICTENC"], +["-8388607", "0x03 0xFFFFFF EQUAL", "P2SH,STRICTENC"], +["-8388608", "0x04 0x00008080 EQUAL", "P2SH,STRICTENC"], +["-2147483647", "0x04 0xFFFFFFFF EQUAL", "P2SH,STRICTENC"], +["-2147483648", "0x05 0x0000008080 EQUAL", "P2SH,STRICTENC"], +["-4294967295", "0x05 0xFFFFFFFF80 EQUAL", "P2SH,STRICTENC"], +["-549755813887", "0x05 0xFFFFFFFFFF EQUAL", "P2SH,STRICTENC"], +["-549755813888", "0x06 0x000000008080 EQUAL", "P2SH,STRICTENC"], +["-9223372036854775807", "0x08 0xFFFFFFFFFFFFFFFF EQUAL", "P2SH,STRICTENC"], + +["2147483647", "1ADD 2147483648 EQUAL", "P2SH,STRICTENC", "We can do math on 4-byte integers, and compare 5-byte ones"], +["2147483647", "1ADD 1", "P2SH,STRICTENC"], +["-2147483647", "1ADD 1", "P2SH,STRICTENC"], + +["1", "0x02 0x0100 EQUAL NOT", "P2SH,STRICTENC", "Not the same byte array..."], +["1", "0x02 0x0100 NUMEQUAL", "P2SH,STRICTENC", "... but they are numerically equal"], +["11", "0x4c 0x03 0x0b0000 NUMEQUAL", "P2SH,STRICTENC"], +["0", "0x01 0x80 EQUAL NOT", "P2SH,STRICTENC"], +["0", "0x01 0x80 NUMEQUAL", "P2SH,STRICTENC", "Zero numerically equals negative zero"], +["0", "0x02 0x0080 NUMEQUAL", "P2SH,STRICTENC"], +["0x03 0x000080", "0x04 0x00000080 NUMEQUAL", "P2SH,STRICTENC"], +["0x03 0x100080", "0x04 0x10000080 NUMEQUAL", "P2SH,STRICTENC"], +["0x03 0x100000", "0x04 0x10000000 NUMEQUAL", "P2SH,STRICTENC"], + +["NOP", "NOP 1", "P2SH,STRICTENC", "The following tests check the if(stack.size() < N) tests in each opcode"], +["1", "IF 1 ENDIF", "P2SH,STRICTENC", "They are here to catch copy-and-paste errors"], +["0", "NOTIF 1 ENDIF", "P2SH,STRICTENC", "Most of them are duplicated elsewhere,"], +["1", "VERIFY 1", "P2SH,STRICTENC", "but, hey, more is always better, right?"], + +["0", "TOALTSTACK 1", "P2SH,STRICTENC"], +["1", "TOALTSTACK FROMALTSTACK", "P2SH,STRICTENC"], +["0 0", "2DROP 1", "P2SH,STRICTENC"], +["0 1", "2DUP", "P2SH,STRICTENC"], +["0 0 1", "3DUP", "P2SH,STRICTENC"], +["0 1 0 0", "2OVER", "P2SH,STRICTENC"], +["0 1 0 0 0 0", "2ROT", "P2SH,STRICTENC"], +["0 1 0 0", "2SWAP", "P2SH,STRICTENC"], +["1", "IFDUP", "P2SH,STRICTENC"], +["NOP", "DEPTH 1", "P2SH,STRICTENC"], +["0", "DROP 1", "P2SH,STRICTENC"], +["1", "DUP", "P2SH,STRICTENC"], +["0 1", "NIP", "P2SH,STRICTENC"], +["1 0", "OVER", "P2SH,STRICTENC"], +["1 0 0 0 3", "PICK", "P2SH,STRICTENC"], +["1 0", "PICK", "P2SH,STRICTENC"], +["1 0 0 0 3", "ROLL", "P2SH,STRICTENC"], +["1 0", "ROLL", "P2SH,STRICTENC"], +["1 0 0", "ROT", "P2SH,STRICTENC"], +["1 0", "SWAP", "P2SH,STRICTENC"], +["0 1", "TUCK", "P2SH,STRICTENC"], + +["1", "SIZE", "P2SH,STRICTENC"], + +["0 0", "EQUAL", "P2SH,STRICTENC"], +["0 0", "EQUALVERIFY 1", "P2SH,STRICTENC"], + +["0", "1ADD", "P2SH,STRICTENC"], +["2", "1SUB", "P2SH,STRICTENC"], +["-1", "NEGATE", "P2SH,STRICTENC"], +["-1", "ABS", "P2SH,STRICTENC"], +["0", "NOT", "P2SH,STRICTENC"], +["-1", "0NOTEQUAL", "P2SH,STRICTENC"], + +["1 0", "ADD", "P2SH,STRICTENC"], +["1 0", "SUB", "P2SH,STRICTENC"], +["-1 -1", "BOOLAND", "P2SH,STRICTENC"], +["-1 0", "BOOLOR", "P2SH,STRICTENC"], +["0 0", "NUMEQUAL", "P2SH,STRICTENC"], +["0 0", "NUMEQUALVERIFY 1", "P2SH,STRICTENC"], +["-1 0", "NUMNOTEQUAL", "P2SH,STRICTENC"], +["-1 0", "LESSTHAN", "P2SH,STRICTENC"], +["1 0", "GREATERTHAN", "P2SH,STRICTENC"], +["0 0", "LESSTHANOREQUAL", "P2SH,STRICTENC"], +["0 0", "GREATERTHANOREQUAL", "P2SH,STRICTENC"], +["-1 0", "MIN", "P2SH,STRICTENC"], +["1 0", "MAX", "P2SH,STRICTENC"], +["-1 -1 0", "WITHIN", "P2SH,STRICTENC"], + +["0", "RIPEMD160", "P2SH,STRICTENC"], +["0", "SHA1", "P2SH,STRICTENC"], +["0", "SHA256", "P2SH,STRICTENC"], +["0", "HASH160", "P2SH,STRICTENC"], +["0", "HASH256", "P2SH,STRICTENC"], +["NOP", "CODESEPARATOR 1", "P2SH,STRICTENC"], + +["NOP", "NOP1 1", "P2SH,STRICTENC"], +["NOP", "NOP2 1", "P2SH,STRICTENC"], +["NOP", "NOP3 1", "P2SH,STRICTENC"], +["NOP", "NOP4 1", "P2SH,STRICTENC"], +["NOP", "NOP5 1", "P2SH,STRICTENC"], +["NOP", "NOP6 1", "P2SH,STRICTENC"], +["NOP", "NOP7 1", "P2SH,STRICTENC"], +["NOP", "NOP8 1", "P2SH,STRICTENC"], +["NOP", "NOP9 1", "P2SH,STRICTENC"], +["NOP", "NOP10 1", "P2SH,STRICTENC"], + +["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "CHECKMULTISIG is allowed to have zero keys and/or sigs"], +["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Zero sigs means no sigs are checked"], +["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], + +["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "CHECKMULTISIG is allowed to have zero keys and/or sigs"], +["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Zero sigs means no sigs are checked"], +["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], + +["", "0 0 'a' 'b' 2 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC", "Test from up to 20 pubkeys, all not checked"], +["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 2 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], +["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY DEPTH 0 EQUAL", "P2SH,STRICTENC"], + +["", +"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG", +"P2SH,STRICTENC", +"nOpCount is incremented by the number of keys evaluated in addition to the usual one op per op. In this case we have zero keys, so we can execute 201 CHECKMULTISIGS"], + +["1", +"0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY", +"P2SH,STRICTENC"], + +["", +"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG", +"P2SH,STRICTENC", +"Even though there are no signatures being checked nOpCount is incremented by the number of keys."], + +["1", +"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY", +"P2SH,STRICTENC"], + +["0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC", "Very basic P2SH"], +["0x4c 0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "P2SH,STRICTENC"], + +["0x40 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242", +"0x4d 0x4000 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242 EQUAL", +"P2SH,STRICTENC", +"Basic PUSH signedness check"], + +["0x4c 0x40 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242", +"0x4d 0x4000 0x42424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242 EQUAL", +"P2SH,STRICTENC", +"Basic PUSHDATA1 signedness check"], + +["all PUSHDATA forms are equivalent"], + +["0x4c 0x4b 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "0x4b 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 EQUAL", "", "PUSHDATA1 of 75 bytes equals direct push of it"], +["0x4d 0xFF00 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", "0x4c 0xFF 0x111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 EQUAL", "", "PUSHDATA2 of 255 bytes equals PUSHDATA1 of it"], + +["0x00", "SIZE 0 EQUAL", "P2SH,STRICTENC", "Basic OP_0 execution"], + +["Numeric pushes"], + +["0x01 0x81", "0x4f EQUAL", "", "OP1_NEGATE pushes 0x81"], +["0x01 0x01", "0x51 EQUAL", "", "OP_1 pushes 0x01"], +["0x01 0x02", "0x52 EQUAL", "", "OP_2 pushes 0x02"], +["0x01 0x03", "0x53 EQUAL", "", "OP_3 pushes 0x03"], +["0x01 0x04", "0x54 EQUAL", "", "OP_4 pushes 0x04"], +["0x01 0x05", "0x55 EQUAL", "", "OP_5 pushes 0x05"], +["0x01 0x06", "0x56 EQUAL", "", "OP_6 pushes 0x06"], +["0x01 0x07", "0x57 EQUAL", "", "OP_7 pushes 0x07"], +["0x01 0x08", "0x58 EQUAL", "", "OP_8 pushes 0x08"], +["0x01 0x09", "0x59 EQUAL", "", "OP_9 pushes 0x09"], +["0x01 0x0a", "0x5a EQUAL", "", "OP_10 pushes 0x0a"], +["0x01 0x0b", "0x5b EQUAL", "", "OP_11 pushes 0x0b"], +["0x01 0x0c", "0x5c EQUAL", "", "OP_12 pushes 0x0c"], +["0x01 0x0d", "0x5d EQUAL", "", "OP_13 pushes 0x0d"], +["0x01 0x0e", "0x5e EQUAL", "", "OP_14 pushes 0x0e"], +["0x01 0x0f", "0x5f EQUAL", "", "OP_15 pushes 0x0f"], +["0x01 0x10", "0x60 EQUAL", "", "OP_16 pushes 0x10"], + +["Equivalency of different numeric encodings"], + +["0x02 0x8000", "128 NUMEQUAL", "", "0x8000 equals 128"], +["0x01 0x00", "0 NUMEQUAL", "", "0x00 numequals 0"], +["0x01 0x80", "0 NUMEQUAL", "", "0x80 (negative zero) numequals 0"], +["0x02 0x0080", "0 NUMEQUAL", "", "0x0080 numequals 0"], +["0x02 0x0500", "5 NUMEQUAL", "", "0x0500 numequals 5"], +["0x03 0xff7f80", "0x02 0xffff NUMEQUAL", "", ""], +["0x03 0xff7f00", "0x02 0xff7f NUMEQUAL", "", ""], +["0x04 0xffff7f80", "0x03 0xffffff NUMEQUAL", "", ""], +["0x04 0xffff7f00", "0x03 0xffff7f NUMEQUAL", "", ""], + +["Unevaluated non-minimal pushes are ignored"], + +["0 IF 0x4c 0x00 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA1 ignored"], +["0 IF 0x4d 0x0000 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA2 ignored"], +["0 IF 0x4c 0x00000000 ENDIF 1", "", "MINIMALDATA", "non-minimal PUSHDATA4 ignored"], +["0 IF 0x01 0x81 ENDIF 1", "", "MINIMALDATA", "1NEGATE equiv"], +["0 IF 0x01 0x01 ENDIF 1", "", "MINIMALDATA", "OP_1 equiv"], +["0 IF 0x01 0x02 ENDIF 1", "", "MINIMALDATA", "OP_2 equiv"], +["0 IF 0x01 0x03 ENDIF 1", "", "MINIMALDATA", "OP_3 equiv"], +["0 IF 0x01 0x04 ENDIF 1", "", "MINIMALDATA", "OP_4 equiv"], +["0 IF 0x01 0x05 ENDIF 1", "", "MINIMALDATA", "OP_5 equiv"], +["0 IF 0x01 0x06 ENDIF 1", "", "MINIMALDATA", "OP_6 equiv"], +["0 IF 0x01 0x07 ENDIF 1", "", "MINIMALDATA", "OP_7 equiv"], +["0 IF 0x01 0x08 ENDIF 1", "", "MINIMALDATA", "OP_8 equiv"], +["0 IF 0x01 0x09 ENDIF 1", "", "MINIMALDATA", "OP_9 equiv"], +["0 IF 0x01 0x0a ENDIF 1", "", "MINIMALDATA", "OP_10 equiv"], +["0 IF 0x01 0x0b ENDIF 1", "", "MINIMALDATA", "OP_11 equiv"], +["0 IF 0x01 0x0c ENDIF 1", "", "MINIMALDATA", "OP_12 equiv"], +["0 IF 0x01 0x0d ENDIF 1", "", "MINIMALDATA", "OP_13 equiv"], +["0 IF 0x01 0x0e ENDIF 1", "", "MINIMALDATA", "OP_14 equiv"], +["0 IF 0x01 0x0f ENDIF 1", "", "MINIMALDATA", "OP_15 equiv"], +["0 IF 0x01 0x10 ENDIF 1", "", "MINIMALDATA", "OP_16 equiv"], + +["Numeric minimaldata rules are only applied when a stack item is numerically evaluated; the push itself is allowed"], + +["0x01 0x00", "1", "MINIMALDATA"], +["0x01 0x80", "1", "MINIMALDATA"], +["0x02 0x0180", "1", "MINIMALDATA"], +["0x02 0x0100", "1", "MINIMALDATA"], +["0x02 0x0200", "1", "MINIMALDATA"], +["0x02 0x0300", "1", "MINIMALDATA"], +["0x02 0x0400", "1", "MINIMALDATA"], +["0x02 0x0500", "1", "MINIMALDATA"], +["0x02 0x0600", "1", "MINIMALDATA"], +["0x02 0x0700", "1", "MINIMALDATA"], +["0x02 0x0800", "1", "MINIMALDATA"], +["0x02 0x0900", "1", "MINIMALDATA"], +["0x02 0x0a00", "1", "MINIMALDATA"], +["0x02 0x0b00", "1", "MINIMALDATA"], +["0x02 0x0c00", "1", "MINIMALDATA"], +["0x02 0x0d00", "1", "MINIMALDATA"], +["0x02 0x0e00", "1", "MINIMALDATA"], +["0x02 0x0f00", "1", "MINIMALDATA"], +["0x02 0x1000", "1", "MINIMALDATA"], + +["Valid version of the 'Test every numeric-accepting opcode for correct handling of the numeric minimal encoding rule' script_invalid test"], + +["1 0x02 0x0000", "PICK DROP", ""], +["1 0x02 0x0000", "ROLL DROP 1", ""], +["0x02 0x0000", "1ADD DROP 1", ""], +["0x02 0x0000", "1SUB DROP 1", ""], +["0x02 0x0000", "NEGATE DROP 1", ""], +["0x02 0x0000", "ABS DROP 1", ""], +["0x02 0x0000", "NOT DROP 1", ""], +["0x02 0x0000", "0NOTEQUAL DROP 1", ""], + +["0 0x02 0x0000", "ADD DROP 1", ""], +["0x02 0x0000 0", "ADD DROP 1", ""], +["0 0x02 0x0000", "SUB DROP 1", ""], +["0x02 0x0000 0", "SUB DROP 1", ""], +["0 0x02 0x0000", "BOOLAND DROP 1", ""], +["0x02 0x0000 0", "BOOLAND DROP 1", ""], +["0 0x02 0x0000", "BOOLOR DROP 1", ""], +["0x02 0x0000 0", "BOOLOR DROP 1", ""], +["0 0x02 0x0000", "NUMEQUAL DROP 1", ""], +["0x02 0x0000 1", "NUMEQUAL DROP 1", ""], +["0 0x02 0x0000", "NUMEQUALVERIFY 1", ""], +["0x02 0x0000 0", "NUMEQUALVERIFY 1", ""], +["0 0x02 0x0000", "NUMNOTEQUAL DROP 1", ""], +["0x02 0x0000 0", "NUMNOTEQUAL DROP 1", ""], +["0 0x02 0x0000", "LESSTHAN DROP 1", ""], +["0x02 0x0000 0", "LESSTHAN DROP 1", ""], +["0 0x02 0x0000", "GREATERTHAN DROP 1", ""], +["0x02 0x0000 0", "GREATERTHAN DROP 1", ""], +["0 0x02 0x0000", "LESSTHANOREQUAL DROP 1", ""], +["0x02 0x0000 0", "LESSTHANOREQUAL DROP 1", ""], +["0 0x02 0x0000", "GREATERTHANOREQUAL DROP 1", ""], +["0x02 0x0000 0", "GREATERTHANOREQUAL DROP 1", ""], +["0 0x02 0x0000", "MIN DROP 1", ""], +["0x02 0x0000 0", "MIN DROP 1", ""], +["0 0x02 0x0000", "MAX DROP 1", ""], +["0x02 0x0000 0", "MAX DROP 1", ""], + +["0x02 0x0000 0 0", "WITHIN DROP 1", ""], +["0 0x02 0x0000 0", "WITHIN DROP 1", ""], +["0 0 0x02 0x0000", "WITHIN DROP 1", ""], + +["0 0 0x02 0x0000", "CHECKMULTISIG DROP 1", ""], +["0 0x02 0x0000 0", "CHECKMULTISIG DROP 1", ""], +["0 0x02 0x0000 0 1", "CHECKMULTISIG DROP 1", ""], +["0 0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", ""], +["0 0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", ""], + +["CHECKMULTISIG evaluation order tests. CHECKMULTISIG evaluates signatures and"], +["pubkeys in a specific order, and will exit early if the number of signatures"], +["left to check is greater than the number of keys left. As STRICTENC fails the"], +["script when it reaches an invalidly encoded signature or pubkey, we can use it"], +["to test the exact order in which signatures and pubkeys are evaluated by"], +["distinguishing CHECKMULTISIG returning false on the stack and the script as a"], +["whole failing."], +["See also the corresponding inverted versions of these tests in script_invalid.json"], +[ + "0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", + "2 0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", + "STRICTENC", + "2-of-2 CHECKMULTISIG NOT with the second pubkey invalid, and both signatures validly encoded. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid pubkey." +], +[ + "0 0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501", + "2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT", + "STRICTENC", + "2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but second signature invalid. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid signature." +], + +["Automatically generated test cases"], +[ + "0x47 0x3044022053205076a7bb13d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801", + "0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", + "", + "P2PK" +], +[ + "0x47 0x304402206e05a6fe23c59196ffe176c9ddc31e73a9885638f9d1328d47c0c703863b8876022076feb53811aa5b04e0e79f938eb19906cc5e67548bc555a8e8b8b0fc603d840c01 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", + "DUP HASH160 0x14 0x1018853670f9f3b0582c5b9ee8ce93764ac32b93 EQUALVERIFY CHECKSIG", + "", + "P2PKH" +], +[ + "0x47 0x304402204710a85181663b32d25c70ec2bbd14adff5ddfff6cb50d09e155ef5f541fc86c0220056b0cc949be9386ecc5f6c2ac0493269031dbb185781db90171b54ac127790281", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", + "", + "P2PK anyonecanpay" +], +[ + "0x47 0x304402202166fcd5e607de452d3c6f15e059505cf21654346592f9650ba906b9e8be88fa022005d976d28eb8de477102feba28807b3ad361e7fa24796d259c9d61452f7c318c01 0x23 0x210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ac", + "HASH160 0x14 0x23b0ad3477f2178bc0b3eed26e4e6316f4e83aa1 EQUAL", + "P2SH", + "P2SH(P2PK)" +], +[ + "0x47 0x3044022064cc90ca89ad721384b231653b945579359a24b928ef8539b331172628c9cc6102203e238869ab5dac3fc293db53c12e7dd3079e86cfde9024b689efc7227e4d671001 0x19 0x76a9147cf9c846cd4882efec4bf07e44ebdad495c94f4b88ac", + "HASH160 0x14 0x2df519943d5acc0ef5222091f9dfe3543f489a82 EQUAL", + "", + "P2SH(P2PKH), bad sig but no VERIFY_P2SH" +], +[ + "0 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", + "", + "3-of-3" +], +[ + "0 0x47 0x304402205b7d2c2f177ae76cfbbf14d589c113b0b35db753d305d5562dd0b61cbf366cfb02202e56f93c4f08a27f986cd424ffc48a462c3202c4902104d4d0ff98ed28f4bf8001 0x47 0x304402204511cf05e85c2be07c6c176c5338a08ed3cb34212667f39613340881169986c002207cc48b27aa3691a20706a5773ec9923cadd20fedffd00c24457d85f83f0b51fe01 0x4c69 0x52210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179821038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f515082103363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff464053ae", + "HASH160 0x14 0xc9e4a896d149702d0d1695434feddd52e24ad78d EQUAL", + "P2SH", + "P2SH(2-of-3)" +], +[ + "0x47 0x30440220001d6702bfa4f49c3a2542af9b1c2844a2eaac55f86f310f42d26a5dd17d6a8002202cdadbe608c00b50dd951c6ba0877d5b07a970f3e265c18697bc413a0a86f69901", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "", + "P2PK with too much R padding but no DERSIG" +], +[ + "0x48 0x304502207d2b258e959605e2ea50b46fea1325b7391ffb0c14a5b58ef8ad3851da3644380221007e75136df5f2e38216c4338b31c97e8307102edb97d611e06914e1f8fba68ead01", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "", + "P2PK with too much S padding but no DERSIG" +], +[ + "0x47 0x30440220d7a0417c3f6d1a15094d1cf2a3378ca0503eb8a57630953a9e2987e21ddd0a6502207a6266d686c99090920249991d3d42065b6d43eb70187b219c0db82e4f94d1a201", + "0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKSIG", + "", + "P2PK with too little R padding but no DERSIG" +], +[ + "0x47 0x30440220003040725f724b0e2142fc44ac71f6e13161f6410aeb6dee477952ede3b6a6ca022041ff4940ee3d88116ad281d7cc556e1f2c9427d82290bd7974a25addbcd5bede01", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG NOT", + "", + "P2PK NOT with bad sig with too much R padding but no DERSIG" +], +[ + "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", + "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", + "", + "P2PK with high S but no LOW_S" +], +[ + "0x47 0x30440220745d63eb70d45652128b450aa5ca7d9b513439963f261cb1c40a60f0785e7ee402204877785b38945ca9dbec78e1c1d4dd12148cc25c868bd27480023b49ae0f310501", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG", + "", + "P2PK with hybrid pubkey but no STRICTENC" +], +[ + "0x47 0x30440220606f6f9f6cebc84ebfb6a4bff0b682bd99f05511295545ce9b275e98be3c946102206871d6a76f4e1b43d9763cfc5647844e4811682b1cab0325f060f44ddf44002201", + "0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG NOT", + "", + "P2PK NOT with invalid hybrid pubkey but no STRICTENC" +], +[ + "0 0x47 0x304402203a5ee39032637c431af0a3ac42e32e0627390bd44f6f98c9c04e6d714635ad0202207b42fcd889c3ae8a1b515608f38535f1f9be815176ee8d1b65a27c767cf37aed01", + "1 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", + "", + "1-of-2 with the second 1 hybrid pubkey and no STRICTENC" +], +[ + "0 0x47 0x304402203a5ee39032637c431af0a3ac42e32e0627390bd44f6f98c9c04e6d714635ad0202207b42fcd889c3ae8a1b515608f38535f1f9be815176ee8d1b65a27c767cf37aed01", + "1 0x41 0x0679be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", + "STRICTENC", + "1-of-2 with the second 1 hybrid pubkey" +], +[ + "0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG", + "", + "P2PK with undefined hashtype but no STRICTENC" +], +[ + "0x47 0x304402207409b5b320296e5e2136a7b281a7f803028ca4ca44e2b83eebd46932677725de02202d4eea1c8d3c98e6f42614f54764e6e5e6542e213eb4d079737e9a8b6e9812ec05", + "0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG NOT", + "", + "P2PK NOT with invalid sig and undefined hashtype but no STRICTENC" +], +[ + "1 0x47 0x3044022051254b9fb476a52d85530792b578f86fea70ec1ffb4393e661bcccb23d8d63d3022076505f94a403c86097841944e044c70c2045ce90e36de51f7e9d3828db98a07501 0x47 0x304402206d32e6d6b131ef2fe77b6a9b90b120d74e3e238e79dcffb10523a6ec94f93d65022067ae8772632ddf4c389258c6b70ed0ff94f20ee8f60207aa192a52a2469cddd901 0x47 0x304402200955d031fff71d8653221e85e36c3c85533d2312fc3045314b19650b7ae2f81002202a6bb8505e36201909d0921f01abff390ae6b7ff97bbf959f98aedeb0a56730901", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG", + "", + "3-of-3 with nonzero dummy but no NULLDUMMY" +], +[ + "1 0x47 0x304402201bb2edab700a5d020236df174fefed78087697143731f659bea59642c759c16d022061f42cdbae5bcd3e8790f20bf76687443436e94a634321c16a72aa54cbc7c2ea01 0x47 0x304402204bb4a64f2a6e5c7fb2f07fef85ee56fde5e6da234c6a984262307a20e99842d702206f8303aaba5e625d223897e2ffd3f88ef1bcffef55f38dc3768e5f2e94c923f901 0x47 0x3044022040c2809b71fffb155ec8b82fe7a27f666bd97f941207be4e14ade85a1249dd4d02204d56c85ec525dd18e29a0533d5ddf61b6b1bb32980c2f63edf951aebf7a27bfe01", + "3 0x21 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 3 CHECKMULTISIG NOT", + "", + "3-of-3 NOT with invalid sig and nonzero dummy but no NULLDUMMY" +], +[ + "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 DUP", + "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", + "", + "2-of-2 with two identical keys and sigs pushed using OP_DUP but no SIGPUSHONLY" +], +[ + "0 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01 0x47 0x304402206cb053202e1501e6faa24e6e309bf46a2f9255aa9484ff4a26efb7434f78a58a0220132b10419c3b99601f154bf86cf12259aacd8c6f363a73dacb1d0b941680bb4c01", + "2 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 2 CHECKMULTISIG", + "SIGPUSHONLY", + "2-of-2 with two identical keys and sigs pushed" +], + +["The End"] +] diff --git a/demo/data/bitcoind/sig_canonical.json b/demo/data/bitcoind/sig_canonical.json new file mode 100644 index 0000000..e43a086 --- /dev/null +++ b/demo/data/bitcoind/sig_canonical.json @@ -0,0 +1,7 @@ +[ + "300602010002010001", + "3008020200ff020200ff01", + "304402203932c892e2e550f3af8ee4ce9c215a87f9bb831dcac87b2838e2c2eaa891df0c022030b61dd36543125d56b9f9f3a1f9353189e5af33cdda8d77a5209aec03978fa001", + "30450220076045be6f9eca28ff1ec606b833d0b87e70b2a630f5e3a496b110967a40f90a0221008fffd599910eefe00bc803c688c2eca1d2ba7f6b180620eaa03488e6585db6ba01", + "3046022100876045be6f9eca28ff1ec606b833d0b87e70b2a630f5e3a496b110967a40f90a0221008fffd599910eefe00bc803c688c2eca1d2ba7f6b180620eaa03488e6585db6ba01" +] diff --git a/demo/data/bitcoind/sig_noncanonical.json b/demo/data/bitcoind/sig_noncanonical.json new file mode 100644 index 0000000..d9a6c1c --- /dev/null +++ b/demo/data/bitcoind/sig_noncanonical.json @@ -0,0 +1,22 @@ +[ + "non-hex strings are ignored", + + "too short:", "30050201FF020001", + "too long:", "30470221005990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba6105022200002d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "hashtype:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed11", + "type:", "314402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "total length:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "S len oob:", "301F01205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb101", + "R+S:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed0001", + + "R type:", "304401205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "R len = 0:", "3024020002202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "R<0:", "304402208990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "R padded:", "30450221005990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610502202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + + + "S type:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba610501202d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "S len = 0:", "302402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba6105020001", + "S<0:", "304402205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba61050220fd5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01", + "S padded:", "304502205990e0584b2b238e1dfaad8d6ed69ecc1a4a13ac85fc0b31d0df395eb1ba61050221002d5876262c288beb511d061691bf26777344b702b00f8fe28621fe4e566695ed01" +] diff --git a/demo/data/bitcoind/tx_invalid.json b/demo/data/bitcoind/tx_invalid.json new file mode 100644 index 0000000..e304985 --- /dev/null +++ b/demo/data/bitcoind/tx_invalid.json @@ -0,0 +1,174 @@ +[ +["The following are deserialized transactions which are invalid."], +["They are in the form"], +["[[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], +["serializedTransaction, verifyFlags]"], +["Objects that are only a single string (like this one) are ignored"], + +["0e1b5688cf179cd9f7cbda1fac0090f6e684bbf8cd946660120197c3f3681809 but with extra junk appended to the end of the scriptPubKey"], +[[["6ca7ec7b1847f6bdbd737176050e6a08d66ccd55bb94ad24f4018024107a5827", 0, "0x41 0x043b640e983c9690a14c039a2037ecc3467b27a0dcd58f19d76c7bc118d09fec45adc5370a1c5bf8067ca9f5557a4cf885fdb0fe0dcc9c3a7137226106fbc779a5 CHECKSIG VERIFY 1"]], +"010000000127587a10248001f424ad94bb55cd6cd6086a0e05767173bdbdf647187beca76c000000004948304502201b822ad10d6adc1a341ae8835be3f70a25201bbff31f59cbb9c5353a5f0eca18022100ea7b2f7074e9aa9cf70aa8d0ffee13e6b45dddabf1ab961bda378bcdb778fa4701ffffffff0100f2052a010000001976a914fc50c5907d86fed474ba5ce8b12a66e0a4c139d888ac00000000", "P2SH"], + +["This is the nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG from tx_valid.json"], +["but with the signature duplicated in the scriptPubKey with a non-standard pushdata prefix"], +["See FindAndDelete, which will only remove if it uses the same pushdata prefix as is standard"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], + +["Same as above, but with the sig in the scriptSig also pushed with the same non-standard OP_PUSHDATA"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006b4c473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], + +["An invalid P2SH Transaction"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000", "P2SH"], + +["Tests for CheckTransaction()"], + +["No outputs"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x05ab9e14d983742513f0f451e105ffb4198d1dd4 EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022100f16703104aab4e4088317c862daec83440242411b039d14280e03dd33b487ab802201318a7be236672c5c56083eb7a5a195bc57a40af7923ff8545016cd3b571e2a601232103c40e5d339df3f30bf753e7e04450ae4ef76c9e45587d1d993bdc4cd06f0651c7acffffffff0000000000", "P2SH"], + +["Negative output"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xae609aca8061d77c5e111f6bb62501a6bbe2bfdb EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d4830450220063222cbb128731fc09de0d7323746539166544d6c1df84d867ccea84bcc8903022100bf568e8552844de664cd41648a031554327aa8844af34b4f27397c65b92c04de0123210243ec37dee0e2e053a9c976f43147e79bc7d9dc606ea51010af1ac80db6b069e1acffffffff01ffffffffffffffff015100000000", "P2SH"], + +["MAX_MONEY + 1 output"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x32afac281462b822adbec5094b8d4d337dd5bd6a EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010140075af0750700015100000000", "P2SH"], + +["MAX_MONEY output + 1 output"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xb558cbf4930954aa6a344363a15668d7477ae716 EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510001000000000000015100000000", "P2SH"], + +["Duplicate inputs"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x236d0639db62b0773fd8ac34dc85ae19e9aba80a EQUAL"]], +"01000000020001000000000000000000000000000000000000000000000000000000000000000000006c47304402204bb1197053d0d7799bf1b30cd503c44b58d6240cccbdc85b6fe76d087980208f02204beeed78200178ffc6c74237bb74b3f276bbb4098b5605d814304fe128bf1431012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff0001000000000000000000000000000000000000000000000000000000000000000000006c47304402202306489afef52a6f62e90bf750bbcdf40c06f5c6b138286e6b6b86176bb9341802200dba98486ea68380f47ebb19a7df173b99e6bc9c681d6ccf3bde31465d1f16b3012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff010000000000000000015100000000", "P2SH"], + +["Coinbase of size 1"], +["Note the input is just required to make the tester happy"], +[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], +"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0151ffffffff010000000000000000015100000000", "P2SH"], + +["Coinbase of size 101"], +["Note the input is just required to make the tester happy"], +[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], +"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff655151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000", "P2SH"], + +["Null txin"], +[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "HASH160 0x14 0x02dae7dbbda56097959cba59b1989dd3e47937bf EQUAL"]], +"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6e49304602210086f39e028e46dafa8e1e3be63906465f4cf038fbe5ed6403dc3e74ae876e6431022100c4625c675cfc5c7e3a0e0d7eaec92ac24da20c73a88eb40d09253e51ac6def5201232103a183ddc41e84753aca47723c965d1b5c8b0e2b537963518355e6dd6cf8415e50acffffffff010000000000000000015100000000", "P2SH"], + +["Same as the transactions in valid with one input SIGHASH_ALL and one SIGHASH_ANYONECANPAY, but we set the _ANYONECANPAY sequence number, invalidating the SIGHASH_ALL signature"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], + ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], + "01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df10101000000000200000000000000000000000000000000000000000000000000000000000000000000484730440220201dc2d030e380e8f9cfb41b442d930fa5a685bb2c8db5906671f865507d0670022018d9e7a8d4c8d86a73c2a724ee38ef983ec249827e0e464841735955c707ece98101000000010100000000000000015100000000", "P2SH"], + +["CHECKMULTISIG with incorrect signature order"], +["Note the input is just required to make the tester happy"], +[[["b3da01dd4aae683c7aee4d5d8b52a540a508e1115f77cd7fa9a291243f501223", 0, "HASH160 0x14 0xb1ce99298d5f07364b57b1e5c9cc00be0b04a954 EQUAL"]], +"01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe000048304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f401483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000", "P2SH"], + + +["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], +["It is an OP_CHECKMULTISIG with the dummy value missing"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], + + +["CHECKMULTISIG SCRIPT_VERIFY_NULLDUMMY tests:"], + +["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], +["It is an OP_CHECKMULTISIG with the dummy value set to something other than an empty string"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a010047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], + +["As above, but using a OP_1"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], + +["As above, but using a OP_1NEGATE"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], + +["As above, but with the dummy byte missing"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], + + +["Empty stack when we try to run CHECKSIG"], +[[["ad503f72c18df5801ee64d76090afe4c607fb2b822e9b7b63c5826c50e22fc3b", 0, "0x21 0x027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5 CHECKSIG NOT"]], +"01000000013bfc220ec526583cb6b7e922b8b27f604cfe0a09764de61e80f58dc1723f50ad0000000000ffffffff0101000000000000002321027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5ac00000000", "P2SH"], + +["CHECKLOCKTIMEVERIFY tests"], + +["By-height locks, with argument just beyond tx nLockTime"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000fe64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], + +["By-time locks, with argument just beyond tx nLockTime (but within numerical boundries)"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000001 NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967295 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Argument missing"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Argument negative with by-blockheight nLockTime=0"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "-1 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Argument negative with by-blocktime nLockTime=500,000,000"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "-1 NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Input locked"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff0100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Another input being unlocked isn't sufficient; the CHECKLOCKTIMEVERIFY-using input must be unlocked"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"] , + ["0000000000000000000000000000000000000000000000000000000000000200", 1, "1"]], +"010000000200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00020000000000000000000000000000000000000000000000000000000000000100000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Argument/tx height/time mismatch, both versions"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Argument 2^32 with nLockTime=2^32-1"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967296 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Same, but with nLockTime=2^31-1"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "2147483648 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffff7f", "P2SH,CHECKLOCKTIMEVERIFY"], + +["6 byte non-minimally-encoded arguments are invalid even in their contents are valid"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x06 0x000000000000 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Failure due to failing CHECKLOCKTIMEVERIFY in scriptSig"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Failure due to failing CHECKLOCKTIMEVERIFY in redeemScript"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Failure due to empty stack before CHECKLOCKTIMEVERIFY in redeemScript"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000001b1010000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + + +["Make diffs cleaner by leaving a comment here without comma at the end"] +] diff --git a/demo/data/bitcoind/tx_valid.json b/demo/data/bitcoind/tx_valid.json new file mode 100644 index 0000000..438ca9c --- /dev/null +++ b/demo/data/bitcoind/tx_valid.json @@ -0,0 +1,224 @@ +[ +["The following are deserialized transactions which are valid."], +["They are in the form"], +["[[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], +["serializedTransaction, verifyFlags]"], +["Objects that are only a single string (like this one) are ignored"], + +["The following is 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], +["It is of particular interest because it contains an invalidly-encoded signature which OpenSSL accepts"], +["See http://r6.ca/blog/20111119T211504Z.html"], +["It is also the first OP_CHECKMULTISIG transaction in standard form"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000490047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], + +["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], +["It is an OP_CHECKMULTISIG with an arbitrary extra byte stuffed into the signature at pos length - 2"], +["The dummy byte is fine however, so the NULLDUMMY flag should be happy"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a0048304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2bab01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH,NULLDUMMY"], + +["The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"], +["It is an OP_CHECKMULTISIG with the dummy value set to something other than an empty string"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a01ff47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], + +["As above, but using a OP_1"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], + +["As above, but using a OP_1NEGATE"], +[[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1", 0, "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]], +"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000", "P2SH"], + +["The following is c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73"], +["It is of interest because it contains a 0-sequence as well as a signature of SIGHASH type 0 (which is not a real type)"], +[[["406b2b06bcd34d3c8733e6b79f7a394c8a431fbf4ff5ac705c93f4076bb77602", 0, "DUP HASH160 0x14 0xdc44b1164188067c3a32d4780f5996fa14a4f2d9 EQUALVERIFY CHECKSIG"]], +"01000000010276b76b07f4935c70acf54fbf1f438a4c397a9fb7e633873c4dd3bc062b6b40000000008c493046022100d23459d03ed7e9511a47d13292d3430a04627de6235b6e51a40f9cd386f2abe3022100e7d25b080f0bb8d8d5f878bba7d54ad2fda650ea8d158a33ee3cbd11768191fd004104b0e2c879e4daf7b9ab68350228c159766676a14f5815084ba166432aab46198d4cca98fa3e9981d0a90b2effc514b76279476550ba3663fdcaff94c38420e9d5000000000100093d00000000001976a9149a7b0f3b80c6baaeedce0a0842553800f832ba1f88ac00000000", "P2SH"], + +["A nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], + +["Same as above, but with the signature duplicated in the scriptPubKey with the proper pushdata prefix"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000", "P2SH"], + +["The following is f7fdd091fa6d8f5e7a8c2458f5c38faffff2d3f1406b6e4fe2c99dcc0d2d1cbb"], +["It caught a bug in the workaround for 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63 in an overly simple implementation"], +[[["b464e85df2a238416f8bdae11d120add610380ea07f4ef19c5f9dfd472f96c3d", 0, "DUP HASH160 0x14 0xbef80ecf3a44500fda1bc92176e442891662aed2 EQUALVERIFY CHECKSIG"], +["b7978cc96e59a8b13e0865d3f95657561a7f725be952438637475920bac9eb21", 1, "DUP HASH160 0x14 0xbef80ecf3a44500fda1bc92176e442891662aed2 EQUALVERIFY CHECKSIG"]], +"01000000023d6cf972d4dff9c519eff407ea800361dd0a121de1da8b6f4138a2f25de864b4000000008a4730440220ffda47bfc776bcd269da4832626ac332adfca6dd835e8ecd83cd1ebe7d709b0e022049cffa1cdc102a0b56e0e04913606c70af702a1149dc3b305ab9439288fee090014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff21ebc9ba20594737864352e95b727f1a565756f9d365083eb1a8596ec98c97b7010000008a4730440220503ff10e9f1e0de731407a4a245531c9ff17676eda461f8ceeb8c06049fa2c810220c008ac34694510298fa60b3f000df01caa244f165b727d4896eb84f81e46bcc4014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff01f0da5200000000001976a914857ccd42dded6df32949d4646dfa10a92458cfaa88ac00000000", "P2SH"], + +["The following tests for the presence of a bug in the handling of SIGHASH_SINGLE"], +["It results in signing the constant 1, instead of something generated based on the transaction,"], +["when the input doing the signing has an index greater than the maximum output index"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "DUP HASH160 0x14 0xe52b482f2faa8ecbf0db344f93c84ac908557f33 EQUALVERIFY CHECKSIG"], ["0000000000000000000000000000000000000000000000000000000000000200", 0, "1"]], +"01000000020002000000000000000000000000000000000000000000000000000000000000000000000151ffffffff0001000000000000000000000000000000000000000000000000000000000000000000006b483045022100c9cdd08798a28af9d1baf44a6c77bcc7e279f47dc487c8c899911bc48feaffcc0220503c5c50ae3998a733263c5c0f7061b483e2b56c4c41b456e7d2f5a78a74c077032102d5c25adb51b61339d2b05315791e21bbe80ea470a49db0135720983c905aace0ffffffff010000000000000000015100000000", "P2SH"], + +["An invalid P2SH Transaction"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000", "NONE"], + +["A valid P2SH Transaction using the standard transaction type put forth in BIP 16"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x8febbed40483661de6958d957412f82deed8e2f7 EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100c66c9cdf4c43609586d15424c54707156e316d88b0a1534c9e6b0d4f311406310221009c0fe51dbc9c4ab7cc25d3fdbeccf6679fe6827f08edf2b4a9f16ee3eb0e438a0123210338e8034509af564c62644c07691942e0c056752008a173c89f60ab2a88ac2ebfacffffffff010000000000000000015100000000", "P2SH"], + +["Tests for CheckTransaction()"], +["MAX_MONEY output"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0x32afac281462b822adbec5094b8d4d337dd5bd6a EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010040075af0750700015100000000", "P2SH"], + +["MAX_MONEY output + 0 output"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xb558cbf4930954aa6a344363a15668d7477ae716 EQUAL"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510000000000000000015100000000", "P2SH"], + +["Coinbase of size 2"], +["Note the input is just required to make the tester happy"], +[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], +"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff025151ffffffff010000000000000000015100000000", "P2SH"], + +["Coinbase of size 100"], +["Note the input is just required to make the tester happy"], +[[["0000000000000000000000000000000000000000000000000000000000000000", -1, "1"]], +"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6451515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000", "P2SH"], + +["Simple transaction with first input is signed with SIGHASH_ALL, second with SIGHASH_ANYONECANPAY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], + ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], + "010000000200010000000000000000000000000000000000000000000000000000000000000000000049483045022100d180fd2eb9140aeb4210c9204d3f358766eb53842b2a9473db687fa24b12a3cc022079781799cd4f038b85135bbe49ec2b57f306b2bb17101b17f71f000fcab2b6fb01ffffffff0002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000", "P2SH"], + +["Same as above, but we change the sequence number of the first input to check that SIGHASH_ANYONECANPAY is being followed"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"], + ["0000000000000000000000000000000000000000000000000000000000000200", 0, "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"]], + "01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df101010000000002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000", "P2SH"], + +["afd9c17f8913577ec3509520bd6e5d63e9c0fd2a5f70c787993b097ba6ca9fae which has several SIGHASH_SINGLE signatures"], +[[["63cfa5a09dc540bf63e53713b82d9ea3692ca97cd608c384f2aa88e51a0aac70", 0, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"], + ["04e8d0fcf3846c6734477b98f0f3d4badfb78f020ee097a0be5fe347645b817d", 1, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"], + ["ee1377aff5d0579909e11782e1d2f5f7b84d26537be7f5516dd4e43373091f3f", 1, "DUP HASH160 0x14 0xdcf72c4fd02f5a987cf9b02f2fabfcac3341a87d EQUALVERIFY CHECKSIG"]], + "010000000370ac0a1ae588aaf284c308d67ca92c69a39e2db81337e563bf40c59da0a5cf63000000006a4730440220360d20baff382059040ba9be98947fd678fb08aab2bb0c172efa996fd8ece9b702201b4fb0de67f015c90e7ac8a193aeab486a1f587e0f54d0fb9552ef7f5ce6caec032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff7d815b6447e35fbea097e00e028fb7dfbad4f3f0987b4734676c84f3fcd0e804010000006b483045022100c714310be1e3a9ff1c5f7cacc65c2d8e781fc3a88ceb063c6153bf950650802102200b2d0979c76e12bb480da635f192cc8dc6f905380dd4ac1ff35a4f68f462fffd032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff3f1f097333e4d46d51f5e77b53264db8f7f5d2e18217e1099957d0f5af7713ee010000006c493046022100b663499ef73273a3788dea342717c2640ac43c5a1cf862c9e09b206fcb3f6bb8022100b09972e75972d9148f2bdd462e5cb69b57c1214b88fc55ca638676c07cfc10d8032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff0380841e00000000001976a914bfb282c70c4191f45b5a6665cad1682f2c9cfdfb88ac80841e00000000001976a9149857cc07bed33a5cf12b9c5e0500b675d500c81188ace0fd1c00000000001976a91443c52850606c872403c0601e69fa34b26f62db4a88ac00000000", "P2SH"], + + ["ddc454a1c0c35c188c98976b17670f69e586d9c0f3593ea879928332f0a069e7, which spends an input that pushes using a PUSHDATA1 that is negative when read as signed"], + [[["c5510a5dd97a25f43175af1fe649b707b1df8e1a41489bac33a23087027a2f48", 0, "0x4c 0xae 0x606563686f2022553246736447566b58312b5a536e587574356542793066794778625456415675534a6c376a6a334878416945325364667657734f53474f36633338584d7439435c6e543249584967306a486956304f376e775236644546673d3d22203e20743b206f70656e73736c20656e63202d7061737320706173733a5b314a564d7751432d707269766b65792d6865785d202d64202d6165732d3235362d636263202d61202d696e207460 DROP DUP HASH160 0x14 0xbfd7436b6265aa9de506f8a994f881ff08cc2872 EQUALVERIFY CHECKSIG"]], + "0100000001482f7a028730a233ac9b48411a8edfb107b749e61faf7531f4257ad95d0a51c5000000008b483045022100bf0bbae9bde51ad2b222e87fbf67530fbafc25c903519a1e5dcc52a32ff5844e022028c4d9ad49b006dd59974372a54291d5764be541574bb0c4dc208ec51f80b7190141049dd4aad62741dc27d5f267f7b70682eee22e7e9c1923b9c0957bdae0b96374569b460eb8d5b40d972e8c7c0ad441de3d94c4a29864b212d56050acb980b72b2bffffffff0180969800000000001976a914e336d0017a9d28de99d16472f6ca6d5a3a8ebc9988ac00000000", "P2SH"], + +["Correct signature order"], +["Note the input is just required to make the tester happy"], +[[["b3da01dd4aae683c7aee4d5d8b52a540a508e1115f77cd7fa9a291243f501223", 0, "HASH160 0x14 0xb1ce99298d5f07364b57b1e5c9cc00be0b04a954 EQUAL"]], +"01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe0000483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa0148304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f4014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000", "P2SH"], + +["cc60b1f899ec0a69b7c3f25ddf32c4524096a9c5b01cbd84c6d0312a0c478984, which is a fairly strange transaction which relies on OP_CHECKSIG returning 0 when checking a completely invalid sig of length 0"], +[[["cbebc4da731e8995fe97f6fadcd731b36ad40e5ecb31e38e904f6e5982fa09f7", 0, "0x2102085c6600657566acc2d6382a47bc3f324008d2aa10940dd7705a48aa2a5a5e33ac7c2103f5d0fb955f95dd6be6115ce85661db412ec6a08abcbfce7da0ba8297c6cc0ec4ac7c5379a820d68df9e32a147cffa36193c6f7c43a1c8c69cda530e1c6db354bfabdcfefaf3c875379a820f531f3041d3136701ea09067c53e7159c8f9b2746a56c3d82966c54bbc553226879a5479827701200122a59a5379827701200122a59a6353798277537982778779679a68"]], +"0100000001f709fa82596e4f908ee331cb5e0ed46ab331d7dcfaf697fe95891e73dac4ebcb000000008c20ca42095840735e89283fec298e62ac2ddea9b5f34a8cbb7097ad965b87568100201b1b01dc829177da4a14551d2fc96a9db00c6501edfa12f22cd9cefd335c227f483045022100a9df60536df5733dd0de6bc921fab0b3eee6426501b43a228afa2c90072eb5ca02201c78b74266fac7d1db5deff080d8a403743203f109fbcabf6d5a760bf87386d20100ffffffff01c075790000000000232103611f9a45c18f28f06f19076ad571c344c82ce8fcfe34464cf8085217a2d294a6ac00000000", "P2SH"], + +["Empty pubkey"], +[[["229257c295e7f555421c1bfec8538dd30a4b5c37c1c8810bbe83cafa7811652c", 0, "0x00 CHECKSIG NOT"]], +"01000000012c651178faca83be0b81c8c1375c4b0ad38d53c8fe1b1c4255f5e795c25792220000000049483045022100d6044562284ac76c985018fc4a90127847708c9edb280996c507b28babdc4b2a02203d74eca3f1a4d1eea7ff77b528fde6d5dc324ec2dbfdb964ba885f643b9704cd01ffffffff010100000000000000232102c2410f8891ae918cab4ffc4bb4a3b0881be67c7a1e7faa8b5acf9ab8932ec30cac00000000", "P2SH"], + +["Empty signature"], +[[["9ca93cfd8e3806b9d9e2ba1cf64e3cc6946ee0119670b1796a09928d14ea25f7", 0, "0x21 0x028a1d66975dbdf97897e3a4aef450ebeb5b5293e4a0b4a6d3a2daaa0b2b110e02 CHECKSIG NOT"]], +"0100000001f725ea148d92096a79b1709611e06e94c63c4ef61cbae2d9b906388efd3ca99c000000000100ffffffff0101000000000000002321028a1d66975dbdf97897e3a4aef450ebeb5b5293e4a0b4a6d3a2daaa0b2b110e02ac00000000", "P2SH"], + +[[["444e00ed7840d41f20ecd9c11d3f91982326c731a02f3c05748414a4fa9e59be", 0, "1 0x00 0x21 0x02136b04758b0b6e363e7a6fbe83aaf527a153db2b060d36cc29f7f8309ba6e458 2 CHECKMULTISIG"]], +"0100000001be599efaa4148474053c2fa031c7262398913f1dc1d9ec201fd44078ed004e44000000004900473044022022b29706cb2ed9ef0cb3c97b72677ca2dfd7b4160f7b4beb3ba806aa856c401502202d1e52582412eba2ed474f1f437a427640306fd3838725fab173ade7fe4eae4a01ffffffff010100000000000000232103ac4bba7e7ca3e873eea49e08132ad30c7f03640b6539e9b59903cf14fd016bbbac00000000", "P2SH"], + +[[["e16abbe80bf30c080f63830c8dbf669deaef08957446e95940227d8c5e6db612", 0, "1 0x21 0x03905380c7013e36e6e19d305311c1b81fce6581f5ee1c86ef0627c68c9362fc9f 0x00 2 CHECKMULTISIG"]], +"010000000112b66d5e8c7d224059e946749508efea9d66bf8d0c83630f080cf30be8bb6ae100000000490047304402206ffe3f14caf38ad5c1544428e99da76ffa5455675ec8d9780fac215ca17953520220779502985e194d84baa36b9bd40a0dbd981163fa191eb884ae83fc5bd1c86b1101ffffffff010100000000000000232103905380c7013e36e6e19d305311c1b81fce6581f5ee1c86ef0627c68c9362fc9fac00000000", "P2SH"], + +[[["ebbcf4bfce13292bd791d6a65a2a858d59adbf737e387e40370d4e64cc70efb0", 0, "2 0x21 0x033bcaa0a602f0d44cc9d5637c6e515b0471db514c020883830b7cefd73af04194 0x21 0x03a88b326f8767f4f192ce252afe33c94d25ab1d24f27f159b3cb3aa691ffe1423 2 CHECKMULTISIG NOT"]], +"0100000001b0ef70cc644e0d37407e387e73bfad598d852a5aa6d691d72b2913cebff4bceb000000004a00473044022068cd4851fc7f9a892ab910df7a24e616f293bcb5c5fbdfbc304a194b26b60fba022078e6da13d8cb881a22939b952c24f88b97afd06b4c47a47d7f804c9a352a6d6d0100ffffffff0101000000000000002321033bcaa0a602f0d44cc9d5637c6e515b0471db514c020883830b7cefd73af04194ac00000000", "P2SH"], + +[[["ba4cd7ae2ad4d4d13ebfc8ab1d93a63e4a6563f25089a18bf0fc68f282aa88c1", 0, "2 0x21 0x037c615d761e71d38903609bf4f46847266edc2fb37532047d747ba47eaae5ffe1 0x21 0x02edc823cd634f2c4033d94f5755207cb6b60c4b1f1f056ad7471c47de5f2e4d50 2 CHECKMULTISIG NOT"]], +"0100000001c188aa82f268fcf08ba18950f263654a3ea6931dabc8bf3ed1d4d42aaed74cba000000004b0000483045022100940378576e069aca261a6b26fb38344e4497ca6751bb10905c76bb689f4222b002204833806b014c26fd801727b792b1260003c55710f87c5adbd7a9cb57446dbc9801ffffffff0101000000000000002321037c615d761e71d38903609bf4f46847266edc2fb37532047d747ba47eaae5ffe1ac00000000", "P2SH"], + + +["OP_CODESEPARATOR tests"], + +["Test that SignatureHash() removes OP_CODESEPARATOR with FindAndDelete()"], +[[["bc7fd132fcf817918334822ee6d9bd95c889099c96e07ca2c1eb2cc70db63224", 0, "CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIG"]], +"01000000012432b60dc72cebc1a27ce0969c0989c895bdd9e62e8234839117f8fc32d17fbc000000004a493046022100a576b52051962c25e642c0fd3d77ee6c92487048e5d90818bcf5b51abaccd7900221008204f8fb121be4ec3b24483b1f92d89b1b0548513a134e345c5442e86e8617a501ffffffff010000000000000000016a00000000", "P2SH"], +[[["83e194f90b6ef21fa2e3a365b63794fb5daa844bdc9b25de30899fcfe7b01047", 0, "CODESEPARATOR CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIG"]], +"01000000014710b0e7cf9f8930de259bdc4b84aa5dfb9437b665a3e3a21ff26e0bf994e183000000004a493046022100a166121a61b4eeb19d8f922b978ff6ab58ead8a5a5552bf9be73dc9c156873ea02210092ad9bc43ee647da4f6652c320800debcf08ec20a094a0aaf085f63ecb37a17201ffffffff010000000000000000016a00000000", "P2SH"], + +["Hashed data starts at the CODESEPARATOR"], +[[["326882a7f22b5191f1a0cc9962ca4b878cd969cf3b3a70887aece4d801a0ba5e", 0, "0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CODESEPARATOR CHECKSIG"]], +"01000000015ebaa001d8e4ec7a88703a3bcf69d98c874bca6299cca0f191512bf2a7826832000000004948304502203bf754d1c6732fbf87c5dcd81258aefd30f2060d7bd8ac4a5696f7927091dad1022100f5bcb726c4cf5ed0ed34cc13dadeedf628ae1045b7cb34421bc60b89f4cecae701ffffffff010000000000000000016a00000000", "P2SH"], + +["But only if execution has reached it"], +[[["a955032f4d6b0c9bfe8cad8f00a8933790b9c1dc28c82e0f48e75b35da0e4944", 0, "0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIGVERIFY CODESEPARATOR 0x21 0x038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041 CHECKSIGVERIFY CODESEPARATOR 1"]], +"010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a900000000924830450221009c0a27f886a1d8cb87f6f595fbc3163d28f7a81ec3c4b252ee7f3ac77fd13ffa02203caa8dfa09713c8c4d7ef575c75ed97812072405d932bd11e6a1593a98b679370148304502201e3861ef39a526406bad1e20ecad06be7375ad40ddb582c9be42d26c3a0d7b240221009d0a3985e96522e59635d19cc4448547477396ce0ef17a58e7d74c3ef464292301ffffffff010000000000000000016a00000000", "P2SH"], + +["CHECKSIG is legal in scriptSigs"], +[[["ccf7f4053a02e653c36ac75c891b7496d0dc5ce5214f6c913d9cf8f1329ebee0", 0, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], +"0100000001e0be9e32f1f89c3d916c4f21e55cdcd096741b895cc76ac353e6023a05f4f7cc00000000d86149304602210086e5f736a2c3622ebb62bd9d93d8e5d76508b98be922b97160edc3dcca6d8c47022100b23c312ac232a4473f19d2aeb95ab7bdf2b65518911a0d72d50e38b5dd31dc820121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac4730440220508fa761865c8abd81244a168392876ee1d94e8ed83897066b5e2df2400dad24022043f5ee7538e87e9c6aef7ef55133d3e51da7cc522830a9c4d736977a76ef755c0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], + +["Same semantics for OP_CODESEPARATOR"], +[[["10c9f0effe83e97f80f067de2b11c6a00c3088a4bce42c5ae761519af9306f3c", 1, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], +"01000000013c6f30f99a5161e75a2ce4bca488300ca0c6112bde67f0807fe983feeff0c91001000000e608646561646265656675ab61493046022100ce18d384221a731c993939015e3d1bcebafb16e8c0b5b5d14097ec8177ae6f28022100bcab227af90bab33c3fe0a9abfee03ba976ee25dc6ce542526e9b2e56e14b7f10121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac493046022100c3b93edcc0fd6250eb32f2dd8a0bba1754b0f6c3be8ed4100ed582f3db73eba2022100bf75b5bd2eff4d6bf2bda2e34a40fcc07d4aa3cf862ceaa77b47b81eff829f9a01ab21038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], + +["Signatures are removed from the script they are in by FindAndDelete() in the CHECKSIG code; even multiple instances of one signature can be removed."], +[[["6056ebd549003b10cbbd915cea0d82209fe40b8617104be917a26fa92cbe3d6f", 0, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], +"01000000016f3dbe2ca96fa217e94b1017860be49f20820dea5c91bdcb103b0049d5eb566000000000fd1d0147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac47304402203757e937ba807e4a5da8534c17f9d121176056406a6465054bdd260457515c1a02200f02eccf1bec0f3a0d65df37889143c2e88ab7acec61a7b6f5aa264139141a2b0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], + +["That also includes ahead of the opcode being executed."], +[[["5a6b0021a6042a686b6b94abc36b387bef9109847774e8b1e51eb8cc55c53921", 1, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]], +"01000000012139c555ccb81ee5b1e87477840991ef7b386bc3ab946b6b682a04a621006b5a01000000fdb40148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f2204148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390175ac4830450220646b72c35beeec51f4d5bc1cbae01863825750d7f490864af354e6ea4f625e9c022100f04b98432df3a9641719dbced53393022e7249fb59db993af1118539830aab870148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a580039017521038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"], + +["Finally CHECKMULTISIG removes all signatures prior to hashing the script containing those signatures. In conjunction with the SIGHASH_SINGLE bug this lets us test whether or not FindAndDelete() is actually present in scriptPubKey/redeemScript evaluation by including a signature of the digest 0x01 We can compute in advance for our pubkey, embed it it in the scriptPubKey, and then also using a normal SIGHASH_ALL signature. If FindAndDelete() wasn't run, the 'bugged' signature would still be in the hashed script, and the normal signature would fail."], + +["Here's an example on mainnet within a P2SH redeemScript. Remarkably it's a standard transaction in <0.9"], +[[["b5b598de91787439afd5938116654e0b16b7a0d0f82742ba37564219c5afcbf9", 0, "DUP HASH160 0x14 0xf6f365c40f0739b61de827a44751e5e99032ed8f EQUALVERIFY CHECKSIG"], + ["ab9805c6d57d7070d9a42c5176e47bb705023e6b67249fb6760880548298e742", 0, "HASH160 0x14 0xd8dacdadb7462ae15cd906f1878706d0da8660e6 EQUAL"]], +"0100000002f9cbafc519425637ba4227f8d0a0b7160b4e65168193d5af39747891de98b5b5000000006b4830450221008dd619c563e527c47d9bd53534a770b102e40faa87f61433580e04e271ef2f960220029886434e18122b53d5decd25f1f4acb2480659fea20aabd856987ba3c3907e0121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffff42e7988254800876b69f24676b3e0205b77be476512ca4d970707dd5c60598ab00000000fd260100483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a53034930460221008431bdfa72bc67f9d41fe72e94c88fb8f359ffa30b33c72c121c5a877d922e1002210089ef5fc22dd8bfc6bf9ffdb01a9862d27687d424d1fefbab9e9c7176844a187a014c9052483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c7153aeffffffff01a08601000000000017a914d8dacdadb7462ae15cd906f1878706d0da8660e68700000000", "P2SH"], + +["Same idea, but with bare CHECKMULTISIG"], +[[["ceafe58e0f6e7d67c0409fbbf673c84c166e3c5d3c24af58f7175b18df3bb3db", 0, "DUP HASH160 0x14 0xf6f365c40f0739b61de827a44751e5e99032ed8f EQUALVERIFY CHECKSIG"], + ["ceafe58e0f6e7d67c0409fbbf673c84c166e3c5d3c24af58f7175b18df3bb3db", 1, "2 0x48 0x3045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 3 CHECKMULTISIG"]], +"0100000002dbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce000000006b4830450221009627444320dc5ef8d7f68f35010b4c050a6ed0d96b67a84db99fda9c9de58b1e02203e4b4aaa019e012e65d69b487fdf8719df72f488fa91506a80c49a33929f1fd50121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffffdbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce010000009300483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303ffffffff01a0860100000000001976a9149bc0bbdd3024da4d0c38ed1aecf5c68dd1d3fa1288ac00000000", "P2SH"], + +["CHECKLOCKTIMEVERIFY tests"], + +["By-height locks, with argument == 0 and == tx nLockTime"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], + +["By-time locks, with argument just beyond tx nLockTime (but within numerical boundries)"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "4294967295 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "500000000 NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Any non-maxint nSequence is fine"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000feffffff0100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["The argument can be calculated rather than created directly by a PUSHDATA"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "499999999 1ADD NOP2 1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Perhaps even by an ADD producing a 5-byte result that is out of bounds for other opcodes"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "2147483647 2147483647 ADD NOP2 1"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff", "P2SH,CHECKLOCKTIMEVERIFY"], + +["5 byte non-minimally-encoded arguments are valid"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x05 0x0000000000 NOP2 1"]], +"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Valid CHECKLOCKTIMEVERIFY in scriptSig"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "1"]], +"01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000001000000", "P2SH,CHECKLOCKTIMEVERIFY"], + +["Valid CHECKLOCKTIMEVERIFY in redeemScript"], +[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"]], +"0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000001000000", "P2SH,CHECKLOCKTIMEVERIFY"], + + +["Make diffs cleaner by leaving a comment here without comma at the end"] +] diff --git a/demo/data/blk86756-testnet.dat b/demo/data/blk86756-testnet.dat new file mode 100644 index 0000000000000000000000000000000000000000..207abdac05c64e3bd7eac65736d13bd32f24b5b6 GIT binary patch literal 9500 zcmb7~byU>fy2fDu=>|b^Xb}aG?nb&n8l*v*fgz<^N>aK*Ku}P+Te=&hyIVl+40@E` zy=UFynYH-C#dr4mJRhF@?!CWTRBU8K5poz901OO_^!ow@cOJS(-}p_pCU8N*#_b>dU{Vnfdc89DN< z6UC%%qWzmpjwfRCd^`WDdh2X#K{7VUKw@_#!<{OJaAjrb-A06maHcOO)=~9=l4d{j z;a3t*#Q+pAZyip?!GeBV*=Q`gafT>?9`f`h0{SP-PgiK;fv6d2216?S*3PTH@;a(HfsN29&z=_7&AGV`0$&r(Tx-FH6Bo3Y^ZkiDrbzULL zPhfddokGb0x-EQIpoO92-~(H|bM1^$Nk97RY=j|mv*?)O1{Kj{lBWFY2@Q;N%&ZI_ z?_mIjTY5{z*oR!h#-D7V4grs-+ve-4W^~Cu4~KQFx1Aet?Z z#^U)?Q2@|2SF)@cZnwzNrZODlg_cc7?`bgQ*yiJx-gesiJ+1-(d?r_wwmpqeStqxR zP~Uhgc-)NpnCSAoYYEm7DZ#`Z0G0yqBvQ59E;hA*Q|r8oE~r(<*Nkw&jAas+xo^qi z4gM}K)F5`i#!kDE1$VjO;64ubQn+d~yDXE}T#6TSwhyR+un;QAQu3)d1iD|ZOKQin z4Nau3g}sE0R1qh)SFKwXr~Ss;^9-xCafOgarbtP|&`otXdEO#xGrW@=i>_o)De|tS zNGnb_S3n3ZhKTxX+HxeyWcS618ou7W(dL?m09~dkG;->rIiV}!mTAB(b^V#g(89OW z%~(;R#Be-l=x1Noa*LUczIYd36jU^@^W^sv9JcET0Pim>iUC9fK_uG^?{hk&?@-57 zfJs-oAcboU9v@VVK<=nzK{@&wE@Eq?T^cdgj#3Q$)BL24WmXnNSkmHKL+r8fKH}Ts z*}Bk`q2$7Mqc?}#XnSg=03dLzzubEh$aU^=VhYp9Uucq_c<{Kn)^|yzo?Gbul)*L>on^BMg{l zQ#~Vmo)PbsQ|tIZ1tIT`B-4k*%gLX&gZL3AirU362uc^-JdHZBMam5si+9*{8390s zrSb|YAo_ZvZ57@C0!FdjppbW5I>(6~k=2cy*oP&Eq*UW;YL}6n(xYkX?V_of8J$_H z@DsxR06dfVg=Uh@s9WX(A31&#O|+GJ{4Q2c!CZC~GrD&~@;STn`=Fx6_CL(0x`^l3 zky))%PS%u*-|t1Uvr1pxVSeS0%R@$!X0_X_p=xOEmh@@~r^C2jTgoL@KXYqZ7g=<$v59 zRsMj36AZG*zG?b|pv;7s@|Vov>FqdbAE!x};w~?LFK1?*!so{fUtd>J6^tBUqD9F0 zBk7fW(zOgOgDGzskx9GQ4u=S5oB){xj~Zo~eK}i%7Z?Dfs?V?t9x`R-%bmx66#t4n z%bK`8k8>}iYC|Y-W(-M&5aIibUfq~bU z|MVK3Iti?n`^TV0%|Vn)C3$fOel_1s3>~TJh{%+oRrOZxChF%%;y@PwP)z7GFhc0O z4CL^&gx&S!4n-L`4uZY{aE_WRxMCYE_b$7KZU3+Y|ak_2kK-kBsy7qc}#d0O0A3Rq7H5ztCOyB%qjNuIpkm@eT@_d^uKE^SeH+KL;v@!1K3ah`-ufS`SY(R zO(K=tQ`CZj4I7<CR-z@0a33Qxa zi&mLBa&=x=I9gLflRuw|gH$^F#*Pj!?-wG^=0e3)> zUV@0sI8Hz5q5Ej#JTvy-(-dtu2(ORtq6~yU>hv6$;r}H4W7QW8dS{I~X4L#@o7fk; zhFTAZ{+V<`OO>QkI4!zx5!zL2;(ngK>Ly``&=@ZBX z+pMjH=XBBQIF9;=HTyob?GhJe@QsD~Q|!M?dJQRVgnMe(zC~c~y@(dL?l?3zHCshZ zu!ga~a0Q9=YpA53NvC^V`i&>peF&wcAw%>0(PGn@iv3L=yiXr~Os^RGIwvIQLHA|E zkFI=n*q&CXJ|fNC9y*OQ0{PcqF67<&fQdZ%1)|9=)LcWfYW3hrg|0_Og(rYFH2$8T zmcdl}YL{$N2Zh`%^ruav(7LzF=pvJ%y6UqeTzxv{j4^L|T?ysL%6~4Sgg&bTG7nla zi!437>}=O8YaQ=n-hmzyB6|if>bzgpuJw^ws~P=p7pJ-~$ICl>=vhum{WBkEp)6Ih>X-I-5KXNM0P@LOHQGqE-o$u#XKSY_e`H)w z6{dP`in04Rn+@MnUj^dO{N4j(cl~6z&PpbahlxcYvP?_XnnG6`u()Bn+r0^hP={f& zCxh6ygvR9&40z;*n(eLRc*PwOn`mQ5o?}V+qYl3{0oB7_S3S2CnQ`+-Qm#mQcOb zzo@6r7#WVjfw3YY`uf$cB0`sns^x>agYgBiJ|5KJ&$&!|g%bNvXZh_{oam}?As&Ul;wKr4Csc;3W(_{p5E3d!um?H7p^fjUo{zEu^5@ws^kL3d|w zt*;QG5x*)1&^#XvbwwkP++XxKz1&nqt)VB|Pe<*BLf`TIfSF-6s{c3xbkHeQPfo&t zw(R>>XUbYh&c>&TX96ne*OoDCG0CQ6YQ`1s>5Uj~a`|T51)(L0NY&t>NT8)Gp}Qu8 z`o2I&h)7G~%VfA|ullJAY_fHN9MH}Mj*Ax0o1d@5M&HiGyoL>_9c6(I%^3@=_K>Vc-yXScXM=-P z>T@^|HvwwxDZE0tp-~1DgC}>WXGsT^yoB3qD=tj;GB3(INY;-!{dipY)j3=x9<30_ z1>K+hoXwJb25@Xj>C}Cw#bv`?(|#pylR0?2t%?_4;u{8%N%%n=rg?4H8}|j==MaCB zK;?RGJ{jcG<4(Y}&|(qpuk7x5AJRe@&3adZ4<#;U`UHr1^g%G!IF9f6xP8daNhdYg z#TGH44htN*PTWLW&rk_*v8#!`pb78-O}LrqhFb}%YIq2AkD=IqYLeC2?xL8#P`m8U z$N??$qZ3qRr+)LKmj<1y?9aZ2)rV*riT7Rzus!0Se>wZ&-Jk&?8Llr=!GU6Y7rI+W z<^Ax#&idVrdJlSv)pP3~J_x~t?8g`|Uk|UB-~O}1{QK1wDjW(FU=H7m2z0YAFeP(7 zUwA0Bz~iRhM$ASb+$lNCxqh^M@Ml*HLZLuxo~+k1Afz;LOKuS}Q6#}IHJyvZkw9!ysJWGL z&OqL|bltFbKFQj5kKnkV-aPf*8dTD+tj914T#HdUr-9ti&Lko^X=%rY1N^>}2 zO9u_i4I$Jw`x(=B58J|NO+*=nnI%%{vbpESM!b?4?dCX3&aU4=k}zkonFueps8}6h z^@G%GmxPg^s6;1JEksf82(0vF6XQ1Pcc~W{?Ih!-ie872CJu#>B3*?<*q;Aa)Oo}< zQU(y=Feeo8SgEvZ^M)dYw#e*p41xDYkAnTu-L2RhmYgMT zE-*=0%}Wc`)`;$&Z-O{n8Mh4tS7|)4O)&IN{&qYXd1BG8Rc5SIbx}-c_Q^7mv~AQM5rc zd2#23J#2-wr6NNBUU5!kBj90-Er1(A?i&;1vzBwqx74v_*`QIq?H{#dv0%ByB`exM zJJ}2|MO-F?pwfSCVf+&wbZfAOBaU=wDN%fv5w|iim%P(qoF)1^YvpNgacwF&ytHpPD|7rw+&4 zuh>n#6q!zId|G6$&Ll2m@DBAymTixN;E}?nn~eI?$z)U4*10L&~XOpbc=;9qd z_sdZn9)#?nwi`45k~%vrlQfuMJBvl+@ni}3)#p8F`pivYl5=o*obYsvw!v@ekhK!j zN&ehMVQTydA7bCBnKHwt(jG8_WZ|iM$%xbPGA;l}#=bYX+rhx3cf8qpQ}a#Z%}f6; zysz@Vad1>1tuaf+K-%7u*9h7}A))S>FWCb(KKIHW7ihG}f{v4MSanDvoXbGB)c^Bp zYRkz5rFA18}_vM@gq+xKhwA0~wvs28mg< zNu$xU&Z-GUK`b^0aF>ZUGry?*P_Ao*#ps~Y6Ri7f*3G)N!?jF$Ru&T)tiO2O82)~L zobpG?-evp7sL1g>Kbh#kSrSA(hXlhGyrJUbJ!qnSZf6A^nn?pAFs0AkGigLuV*T^H zJbN`6J0iMxH}DsISX2Q(qEZ#WaOS5d*-6!S^5TsrouE}w;$}_`lkHF$wV6yuh$O|V zI(Y6M+Q$}xt$i{j{84t1>TE%V&#@Ietj}C~L_%+=-+h(%@6SMyg=A1+w^{$>$x+d_ z=(84#DQ|UA9t%3s^;f!+_3v}t7Fxuk`(_axv+ya!lWHw6_m*c~;OkK~sx+x0MnQ-9 zxtfx8dpHbw^%l&2e7l0#uZQtHXVoj3oS|7)eU?2;+FK6--CL5zGdiXeJLtXN#iMNp z5KE*}ITAafDU}8HK_Fo-w1@u9&QUFOKwXPe>E#biLavQus)1e}pLiPDwi+$($6JyD zMJ<1_u4ep!-nZDgRT$`vVk7f#++&omCzz~i$5esa(K@~r4AE35_9`TqJl=^a)?8%b zAowxQxopVX_iO}xD^`ai&&qNL^_qD^`&+tbZ0_1yGG3|_FLReR|AE-ng1xp*b5@g3@XDd^{cWdWmW1 z5uaZe@a57Cwwx1{Nx#c?UxO7zzl?Mp%Qq)hJcJJOtHTUA2=o}v2Goix51AcUi@y%c zt4}2r5bNIVrlzXcBC&*8jAN&4dQ!-rjOLWThl`Jm*NsU~xZ0fjm8rXkR`x0ZVi9dU z-Jg-!`^jqM;U|6Bm^Y<15uSo_wi%J8J?X?c$U)HQY^sOc^(dYG=pp|`Ze^Vf;1O9? zUC+m1Ze$_r4bD{lZm6iA6OdsmO#VRFi3#W2G{emDkrJ=!4a=*LrFV}O=z$MPHV+`0 zGS_yhZa&35RKXlzpy-rpAZZP=?K&+ki&dyBIk9io{L3XCaQEmbn#|q7V&S~sE=aCu zhb#%B^VswIKO6ghc>Bdd#rSwtmrLsLYjMT24-!=s*q`y4oTOxpR2mvpndmg{V1FCo zgz>(5N3o%G8aAj?%HqKuYkpwBVWy6kLMNM*e;CAKQrVKcD=$L1OT18vY21&#oezQa{2sJImM~M5*YSWl7 zYn24t@tS)QFw|5V{qSQe6MQKzhv|o|3Gor-Hz^QNsm};}@U!0?J_+Ogkw#;ufyc{7 zz3*W6ZSTp32Zc3{Fhmq$n4m%yULfjNu)dQ5{>r)ElD2-i9M!kOA)^ZJqHOSOYyZzL zTJFBAahoS0JWsF-x{gNi^bTu!R1SJC(McX#)a}F-n`o(R}sWw0wdkwe%ZNN z@*a*Qno52s3=_<#EtVzdq_qsMOFsr;@vlxw|LM$pN7Rp6nfW>ehh0a@c*D{KFXUhz zVMg3$-3ZXv_(~bHGXaRGd`(NNxdyTIVwmZNS1VUv{NOi=r2XVk7DkgX4zb4ZAfjdx z=Qf&o^U|ZrH?L%W9PS_%U%*YRm>r2BD^t8rezADV{qCmSG)rjwhwN%TR+G;TU3#p_ zw{k(9f9Cz{;8aQjDQ>2}(!6g#e_tKOlQZ-ucT~t#Iswtot90z|57Y`B+{*8(ba?0xNav7mLa+AGnH)g&FF}r03N|*DOwfT~ZPhS- zU$d)(`d!z<*W6r6tj4S?5=Fx1t)~466CTcNrG|u?Mf!RSYWx^dNq9HUCL#`Sh?pHE zBx|bX%nmx9#O+nEdIf>cm{brkeRr=QCXS}CWJ+l5G0-v7;i3-LSi-{t0JPhq2y32! zNhUz)dPdb5pO0&0&tyniK*ma%e;`{&8wv|G!j$cbtIg7=ojTXwW#Ja`uG}>43MbvV z@R=uD*!t&e8tH)nwolcytoGi}Pu6UAhB+ZW8!! z^*;0D3K!8=aAG^uIMi0Wg(2lP8o#ud2<=Gycw3S0epx(oUGZ`Fm;E9u-k~?(6QQCP z^|JVK=fQe;S~LuIDjw^Tdm?J^yYx%f&(^u3^Vj0iFhuveGRoGmAAVUi`vL%(Rc&~R+M_q-G;0$+3(k?b?Pis=O)8w-2M22 z$B$Ok2sm01iE3y?sh_v!IV3IL^DwAuU5>=Iw${GkOEnV}yU_}j>x(<*_;E(&LS|p} zwZRV!+NdbU74Gg$%>dzyK!mvod7d{D0rKntG4mp~B^3lz)Yq?s4`r4UxWL9z%g%bs z*425;z9=KMi-XsI+XKWetTzi5sv6x*pbPTy2j5YLWDFDUVGIwM&h9 zPp4wt8^Eo`hG%;@IDpN|*oc9qD0Z4*9SvPmrQ`bBikcW9wL(cU>k8;A`8QOo2KQ!X zMkto4VaFH2ee@$7#&@u`bqmS@C$1w0Q?_F%x}4%iBl3+AO97LZ2))~iCTd1C_mNcIOeQL>2xu;x^uuxY zR{FyFy|&I*kr(TGlou+>@4i0*C4Fx~fL!lw$vMsxH6Pk+eNsO1l z8tcpOcix_og3)JR48<$e7C(jxv3XO1o|==6u<&%8LdmbX2Wyoi>n2{|}kp BWlR77 literal 0 HcmV?d00001 diff --git a/demo/data/blk86756-testnet.js b/demo/data/blk86756-testnet.js new file mode 100644 index 0000000..51ed9cd --- /dev/null +++ b/demo/data/blk86756-testnet.js @@ -0,0 +1,12 @@ +'use strict'; + +module.exports = { + version: 2, + time: 1371410638, + bits: 473956288, + nonce: 3594009557, + prevblockidhex: '4baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c00000000', + merkleroothex: '97fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658', + blockheaderhex: '020000004baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c0000000097fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658ce10be51c0ff3f1cd53b38d6', + blockhex: '020000004baaa9507c3b27908397ea7bc177a998e9f4fe38b9d5130be7b5353c0000000097fc4c97868288e984ff9f246f2c38510f5c37a3d5b41aae7004b01e2dd5e658ce10be51c0ff3f1cd53b38d61601000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0b03e45201062f503253482fffffffff034034152a010000001976a914ee9a7590f91e04832054f0645bbf243c9fac8e2288ac0000000000000000434104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac0000000000000000252458e99e66e2b90bd8b2a0e2bfcce91e1f09ee7621d95e9a728ca2372d45df3ded00000000000000000100000001d6e149959b6248eee5a17c23a518e5e5e399e98f7d42a2833810f3baf1525acf000000006b4830450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f012103449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6ffffffff02cb6a8233000000001976a9140487c481a671649e1db182ede98d093a335d671388ac25a21d9d000000001976a914590ea00fa3a18281d3020e7ba0c3a1d6aea663c088ac0000000001000000022a24c5dfbdb9dc5e1eb5d38dc9e8c5f8643aee53fcb0d2e44a04924b55c65c6b000000006a47304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef020121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff1186e9edc6526a3ab463d1f0123ae38e5593364d2f80de9d8031a48274b718ab000000006c49304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786ffffffff0260dc2c00000000001976a91468340b9145127d2529dd7ebc3a4567d5579997ac88acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000020f5000a056f91d03c489d7d1558f09c7bc330af3ca8e43706d5cb08fd6c60aad010000006a47304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d4012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff08d4577f5634796567fb0cd50abd1886df3555f71847a1977ba5bc75195405a7010000006a47304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee30121039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891ffffffff02d0b13700000000001976a9149a704e2c99955f50694de60f93cdd449473678aa88acc0c62d00000000001976a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac000000000100000002fc85133b1e259f6deec25953bccfa75df61fd23a471553c80c043c2ea716a675000000006a47304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff04297137bc2c9f486713e4e4fab43134da153e0f8ee8e852554090d02f2605a5000000006a47304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df012103ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531ffffffff0220753800000000001976a9144769612ee7c6e977df40a8cdfd837c85cc7a48f788acc0c62d00000000001976a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac0000000001000000021cb5734a303cefa1ace87b8cc386a573f1eed8370e14c0a830fd04249b7756a6000000006a473044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca60121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffffbabb329d773e9101e127f7c1e95533fb384c79260789dc06fdf73296c9ef352d000000006b4830450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786ffffffff0210fb3000000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac20cf2900000000001976a914e1144ff8ca0ac143b83ada244040bfe9c8d1d63888ac0000000001000000029a494e6072106a040e279b4566f25fc35441a84f6228812142eb5515688832f5000000006b483045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf0121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6affffffffec7d5d39d4db41d7d9ba0653b6c9758f20cf89a4c2e60bb27645a966889fdfd6000000006a473044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c7012103af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092bffffffff0220753800000000001976a914b1b9b659297859bd310ba8ba6f95573c635b191a88acc0c62d00000000001976a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac0000000001000000028c88435add45be7b1521756b8ee3bfc51558040c3922e11facff1d6cdc7fc841000000006a47304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a5830110121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffffbb1d138f7c9e8df06a87cd068fc303cb960c7b5670515a7759653fd3b71c6e7e000000006b4830450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b6012102718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214effffffff0230c11d00000000001976a914e22f515855329b13602778a1d681295e485390b888acd0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac000000000100000002948a4df70264c816b3c65bb1315bc20df2ee12baaba580818ed232a59dbe3282000000006b483045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f6054012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff8dddf5d111131865b48f2b141f635ac6c41f14adc748ea0cd6087fd69b60d573000000006b4830450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff0220cf2900000000001976a9147ff6d70c9f71e29f3b3b77e1acb0bae8d1af12d288ac10fb3000000000001976a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac0000000001000000027624f057be29a1d4d39112006d1a1acaca84b78f5e2323c3ae587365f91b6014000000006a47304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad012102926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcbffffffffed83ae0fa16dd5602ca174f1c845be1f1c370ce483925dda6e524e6f82b93bd8000000006c4930460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d46012102891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8ffffffff02c0c62d00000000001976a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288acd0933c00000000001976a914736d9e4703437b3f245cda14ab4ed2d52b0a622d88ac000000000100000002a34b87af6103eac5adaba08069aca7f19c6091f6b1f4b8ca788e54970cab2039010000006b483045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f160121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20fffffffffa973c9f57b44c4f70b181311ba1ab60c3f3c20663a3127d3c418b9bb3b175ef4000000006b48304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffff0260dc2c00000000001976a914cc0d9d6d476efe8205891836f40e00caf2fde49288acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000026904c207207b72a9671e78f8e1284ae13b7b60c51b352142c849d338e8f3e8f1010000006a4730440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807ffffffffa3693948981b6fab5aeb9df82b1fc8e3fdbfeff8d934ce0617f4a9be699e06e7010000006c493046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd92012103de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0effffffff0260dc2c00000000001976a914ac64ed9c139e44fd8d1d9ad28d1d08fc8a8f70f888acd0ed2d00000000001976a9143770e8980281b63351861a17881cecbfaaa5c74b88ac0000000001000000023b45e99dd007030fd8511434235b70a7d29041eb1e72d3cb2dda7d1e769ec13c000000006b48304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c463012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff87cc87cf0be7989073235f455fe6524324bfe8cba5f4ee3c2a59c46fec3bf14a010000006b48304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c5012103803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4ffffffff0210dd3500000000001976a914bc1e95774ee2e36d2687714da14551132f0588b088acc0c62d00000000001976a914859819cb59368e07d4c95b5221fa4c466d66694988ac0000000001000000027848ce7fbc4f3b3e56a778607e046aa2b2cf891cdba8b61186095d4931b44c72000000006b483045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a49012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff0e33c08e14303d5660127f5d3792ca11c18321a276e71f53415af75a2319ee92010000006b483045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc0121036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0ffffffff02a03c3700000000001976a9144cc35fc2651b5b3e4f22dfa9b6ebef0ca1797fb088acc0c62d00000000001976a91449452bed77744157799ba71fdb43efbd66968ad188ac0000000001000000022a6cc52c8804088ddbc164cfa01e4d9ee7e839c7a8f5d2f1b59b70a50d253f24000000006b483045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a2012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff36262f4b7717eca333432cd9af776bb5ef4b29a2ea1b1cf877b49642db945c62010000006b483045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e73149940121022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374ffffffff02c0c62d00000000001976a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac70383900000000001976a9145ab29618ded8892f8189ca3ce81bef83d3ddda1688ac000000000100000002d724e595476277be4337bb8f39ca700b4f9df1bfb84089c4afd338e1079e9add010000006b483045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c177040121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6affffffffff40fb739e2271f4aaa851dd46fcd1895ddd7a98850ef191ba3b50325c29a4ed010000006b4830450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601210363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568effffffff02a01e3c00000000001976a914b0c1cda106bb5085bd9c0c9982773c7bd066fabc88acc0c62d00000000001976a914859819cb59368e07d4c95b5221fa4c466d66694988ac000000000100000002a9b95beed9491639bc0d1bb833005cf45429ef9a50505f9b91f3c7588feb87ef010000006c493046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff8eaaf0d722fe9deffbc6e9d543f406844c93d1dd1c073d739863c314d2adf4ef000000006a47304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501210251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438bffffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac90ab1e00000000001976a914b27f37b7cee282e7890f4f6df9b49574f35e855288ac000000000100000002fadecb6a5b1bd5f0688fc7dd049dadd956c30006e4dc57155f22c054c1550791000000006b48304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc0121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20fffffffff569ed0585b1d5261fe5a1839e99c23d0cd3b82972526c5bb5b812ceb493facc3010000006b48304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b4012102bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0effffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac504b1400000000001976a914a6a0900e3c77496dc68be8ee130a21b446b8266588ac0000000001000000023d9d0df887b3621c3c884515d1a4c0a22e2bc4aa02300493cb568189847265db010000006b483045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a10121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cffffffff70f6c965fcbae21ee712571b683b33e3b4d0e9c5d1fd685046db7176e3bf432e000000006b483045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801210221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162ffffffff02d0ed2d00000000001976a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac50802000000000001976a91447830d334d04acd62668904b6fab06a90742e75088ac0000000001000000022e48318fb557623da627d1c3f81ab34b99a87ce701440dfb907ad6a8691b51f2000000006c493046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc980121020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988ffffffff675f09c92aa029f3283ee9a6b8bd6f022a1ea3bdccb1d33a09416ee9389e3ecb000000006b48304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff02d0933c00000000001976a914449c3ac7336a78f0c6401f51710949005d2c7ffa88acc0c62d00000000001976a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac00000000010000000233232e2ce65e394a2c7e46519fae48b9b711b5152f764a4d6454bfc0552f275a000000006c493046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3cfffffffff7fc20459ede0aeba4e9224ac667212ff815c651ca4feaaf40880b9f9d82413a010000006c493046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b42012102078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477ffffffff0210fb3000000000001976a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac20cf2900000000001976a9147bdb65a92af2520836f77e5ebccc697d814149ce88ac000000000100000002dae9bc0142c15e33fe26a494d1233e80adf68b50a131f467eb13450caa56e43d000000006c493046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c9609442012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662ffffffff6904c207207b72a9671e78f8e1284ae13b7b60c51b352142c849d338e8f3e8f1000000006c493046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d714012103dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2ffffffff02a03c3700000000001976a91467a341d7fe4de6a810c182ed27a09554e0b4405d88acc0c62d00000000001976a914f7f1f64a590896dccfb869ced060f058007f388b88ac00000000' +}; diff --git a/demo/data/blk86756-testnet.json b/demo/data/blk86756-testnet.json new file mode 100644 index 0000000..577e32c --- /dev/null +++ b/demo/data/blk86756-testnet.json @@ -0,0 +1,684 @@ +{ + "header":{ + "hash":"000000000b99b16390660d79fcc138d2ad0c89a0d044c4201a02bdf1f61ffa11", + "version":2, + "prevHash":"000000003c35b5e70b13d5b938fef4e998a977c17bea978390273b7c50a9aa4b", + "merkleRoot":"58e6d52d1eb00470ae1ab4d5a3375c0f51382c6f249fff84e9888286974cfc97", + "time":1371410638, + "bits":473956288, + "nonce":3594009557 + }, + "transactions":[ + { + "hash":"a6f7b4284fb753eab9b554283c4fe1f1d7e143e6cf3b975d0376d7c08ba4cdf5", + "version":1, + "inputs":[ + { + "prevTxId":"0000000000000000000000000000000000000000000000000000000000000000", + "outputIndex":4294967295, + "sequenceNumber":4294967295, + "script":"03e45201062f503253482f" + } + ], + "outputs":[ + { + "satoshis":5001000000, + "script":"76a914ee9a7590f91e04832054f0645bbf243c9fac8e2288ac" + }, + { + "satoshis":0, + "script":"4104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac" + }, + { + "satoshis":0, + "script":"2458e99e66e2b90bd8b2a0e2bfcce91e1f09ee7621d95e9a728ca2372d45df3ded00000000" + } + ], + "nLockTime":0 + }, + { + "hash":"60c2679c0e791b19638c975528bf5bd55d81e192003c7d1f3fda53fe534b0a7f", + "version":1, + "inputs":[ + { + "prevTxId":"cf5a52f1baf3103883a2427d8fe999e3e5e518a5237ca1e5ee48629b9549e1d6", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"4830450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f012103449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6", + "scriptString":"72 0x30450221009273f5d777408439a40c33ee96630a877d4f29af3f60f5c230e5254ee6f08f4302207975a64f43dc632f34479aa403b9956c484ad0c90a3c50d2e1b5037e1abb586f01 33 0x03449772f2c60c2f4e1f1f74cb6c521a48f12d51ea681b64c8fc074fd8108123f6" + } + ], + "outputs":[ + { + "satoshis":864185035, + "script":"76a9140487c481a671649e1db182ede98d093a335d671388ac" + }, + { + "satoshis":2635964965, + "script":"76a914590ea00fa3a18281d3020e7ba0c3a1d6aea663c088ac" + } + ], + "nLockTime":0 + }, + { + "hash":"d35ce8868da34cdd63dad93b698867cee01e1e5c762a48059528b15eceba9278", + "version":1, + "inputs":[ + { + "prevTxId":"6b5cc6554b92044ae4d2b0fc53ee3a64f8c5e8c98dd3b51e5edcb9bddfc5242a", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef020121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"71 0x304402207aa649b3ba03eeac6c6fb88e74800ca418297f62da75c58284a0c5f6cdfa96b70220324eb99fecdb0eb8bd4eec05bec0f440f4c2132c1afbaa7aaf10f31d17d8ef0201 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"ab18b77482a431809dde802f4d3693558ee33a12f0d163b43a6a52c6ede98611", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"49304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786", + "scriptString":"73 0x304602210084cd799ec732e95a08c9e1ef98e99e43767b6bc4eb6af6cf65ecdf2be6bc96ab022100da1d1c450d675d383b92095c2b9949d693b82b54ac81ba219fad98f8500589ad01 33 0x02b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786" + } + ], + "outputs":[ + { + "satoshis":2940000, + "script":"76a91468340b9145127d2529dd7ebc3a4567d5579997ac88ac" + }, + { + "satoshis":3010000, + "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"7801b9230e03ce29fcfcaf9648939ba522b5d0e303b7683c9babd658ae857903", + "version":1, + "inputs":[ + { + "prevTxId":"ad0ac6d68fb05c6d70438ecaf30a33bcc7098f55d1d789c4031df956a000500f", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"47304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d4012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"71 0x304402201068b39118afc383bb1b7de9aa8fe02cddbd8be5d29cab99d5fff23a0cef5667022020d6cfb4712fc61c13c7ca26e32028cce3d68afea7957ab4bfc5ee03bf9615d401 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"a705541975bca57b97a14718f75535df8618bd0ad50cfb67657934567f57d408", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"47304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee30121039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891", + "scriptString":"71 0x304402206728ade49cb5ec883e07d8acc6450e17b0e27b7f64c81143b4632eaded365e2e02202be3b4b723200de8c070b914d0050ead71d1418196a037f55f1a6dff4e45aee301 33 0x039e65fd2479d4edb0f3db6eecacdadcdc5ddd6d8ef518cf861466dfe1c21cc891" + } + ], + "outputs":[ + { + "satoshis":3650000, + "script":"76a9149a704e2c99955f50694de60f93cdd449473678aa88ac" + }, + { + "satoshis":3000000, + "script":"76a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"1367dbd80e679ccc7008ad5803d60fc60baa126a2490697197224dea823cc407", + "version":1, + "inputs":[ + { + "prevTxId":"75a616a72e3c040cc85315473ad21ff65da7cfbc5359c2ee6d9f251e3b1385fc", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"71 0x304402203da7beabc48687b746a7149679bd8982032816771b5634d1d651af59ce9fa86d0220198ea81d1a547e3493988dd94ffefff3b8fe030340886aa4ffc1b205532f0f9d01 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"a505262fd090405552e8e88e0f3e15da3431b4fae4e41367489f2cbc37712904", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df012103ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531", + "scriptString":"71 0x304402206b729bfd4c132b673c9f1a66c645ed374338963f1e6a3b56229f72b4358f8077022023bea16c89d267313da6df152a976b36a36e1bbea738d698f0ce72ef315962df01 33 0x03ba341f7dd2401a2cd51682d418fd8a12b4d0b09acb8971f0671c2211366a8531" + } + ], + "outputs":[ + { + "satoshis":3700000, + "script":"76a9144769612ee7c6e977df40a8cdfd837c85cc7a48f788ac" + }, + { + "satoshis":3000000, + "script":"76a914dac91bdfe809346e9df5e753adaaef9336344bfc88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"dcb4af4edae739299a633aca1f8d482d44e3d7b99bc4bac574cd470bdb6ad64c", + "version":1, + "inputs":[ + { + "prevTxId":"a656779b2404fd30a8c0140e37d8eef173a586c38c7be8aca1ef3c304a73b51c", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"473044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca60121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"71 0x3044022059bbf19179b81fad8a15ba3dff94271d55d443da636dbaeba6ea0bb5901b8779022045417e208f41f8b37473caaf367a61ed21b31f1205605020de241e89b7ec0ca601 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"2d35efc99632f7fd06dc890726794c38fb3355e9c1f727e101913e779d32bbba", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"4830450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf012102b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786", + "scriptString":"72 0x30450220012c555e725f4eb0d767efdc07aec149c63522b06253e9d1ce6245b90c71951e022100edcce82ddd7e52a3b85bf9a4acc73a3b6df5c9b40fda36e8de09890860599ddf01 33 0x02b567c3f3442f71b6762404be7cc06ffd3b170d4cb98b90dab169187a07eb6786" + } + ], + "outputs":[ + { + "satoshis":3210000, + "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" + }, + { + "satoshis":2740000, + "script":"76a914e1144ff8ca0ac143b83ada244040bfe9c8d1d63888ac" + } + ], + "nLockTime":0 + }, + { + "hash":"7a1dc3bb633c50f7f53d3d8b9d10a86da38483616841de7bd51b8cca3b564a1c", + "version":1, + "inputs":[ + { + "prevTxId":"f53288681555eb42218128624fa84154c35ff266459b270e046a1072604e499a", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"483045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf0121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a", + "scriptString":"72 0x3045022100b35809ba9abcea1ec143c7cd0a27845b3f5139a6bb52757c9e24d86319f8d16c022079f8381c5287af7e6488d6a589e73caf23c487bf355ac22b7c01cf58830110bf01 33 0x023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a" + }, + { + "prevTxId":"d6df9f8866a94576b20be6c2a489cf208f75c9b65306bad9d741dbd4395d7dec", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"473044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c7012103af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092b", + "scriptString":"71 0x3044022008848d34f2ca77f8bf79eb83b89ee8a24292d0c3936350a37f1522664e2e216002204ad05817044e18d0c26e89139b9fb98a21ceda2249a7cfa58f3ec420af9477c701 33 0x03af07092ed729d97d5e2ae9f8a295f1b2da268e7414ce3df9b374051d7647092b" + } + ], + "outputs":[ + { + "satoshis":3700000, + "script":"76a914b1b9b659297859bd310ba8ba6f95573c635b191a88ac" + }, + { + "satoshis":3000000, + "script":"76a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac" + } + ], + "nLockTime":0 + }, + { + "hash":"7766eac176f9db586456b150b7f0f757fd2c8a9b6d7ae8d42977580effe1c964", + "version":1, + "inputs":[ + { + "prevTxId":"41c87fdc6c1dffac1fe122390c045815c5bfe38e6b7521157bbe45dd5a43888c", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a5830110121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"71 0x304402201bf92a99fd85e09de43b9039801f387ad6ea996d71c02185019a18cd2691d68502204500ea82873501c25c5b1476f9cd75d70b2a34a4162470e3390f89ff6a58301101 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"7e6e1cb7d33f6559775a5170567b0c96cb03c38f06cd876af08d9e7c8f131dbb", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"4830450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b6012102718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214e", + "scriptString":"72 0x30450220277eb0e03b897cd20ac3bfa15af82ae2c1e75472ffce0482ce1594cd4536e83802210088164c46f3fc82ed3530b7552a1da6ecd2f690647485bb0fe1a706ae0f09d5b601 33 0x02718b695944b9e6f12db75e7dc7b77f023c8b9706405b62dac6e6c94dc1c7214e" + } + ], + "outputs":[ + { + "satoshis":1950000, + "script":"76a914e22f515855329b13602778a1d681295e485390b888ac" + }, + { + "satoshis":3010000, + "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"819427319cedc05e63e092cbe5e72a3186bea072c01814dd8476d3ef85893ab8", + "version":1, + "inputs":[ + { + "prevTxId":"8232be9da532d28e8180a5abba12eef20dc25b31b15bc6b316c86402f74d8a94", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"483045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f6054012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", + "scriptString":"72 0x3045022100e96feaa777c517aa67498d51c52b7c177c18f7eb96c7ec109bcf4b7d1993245e02203d4f6dc06f4ac4ff947d81a45c9e53b12ee89e4223aa670eee2ca435157f605401 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" + }, + { + "prevTxId":"73d5609bd67f08d60cea48c7ad141fc4c65a631f142b8fb465181311d1f5dd8d", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"4830450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", + "scriptString":"72 0x30450220588e7eb9477043dc7b7d9f554b5db44823d9b7108a73d224af8cb24b190ebc94022100deb2fd7cfbff5f7679a38a16c18075dc9eb705850054415eba27a0f769f94e8d01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" + } + ], + "outputs":[ + { + "satoshis":2740000, + "script":"76a9147ff6d70c9f71e29f3b3b77e1acb0bae8d1af12d288ac" + }, + { + "satoshis":3210000, + "script":"76a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"cbbf483ac272ed5f9cca3ceccf6f08ada34d87fd6a5ccb34ac14e13dfbd4cf1c", + "version":1, + "inputs":[ + { + "prevTxId":"14601bf9657358aec323235e8fb784caca1a1a6d001291d3d4a129be57f02476", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad012102926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcb", + "scriptString":"71 0x304402201bfc0a95285de492ca53fd2ab89b58cdb1d9d817d7c4ade64e31bb63ccf73b7802206d4f72973c9aa804d9a5c9b749a49aec579ab7875d30c1e0b9ab8d3d7b8041ad01 33 0x02926efc059307ca51862547d58b7a0c1749f0e27df6fbea550bbb291ef0a00bcb" + }, + { + "prevTxId":"d83bb9826f4e526eda5d9283e40c371c1fbe45c8f174a12c60d56da10fae83ed", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"4930460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d46012102891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8", + "scriptString":"73 0x30460221008de29b6fafdadc7a1430ff453c9cb4ea96f9186c1c43b9d1f243876c4d187c5a022100f03f8a8a43c39a619c03db80bedaf9111ee817a574edf912795b3bef85024d4601 33 0x02891fda8944ae461484abdc5898a94d666d8e54ed47f534218601c9a39e1058b8" + } + ], + "outputs":[ + { + "satoshis":3000000, + "script":"76a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac" + }, + { + "satoshis":3970000, + "script":"76a914736d9e4703437b3f245cda14ab4ed2d52b0a622d88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"a887d7d752368dbaf40d418fc26915bbcef06b6625739c17fd332914d7c57f94", + "version":1, + "inputs":[ + { + "prevTxId":"3920ab0c97548e78cab8f4b1f691609cf1a7ac6980a0abadc5ea0361af874ba3", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"483045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f160121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f", + "scriptString":"72 0x3045022049ce62033552a024ce0badb3d3c9db84af929c373b816dade2611563871e48840221009f80e97265ce861637468c98237a06df9c7482cc7c1739e1c36a8e85537c7f1601 33 0x032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f" + }, + { + "prevTxId":"f45e173bbbb918c4d327313a66203c3f0cb61aba1113180bf7c4447bf5c973a9", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"48304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", + "scriptString":"72 0x304502204d5decc921dff956fbcfa1a574e43e0d17b9a49ee07f294b74f854f0dd7e0160022100d49781e18670f3372961dd5799d162071e13832fa9f15197c90d7b8ab8168e8d01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" + } + ], + "outputs":[ + { + "satoshis":2940000, + "script":"76a914cc0d9d6d476efe8205891836f40e00caf2fde49288ac" + }, + { + "satoshis":3010000, + "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"db164f27acf3d43e5e5dbed5c173902ecfb1010b992568d086712b62a5e331ef", + "version":1, + "inputs":[ + { + "prevTxId":"f1e8f3e838d349c84221351bc5607b3be14a28e1f8781e67a9727b2007c20469", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"4730440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee012102690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807", + "scriptString":"71 0x30440220740a2107c2d9be5f621822667b9cc34566511c0e6767de900f3b46fa0852d62302207cf2fcf969e48fce7ad43880bd3a7ee5658a421a3fb718e3fd824e22e4bac6ee01 33 0x02690619097c609c03c8b82f7d289aac8a4d2fe36e5a41fc3701138deeeccd9807" + }, + { + "prevTxId":"e7069e69bea9f41706ce34d9f8efbffde3c81f2bf89deb5aab6f1b98483969a3", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"493046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd92012103de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0e", + "scriptString":"73 0x3046022100942e3ffd4522789f747b0c0d18a7228ba9f343294a34ffb0a53801b0d1626963022100eacf2ea0eef2c58e2666442bd331489dbda43adfd6d4809c2e71de38aff7fd9201 33 0x03de66ea9a044ee251ba8a6dfe1d68ee1c2e17acaf5d8b568a515ff37752b6ea0e" + } + ], + "outputs":[ + { + "satoshis":2940000, + "script":"76a914ac64ed9c139e44fd8d1d9ad28d1d08fc8a8f70f888ac" + }, + { + "satoshis":3010000, + "script":"76a9143770e8980281b63351861a17881cecbfaaa5c74b88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"f9840db5cc0479fcd40701543af5db8ba6f127f8f4f0c04752f69278f436ea02", + "version":1, + "inputs":[ + { + "prevTxId":"3cc19e761e7dda2dcbd3721eeb4190d2a7705b23341451d80f0307d09de9453b", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"48304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c463012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"72 0x304502201c10c88a04850d9101b6cbcb51c28d9ca34f693fd918ba3c26775c5993cbdfc1022100e5d7708777b9592d709863859ce0f4d590f56acf5bb3655e119cac10d597c46301 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"4af13bec6fc4592a3ceef4a5cbe8bf244352e65f455f23739098e70bcf87cc87", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"48304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c5012103803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4", + "scriptString":"72 0x304502205cd5ea454979d705d4573d7b6f6a1bae22e5f146e0ccd14079a959a429bf69fc022100d88f05762b394621ec967546151b682f8103bed05b6d99b80adfadd626a721c501 33 0x03803aa78d28c40170231e0520fc38daa405140ed6e177c0747ce9d8d7dd6cdee4" + } + ], + "outputs":[ + { + "satoshis":3530000, + "script":"76a914bc1e95774ee2e36d2687714da14551132f0588b088ac" + }, + { + "satoshis":3000000, + "script":"76a914859819cb59368e07d4c95b5221fa4c466d66694988ac" + } + ], + "nLockTime":0 + }, + { + "hash":"48464b4a6f6f126c220ac43159f1ae9b6e516702126d00762c335d9deb6563ea", + "version":1, + "inputs":[ + { + "prevTxId":"724cb431495d098611b6a8db1c89cfb2a26a047e6078a7563e3b4fbc7fce4878", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"483045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a49012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"72 0x3045022100850533f400465b01658b7dfcb05b3bae38a89344065f8321f69f7b1b2036446f0220663a629b5f2b1cf8748558ae71c8b49cda87e43347d4cbf4c84e3a79bc904a4901 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"92ee19235af75a41531fe776a22183c111ca92375d7f1260563d30148ec0330e", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"483045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc0121036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0", + "scriptString":"72 0x3045022020d4bbbc5c300aadbc52110f7aa971d77bcf567c91d288ed6af0a98fc8f75e74022100ea84ee6d3fbeb672e92ea993d27202fc9ecd33ba7494d8b064518649fc2c17dc01 33 0x036a91343ca1c973401accb1fb902336d2a7a1b4f670ff82d9acc5c380d6a627f0" + } + ], + "outputs":[ + { + "satoshis":3620000, + "script":"76a9144cc35fc2651b5b3e4f22dfa9b6ebef0ca1797fb088ac" + }, + { + "satoshis":3000000, + "script":"76a91449452bed77744157799ba71fdb43efbd66968ad188ac" + } + ], + "nLockTime":0 + }, + { + "hash":"54b986c38ae88a0fdf5efb43d1f8db2d0c1331e746d25d676bc422e93cc1ff67", + "version":1, + "inputs":[ + { + "prevTxId":"243f250da5709bb5f1d2f5a8c739e8e79e4d1ea0cf64c1db8d0804882cc56c2a", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"483045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a2012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"72 0x3045022100bd72079af0ba0965d01dc6de2502ceebe38fa94fcf9850140e7ce1e5ef29d3cc02207da0e0b881594a9bc8750143dfa41ce8255e14f24784a551d3d1c4a2acecc0a201 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"625c94db4296b477f81c1beaa2294befb56b77afd92c4333a3ec17774b2f2636", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"483045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e73149940121022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374", + "scriptString":"72 0x3045022100f074c81f476f50dad72d3d07cef668532bb2b0cc772b49abf67cafd476e4e41302201e36efd9eec72b2f5ff4eac4ffbbe0598c6185b63c6ba8e03737b708e731499401 33 0x022d7e055cd28a8b7ca2613687e9b5cd4ff4a959c54d74f49c12345d1d8f78b374" + } + ], + "outputs":[ + { + "satoshis":3000000, + "script":"76a914fc9c507e2cf3563c63bf9ec7b38773c2a1e1c47288ac" + }, + { + "satoshis":3750000, + "script":"76a9145ab29618ded8892f8189ca3ce81bef83d3ddda1688ac" + } + ], + "nLockTime":0 + }, + { + "hash":"8422b9cdd10e63b7daf4c5a5ac6958c50d1f03f51bd76d1b0e1379c89110f354", + "version":1, + "inputs":[ + { + "prevTxId":"dd9a9e07e138d3afc48940b8bff19d4f0b70ca398fbb3743be77624795e524d7", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"483045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c177040121023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a", + "scriptString":"72 0x3045022100f775b297513593c1c6e461902ab6405c4c38ce3b37d9292fe074153b8c466c29022010ded748e9e7fb1fbb263b8f466e6a1352e05ddb8842a17f712478e3d9c1770401 33 0x023d1c9bcd771cc12b60cce62e9b8196788dd365089b70d898d60917a174e16f6a" + }, + { + "prevTxId":"eda4295c32503bba91f10e85987add5d89d1fc46dd51a8aaf471229e73fb40ff", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"4830450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601210363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568e", + "scriptString":"72 0x30450220686b1c5ecd7ea0e9078784f5ea0100035a962809fd1d0cf7a131604ecfb26f02022100ddf7b8874a375edfa4d0d7b93cfd214d0327e550add318f1a8a379cceae8dac601 33 0x0363c3fa31a5453a29f6cde46c9d77698fd8276cf9f511dd6e5d079a231fea568e" + } + ], + "outputs":[ + { + "satoshis":3940000, + "script":"76a914b0c1cda106bb5085bd9c0c9982773c7bd066fabc88ac" + }, + { + "satoshis":3000000, + "script":"76a914859819cb59368e07d4c95b5221fa4c466d66694988ac" + } + ], + "nLockTime":0 + }, + { + "hash":"0172e18055af32e502eb6d29e2d7700747c9938de5c145ab652bc9999c51fbd9", + "version":1, + "inputs":[ + { + "prevTxId":"ef87eb8f58c7f3919b5f50509aef2954f45c0033b81b0dbc391649d9ee5bb9a9", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"493046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"73 0x3046022100854bc0ee8b24e2b625798148fc505cb37464f72688456dc54b0c25c4dd564091022100c2863ab346c23157baaeb45e6d102e7354cc895ee0dd7b6ecdc77ab34bdd4d0f01 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"eff4add214c36398733d071cddd1934c8406f443d5e9c6fbef9dfe22d7f0aa8e", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"47304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501210251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438b", + "scriptString":"71 0x304402203f28684b208f0f4bf87ca22544e59585a7807fcd5a2ec78fc93ce915e282335502201ab05402d3a2b2914dd955971fade92dc874e6441bc2383766ec8b4c56dca27501 33 0x0251a3bd043afe5cf46a40c4ce4caf3e917190583588634711507d6ef77acc438b" + } + ], + "outputs":[ + { + "satoshis":3010000, + "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" + }, + { + "satoshis":2010000, + "script":"76a914b27f37b7cee282e7890f4f6df9b49574f35e855288ac" + } + ], + "nLockTime":0 + }, + { + "hash":"040efc4e5a76a012626d64106c14c9fcacc451061bb105c057d25a9020f67237", + "version":1, + "inputs":[ + { + "prevTxId":"910755c154c0225f1557dce40600c356d9ad9d04ddc78f68f0d51b5b6acbdefa", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"48304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc0121032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f", + "scriptString":"72 0x304502201dcb7d73d180cda9ddb192e50fcf5f0efaa5e680931f2bc25e58dd368d4b815f0221008149257f9394b01188aa84f92aec7374339076b408360767236a3af18718cddc01 33 0x032e68cde689f248f9dcce3f1b3b607400fd1275aa3d3a821ff81dd95a3645e20f" + }, + { + "prevTxId":"c3ac3f49eb2c815bbbc5262597823bcdd0239ce939185afe61521d5b58d09e56", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"48304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b4012102bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0e", + "scriptString":"72 0x304502205665ae2983ad6ec44220810a6f4c28d77dd518cc891eb9ed67503a756e97c477022100ab456b8a9c1f977623956943d8f1892c3bf84d8adefaa405606d3473f37fb8b401 33 0x02bbdf0772bbacab8eaba47d783d30fa401b08a0ecc4bccd49357171ac38791c0e" + } + ], + "outputs":[ + { + "satoshis":3010000, + "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" + }, + { + "satoshis":1330000, + "script":"76a914a6a0900e3c77496dc68be8ee130a21b446b8266588ac" + } + ], + "nLockTime":0 + }, + { + "hash":"6d0d9d9fefa0abe4892a304b6ea0da54a7e2fc87d9b8cf32e68e868f045dc955", + "version":1, + "inputs":[ + { + "prevTxId":"db657284898156cb93043002aac42b2ea2c0a4d11545883c1c62b387f80d9d3d", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"483045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a10121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"72 0x3045022100af41bf6edc04de96ad8b0d0e0794a7055c9677f2616fcfc1b053f87ad5c60c0f02201ef5279534263776cca80957368791a362354d7a40f3f175874b909de2d7f9a101 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"2e43bfe37671db465068fdd1c5e9d0b4e3333b681b5712e71ee2bafc65c9f670", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"483045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801210221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162", + "scriptString":"72 0x3045022033da8150f9870e045581f5894366f57345946174b43b7f8c0f9b24f7afad395c022100e3db87d42b1050ea8f2e964a13eeae86cc57e771c4dfa29f7f055c74a39be3b801 33 0x0221f705f7d58ceea66122bcdc7220db0583d8ce1d7d948ed86007905268f55162" + } + ], + "outputs":[ + { + "satoshis":3010000, + "script":"76a9141882e6174c19c4a2ac6c7d807170e76cbc75160f88ac" + }, + { + "satoshis":2130000, + "script":"76a91447830d334d04acd62668904b6fab06a90742e75088ac" + } + ], + "nLockTime":0 + }, + { + "hash":"cb44de025ed8fb7dab371789bd8328c7df7916058556ec0cd32bd856e3acdc86", + "version":1, + "inputs":[ + { + "prevTxId":"f2511b69a8d67a90fb0d4401e77ca8994bb31af8c3d127a63d6257b58f31482e", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"493046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc980121020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988", + "scriptString":"73 0x3046022100d2733fcc63dd86bc4653d268f16e467e87a7be9e1d3f45cbeccb2423b7eb1c6c022100e3963622c12dab3e9c0c76a8ef13151114cb0f17abe6c29cca2fcbac264dfc9801 33 0x020ce8a0852e31812de6b8f2b2604d948cb06f8f7f404e70a19067cca01b5d0988" + }, + { + "prevTxId":"cb3e9e38e96e41093ad3b1ccbda31e2a026fbdb8a6e93e28f329a02ac9095f67", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"48304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"72 0x304502202beb8d4ff142762f12f867a1686c2a523c55ff336b8ae3992ae1292019afeaf1022100a2e7edb9ffb29628540fd02b21c84abf1cc48d70c9f6adb39550b8aff572c65a01 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + } + ], + "outputs":[ + { + "satoshis":3970000, + "script":"76a914449c3ac7336a78f0c6401f51710949005d2c7ffa88ac" + }, + { + "satoshis":3000000, + "script":"76a914636c549bf6035b27cf3823f5482911ebb2bce5d088ac" + } + ], + "nLockTime":0 + }, + { + "hash":"69910ceb1bdb1551d5fef5979e698c665e1d5c8d365c3d9a0925bf05631e8ab0", + "version":1, + "inputs":[ + { + "prevTxId":"5a272f55c0bf54644d4a762f15b511b7b948ae9f51467e2c4a395ee62c2e2333", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"493046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c0121022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c", + "scriptString":"73 0x3046022100928f760eaabaed51bfc4db0188c84a6a19ef34a88786f2a25d8050c8356d858d022100c1a35c67f2c21b4837eaf73e195c74eb213bdaa4650fe77da072db9f84b90d0c01 33 0x022d9055b471959ea9385bf8c92788c45d836818d86833d91331cee37d8c15ee3c" + }, + { + "prevTxId":"3a41829d9f0b8840afea4fca51c615f82f2167c64a22e9a4eb0ade9e4520fcf7", + "outputIndex":1, + "sequenceNumber":4294967295, + "script":"493046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b42012102078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477", + "scriptString":"73 0x3046022100c098dd6d9b20ed80de2d86d2c1bc9328b1c42f04b03c3767aec9d846d4538c9d0221009e32178215a499f22d8d3afe9f257159143c3d24f07371e0ef2de97d216e3b4201 33 0x02078d4050a314870bd68960765015e5f884e35c60b44e23e0f2d264b73aaca477" + } + ], + "outputs":[ + { + "satoshis":3210000, + "script":"76a9141c5b740011cff8324ed10c3e8f63f6261f36613a88ac" + }, + { + "satoshis":2740000, + "script":"76a9147bdb65a92af2520836f77e5ebccc697d814149ce88ac" + } + ], + "nLockTime":0 + }, + { + "hash":"ca62089ca56d89d36f53d84bc035c839ab20e7d9284e3f93fb4cb408057b4601", + "version":1, + "inputs":[ + { + "prevTxId":"3de456aa0c4513eb67f431a1508bf6ad803e23d194a426fe335ec14201bce9da", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"493046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c9609442012103b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662", + "scriptString":"73 0x3046022100ecf03f0bafb0cf6e08ac80336565bf79b6bac800f546e9f953fb14df7bf239ac022100982e27f2f0b3f8569cef126c0c54a88b002f00d570106c74f5c4b314c960944201 33 0x03b3385ed65f34e06927d8835e86103c3de352dbdece5cb704f6899886a0334662" + }, + { + "prevTxId":"f1e8f3e838d349c84221351bc5607b3be14a28e1f8781e67a9727b2007c20469", + "outputIndex":0, + "sequenceNumber":4294967295, + "script":"493046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d714012103dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2", + "scriptString":"73 0x3046022100febc4cdfbd5073ee756c9763b0e18009893b422e13c25e8f74ca97b84c0cf73f022100a85a6c10debf45e8ad00db28fce5fcb68404e9ac4b844f0ae1d59c0ef210d71401 33 0x03dc9adee9c23ca7a091b4eafc4dfef2ed07adf903dae568f345095321aa9c57e2" + } + ], + "outputs":[ + { + "satoshis":3620000, + "script":"76a91467a341d7fe4de6a810c182ed27a09554e0b4405d88ac" + }, + { + "satoshis":3000000, + "script":"76a914f7f1f64a590896dccfb869ced060f058007f388b88ac" + } + ], + "nLockTime":0 + } + ] +} diff --git a/demo/data/contract-hello.lua b/demo/data/contract-hello.lua new file mode 100644 index 0000000..566760e --- /dev/null +++ b/demo/data/contract-hello.lua @@ -0,0 +1,47 @@ +mylib = require "mylib" +--脚本中必须以`mylib = require "mylib"`开头,注意一定要放在第一行,第一行如果留空会报异常。 + +--定义合约调用事件 +METHOD = { + CHECK_HELLOWORLD = 0x17, + SEND_HELLOWORLD = 0x18 +} + +--参考[4.3 API调试方法实例] +--用于输出log信息至文件 +LogMsg = function (msg) + local logTable = { + key = 0, + length = string.len(msg), + value = msg + } + mylib.LogPrint(logTable) +end + +--------------------------------------------------- + +Check = function() + LogMsg("Run CHECK_HELLOWORLD Method") +end + +Send = function() + LogMsg("Run SEND_HELLOWORLD Method") +end + +--参考[4.2开发常用方法] +--智能合约入口 +Main = function() + assert(#contract >=2, "Param length error (<2): " ..#contract ) + assert(contract[1] == 0xf0, "Param MagicNo error (~=0xf0): " .. contract[1]) + + if contract[2] == METHOD.CHECK_HELLOWORLD then + Check() + elseif contract[2] == METHOD.SEND_HELLOWORLD then + Send() + else + error('method# '..string.format("%02x", contract[2])..' not found') + end +end + +Main() + diff --git a/demo/data/ecdsa.json b/demo/data/ecdsa.json new file mode 100644 index 0000000..67ccd37 --- /dev/null +++ b/demo/data/ecdsa.json @@ -0,0 +1,230 @@ +{ + "valid": [ + { + "d": "01", + "k": "ec633bd56a5774a0940cb97e27a9e4e51dc94af737596a0c5cbb3d30332d92a5", + "message": "Everything should be made as simple as possible, but not simpler.", + "i": 0, + "signature": { + "r": "23362334225185207751494092901091441011938859014081160902781146257181456271561", + "s": "50433721247292933944369538617440297985091596895097604618403996029256432099938" + } + }, + { + "d": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", + "k": "9dc74cbfd383980fb4ae5d2680acddac9dac956dca65a28c80ac9c847c2374e4", + "message": "Equations are more important to me, because politics is for the present, but an equation is something for eternity.", + "i": 0, + "signature": { + "r": "38341707918488238920692284707283974715538935465589664377561695343399725051885", + "s": "3180566392414476763164587487324397066658063772201694230600609996154610926757" + } + }, + { + "d": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", + "k": "fd27071f01648ebbdd3e1cfbae48facc9fa97edc43bbbc9a7fdc28eae13296f5", + "message": "Not only is the Universe stranger than we think, it is stranger than we can think.", + "i": 0, + "signature": { + "r": "115464191557905790016094131873849783294273568009648050793030031933291767741904", + "s": "50562520307781850052192542766631199590053690478900449960232079510155113443971" + } + }, + { + "d": "0000000000000000000000000000000000000000000000000000000000000001", + "k": "f0cd2ba5fc7c183de589f6416220a36775a146740798756d8d949f7166dcc87f", + "message": "How wonderful that we have met with a paradox. Now we have some hope of making progress.", + "i": 1, + "signature": { + "r": "87230998027579607140680851455601772643840468630989315269459846730712163783123", + "s": "53231320085894623106179381504478252331065330583563809963303318469380290929875" + } + }, + { + "d": "69ec59eaa1f4f2e36b639716b7c30ca86d9a5375c7b38d8918bd9c0ebc80ba64", + "k": "6bb4a594ad57c1aa22dbe991a9d8501daf4688bf50a4892ef21bd7c711afda97", + "message": "Computer science is no more about computers than astronomy is about telescopes.", + "i": 0, + "signature": { + "r": "51348483531757779992459563033975330355971795607481991320287437101831125115997", + "s": "6277080015686056199074771961940657638578000617958603212944619747099038735862" + } + }, + { + "d": "00000000000000000000000000007246174ab1e92e9149c6e446fe194d072637", + "k": "097b5c8ee22c3ea78a4d3635e0ff6fe85a1eb92ce317ded90b9e71aab2b861cb", + "message": "...if you aren't, at any given time, scandalized by code you wrote five or even three years ago, you're not learning anywhere near enough", + "i": 1, + "signature": { + "r": "113979859486826658566290715281614250298918272782414232881639314569529560769671", + "s": "6517071009538626957379450615706485096874328019806177698938278220732027419959" + } + }, + { + "d": "000000000000000000000000000000000000000000056916d0f9b31dc9b637f3", + "k": "19355c36c8cbcdfb2382e23b194b79f8c97bf650040fc7728dfbf6b39a97c25b", + "message": "The question of whether computers can think is like the question of whether submarines can swim.", + "i": 1, + "signature": { + "r": "93122007060065279508564838030979550535085999589142852106617159184757394422777", + "s": "3078539468410661027472930027406594684630312677495124015420811882501887769839" + } + } + ], + "invalid": { + "sigError": [ + { + "description": "The wrong signature", + "exception": "Invalid signature", + "d": "01", + "message": "foo", + "signature": { + "r": "38341707918488238920692284707283974715538935465589664377561695343399725051885", + "s": "3180566392414476763164587487324397066658063772201694230600609996154610926757" + } + }, + { + "description": "Invalid r value (< 0)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "-1", + "s": "2" + } + }, + { + "description": "Invalid r value (== 0)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "0", + "s": "2" + } + }, + { + "description": "Invalid r value (>= n)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "115792089237316195423570985008687907852837564279074904382605163141518161494337", + "s": "2" + } + }, + { + "description": "Invalid s value (< 0)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "2", + "s": "-1" + } + }, + { + "description": "Invalid s value (== 0)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "2", + "s": "0" + } + }, + { + "description": "Invalid s value (>= n)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "2", + "s": "115792089237316195423570985008687907852837564279074904382605163141518161494337" + } + }, + { + "description": "Invalid r, s values (r = s = -n)", + "exception": "r and s not in range", + "d": "01", + "message": "foo", + "signature": { + "r": "-115792089237316195423570985008687907852837564279074904382605163141518161494337", + "s": "-115792089237316195423570985008687907852837564279074904382605163141518161494337" + } + } + ] + }, + "deterministicK": [ + { + "message": "test data", + "privkey": "fee0a1f7afebf9d2a5a80c0c98a31c709681cce195cbcd06342b517970c0be1e", + "k_bad00": "fcce1de7a9bcd6b2d3defade6afa1913fb9229e3b7ddf4749b55c4848b2a196e", + "k_bad01": "727fbcb59eb48b1d7d46f95a04991fc512eb9dbf9105628e3aec87428df28fd8", + "k_bad15": "398f0e2c9f79728f7b3d84d447ac3a86d8b2083c8f234a0ffa9c4043d68bd258" + }, + { + "message": "Everything should be made as simple as possible, but not simpler.", + "privkey": "0000000000000000000000000000000000000000000000000000000000000001", + "k_bad00": "ec633bd56a5774a0940cb97e27a9e4e51dc94af737596a0c5cbb3d30332d92a5", + "k_bad01": "df55b6d1b5c48184622b0ead41a0e02bfa5ac3ebdb4c34701454e80aabf36f56", + "k_bad15": "def007a9a3c2f7c769c75da9d47f2af84075af95cadd1407393dc1e26086ef87" + }, + { + "message": "Satoshi Nakamoto", + "privkey": "0000000000000000000000000000000000000000000000000000000000000002", + "k_bad00": "d3edc1b8224e953f6ee05c8bbf7ae228f461030e47caf97cde91430b4607405e", + "k_bad01": "f86d8e43c09a6a83953f0ab6d0af59fb7446b4660119902e9967067596b58374", + "k_bad15": "241d1f57d6cfd2f73b1ada7907b199951f95ef5ad362b13aed84009656e0254a" + }, + { + "message": "Diffie Hellman", + "privkey": "7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f", + "k_bad00": "c378a41cb17dce12340788dd3503635f54f894c306d52f6e9bc4b8f18d27afcc", + "k_bad01": "90756c96fef41152ac9abe08819c4e95f16da2af472880192c69a2b7bac29114", + "k_bad15": "7b3f53300ab0ccd0f698f4d67db87c44cf3e9e513d9df61137256652b2e94e7c" + }, + { + "message": "Japan", + "privkey": "8080808080808080808080808080808080808080808080808080808080808080", + "k_bad00": "f471e61b51d2d8db78f3dae19d973616f57cdc54caaa81c269394b8c34edcf59", + "k_bad01": "6819d85b9730acc876fdf59e162bf309e9f63dd35550edf20869d23c2f3e6d17", + "k_bad15": "d8e8bae3ee330a198d1f5e00ad7c5f9ed7c24c357c0a004322abca5d9cd17847" + }, + { + "message": "Bitcoin", + "privkey": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", + "k_bad00": "36c848ffb2cbecc5422c33a994955b807665317c1ce2a0f59c689321aaa631cc", + "k_bad01": "4ed8de1ec952a4f5b3bd79d1ff96446bcd45cabb00fc6ca127183e14671bcb85", + "k_bad15": "56b6f47babc1662c011d3b1f93aa51a6e9b5f6512e9f2e16821a238d450a31f8" + }, + { + "message": "i2FLPP8WEus5WPjpoHwheXOMSobUJVaZM1JPMQZq", + "privkey": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", + "k_bad00": "6e9b434fcc6bbb081a0463c094356b47d62d7efae7da9c518ed7bac23f4e2ed6", + "k_bad01": "ae5323ae338d6117ce8520a43b92eacd2ea1312ae514d53d8e34010154c593bb", + "k_bad15": "3eaa1b61d1b8ab2f1ca71219c399f2b8b3defa624719f1e96fe3957628c2c4ea" + }, + { + "message": "lEE55EJNP7aLrMtjkeJKKux4Yg0E8E1SAJnWTCEh", + "privkey": "3881e5286abc580bb6139fe8e83d7c8271c6fe5e5c2d640c1f0ed0e1ee37edc9", + "k_bad00": "5b606665a16da29cc1c5411d744ab554640479dd8abd3c04ff23bd6b302e7034", + "k_bad01": "f8b25263152c042807c992eacd2ac2cc5790d1e9957c394f77ea368e3d9923bd", + "k_bad15": "ea624578f7e7964ac1d84adb5b5087dd14f0ee78b49072aa19051cc15dab6f33" + }, + { + "message": "2SaVPvhxkAPrayIVKcsoQO5DKA8Uv5X/esZFlf+y", + "privkey": "7259dff07922de7f9c4c5720d68c9745e230b32508c497dd24cb95ef18856631", + "k_bad00": "3ab6c19ab5d3aea6aa0c6da37516b1d6e28e3985019b3adb388714e8f536686b", + "k_bad01": "19af21b05004b0ce9cdca82458a371a9d2cf0dc35a813108c557b551c08eb52e", + "k_bad15": "117a32665fca1b7137a91c4739ac5719fec0cf2e146f40f8e7c21b45a07ebc6a" + }, + { + "message": "00A0OwO2THi7j5Z/jp0FmN6nn7N/DQd6eBnCS+/b", + "privkey": "0d6ea45d62b334777d6995052965c795a4f8506044b4fd7dc59c15656a28f7aa", + "k_bad00": "79487de0c8799158294d94c0eb92ee4b567e4dc7ca18addc86e49d31ce1d2db6", + "k_bad01": "9561d2401164a48a8f600882753b3105ebdd35e2358f4f808c4f549c91490009", + "k_bad15": "b0d273634129ff4dbdf0df317d4062a1dbc58818f88878ffdb4ec511c77976c0" + } + ] +} diff --git a/demo/data/merkleblocks.js b/demo/data/merkleblocks.js new file mode 100644 index 0000000..c5be8d2 --- /dev/null +++ b/demo/data/merkleblocks.js @@ -0,0 +1,486 @@ +'use strict'; + +module.exports = { + TXHEX: [ + [ // From Mainnet Block 100014 + // From: http://btc.blockr.io/api/v1/tx/raw/652b0aa4cf4f17bdb31f7a1d308331bba91f3b3cbf8f39c9cb5e19d4015b9f01 + "0100000001834537b2f1ce8ef9373a258e10545ce5a50b758df616cd4356e0032554ebd3c4000000008b483045022100e68f422dd7c34fdce11eeb4509ddae38201773dd62f284e8aa9d96f85099d0b002202243bd399ff96b649a0fad05fa759d6a882f0af8c90cf7632c2840c29070aec20141045e58067e815c2f464c6a2a15f987758374203895710c2d452442e28496ff38ba8f5fd901dc20e29e88477167fe4fc299bf818fd0d9e1632d467b2a3d9503b1aaffffffff0280d7e636030000001976a914f34c3e10eb387efe872acb614c89e78bfca7815d88ac404b4c00000000001976a914a84e272933aaf87e1715d7786c51dfaeb5b65a6f88ac00000000" + ], + ], + HEX: [ + // Mainnet Block 100014 + "01000000" + // Version + "82bb869cf3a793432a66e826e05a6fc37469f8efb7421dc88067010000000000" + // prevHash + "7f16c5962e8bd963659c793ce370d95f093bc7e367117b3c30c1f8fdd0d97287" + // MerkleRoot + "76381b4d" + // Time + "4c86041b" + // Bits + "554b8529" + // Nonce + "07000000" + // Transaction Count + "04" + // Hash Count + "3612262624047ee87660be1a707519a443b1c1ce3d248cbfc6c15870f6c5daa2" + // Hash1 + "019f5b01d4195ecbc9398fbf3c3b1fa9bb3183301d7a1fb3bd174fcfa40a2b65" + // Hash2 + "41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068" + // Hash3 + "20d2a7bc994987302e5b1ac80fc425fe25f8b63169ea78e68fbaaefa59379bbf" + // Hash4 + "01" + // Num Flag Bytes + "1d" // Flags + ], + JSON: [ + { // Mainnet Block 100014 + header: { + hash: "000000000000b731f2eef9e8c63173adfb07e41bd53eb0ef0a6b720d6cb6dea4", + version: 1, + prevHash: "0000000000016780c81d42b7eff86974c36f5ae026e8662a4393a7f39c86bb82", + merkleRoot: "8772d9d0fdf8c1303c7b1167e3c73b095fd970e33c799c6563d98b2e96c5167f", + time: 1293629558, + bits: 453281356, + nonce: 696601429 + }, + numTransactions: 7, + hashes: [ + "3612262624047ee87660be1a707519a443b1c1ce3d248cbfc6c15870f6c5daa2", + "019f5b01d4195ecbc9398fbf3c3b1fa9bb3183301d7a1fb3bd174fcfa40a2b65", + "41ed70551dd7e841883ab8f0b16bf04176b7d1480e4f0af9f3d4c3595768d068", + "20d2a7bc994987302e5b1ac80fc425fe25f8b63169ea78e68fbaaefa59379bbf" + ], + flags: [ 29 ] + }, + { // Mainnet Block 12363 + header: { + hash: "00000000ae81d8be56fcad40f7b2ca03612a9ab681ca5bc6628ab3c2d914ef9a", + version: 1, + prevHash: "00000000acc3e6a055e05edc7cd0cfac6187cd73adc3c06d408d05c95edaaef8", + merkleRoot: "67313e7a73b62faffe9380578a1a96727c1f0af62e61eb8aa050064007a008d0", + time: 1240800408, + nonce: 2506812214, + bits: 486604799, + }, + numTransactions: 1, + hashes: [ + "d008a007400650a08aeb612ef60a1f7c72961a8a578093feaf2fb6737a3e3167" + ], + flags: [ 0 ] + }, + { // Mainnet Block 280472 + flags : [ + 255, 85, 218, 225, 90, 173, 229, 43, 183, 195, 213, 229, 43, 108, 43, + 219, 226, 215, 217, 226, 61, 92, 253, 92, 237, 134, 215, 170, 174, 182, + 170, 237, 220, 251, 106, 235, 109, 109, 253, 219, 58, 159, 182, 221, + 190, 189, 181, 126, 251, 223, 223, 254, 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, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 15 + ], + numTransactions : 1159, + hashes : [ + "ad6c32eef89f29f29d43d14500dcb0ac35cba42626244a4dbded64e27d3cdbe4", + "31878bc4a8004d4d2457f7c93571a927de9f22fcacca0356f96fbed5500e1a93", + "252931be626437e48a264aac1f7d178e1ffe8e1c94812e4970f7ab19dfadf074", + "53bd172839306e615ee24552b3ff3c8e2ce2e5a9a6d0c9d1160f1c4bcd73cfde", + "21f3e6be36f0c770938b63505ee2a6065cf9ba5b3ba0d9e115ef9081fb386554", + "7b5bff18588f2f82c130ef92351b289d4a2e6a79dfd2c969ab626fe41d5f3341", + "4672cdcffcd1f3eb4ece0e6558d3d6cef9f42a142df6d46fa6daa4efe5e25a4c", + "f2ba2db60d57f29734fcf98099391a1404c5c1399eb87a6c00f8df9974d1e85d", + "25f5dea2941e8ff493ac7810a4e11cc2846720633469479e8ae29eecee0b2cd2", + "08c71bc1ea3583602db17a5681189f346472447df48bb0254eca8bcdc0e7f2fe", + "42ccdd6e22c0f9da824c6d036f02fe0e5d33368bfa701567bab3fb49acbd9d12", + "971b294ae8678ccc2b1e16c22eb44ded5ef1738dc85d509998982c8d6d742ac5", + "0332bacb6ca645b25682cda96b72c990729e2cf58b0845dc1364cf9785cd09de", + "26ea9fe5be9baddfa879b2e756d71f446779efceef157de30bf799bb632996d0", + "7abcc87284e324bb22d9f2f3365a1745dc9af5e525b659ed60f62d948883f4f5", + "cbcd1f8f2b6dab1253e74d15d1f04c95955e485e5fe462064291d88f84180578", + "fb703bcbdb66148eedb309291609b4e881e94bb9ec8dde1372fa11756ca2e7c5", + "8bd19b733b82e2d02801a55bfd59e262066704c5b09799391224c70862fabfa6", + "ceaeaa83b77263ca910511d385392613695c4882c7fb018c9d37a246b56132e8", + "8c1003d7a5086e57dbd29667668140c1624cc96e96ca97c60f5deb94f15e9a57", + "85945287f9867b8402a287571ea9849fdd5b381873bfc0a6ddd823ef6058f6a5", + "b8d9bb4aea6db726f91cc37040723de9b69048dc725cd0316f7ec7dc10c6d276", + "be9338992c7d0ec10a6364ab8afcde1cf42d45360cc1707208b8d29315742b84", + "7d8b1015509a837ca028c3ec40cddb8e59a96c036e30d18ce84922b8f34e0d1f", + "e9e502636caaa0aa6b978571e3facd5f7a25d25df889583c54e959331051810d", + "489a38d2430ebd638f945bbbc3117345dd2bda666be09bcf454b09272fcc6754", + "b0fe9b242568bbfdbd90932db48dfc42beb4ebdba110b4d7e98b198dfdca4a20", + "0518e5cec967cfdd27d3b3791202bc2e0520cce858f632da776caba97828cdc8", + "97f60954c04de156ceec938437b0eacacf9105bfbb9ea604852eb6454cbbb24d", + "946e2b6387d87d49c151ac2969877410a8f1d65fecc5a99071ec751a6fd7fe6f", + "34d717eb07d2845d9dc1aa0cd620e3ea8d7bd2f25daacc8a058eb9c6a393a896", + "5993d871822b19dfdaa04b7911a790327297132d063f0ce2112323a938904e1c", + "b46666bf125488c07d62af75af71661edc7ef83f17df71bde09c3ceaa574521f", + "6bb9ebc3d94a4d3d528afec8d79f13c5179248cc474d13a3d6f9d279afce0fd8", + "52da5e469bacd7282e515a65a6ca6599bcc8b5e56f7293121b8db41c22483133", + "d2d511a18e5e1a7c2fe485fcd6b3263cec624b1a4e182c8987404adf6434b652", + "9b2fe6183ee437f4c7ce0e368df73256d684b71f48f8f308f62b856604360581", + "30e3e6b952ccd05c32a6c5efefe908fab145a9d7676366c699bd521edd57424c", + "b60c41d49f1c8bb492449c76f63b64a42130579083d5dbfea8377a4a968aa5f1", + "731889fdb1d00f8bd5035071552ee432a0752822d6aca4c35d8f7f14d98b415c", + "b8b7fe24a3b116caab6bc686fb4dd9013027aa349e6e14cdd229c01e9a785444", + "26a8870eaa040d6e0489ee5028d1474d3a895e049f336c7e9ba531e24400393b", + "2a65c6d121dbc11d1c9e58ceedbeee70ff7f6f4c8cfaf5515b9e41c335ea9f03", + "c3724ee9b9c2897fda1c56ce9135ce95eacbb7f9e45a46882e082f2b50b7c19a", + "3168e28ac53cafe312eb0e8bdf454ec77e34390787eab7d78bfd8dfe33640804", + "b461a62a62d6ca50a10b32f09dda4a8f7c18073a86a048634f4331c8c54b4545", + "e9902fd47c94ee0eb0bc3e11836820e1763df3dd5dd0e5da978cbedffa04fbe4", + "01a1d6550ae60519fc796320703a6c3c72e133049845ee6cab9e3850ae6a4274", + "aac3276405f3cadc64a23a1007d85a203135ecb0a656cca11ba7f68ec1d7d8ba", + "cf0a4c57afb757c2a0cbb2d1fd39a10600063bf74695f13a4440fb6e5ade526b", + "feae17a192599d2647adf0218b39ef0e660742349d2395a0b106f6eb2d664796", + "503fc34490ad5de912e86bdb62ccd678d0b9d401cef010d48c935d455364744e", + "fd605fd1f8a121442d09748d3276dd5739a193256c318bce07f29b73e5e2797f", + "270ffccd7a0a1959e1a07d0c2d04cb5b0b1aeaea5abe5b56234c0295718c4269", + "7e7c89a24303966a0b3ec1afa006dec7abc0e46539beb74268534d5721590605", + "2f088d956302164764e6cdcacbcd3ff6545f150fcb2866107c4b4a22dff4444b", + "aa18717fbb5575f3c25195cd59e74c6f096e5622402294900eab58c86ef1f3f9", + "b125a208eb149e923cc70d29248d13549f46f9c353ae99b8818c54f1160efe81", + "d751efaacc03f71d0a306b08b11782d1a002e4211b6905c4524455fd9362bf5f", + "5d67344da8d35bcb0c099e90e9aec2a708a68b6ad9f6b7939cfe1d2eb872a14d", + "ff13ea7bc835d1046c39f50de61e229b154f5b9354e21afdb8202032928c03f9", + "568c957db832e8daa663afb3ebe50f9bc07a546c142a3b8dd8e3ae23c4f3e61b", + "c681f6304af1d4d636ffcc9a511534629f1116dc2209ca33f47aaf0a6a7a38ce", + "822063a0f81c69a738c4596d125847d8d174d33c73d89e5bb10d10e4c8657579", + "bdf5b3f862edd508694af8d64d8eb6dc980de6987f9a5f4012379de6827f4516", + "531177870b5efef4a0985dd48afa13fea0b8e6be87c658d147c2d84e48826e59", + "e523b181cb1aa4d3fcb1f424b609de93bd0a6388cf17a24dcfb76fccc60ecd0c", + "a11e5210eceef1a5dca92d15f08f106061799de1880a84ddd739ad7c162b7023", + "ed61b91c7439b7364820abaffb094bedeb859de42100ceb7a72b098a050fadb6", + "f089c202de5553fc4246fa0d6be72cf54506d7608a153e55806ca1dddfc42764", + "28c3e63756f72b27ae32d07b280bcf1edc13df039361617cb0f29eb17e8559ed", + "a9a1b2b3157d78e642e4b8f534bd1a97a9039ecde41baa1ab0953d7ca527b7d1", + "eece909a9ffaf785c96a29fd2f027048e767d03ca30acfa9813dd99ee3882608", + "fb56466712c8584cb48a5936da28c71773212b9fd2af4c378ccdd498aeefc789", + "4adaa4526cc5f25fd2be1874103da8ce75506d9c05cfadfef3aa684dc9ebc5bc", + "5db5c19d1836da8d44dfcf6a32a9884a39d9b24c1745b7ad07ee90edd165e7ba", + "a85d0a2d898ef48ca6ab120a86c6f58b11091b7f7c4f6faa931d0594db4ea695", + "3514809d3cd2cfc96f5c79e9d08533a7a7238d7ea29d07b6a66be8cdbb3b159c", + "3987a7cff18d70cfa10342c4bc714cd540d5eadcf553af4a93a431209ae0f4f2", + "288bc3cb0fdec441494ca970901cb84e807f522743eb9e53fb7a6b171b1f00df", + "356de5250f43bb8a97a079912fb6be18df2f50e928bff2c37121c01ebcf88c9d", + "dbd2daea97a3a335afc5a2c7207ca176cf01ba40caff06a823e646736d71f2a5", + "6be37d83809273e581a2b373a1778471e33599b695fdf3b7791f65030ef1b38a", + "c7c339fd0998e022c606b02b421031d25a319682b3fd7ff41a48d630b1b8bc9c", + "eeee90adecccafff27ec24f264399190afef7e4b78e6f2f92f0c2c7c47aabe3e", + "79cf1aed207b3603b197630c9d282a8b36de4a92ddb96c1d3ca61efa1c4b7021", + "5553b7a0fcb823ec9e5252c194fe5d8df716cef98bada8a50819f89989a00931", + "a7c060926f5b3219a7b7e131ab6547bd64809cf75b24053952a87e324addc8ac", + "e7649498c748a4cd00221ae6f729e16e29e4fd27d9c28d5ed95bcc6f00377872", + "998a4ead843602e37a210823c221b9755a7a21a7d5283e5db54bac51df16c3ac", + "3fbce6ff59cbb982e3df5ce2917274ca87828f811083eab4b41534d34472dec7", + "b9b417bd9a55634ca616edc371c9e8c09cb0611626b84ce3acfeeb32a1f2627f", + "c303c7dc74f66c512cc2d165ef89d57cee257359b3ee0e00edb3737348f88068", + "07aa9856735c0110c2f8190d3be1aab49f6c6edf4bf231c94428b5ca7509b91d", + "cd59eb7e808f543925e6ab47f794f0bcfc9d91fcb7758b7fa1df3abfbc3c3e9b", + "c549035e1d22855eb6c2bf371b2ac5846e0bef1d0f4700a5192ddc88de27a97a", + "0ac1249b989f412d714daf732137498f9b4bed4d790aae420e9b9b5b6022d6fc", + "83f5604c6f2c8fe5bfbd274f51ba754610b565fa93dd558771787728d1e17d19", + "b106d7fdeab23c1886978f7de80ef1ee2395177cbf26fa5940173369fa42b2dc", + "44a95badbd41ec197043f6907b32d759d935c3fe68af3d5080672cfcfad11d98", + "79843495d689579abe43332a2d0c265abe42dbe8fa94f822d2e6702af0e0a0a9", + "80ea7ea2beefedf6abf2c085a9c2f89ff9ae0da7f42bc1d1478ff641d449181a", + "67657bb03abea359ffc6166e12589162ecb30a5c37a0886e14b20d481652bdae", + "e2095adc5a1dfbf89b28dea1b3cf2d726984fa5343943513dba7b66c347321d6", + "24fa9fa1f60cda5b002b453c79600c458bc513f4f7ea31f2ee40af9a5b0c5533", + "3eeecf1563fc3cee96fc92dac5eba03fc95a7de585f402ef1c6125988393f8d4", + "e64d7d4bf18f87ac4c638b821bab5615fcfca45cfa2470d3e12693b5413618d8", + "2828ce70f254c1f8e18d92c4f28206fd9f2b42f3be1d67405df64d96324939b9", + "f2b24eed42be177653d2f95ec1885d78f3ef1ce32a0088bc4fa2671976156e4c", + "0946f3d99392b7161cd29c0e84acbabbcd7f5f9d58d3288b21151f8170239cf1", + "31290c1047285ab1a97728ad4e51896f890c18452a4fef561023b1aa58d8d197", + "82e79c4ef466cad39b3e08d4b3d05cfba17ea58a5ad4c2d2e0539114bcba88f1", + "8c35a97de4a9831eb2415be5a9883e3477cdf1cd19ed6a24984fa1b45d7e9f90", + "99d0d7783bcb87cd7e976fa6fdc28fd58dd688b087142d9767e432c1f298a261", + "5218233bba9cbc0527e131a3d9d5ea290821ddf58eb8c9b52918f5654804a0a5", + "f4fe4e1a4c22ad8d9725c8cf04b0b509a0ada3458da3ff3c12cbaa389cf8638f", + "ce133d2fa135f4f102b368cfd5ce02078dec518c9b170f4dbcc3ae823b16680f", + "8276e57b19b15fa200e0bf2cc3f221793a14e41b5a8eb3d5155be747747565f1", + "e08977c0b9b3b6d1c9f0dd33e075e9565b1ea67fdfb968a297d643ea56ede5a4", + "34df12dc797251aedb4196d1ed2a67e5febee79f89b35c503ceefabbfba43544", + "336454288c2a05f22211a3e7522624ba70fc3ad381ad43aa227185077be4806c", + "51975d2024c1eeae7d2b44a12a1af2891d234dcee2d0ff500ae03d341b57880b", + "02bba57b27d557180e9edf91a09950cd2340e8fb44a5cb787c5d0f3011a542f3", + "908420fed38c9785eebccf1204e07e3f9d4434ab299342ba489daec0cbf686d7", + "d187e9b16d142e22522ec7098c3412b61fecdf98f1cca554ab4c1a1d2ab489e1", + "7249f156f19b30541f6c816b5387a26cb803a63b41930f08ba3f0107e31208f6", + "497faeb327567a9af6056ec1a7fdbc8154dff2ebb9896df855a5090eaba2a03d", + "eb51ce48cf06179e1ad3135f8e3c8e6c21d3b856690b8a34f063bd348bcc77f7", + "17e156c54f3efa435e8a2fe19b9b6700dee338090a97599f23810aaf0db00d2a", + "f230f52bb22cc4af6373065cb15fc91ca1f6c74eaac3ccc6c1b88553aed581b2", + "bf2c9b5a78e3b1ef95c0fcb8efd85d6f3a3cb594f03b7917ac192023d0c7da30", + "ed438001c7fbd49ea89d1b6116e8ce8da19810631cb045d7093d2ef43ba8a486", + "f99e2575f6d7532e0dd296d126768942e5820a99428023959cd1505e239224fe", + "7147f6dd56c363a1f32cfe475c0a612b65d359154b93866fe516880537990f4e", + "0af258f3304e644b31abfd08b6fcc21159a7729712ed8d2e0856d368f54a4269", + "77608ddabf1f39cec2b3f9cb4cc4d36fd1b04f00a5765c779ee342e4d3c6e5ae", + "e74c05c43ecfb8e7182a334823ee134da43e2e1ab4f92e9c6f3e5e813f30e6d3", + "2b952ea819ab78b34136e4d3d698ca41a58d00e558675cffed4206a93a5f5ef9", + "8e82ae850e62ed480e4a55512dedbd065fb553a419214c87790420d8d2e1b3c8", + "8c560c3b6047002cef9654937b2c8e98fbf741b36e423bce5ff1ede18c7b43d2", + "99a9daa989002fed2ad6819b3c95fe0b04fd9ae0164eafe6f84c7dde3dac66d5", + "a599224017b1f90d4d94180a2cb782f95ca75b65b946522b52c035b13a5d518a", + "692186550a90b67eb0d057f95ca2e194c32222737a44e7ff64b840f7ef2f9ec6", + "3a1532b43af74c7ff2deceee0aea597d63b058fa9af5f491206886060adbbdd9", + "3b744e52f07254f53b70e85389e484c570eb476bea247e1e706ca3b357ccb113", + "7f9d11ef6cb1d0d78aa151aa4c0c6faf8a0cd7543751a4c6da40d9d6dd0e9e89", + "fd82c6589a3df264abce32d31578d46551d1c067c6b9316e47c041c303fa24ec", + "94943dd079fb25b56c6d28c00d3d87ba207ff957ea3328c05e53f95eeac4f16c", + "7519a0ea3b65c23d88d30f5cd84a552259e99ae2322a3cfba3314e9987583bb1", + "be599f62b04f2f77d5c844590b7ca1efd8677fc483f4455e7de901d315d56b5b", + "3bc6500d77b4b5e2882e810610ceac4280e87e6171baf242c890b157b1c3020d", + "3251411ad79102964f144282c1a71fa4e953f6afc8897c9622e14746e9c1a476", + "a79e5d72f0ae70cf43d6988742fe75abd45356ae8d42f2c93c933b0608b9ae70", + "c0eb798ad1cccd38bc8bcca1b1d9a03c394f11e513ac77afc16759ad688b847c", + "9dd585798374b2fd53f2ce173399cdd80c482cb432ac78d7b000aaa6e941ef42", + "7de291dacd196f97b4a031cd553082061cf16cb9b4c8544cfbb16cae7bdfb5d9", + "a923a968585828bf9e2d8874e7eb2165968cb4fcd309e383482e5f6c74bdb45c", + "f856c43a55434ed1727ffac57906f44d6ce73c0896a8f28b961dc0a75fa9b394", + "9e00caae373307a3070eafa659bcd614333dc56a834e81e042523f0419decc67", + "b7c1be14d0824b183ec39184a5b7eda29383796b3dea8d38daccfdfc6ae311c6", + "99640304779e8b265f8d8ae495d5bcd4f82927b623cc57cbb347a5c5c27b682d", + "43a8149510152a2967f5d2b16064312d4cb488d1b6866d5258e877b22e2a1f40", + "c0d28c084fc8188e512995263431561e8c1eb4b7842f1ea11a3cb8485151195e", + "3eba131992984494ba739e8dbecfda6c2fdbec127b094dd43d583a7fbaf6378c", + "8932c9acdec6135447870fd3c0ce74f1345f72dbc38942a42bf418045964b34c", + "e35943cb6de6851111b62d722456f589c2619531adf8268e5332da1afe544282", + "4a310270a3ceb81cc8af14e6d6c9e617d66d361e7d8960558f5cae2a061331b4", + "0d4306cf7404111bf247576a15fe0a66cef0417c47d1fd9e576c09650961c2f2", + "1e846b2677d149da1c012b055fe001c279535acdb83dfba6253b21b625d559ec", + "6dd565d87f2a6fd6c4944f38e9a240696454df79f5ea58e9887676fd74cea688", + "f07f97b58b5d4224b0c11e8ee2f3f9314209958c5da578e7db949b0f6542738e", + "14f5c29aae9fc1d709962dea0fee3070e0ac8eaede64d940d2f43a584a23cf5a", + "00268073af8e1f2f82d742be9d13076ca08173f6bcec3d89c96de3d7823a2f03", + "ef583223b4d2bd42387968c349d928a6f329f6f79912261730b52f90f7960bcc", + "23aea669fd0edf1439db8c121847775336b40340d5743d7ce73e3be8fe184a26", + "fbabfb448b25bfb43fb9df1091127e6c15ea3b6662eb714eaf0a167aa67415a8", + "0ebfc4c6fe4ea2b7700ae9132509253166bb215b8800e86a7633295b140c8ac7", + "778dae382d063c92dda40744b1af2063d0ab77ef46bbeebd5ab57686bb87c959", + "982800d89a84ecfc5a01b8d9a96b69448433a920d4713313f59726174f36a8d7", + "9e9dbdfb7f6198dd07e75ed2665130a941baf1b73601f777cafdfbfa59ee176c", + "e3090a666d5af8611fd8ddc7dd9f0290a5e0d0e40f440c1ed6713d41645465e5", + "b5a78ab61b943ebcdb1dc4e0533b68e0310c9bb37ed23f1c4773409c392f214a", + "bb73f7729212748081ac45731c15630ecd89652ad3b2a563de5aa6795ac0494f", + "a12a2ce969ee1d6261eb7be74cbeafdafcc867767e76b3f9433272681cae3939", + "9e9852c0087dcd88f1fac2383e884894611ec3fd19760316da106ab7b4594f17", + "6182ece2e1b252d838e81d52b2000aab1eef0c8b3efc51df77167929dc495a57", + "ae59c591c044e6f24c54662ae1b64b1e75e20510d2229f6b68bbd4547cf13326", + "4ebb82be6043b5122a86cb6b51434fc23082d2197b5eaff824b52e0295e54d80", + "33f559a179624c63ffe1b3739a5fd5825e117a1fd59003a168f9f892d1de3aa0", + "aac18754690516f5ce0e6c8a8974b0f9db560c6abcd943a09bcf3f3818e4a1ba", + "f73ecb180fe4f4107c6c8f4f3f81bdffa3909db577450ad8a10b7e61029b3e11", + "0fd732521ede730dc8bfb58ec1313f370a5887ec67f395dc048e132681a4cb07", + "bdcc038ebf3c3176dcbbd8b6b7bd8c7737ae279caba99e81f569dbeb29857a42", + "46e287c04d6662f4612f8ba3f88e9a129088b21ad83e8847401f9edfe4ab18ba", + "8d70e5307862c2c60c221a3acd586c9169ae54dbe1f2a108328cf84946007fab", + "8e0de399cb79028aceaa634392b64705cf97864e37f8e488effb2fc6f4a46531", + "57c5e60a4f2b3e82d95f9e78bf70d6a3c27d98873a10aa9eab7e2f279af22a38", + "b5f1729e763fb6f4dbf168fe0d20d03e1c39a9378a045891f0764bb800d6d32c", + "6dddabd46c2167fd89f0bb942a4e1405828b400bb3763a542013dadb3f7307ef", + "54fe8d2f742a0b59a33281aa38a2f1803acf36d538702d693f14099654c94551", + "30a2b9320396248bc3ca27e6976a06336f6ed55be72a2fec222ca8925b36ddee", + "2c13bb82bd5236bd32b087a3bfe291fc4829d0f09f2e701113859abd3ea1cc8c", + "67d852403b6ee6b8146c6a52c33d5585a0377fbb240e841fd30f3fe73f5bd165", + "4a863fa1f3602e380ced5b710b0c77c9f69fc7eda0f137c3b48732758c2e1386", + "30e84049ab91ea6716204a27139fcbc57fceea8ecab28e04bbf690e24f558bbd", + "9aa2e2dd7a770399718421f20fe27b2dc9923e9f6b57d1fa5add3617d24bfeab", + "1e31d7c86bf694f8856cb1c869c665baa452d445c9305bf4a709c37fd2665e82", + "61af97100797147e99daee9fd3b867847970b8fd7d95ef1d3bdfc1c7fa8bc949", + "ac049081dcde776e22911e892e05d1069b7795b7bd332cd88f208fbb72960886", + "8683457c0e857617c0ec755f448d306a2fdc1144de8698f1e33c1dda9d8bb964", + "3dff8d5494fa343f49be420f8d4876446a114ddd3475959c6ac26c51b9b01906", + "c41e7a4e855d7df1ea78e713dc1aa6218de3077a42db5662d80db125011d8620", + "baf74f03d301c85890748a90b06addc4bf4d5d008ec0fde0ae07b9bb8f9dd4a1", + "4185ae388931e194b63dc8ef22e51d4f449b759156a1453a387b6dd40447c00c", + "982021842949f144b1317d0b4961a0f2b40e181fa225a4ad87649f4144d2c880", + "b56c39853ee20c6223032e08507e8eb8cb690441e863bb69f6768afd660052b1", + "1a0f05b6165cfa23f19627024f0b37ca549edc203505b41dde07a9b88bbd7535", + "430cfc29ce4b35ad3b8835b12c688d60bd2bc7df1200074b3c539b7da5eb585e", + "774371f57e9ae885e19294de121a520c3001229e106fc596f2940e3ea1ff0ef3", + "47bc2e2bb4a810348ef348e26ac813d6d5a54baa3433f2abd1612b717d3da015", + "4b72a447be4322ba818576dab8a3ba31a9cefc20421770388fd4829ee934f028", + "6fc3d154fe6e2c509113a13f9e969f20499972b826cd15ac33dc1eb6baf7bfd2", + "2d48e4d127a962377c01058c26c61cd87b5345b6f2818463b5e41c711000caf2", + "a2282c6f0cb806627a207ee1d912c66333f9bc33e92127a278c720a4b0a0ad9e", + "9bce3752dc7a13fad93acc8ac931e764ce6c6909ad22bb087ef0b66beb0bb732", + "705436abdbcaa17582fabd4a86d4d2c2dbab89a07b2ec813b2d71a3e21ecfd27", + "3dbfd8fc113f4ac6524f55266cfa9970118bba6c468c15f4e1afde5041fb2fe4", + "7a6558e365bb9b1532cea9883c5560be5d1df01c4ee21f39ef26e85347a07c76", + "cd7bd7b7115b9973f0560584422296992dd5dee7016d5c3e49c88d9635ee4547", + "a48c74a64066aa0013d5cb76ba25ca73bb4f9ad2017214d566cccd71d2ad8f49", + "5a703dd802e7b0cd8660dcd1cdb4cbeca7ddce66ee89648538f1cec7f0e4ae16", + "c2dab8adf040a2fbcbad196d50b2357fb35432f9a4fe09377adc0ef71e0b9f7d", + "02dc0a4d4b25d732c7455547a555067181924632f99b5693397dc636b28423bf", + "6cfc763f0b00b2d469529582b38b6b9608e9406f0b6fb2e2aa2de4197eb16c5a", + "8828a15c1d52c1e3967fd652db870c8cc1a6aad787418c307f415611da3fcf0e", + "7f53dc6e2fdc3a61e5e296e75c2697da21f8f92bc346388f6a17c25ef7686ed6", + "becbaba75af9ace5c4899513cdbb1eca3b016c4c2968154eb0ec3bc5facf6e71", + "3f7859a6b06d096d20bc644889a226eaa5d747d860b9fa0d0cded49bdcbf8fe0", + "cd9250c8c2eb6c28ca2aaabf41d91b18f75edad3e9df82aad70272702fe2feae", + "d56bfb137e6d4150095d242cd0e63fc6cde099a3e670ce9a5d8f2e6ffba77a07", + "b3bd7ec83a8057aa609bb485c4e247e67e4cb923d4764765862db65b6af15307", + "1942bdf5f85eef33c1c64ad92469bf78bf7fac628a22feaf193d86adc62e8b93", + "cd313479b8467c29655be09d63d4c1208fbbd6607a19c9a13f6bf094d28812a4", + "0d31559805703d361e04e48283e62ed21dacebf8104fa7ccbcb5e59d468f70e1", + "ac1e224a387d2d9a6d6ef7c19451af3efa599753b9fe44b4e737b6d2e37fb551", + "9116da1e18ba243f3ed29a76197fa8e2d957d6f11169cc1275709e6cdc4a8756", + "b1ef2f49b0b26ec4ce558f5dec98416cf8bcabb9a8702784f3cdf00a5d676587", + "797aaaa86ab5d64bcc4e34d92eff8f63551e579b8fd66b7f01b662d218740e5f", + "c4e31b52cc3bc49bcaf2c632b9597c8e4f5f066b2bc8692ded5663c756b48387", + "2e4b5491eb23250e5e855acb6417b59da3da9ccdc1217e34cd04ca40030eb464", + "900c4d49c267c2d251768442f29fbc1c2aaef0cdf8f8855a9b68be9d7367f046", + "5f940e3736a9ca25f61c16230165594983a5bb1426789aafa2e24f7b7a127f3c", + "a372e58ff796ed4bc28a27aa04393b17060f97b9fea62272446ef389d534e727", + "799eeb62f4e6d0b192a6b8811913b6781043093853f4ad3dfd80ad40dc13cdf6", + "c5da9d51154df4a5904bb2b582bdbd1111cf720e6f03ef5f97f95423df58e147", + "92b302bc860da5db46234ee558fb1aff62ca70bc2b18f142eb5200131e14bc8a", + "aebf6338cb63544de46b9f45311918232722ca625bee66278ecd2f180b0be5ae", + "9a907c10d6033bc91fb1847766307267b8d029379b9859d9c80c209a7cf082a0", + "de28f5c0d46ad54b57c465d8a9e416b849bfd41472ee7d250a360e4d439b3251", + "f651d87f4cbd99f72a7459cf77d8425031627de145041a1689955adcacc88b60", + "4f8641f49563c14b43285257c71df4c60621a5320b8a0bb575bcdb85c1bc131b", + "0810ddc592b81998e465024698f3898c104ed8d13e9f675497c824a81111a28f", + "49050203987cc982c7ebb2620de5fde348a751e00c05ed358fc6b91ce0067baf", + "37694a5c185d87fab218d8b37c39c094fbe00098e3da83d1986a8e12123b8f72", + "9e6aa46a83ce984bf5fcf16fcc535335e3757c8f06774fa467b1c024140c30af", + "0b259dcf3bbd58a9a1369259cef787ea352a1c0ede4fbef2b7d1c785e9f44a02", + "74dfb52467dc994e6007d2e57900630f2d0e8e4ecc57c9097bf0c0cbd908575f", + "94d44a100ca284444dfb0106efcaf04107908975f2b301aa9bb3dd0b437380c6", + "47b11267b2c7be15ee78e744f2dd90ffd5e7a3c21bd3cf8a52df0e553ccdf9a8", + "8f15cdf786ed0c6df1489e8cd28031d1a3fae8f006ac30602ca9a0ec5725d410", + "110a9949642519b08293304865bf19a95f9590db6db8c0d677491715d7decefd", + "918e80b22117f5e587840cd3f6da607312a8792c4e8194f1a191bcd2f550b16b", + "85f9ac70add31496aa4b4bcc4443bc8c15d377e90af375fffc001b4380a2309c", + "5e57b6a99301201ea691dbfacfd7105c940c0374eabd14150ef09875cf5e5468", + "712093cbd1ad05d632da00dad2306d7aa09e48fe651021ecaf13c1e0122d3609", + "93758b69bbc55048f3f64ab02ba05b748a2301ba8fdabda5ad31c5132f3b17f7", + "6fa9a1fd4ec39f4691555ba3064cac5afaa9ee90604bc9c24b6b4c452b5dbd66", + "d062b6b04643123071223138c91a28e50e89ffd48f676c187a647c9ca2637c07", + "53e011f498d01672e4f15ac8c41e44f7aac84c7eb55f37e6d98e50e072133236", + "a29db89a18a11505801ca8146b38e596cda6a53ceb57e6bf05014f62b03a708b", + "0673a9faf5ab50c4c0d16d3d1c9493fd1c6972790f9da84c24b4316bac674d7d", + "fddae5c3c65653c5058ed34da5645b3889bf54bba81c7ab5acbe4d534eb7297a", + "3a87acd3df6a48b023f261a8b316e6b51ccab88bbc5f05ea2aa686e53eb75926", + "a640148dcb71dd66cae73f98727b204e6f8f7ac43132858c81313aa8e2162700", + "d06710316f1ae7ce8234e6ab9800c5a2eb9a62d758090eea1744e7bc7b0d5a07", + "4002aba5e583c3ca558def1aebcc2d01967cc32703fd28f27b79c35275c17e82", + "e33205319a12141ce884fa1802fb5d14806fa02993b6cab412563104ba2875f6", + "984036f284a988ba0b19eec68e485b8f86a592725c9bfa3d2c887f076d4dc669", + "5a6df37a1c8b1056d84940dd1c6352d93483dbfc0960d33ee23a58ccc9f50ed1", + "92b59222427a0caf431ada26da149218d7ed2fea050b11df2cb0a118dda11087", + "5ddf4869c2578c1ccfa3a17c4f728ac6cd9d8bb5b19def13335a8fffb3947e2a", + "3cffff6af9917186588a5291bd997f900ebbd997205a8597ed86b32c313d15f9", + "26212b92d9e7073dbfaf31e501d603f2a4a0a72e6d51eeba003f6c4769e199b9", + "8b9a2208d6e17986f28ce6df7e3f1d2e15cf25225b7852dadbf6771ee21a391d", + "b9ba75b8bc86ae75dff2b9cba3521f9158596bfc4471813688f5a2a471a94a7e", + "51431dbfbde822ef6ccde33a7d7988f34e5042a1ba0cca9b9ba6eb86e797b67e", + "19b8b5c3dc7427d3b4fbe20fc117fe2ffa0ea2101f60701cda8fe4de0b0af495", + "3ed134a30673821c38cced4cc3affec64de7ac890ef88c0f98fb72e59ebe7cdc", + "27bfdd5fd4cab4cccfdf4a2af342958f40d1f82f792896b461b35fc968b3dfd6", + "d4395b2c014b8d988cbe25ad50d02ab03a8fa47875d3ea28a4e37bdf48965530", + "0092d15bfd929deaa455dfe5be976707cbcc761eea63ce216b2457e0d70ad1ad", + "5b6934565705b73e362e79108a153375a6b43fb706b2480ceb0bd75673e8817f", + "122618aa4adf9ec938c48da1c586e059d2847d3d249df5fe613921d6cf4d1117", + "34106ad21d6c03450bd922cb2cd82f8087f4e0e78cc33b678552f96da0ccab6a", + "a46b6cb6e14305fcd0bc642e0930bdaef7c04b6bf3014e138b153ef24a9b3213", + "f71d42a86c0f3a9edd76158f1a1d0ae4a7f34ad836e5521ffd287cc00bfa430f", + "08541a74d5a6d7bcdcdfb04f932b35592ae31e860dea533ae75388ee4973e7d5", + "fe396de692968efa4617b7401edfaf4f75ba296e3321017adf3ccc9ac811b9a2", + "ad94d80fd601ba309e56b6195099794360f8091c8e77db843c113141aaaa9592", + "708744f24ca16598075fbf661c64ec10e735bd3154193fd3a8064d415ed2be20", + "cd7f5f414e2bbe5e05092d727505a2baea0058c9ed4d98f1bc69f60224d7683f", + "fa1045fcedf7041863cf6a2f3ff8dead976c01f3968e9fc0ab94dc14cc392377", + "3d88497ed93e4989b734e47a0a1e285901577ca3f0ab5c54d322dca6818f8dfc", + "ae739e369f8a632b8ef1cf4d98effc0a9154b091f23797f4f8624f34551752dc", + "d40cc8fb2938db8a0351c79d41fae7d3c7d8668a0c32ed4cd956c4cdc770b93f", + "b93950b8f2eccb0a713d3e96e4c9218d1993b9af8a7e8621dbebce519e6b6ad6", + "4f54da34c556e2a0e36d2fd0afed57b391998ccf54517bf6701c64167d3ab6b8", + "97beb30f09514b58013365ef00196667c79a82cf188f8f2417b2d06bbb610b0e", + "e37a52762caddcca8b095f782bbeff5fa20e04b123fd0f9658753b7e2a9943e6", + "9f171cc54a54340c757c468cf608af52a5e56e6a7da6813675520d32fa0272b6", + "777b198faf560d71bf276e7e98acf63d2ee0556b7ab8edf7c8547fb2c4d66e50", + "73cfc9e8632891d77c12e184f27478c19c3c49e78b92caf0bb07596277fca003", + "086ce6966f0ee6f8baaf00d5e3ef95314cca0a717f6596d4462b770d381d1427", + "4a43d62b2764e121390416a339232e6281dfc51b5b4a33c08fcf55f114e0f17e", + "d665b4bfe9fdbd04fc1bccefa1c56cd7634664277a1117e936e78ca5595462b6", + "6c7c0f93dab33466e3ba8b88a7e040081c1ca6d0804c715c2fcc225774bc8e89", + "41c740f4009bae19d4903f2b8a0ac687a9d13079c86ff3d9d532ed5f57f58987", + "535a8f16b8ede6a96cfb53799f1cc99add60b3fa8fcdd90cdf75df6132f6f637", + "0da3a7ac204385a5aa5128ad7d1060e25f13914fd0ffd243de1badd36d2f8dc5", + "ccfc0881c0d34e67d405ce8fbe9b9cd6b52e901312c3018e5b86f55bbc7ecc2e", + "2ad0c7bfcfc937c40ce40587aa420081dfac80c415bbd77f000a2bff22332bd0", + "6327f17b88e3ca7a0d76b2a2b149174159636cbee049ef8fd74ee838c586e12b", + "af47446bea26a8475dc65e1b4e311277a64df12f83ff48a7ad18eecc3e3766fb", + "5d9a44a90439991093e7303a776c495d318b5012cff8217c8623b4b3d44d9cd8", + "440f7e994a260ca4293745a431276c9c87e9cfccec2e7bd8e3d1492fc56a3e8e", + "0186122f88baad1fc4294795dca301240a6ef4d34999e59387e095a2ffbda869", + "411cd7fd695dd595e671afece2bfaadd9e34477fa66858c9643276e81dd16598", + "0b3d09cd01d2bbe2a24398c812eafcfff85e15a9debbab1f7af88eaf618ba2e5", + "3ebb9d27bd068459f386ea4966709b963cd38c828ae35ca4c0085f86dc9ba941", + "6df6a782e21c1f51844b6a01d334a75cbc5557679eb0d3ed24d403da431d21b3", + "b7a5eb26ea3373ef1e5eff05f0acbe8e633cda2d22216d7a1476768437b52027", + "f090be97792dce7e57ac104229b40b10ad306e7f16faec89705997e43b4e0ec4", + "6226b38f52683080de6ea3b0d49a2be57e46d8b38df20e4eba377d89e7555b43", + "595605106e9cd66abb02eb4389a922f26f4981672a9c814074d5f85176c2ce52", + "9bed6bb275376acbd52c871423858452c76f1e098f6b4c3bb0f581c43b1b78af", + "5a5d91cc51f19b2d053f70e68ed7f7809caec0ccc135a368b88e739af7498d21", + "37d0445b8ef3357db5b68226f16270505af0ca8d926d85c66f28b4683bb9f3ca", + "99e5fb26ba2d82674a216b1de505f0d137f3bff7094d70869afe75f1d305c9ac", + "88bc0a7fca01ab1e96b2dabd211605a6212bb5d45f59d7afa3eed9f7bc8cee2d", + "10871ee43797f3ecb4848dc419147c536466edbaca83bfff9c09ef47d2152eeb", + "86fa8cf2806d39a4bcf2a94ccf104d2b54fd72baab034fdbd6fbe7e0ea0dfb37", + "ea7ca070c12582f44c4b083d94aa3fc050bcbe5ce45f4b0d8f47437d223b8d38", + "c4861ea926ca6b8d17c35052c5dd11383583ea686ba3355910364dc6e1e771a6", + "0221bbe4da98b60cd39c2d4787893d5bf1f70e303e7d7fe6fd9dde6528541ddb", + "22a2206974c27030f99f35f259c44ffa64ef11b8e6330a3fcd1a68a8f686ffcd", + "089fe5d906bbf100a911891eac4dea621bf33d0ca79e63856918c0f14598fd48", + "be38f160ef5db2bc51789e67907f5b7955dbf6226b917507eedfd61d15e1b07a", + "ae727ffcd38a5c26ee1a1af45b9ac07a2c9b21550714b15edf909a6b5622ee78", + "4f6cc96186ec9524363c36dbf2caddc3a059d5210694fcd35f3ad3bf831290dc", + "8a0ad15c6a35e1b677adb1151d9b6df49b11fd2f7921b331b5135844ce8a2e5a", + "e4a7addaf81a40e00d9fb3967188ffeffdec0d7b61778dbc12f7f342fca79e5d", + "564acc06212018c0ee33d6109bd062433161a501d0e4a3eee423dafafb21a33f", + "f6332c5c8debbe2e49a1e431b1cfed8b0790943eecc9c3708a2f52204bc997c1", + "b06cfd8e8e17b9afa585ea76f5647b4d54b64f4ad1b41780075f4982daaa68bd", + "1f596a1cee4760ab7b507b18e4f7418e6230de72b9d619cc8f6ac0df5ffa88f4", + "2738eb6f6f0a436e43f04b3fedda30cea5c3b8e36eb94fd3a73b7841ea6e3a6a", + "b84fa9e606a6fd6ee381e2831f1b80a14a1626032fdc3678b121954c5d0ce98a", + "4c4acf3cefd0b466d418d3b7f58f9b41681f803a81878e6fad8409f430e8bf04", + "6fdceb9e02428d9175acbe04590b693a5c644eb8cae672f4c4d06d145ea8ab1a", + "823486c19fd887d93dc2d1478edf5773ba381f13f0ae6f287c1038e7c81aef1c", + "036bf6944a47791471e9a2cb86615de837f3aa234a7d1cd024026b3e1daee79e" + ], + header : { + hash: "00000000000000018eaf634bf13b7e5e50860b99466b91140538223c75b75049", + prevHash : "000000000000000124f6ce137a43bb288d63cc84f9847033cb84595ead05f9de", + merkleRoot : "792f40129c95aec653d2838ef4b031bf541f11c764ca6c3ecc2e20b396ce83cb", + time : 1389715824, + version : 2, + nonce : 322045839, + bits : 419587686, + } + }, + { // Mainnet FilteredBlock 399775 with filter: 6f64fd5aa9dd01f74c03656d376625cf80328d83d9afebe60cc68b8f0e245bd9 + "header": { + "hash": "0000000000000000011b04bc9f4f3856e299b53a335eb1c42be906237c860bb8", + "version": 4, + "prevHash": "0000000000000000015373947aa93c7cb16a308fb0a59644d4123072ad24ce5b", + "merkleRoot": "ac1841eb3b7d380ee114270e3b1c7df349f1e27e2f0f7891138199bc07e006f8", + "time": 1456274787, + "bits": 403093919, + "nonce": 736568686 + }, + "numTransactions": 3309, + "hashes": [ + "adaf1e41a5349a7e2b27e6f2b5fc1186d576d21b47531a410a654439f49bd5a9", + "0f64562b6d361757bfdc5926d28cafb7c45e4822b4ad5a14e65530d0c9d44cd2", + "c34dec8d5954d8c151c3a594a5a6d1f3a1ec8a1a6c470b27aea879b7757328fb", + "c044e5d998fe29cdbe88f87c97c3547f142f5b491cb909d9b0a8e9d3ab7fc984", + "51ecd2d2b02b0ca1a3b439eae3adf87ab37dd87f7be0c5b3437cd22350079101", + "684ebe37c6eaae2879249ff20b3769d5f2f7ad853a5363a4baee68c0c85777a5", + "e561fbeb0faff42f95f2dc8d57d432d4d1a9f84483597a0602e1edc3390f1e33", + "02c070afc743c885a6c8d94d15d6e9c3b991c636b4284258dd37686c8792fe44", + "6f64fd5aa9dd01f74c03656d376625cf80328d83d9afebe60cc68b8f0e245bd9", + "a296fef97b3da0825bac00c794ea234913421b7c1cbb8571978d8d5ba3b16de2", + "691c6855c5da434a06cb39a7e47d9337da0e39112ad975cc70cecc882233920a", + "6a9e7f8e6d1d8c326a774ff691bdf424252cee710f8e5d9da2c094e999c15efc", + "0723ffc695fef989e86784fa2b47097d55f6aac244631536d8d901f5cd9bf170" + ], + "flags": [171,86,23,0] + } + ] +}; diff --git a/demo/data/messages.json b/demo/data/messages.json new file mode 100644 index 0000000..cc1fa33 --- /dev/null +++ b/demo/data/messages.json @@ -0,0 +1,22 @@ +{ + "VERSION": { + "message": "f9beb4d976657273696f6e000000000065000000fc970f17721101000100000000000000ba62885400000000010000000000000000000000000000000000ffffba8886dceab0010000000000000000000000000000000000ffff05095522208de7e1c1ef80a1cea70f2f5361746f7368693a302e392e312fa317050001", + "payload": "721101000100000000000000ba62885400000000010000000000000000000000000000000000ffffba8886dceab0010000000000000000000000000000000000ffff05095522208de7e1c1ef80a1cea70f2f5361746f7368693a302e392e312fa317050001" + }, + "VERACK": { + "message": "f9beb4d976657261636b000000000000000000005df6e0e2", + "payload": "" + }, + "INV": { + "message": "f9beb4d9696e76000000000000000000890200006e4f18431201000000f97347795bf7490ddeba98c129086f54e06633936a49a2a398defb49e5edbb00010000009cb17394db9280b2d5e7d9f01456358384e7453300d48138ca1590e8cd86632f010000000f810b6071b9808117c4b82619b4ae0a7994ed5a0f2c050e50fd5742c3b4e90901000000962798bce9cbfcee9a8c6b5df4cf8bed944eb31ec975e8c1be79b7ab010a1cb501000000baa905bcfc9d2641ecd759724f796a7614e91c7492507b418ba8e077a6e57054010000009a5ac6dae146392edf8b6e96c30951ed7752f9095fab61728207db0f135b18a30100000050e5f153e3f0d89ea432d9a26f088a89b3ca38dbf3f0247ddf15f80779915da801000000c255841510a284b88ba696ed9edfeb4cdb34966271c30bc3bce9fd881106850f0100000000e45af8455894f72cccc4053e1f5e6076a673982b1f4ca5b2abc7b6496823ab01000000c7e6dc049e5b0fdc0f8fac8934e84e9b2f0c3036c7c02638cc05ee2575d6be1701000000aef6435c03c99ee83702aaaf106dc853dee5bcb6025f3af67d1ec72202c437ad010000005369fc3dc81403fe52f766ef585245af908404be1b46e2ef67c93b748ef467e3010000002400f16a63c411ae5e336175afc26515e548c7267c0debdb6aa46830399ba35f01000000ceb4fa6a8ca2713baee2214422b73da47a20934c83d25017bd80053e65ef3091010000000d899968e591703ddd6fd6ce073837588209f8b3b245ecf1bf93e77b9806a6c501000000bddeb56581ad7882d8f2abc78e5a48b3de02d923cd1cfc7525d2dfe80470248a01000000f286188c0947b023f0ba5dd1ea596751d50f67fbe31e64ead39dd711d3585b5801000000e17ad100ebffd2d5a630d37fd2496b2f5ab6ae5c8812da3c642fb6b8dd37f5fd", + "payload": "1201000000f97347795bf7490ddeba98c129086f54e06633936a49a2a398defb49e5edbb00010000009cb17394db9280b2d5e7d9f01456358384e7453300d48138ca1590e8cd86632f010000000f810b6071b9808117c4b82619b4ae0a7994ed5a0f2c050e50fd5742c3b4e90901000000962798bce9cbfcee9a8c6b5df4cf8bed944eb31ec975e8c1be79b7ab010a1cb501000000baa905bcfc9d2641ecd759724f796a7614e91c7492507b418ba8e077a6e57054010000009a5ac6dae146392edf8b6e96c30951ed7752f9095fab61728207db0f135b18a30100000050e5f153e3f0d89ea432d9a26f088a89b3ca38dbf3f0247ddf15f80779915da801000000c255841510a284b88ba696ed9edfeb4cdb34966271c30bc3bce9fd881106850f0100000000e45af8455894f72cccc4053e1f5e6076a673982b1f4ca5b2abc7b6496823ab01000000c7e6dc049e5b0fdc0f8fac8934e84e9b2f0c3036c7c02638cc05ee2575d6be1701000000aef6435c03c99ee83702aaaf106dc853dee5bcb6025f3af67d1ec72202c437ad010000005369fc3dc81403fe52f766ef585245af908404be1b46e2ef67c93b748ef467e3010000002400f16a63c411ae5e336175afc26515e548c7267c0debdb6aa46830399ba35f01000000ceb4fa6a8ca2713baee2214422b73da47a20934c83d25017bd80053e65ef3091010000000d899968e591703ddd6fd6ce073837588209f8b3b245ecf1bf93e77b9806a6c501000000bddeb56581ad7882d8f2abc78e5a48b3de02d923cd1cfc7525d2dfe80470248a01000000f286188c0947b023f0ba5dd1ea596751d50f67fbe31e64ead39dd711d3585b5801000000e17ad100ebffd2d5a630d37fd2496b2f5ab6ae5c8812da3c642fb6b8dd37f5fd" + }, + "ADDR": { + "message": "f9beb4d9616464720000000000000000b93a0000480bab8afdf5016816fa53010000000000000000000000000000000000ffff51403eea208ddb2a8854010000000000000000000000000000000000ffff707c60d9208d31413a54010000000000000000000000000000000000ffff5ed5fd13208d182c8854010000000000000000000000000000000000ffff505f3f81208d65ecb853010000000000000000000000000000000000ffff54d72104208dcca94054010000000000000000000000000000000000ffff40bbe1f2208d73238854010000000000000000000000000000000000ffff55d683cd208d5d258854010000000000000000000000000000000000ffffd523a66d208dcbea87540100000000000000200100005ef579fd2c9d47be4b56d671208db3e58754010000000000000000000000000000000000ffffae373156208d11e58754810000000000000000000000000000000000ffff51071276208d38f48754010000000000000000000000000000000000ffff6d4372e0208d4f448854010000000000000000000000000000000000ffffc556cbea208deb208854010000000000000000000000000000000000ffff450eb059208d97336054010000000000000000000000000000000000ffff4d60444a208dad608754010000000000000000000000000000000000ffff01abd3c3208d2cbe8754010000000000000000000000000000000000ffff7963d8b8208d9dfa8754010000000000000000000000000000000000ffffcebe862c208da7f66554010000000000000000000000000000000000ffff62f2a82e208d430d8854010000000000000000000000000000000000ffff6deb6956208d08148854010000000000000000000000000000000000ffff4b9804ef208d950e8854010000000000000000000000000000000000ffff6b8dd2e1208d1cfc8754010000000000000000000000000000000000ffffb2fe1dab208de7458754010000000000000000000000000000000000ffff32cccb82208d12625654010000000000000000000000000000000000ffff55e6f35a208dd7908354010000000000000000000000000000000000ffff4c642e6f208d17398854010000000000000000000000000000000000ffff45ea14df208dc72d8854010000000000000000000000000000000000ffffdaa48b96208d57fb8654010000000000000000000000000000000000ffff5f0080a9208d4e9a6d54010000000000000000000000000000000000ffff6d94e741208d7a418854010000000000000000000000000000000000ffff6d43b0c1208d5c098854010000000000000000000000000000000000ffff9c11e7ea208d442d8854010000000000000000000000000000000000ffffd0424482208db142fb53010000000000000000000000000000000000ffff54344a4a208d70158854010000000000000000000000000000000000ffff538f8201208d39288854010000000000000000000000000000000000ffff57daab71208d262f8854010000000000000000000000000000000000ffff57e045b1208d91430654010000000000000000000000000000000000ffff4212def5208d7c468854010000000000000000000000000000000000ffff62a4f53b208d9c3e8854010000000000000000000000000000000000ffff5b736bcc208d4d074f54010000000000000000000000000000000000ffff43af9d9b208deaca8754010000000000000000000000000000000000ffff4a8084a0208d74f68754010000000000000000000000000000000000ffff46304541208d5d098854010000000000000000000000000000000000ffff6eabb626208d08228854010000000000000000000000000000000000ffff1f07b030208d959a8254010000000000000000000000000000000000ffff4fa996b3208d4bac8754010000000000000000000000000000000000ffff43a0605b208de4038854010000000000000000000000000000000000ffff4cb41a5b208ddc308854010000000000000000000000000000000000ffffb72e6072208deac86f54010000000000000000000000000000000000ffffd5b815e2208d1b118854010000000000000000000000000000000000ffff3ff8d0a4208db1258854010000000000000000000000000000000000ffff5edd3a6a208d20268754010000000000000000000000000000000000ffff59ed3cfc208d83ed8754010000000000000000000000000000000000ffff4460baea208d71278854010000000000000000000000000000000000ffff4583b547208da7968754010000000000000000000000000000000000ffffd1c34463208d9d428854010000000000000000000000000000000000ffff43c15bc5208d33448854010000000000000000000000000000000000ffff2e0d8a5c208dfa2e7154010000000000000000000000000000000000ffffceff2bca208d47288854010000000000000000000000000000000000ffff5b8d0190208d0e847954010000000000000000000000000000000000ffff5501b8c2208d552f8854010000000000000000000000000000000000ffff5cf3b604208d8c2e8854010000000000000000000000000000000000ffff58666b0d208dcbdd8754010000000000000000000000000000000000ffff59a85cf9208d04208854010000000000000000000000000000000000ffff5f60abe0208dba238854010000000000000000000000000000000000ffff2e77ce67208d62c68754010000000000000000000000000000000000ffffcbae5658208d41108854010000000000000000000000000000000000ffff49329ec8208ddf1d8854010000000000000000000000000000000000ffff603ada12208df90c8854010000000000000000000000000000000000ffff51e0c21c208d5dff8754010000000000000000000000000000000000ffff904ca539208de0118854010000000000000000000000000000000000ffff5c0cecf7208d1b2d88540100000000000000200100005ef579fb18f317b2aba4edfc208dfaa27f54010000000000000000000000000000000000ffff54c65a7c208dc2db8754010000000000000000000000000000000000ffffad0b7981208d88a58754010000000000000000000000000000000000ffff188a1995208de0d78754010000000000000000000000000000000000ffff62a7a6bd208d18f66b54010000000000000000000000000000000000ffffdb4fbe80208dfcf78754010000000000000000000000000000000000ffff67145102208d3d3a8854010000000000000000000000000000000000ffff64259bd6208dcaa98654010000000000000000000000000000000000ffff32c737e1208d3a6a5c54010000000000000000000000000000000000ffff6d793f75208d22d38754010000000000000000000000000000000000ffff0595cc0d208da9ea8754010000000000000000000000000000000000ffff62ca37d3208d440e8854010000000000000000000000000000000000ffff123e1c11208dab428854010000000000000000000000000000000000ffff461df51f208d0f0b8854010000000000000000000000000000000000ffff59d36752208d631f8854010000000000000000000000000000000000ffff5ef8c640208dbc1d8854010000000000000000000000000000000000ffff5f5dc582208d04bf8754010000000000000000000000000000000000ffff0e6797e3208db8028854010000000000000000000000000000000000ffff3cf0c4a1208d6a0c8854010000000000000000000000000000000000ffff58bb5c55208d4f438854010000000000000000000000000000000000ffff5d326005208df6068854010000000000000000000000000000000000ffff5d5a5850208d40eb8754010000000000000000000000000000000000ffff5751ed86208dbad18754010000000000000000000000000000000000ffff63e51608208d99108854010000000000000000000000000000000000ffff36e299cd208d9a1e88540100000000000000200100005ef579fd38a43785a5d441b7208d13258854010000000000000000000000000000000000ffffb90de279208db3778754010000000000000000000000000000000000ffff67fcc80c208d3d358854010000000000000000000000000000000000ffffd00c40fc208dfd0d8854010000000000000000000000000000000000ffff5e89c2f3208dd6428854010000000000000000000000000000000000ffff1863e14a208d89e78754010000000000000000000000000000000000ffff43a11d76208d89ce8754010000000000000000000000000000000000ffff3edb6281208d03298854010000000000000000000000000000000000ffff6d5b26dd208d16df6e54010000000000000000000000000000000000ffffd9c3d176208d7c028854010000000000000000000000000000000000ffffbcc2db1f208d67fc8754010000000000000000000000000000000000ffff59910667208d86b18754010000000000000000000000000000000000ffff6c1482b9208d790b8854010000000000000000000000000000000000ffff0263150d208d89c44554010000000000000000000000000000000000ffff72fcd6b8208d331c8854010000000000000000000000000000000000ffff4c7dcfa8208d9fe98754010000000000000000000000000000000000ffffad08fd05208d0ecd8754010000000000000000000000000000000000ffff7c0fec89208d4af98754010000000000000000000000000000000000ffff2ea6a167208d270b8854010000000000000000000000000000000000ffff59d40fca208d11cf4054010000000000000000000000000000000000ffffb52ac058208d63358254010000000000000000000000000000000000ffff6bd9a130208dbde48754010000000000000000000000000000000000ffff4f915dc7208dece78754010000000000000000000000000000000000ffff5f8423ef208dba308854010000000000000000000000000000000000ffff904cba8c208d953d8854010000000000000000000000000000000000ffff8d1421e5208d5f188854010000000000000000000000000000000000ffff4e1bbfb6208d36fc8754010000000000000000000000000000000000ffff3205cfb6208d5e458854010000000000000000000000000000000000ffff493092c2208dd0878754010000000000000000000000000000000000ffff97caacde208dd99d8754010000000000000000000000000000000000ffffc05f3c38208da7018854010000000000000000000000000000000000ffffdcf5f82d208df0f42254010000000000000000000000000000000000ffff58bf997f208d94228854010000000000000000000000000000000000ffffbc8ee72d208de3448854010000000000000000000000000000000000ffff6d780f99208d32448854010000000000000000000000000000000000ffffbc64c76e208d0b3d8854010000000000000000000000000000000000ffff6c414312208d49138854010000000000000000000000000000000000ffff407e52c6208d2d128854010000000000000000000000000000000000ffff6dc987d8208d4acf8754010000000000000000000000000000000000ffffae151a25208de9dd8754010000000000000000000000000000000000ffff522d2d10208d17df8754010000000000000000000000000000000000ffff4d294737208ddbd48754010000000000000000000000000000000000ffff443703fd208d79108854010000000000000000000000000000000000ffff4bb5a154208d1df28753010000000000000000000000000000000000ffff4c44fc51208d5d496a53010000000000000000000000000000000000ffff530924b0208d180b8854010000000000000000000000000000000000ffffc15fced3208d53128854010000000000000000000000000000000000ffff5bc5b9e4208de21f8854010000000000000000000000000000000000ffff2e05fe1f208d31ab6554010000000000000000000000000000000000ffffae865915208d09248854010000000000000000000000000000000000ffff7d71a4b0208d120b8854010000000000000000000000000000000000ffff93e40150208d25d98754010000000000000000000000000000000000ffffc19f7a86208d99e78754010000000000000000000000000000000000ffff4d675993208d2b218854010000000000000000000000000000000000ffff5144776c208d5a208854010000000000000000000000000000000000ffff2e1cce5820f69e8f8154010000000000000000000000000000000000ffff58718848208d9edd6554010000000000000000000000000000000000ffff2ea758c5208d28c98754010000000000000000000000000000000000ffffc60bd694208d181d8854010000000000000000000000000000000000ffffba6b689e208d77868754010000000000000000000000000000000000ffff182016aa208de1698054010000000000000000000000000000000000ffff5cf5daa9208d823d8854010000000000000000000000000000000000ffffbe4d61c8208d2c3b8854010000000000000000000000000000000000ffff71647df2208da2248854010000000000000000000000000000000000ffff4ff359ca208da2dd8754010000000000000000000000000000000000ffff59f1e52b208da6e60d54010000000000000000000000000000000000ffff579596231159ad218854010000000000000000000000000000000000ffff5895f42d208d5ba78754010000000000000000000000000000000000ffff458ae8b0208ddc9b8754010000000000000000000000000000000000ffff18b507a5208d20eb5754010000000000000000000000000000000000ffff5181a537208daf1d8854010000000000000000000000000000000000ffffd5f51eba208d07f58754010000000000000000000000000000000000ffff6dec54bc208d4b3b8854010000000000000000000000000000000000ffff5c3e1991208d13b54054010000000000000000000000000000000000ffffb273845a208d4f338854010000000000000000000000000000000000ffffcfac797b208d4d898754010000000000000000000000000000000000ffffadaf880d208de72f8854010000000000000000000000000000000000ffffd956ef58208dc1e98754010000000000000000000000000000000000ffff980711cf208dfd8f7154010000000000000000000000000000000000ffff50aba98f208d59fe8754010000000000000000000000000000000000ffff5f2ae582208d3ffa8754010000000000000000000000000000000000ffffbca836db208d389b0054010000000000000000000000000000000000ffffded10925208deb154354010000000000000000000000000000000000ffff717532da208dadde7654010000000000000000000000000000000000ffff93afd0e5208d40458854010000000000000000000000000000000000ffff54ee8cb0208d08fa8754010000000000000000000000000000000000ffff3658eba9208d0df58754010000000000000000000000000000000000ffff72c6876e208d5d408854010000000000000000000000000000000000ffffa7582d7c208de8338854010000000000000000000000000000000000ffffad40d7ad208d6c2a8854010000000000000000000000000000000000ffffbc1833a3208d0fc28754010000000000000000000000000000000000ffffcbceb676208d98448854010000000000000000000000000000000000ffff0121ce6e208d77b58754010000000000000000000000000000000000ffff4b40d938208d853b8854010000000000000000000000000000000000ffff5648d643208d1c9c7854010000000000000000000000000000000000ffff6c3230db208d4e028754010000000000000000000000000000000000ffffd8e33c5d208daf738754010000000000000000000000000000000000ffffad4e9d56208dca438854010000000000000000000000000000000000ffff4f8a0353208d7b408854010000000000000000000000000000000000ffff0599e92a208dc62f8854010000000000000000000000000000000000ffff46236049208dc4d58754010000000000000000000000000000000000ffff4400384d208d0ddb4c54010000000000000000000000000000000000ffff71653b5a208d53388854010000000000000000000000000000000000ffff43bddf66208d7c388854010000000000000000000000000000000000ffff47edca96208d8c068854010000000000000000000000000000000000ffffdded3c2c208d89f60554010000000000000000000000000000000000ffff4e60d8d6208da5ff1154010000000000000000000000000000000000ffff55983c68208d72f58754010000000000000000000000000000000000ffffce47f56a208d7e2d8854010000000000000000000000000000000000ffff17e25c12208da7ca8754010000000000000000000000000000000000ffff051d0baa208d19af8754010000000000000000000000000000000000ffffad42d883208dffd68754010000000000000000000000000000000000ffff5418ff88208d87bf8754010000000000000000000000000000000000ffff4c1fe0dc208deef18754010000000000000000000000000000000000ffff4c71d406208d25868754010000000000000000000000000000000000ffffda67a475208d4d348854010000000000000000000000000000000000ffff5d561269208da5918754010000000000000000000000000000000000ffff42b163b3208dbfac3754010000000000000000000000000000000000ffffad4e01eb208d5c408854010000000000000000000000000000000000ffffcc0bb91e208d4a928754010000000000000000000000000000000000ffff531dba30208db9fd8754010000000000000000000000000000000000ffffa3f72b33208dade58754010000000000000000000000000000000000ffffd8b93aeb208db75d4d54010000000000000000000000000000000000ffffae1d5595208de8d18754010000000000000000000000000000000000ffff4405665c208d88e78754010000000000000000000000000000000000ffff6b96180a208dae667354010000000000000000000000000000000000ffff531f490a208d92f98754010000000000000000000000000000000000ffffd447e857208db1428854010000000000000000000000000000000000ffff36c6b4bb208dd42c8854010000000000000000000000000000000000ffff4b4aff14208df71acd53010000000000000000000000000000000000ffff62d17930208da0b88754010000000000000000000000000000000000ffff974bf913208d5faa7953010000000000000000000000000000000000ffff7419d269208d6c1e8854010000000000000000000000000000000000ffff48a72343208d9c2b8854010000000000000000000000000000000000ffff64431e87208de8908754010000000000000000000000000000000000ffff44660d45208d410b7d54010000000000000000000000000000000000ffff43a3340d208d5b298854010000000000000000000000000000000000ffff9ffda678208de7238854010000000000000000000000000000000000ffff189a3759208da5745354010000000000000000000000000000000000ffff57026e31208df23c885401000000000000002a010488006710000523fbe100000001208dddf48754010000000000000000000000000000000000ffffc1531c5b208d61888754010000000000000000000000000000000000ffff42cd8bc1208df92e8854010000000000000000000000000000000000ffff36e1e970208d0cf75754010000000000000000000000000000000000ffffad4e2420208d0f028854010000000000000000000000000000000000ffff6ec61b02208de6228854010000000000000000000000000000000000ffffdcaa807c208d1cac8754010000000000000000000000000000000000ffff6179416c208db6068854010000000000000000000000000000000000ffffd46121e4208d7ea58754010000000000000000000000000000000000ffff80a41679208d91216254010000000000000000000000000000000000ffff69ece091208d0bf78754010000000000000000000000000000000000ffff45320c0b208dd03c8854010000000000000000000000000000000000ffff4859a2a5208d8e308854010000000000000000000000000000000000ffff2e1ce15a208d30f36354010000000000000000000000000000000000ffff4b61ee15208d7aa05553010000000000000000000000000000000000ffffb129186b208dbb238854010000000000000000000000000000000000ffff581a7f6f208d41248754010000000000000000000000000000000000ffffb009055b208dee218854010000000000000000000000000000000000ffff2e7771f9208db4e78754010000000000000000000000000000000000ffff411bf6ee208db5178854010000000000000000000000000000000000ffffacff001b208dbcf487540100000000000000200100009d386ab83061cfabfe3513a3208d76048854010000000000000000000000000000000000ffff2e35dbc2208d83d28754010000000000000000000000000000000000ffffd91bb1d5208d5c3d8854010000000000000000000000000000000000ffff32a47969208df4bd875401000000000000002a0104f8012032250000000000000002208d1bfa8754010000000000000000000000000000000000ffff53a2f4b6208d141c4554010000000000000000000000000000000000ffffb27b8281208d580c7e54010000000000000000000000000000000000ffffc9ea1340208df7228854010000000000000000000000000000000000ffffd90a268d208d41e18754010000000000000000000000000000000000ffff555b8809208d66358854010000000000000000000000000000000000ffff5280ff23208deecd8754010000000000000000000000000000000000ffff84c6a102208df9bc8754010000000000000000000000000000000000ffffbbc96dae208d9d0a8854010000000000000000000000000000000000ffffb2a2d18a208da9458854010000000000000000000000000000000000ffffca16c30e208d2ca88754010000000000000000000000000000000000ffff6baab63e208d923b8854010000000000000000000000000000000000ffffd5b87bee208d12258854010000000000000000000000000000000000ffff59ee408b208d980e8854010000000000000000000000000000000000ffff2edfb0c4208d33378854010000000000000000000000000000000000ffff6caa7b42208d41176d53010000000000000000000000000000000000ffff1fa2df68208dd1c57f54010000000000000000000000000000000000ffffbeab679a208d17c78754010000000000000000000000000000000000ffff3f983f51208dbb278854010000000000000000000000000000000000ffff568dbc28208d5d5ad953010000000000000000000000000000000000ffff0ec112b7208da1b78754010000000000000000000000000000000000ffffbc287698208d99348854010000000000000000000000000000000000ffff5ff1a302208d23ef8454010000000000000000000000000000000000ffff7ba55d22208d90e98754010000000000000000000000000000000000ffff5ae14503208d58f48754010000000000000000000000000000000000ffffd45a3cae208d530c8854010000000000000000000000000000000000ffff18fb80c4208dc6138854010000000000000000000000000000000000ffff4e2fd6eb208d97208854010000000000000000000000000000000000ffff55ddd5b8208d74f88654010000000000000000000000000000000000ffff1809ad86208dc0278854010000000000000000000000000000000000ffff6ef2dfb6208d84338854010000000000000000000000000000000000ffff58d8114e208dcae78754010000000000000000000000000000000000ffffc21c474c208d61e78754010000000000000000000000000000000000ffffd5b3fc7a208d7a078854010000000000000000000000000000000000ffff32740193208de7547b54010000000000000000000000000000000000ffff8046aac3208db5328854010000000000000000000000000000000000ffff5b0c5366208d5f208854010000000000000000000000000000000000ffff6caa054a208d1d682854010000000000000000000000000000000000ffff69e3eb9d208d179e6b54010000000000000000000000000000000000ffff54aac628208ded2e8854010000000000000000000000000000000000ffff4166d226208d8e148854010000000000000000000000000000000000ffff54305af6208d1ed88754010000000000000000000000000000000000ffff3ed2b2a4208d78ec8554010000000000000000000000000000000000ffff6dd2e575208ddd3e7854010000000000000000000000000000000000ffff1b83a102208d421e8854010000000000000000000000000000000000ffff2eb51bf1208dc01f8854010000000000000000000000000000000000ffff58c66033208d08ce8754010000000000000000000000000000000000ffff5d57b84c208df22e8854010000000000000000000000000000000000ffffbf213e3d208d89cb8754010000000000000000000000000000000000ffff53d7ece1208da9d68754010000000000000000000000000000000000ffff71bef412208d38268854010000000000000000000000000000000000ffff84fc8a6f208d4f107254010000000000000000000000000000000000ffff57a072d9208d990f88540100000000000000200100009d3890d71029db21863020f9208df3c36854010000000000000000000000000000000000ffffbba6a6c4208d3ea71f54010000000000000000000000000000000000ffff3e61237b208d60a18754010000000000000000000000000000000000ffff53a56b4b208db2328854010000000000000000000000000000000000ffff44eef265208d2c0f8854010000000000000000000000000000000000ffff566553c0208dec268854010000000000000000000000000000000000ffff57a69ecd208d93148854010000000000000000000000000000000000ffff9b8f4433208d741b8854010000000000000000000000000000000000ffffae17c74c208ddab94f54010000000000000000000000000000000000ffffab19c63a208d5e886f54010000000000000000000000000000000000ffffbc67a037208d5c3ccc53010000000000000000000000000000000000ffff0e77c86e208d26fb8754010000000000000000000000000000000000ffffc1eae172208d61278854010000000000000000000000000000000000ffff5ce15439208d60df8754010000000000000000000000000000000000ffff2599fb3b208d52418854010000000000000000000000000000000000ffff028710e6208dae448854010000000000000000000000000000000000ffff18152eee208d6ff18754010000000000000000000000000000000000ffff542e396d208d8c248854010000000000000000000000000000000000ffff5519d6d8208d01e33e54010000000000000000000000000000000000ffff5027d563208d05cd8754010000000000000000000000000000000000ffff45a5a9c5208d7c1e8854010000000000000000000000000000000000ffff68c813c8208d38a48754010000000000000000000000000000000000ffff3a60a934208d73ec8754010000000000000000000000000000000000ffffae3db8f3208d096c8754010000000000000000000000000000000000ffff4cb88802208d55d38754010000000000000000000000000000000000ffffd31f082e208d0d8a8754010000000000000000000000000000000000ffff6c22c9bb208d81ba7754010000000000000000000000000000000000ffffca5f88da208d5df88754010000000000000000000000000000000000ffffc31abc05208db1d58754010000000000000000000000000000000000ffff5cf614c8208d2b257c54010000000000000000000000000000000000ffff45f9baa0208d38d78754010000000000000000000000000000000000ffff490e0608208d27e88754010000000000000000000000000000000000ffff17f1ccd0208d501c8854010000000000000000000000000000000000ffff5be834a7208d860b8854010000000000000000000000000000000000ffff640173bc208deada8754010000000000000000000000000000000000ffffdc98f8db208d983d3c54010000000000000000000000000000000000ffff021ab398208d99f28754010000000000000000000000000000000000ffff59a9e417208d19468854010000000000000000000000000000000000ffff91ff01a1208ddbf68754010000000000000000000000000000000000ffff50048949208d89118854010000000000000000000000000000000000ffffc8366923208dea3b8854010000000000000000000000000000000000ffffbcbbb5a9208d364a8854010000000000000000000000000000000000ffffc654bd58208dd52ef953010000000000000000000000000000000000ffff7cabb7bc208db086cc53010000000000000000000000000000000000ffff6c4004ea208d0ff48754010000000000000000000000000000000000ffff0536a3cb208d1c0b8854010000000000000000000000000000000000ffffd90bfef3208dbf188854010000000000000000000000000000000000ffff0252431f208dd1c78754010000000000000000000000000000000000ffff25732b19208dd6fa3954010000000000000000000000000000000000ffff6c1131dc208da6108854010000000000000000000000000000000000ffff1fb9b748208daf368854010000000000000000000000000000000000ffff1f2a2981208d9e2f8854010000000000000000000000000000000000ffffbc658482208d6a458854010000000000000000000000000000000000ffff568b843a208dcd428854010000000000000000000000000000000000ffff5d820794208d38258854010000000000000000000000000000000000ffff6440c630208d1cda8754010000000000000000000000000000000000ffff6e9f7be5208ddd388854010000000000000000000000000000000000ffff9f080244208d2e2d8854010000000000000000000000000000000000ffffbb70cf3d208d3e0c8854010000000000000000000000000000000000ffff3ec27a16208d89098854010000000000000000000000000000000000ffffb55fb2fb208d13468854010000000000000000000000000000000000ffff180ab1e5208dfc2a8854010000000000000000000000000000000000ffffd58a5c0e208db9188854010000000000000000000000000000000000ffff81ce808d208d03d06b54010000000000000000000000000000000000ffff4b496858208d319e8454010000000000000000000000000000000000ffff531fac9f208dc8d98754010000000000000000000000000000000000ffffc113e4ea208d06395754010000000000000000000000000000000000ffff7cabf0d6208d722b8854010000000000000000000000000000000000ffff545db4cd208dd91f8854010000000000000000000000000000000000ffff5f12a597208dfbd57054010000000000000000000000000000000000ffff3cf654e6208dd7358854010000000000000000000000000000000000ffffb4998e79208dd7018854010000000000000000000000000000000000ffffb45cc220208d86df5554010000000000000000000000000000000000ffff7660d462208decd28754010000000000000000000000000000000000ffff5b7bdfe2208dafe28754010000000000000000000000000000000000ffff2e76899e208d0c318854010000000000000000000000000000000000ffffc7bcb183208d35258854010000000000000000000000000000000000ffff3ab2d076208db5c38754010000000000000000000000000000000000ffff48b24d30208ddfd18754010000000000000000000000000000000000ffff904cb00c208d40478854010000000000000000000000000000000000ffff02a3b787208deb318854010000000000000000000000000000000000ffffd2564026208de63f8854010000000000000000000000000000000000ffff615d16c0208dbf1d8854010000000000000000000000000000000000ffffc6fff6f0208d4aee8754010000000000000000000000000000000000ffff56c74bc8208d68bc8754010000000000000000000000000000000000ffff31b581f9208ddcca8754010000000000000000000000000000000000ffff0e97397a208db2318854010000000000000000000000000000000000ffffc766348d208de1bd8754010000000000000000000000000000000000ffffd5927a3d208d2aff8754010000000000000000000000000000000000ffff5152d0a5208da7feb753010000000000000000000000000000000000ffff53fe1694208de7418854010000000000000000000000000000000000ffff189f3d99208de7b38754010000000000000000000000000000000000ffff64004655208dacabb653010000000000000000000000000000000000ffff55413231208d43b88754010000000000000000000000000000000000ffff796e1029208d03788754010000000000000000000000000000000000ffff49b90ff6208d04be8754010000000000000000000000000000000000ffffc327ce1c208d33648254010000000000000000000000000000000000ffff2e896478208d9e308854010000000000000000000000000000000000ffffd395d9bf208df13e8854010000000000000000000000000000000000ffff51bb88ed208dec8c5653010000000000000000000000000000000000ffff557f146e208df4538854010000000000000000000000000000000000ffff48d05928208d41bd8154010000000000000000000000000000000000ffff47384162208df6428854010000000000000000000000000000000000ffffc1566314208d753e8854010000000000000000000000000000000000ffff440c9b4f208d2f078854010000000000000000000000000000000000ffff56021a19208d7b0f4754010000000000000000000000000000000000ffff71653a84208dcee88754010000000000000000000000000000000000ffff5401a332208df4db8754010000000000000000000000000000000000ffff5a9db0e3208df8e38754010000000000000000000000000000000000ffff5d5208fa208d2e298854010000000000000000000000000000000000ffff4c61c0bc208d42ea8754010000000000000000000000000000000000ffff4c405ae7208deade8754010000000000000000000000000000000000ffffc009c823208d99358854010000000000000000000000000000000000ffff6cc2b493208df3fd8754010000000000000000000000000000000000ffff904c6007208d1fde8754010000000000000000000000000000000000ffff92732ae8208d666e8354010000000000000000000000000000000000ffff6daa9d16208d18f78754010000000000000000000000000000000000ffff4d6d8d8a208ddea9ce53010000000000000000000000000000000000ffff17e26f7d208d1ae48754010000000000000000000000000000000000ffffc32ebb89208dee258854010000000000000000000000000000000000ffff4a0f10e1208d290a8854010000000000000000000000000000000000ffff42731593208d7cb33354010000000000000000000000000000000000ffff532e8b97208dfd1e8854010000000000000000000000000000000000ffff6ee91680208d480a1354010000000000000000000000000000000000ffff60f220f6208d55838754010000000000000000000000000000000000ffff1f36d48f208d247e8754010000000000000000000000000000000000ffff44b5a49a208d0efa4954010000000000000000000000000000000000ffff63890597208d862e8854010000000000000000000000000000000000ffffc14d8751208d443c8854010000000000000000000000000000000000ffff70d16dba208d72fe8754010000000000000000000000000000000000ffff55983dd3208d236b6854010000000000000000000000000000000000ffff7aea27f9208d67e08754010000000000000000000000000000000000ffff1b20750d208df10a7154010000000000000000000000000000000000ffff7b9fe56e208db32d8854010000000000000000000000000000000000ffff7ba42d54208db3f58754010000000000000000000000000000000000ffff027b4eba208d70d68754010000000000000000000000000000000000ffffbc1b62b9208d97951454010000000000000000000000000000000000ffffb4b6af10208d251288540100000000000000200100009d386ab800773149c4d7e673208d7b168854010000000000000000000000000000000000ffff58969392208d91d18754010000000000000000000000000000000000ffff9ffd6d4e208d19008854010000000000000000000000000000000000ffff4e926cb8208dd1c98754010000000000000000000000000000000000ffff546cdb77208d6a0a8854010000000000000000000000000000000000ffff6caa8c15208d3a3a8854010000000000000000000000000000000000ffff62e28d6a208d3fe48754010000000000000000000000000000000000ffffd9850be7208dcb438854010000000000000000000000000000000000ffff6c2444b3208d78338854010000000000000000000000000000000000ffffb2df574a208d3b2d3054010000000000000000000000000000000000ffff4b529e67208d5b988754010000000000000000000000000000000000ffff36e152e6208d01ab8754010000000000000000000000000000000000ffff58b531bf208d7b038854010000000000000000000000000000000000ffff54717a6f208db0388854010000000000000000000000000000000000ffff4a694e98208d65418854010000000000000000000000000000000000ffffcef84b25208dcf218854010000000000000000000000000000000000ffff5364fed9208db6c68754010000000000000000000000000000000000ffff4d03decd208dc6158854010000000000000000000000000000000000ffffb9044c79208d65418854010000000000000000000000000000000000ffff56b2192f208d23308754010000000000000000000000000000000000ffffd973f7a4208d05158854010000000000000000000000000000000000ffff1b6d9975208d52cd8754010000000000000000000000000000000000ffffdf5b92ad208d3a128854010000000000000000000000000000000000ffff6d93787e208d351e8854010000000000000000000000000000000000ffffb6a4336f208d9bd58754010000000000000000000000000000000000ffff3ba7f521208dc3288854010000000000000000000000000000000000ffff6bbf20cc208d68998754010000000000000000000000000000000000ffff63b30032208d86848754010000000000000000000000000000000000ffffb52ef15c208dff108854010000000000000000000000000000000000ffff4d06718b208d226f0754010000000000000000000000000000000000ffff44248ba1208da3af7354010000000000000000000000000000000000ffff86f9d72c208d9fd68754010000000000000000000000000000000000ffff521f2444208dae428854010000000000000000000000000000000000ffffd445b025208dfafc8754010000000000000000000000000000000000ffffd447fa84208dbb358854010000000000000000000000000000000000ffff3ee2d196208da01a8854010000000000000000000000000000000000ffff45a615b2208d32edb053010000000000000000000000000000000000ffff6d6494da208d77ed8754010000000000000000000000000000000000ffff555dcc44208d09608754010000000000000000000000000000000000ffff45a5d222208d84558754010000000000000000000000000000000000ffffb01c30ab208d71fe8754010000000000000000000000000000000000ffffae5f68c2208de0acdf53010000000000000000000000000000000000ffffae737936208d29e18754010000000000000000000000000000000000ffffb00a63cb208d220b8854010000000000000000000000000000000000ffff9ec4d12f208db4408854010000000000000000000000000000000000ffff4c6d9bcc208d65a58754010000000000000000000000000000000000ffff5962c453208d2d628854010000000000000000000000000000000000ffff257191d50000", + "payload": "fdf5016816fa53010000000000000000000000000000000000ffff51403eea208ddb2a8854010000000000000000000000000000000000ffff707c60d9208d31413a54010000000000000000000000000000000000ffff5ed5fd13208d182c8854010000000000000000000000000000000000ffff505f3f81208d65ecb853010000000000000000000000000000000000ffff54d72104208dcca94054010000000000000000000000000000000000ffff40bbe1f2208d73238854010000000000000000000000000000000000ffff55d683cd208d5d258854010000000000000000000000000000000000ffffd523a66d208dcbea87540100000000000000200100005ef579fd2c9d47be4b56d671208db3e58754010000000000000000000000000000000000ffffae373156208d11e58754810000000000000000000000000000000000ffff51071276208d38f48754010000000000000000000000000000000000ffff6d4372e0208d4f448854010000000000000000000000000000000000ffffc556cbea208deb208854010000000000000000000000000000000000ffff450eb059208d97336054010000000000000000000000000000000000ffff4d60444a208dad608754010000000000000000000000000000000000ffff01abd3c3208d2cbe8754010000000000000000000000000000000000ffff7963d8b8208d9dfa8754010000000000000000000000000000000000ffffcebe862c208da7f66554010000000000000000000000000000000000ffff62f2a82e208d430d8854010000000000000000000000000000000000ffff6deb6956208d08148854010000000000000000000000000000000000ffff4b9804ef208d950e8854010000000000000000000000000000000000ffff6b8dd2e1208d1cfc8754010000000000000000000000000000000000ffffb2fe1dab208de7458754010000000000000000000000000000000000ffff32cccb82208d12625654010000000000000000000000000000000000ffff55e6f35a208dd7908354010000000000000000000000000000000000ffff4c642e6f208d17398854010000000000000000000000000000000000ffff45ea14df208dc72d8854010000000000000000000000000000000000ffffdaa48b96208d57fb8654010000000000000000000000000000000000ffff5f0080a9208d4e9a6d54010000000000000000000000000000000000ffff6d94e741208d7a418854010000000000000000000000000000000000ffff6d43b0c1208d5c098854010000000000000000000000000000000000ffff9c11e7ea208d442d8854010000000000000000000000000000000000ffffd0424482208db142fb53010000000000000000000000000000000000ffff54344a4a208d70158854010000000000000000000000000000000000ffff538f8201208d39288854010000000000000000000000000000000000ffff57daab71208d262f8854010000000000000000000000000000000000ffff57e045b1208d91430654010000000000000000000000000000000000ffff4212def5208d7c468854010000000000000000000000000000000000ffff62a4f53b208d9c3e8854010000000000000000000000000000000000ffff5b736bcc208d4d074f54010000000000000000000000000000000000ffff43af9d9b208deaca8754010000000000000000000000000000000000ffff4a8084a0208d74f68754010000000000000000000000000000000000ffff46304541208d5d098854010000000000000000000000000000000000ffff6eabb626208d08228854010000000000000000000000000000000000ffff1f07b030208d959a8254010000000000000000000000000000000000ffff4fa996b3208d4bac8754010000000000000000000000000000000000ffff43a0605b208de4038854010000000000000000000000000000000000ffff4cb41a5b208ddc308854010000000000000000000000000000000000ffffb72e6072208deac86f54010000000000000000000000000000000000ffffd5b815e2208d1b118854010000000000000000000000000000000000ffff3ff8d0a4208db1258854010000000000000000000000000000000000ffff5edd3a6a208d20268754010000000000000000000000000000000000ffff59ed3cfc208d83ed8754010000000000000000000000000000000000ffff4460baea208d71278854010000000000000000000000000000000000ffff4583b547208da7968754010000000000000000000000000000000000ffffd1c34463208d9d428854010000000000000000000000000000000000ffff43c15bc5208d33448854010000000000000000000000000000000000ffff2e0d8a5c208dfa2e7154010000000000000000000000000000000000ffffceff2bca208d47288854010000000000000000000000000000000000ffff5b8d0190208d0e847954010000000000000000000000000000000000ffff5501b8c2208d552f8854010000000000000000000000000000000000ffff5cf3b604208d8c2e8854010000000000000000000000000000000000ffff58666b0d208dcbdd8754010000000000000000000000000000000000ffff59a85cf9208d04208854010000000000000000000000000000000000ffff5f60abe0208dba238854010000000000000000000000000000000000ffff2e77ce67208d62c68754010000000000000000000000000000000000ffffcbae5658208d41108854010000000000000000000000000000000000ffff49329ec8208ddf1d8854010000000000000000000000000000000000ffff603ada12208df90c8854010000000000000000000000000000000000ffff51e0c21c208d5dff8754010000000000000000000000000000000000ffff904ca539208de0118854010000000000000000000000000000000000ffff5c0cecf7208d1b2d88540100000000000000200100005ef579fb18f317b2aba4edfc208dfaa27f54010000000000000000000000000000000000ffff54c65a7c208dc2db8754010000000000000000000000000000000000ffffad0b7981208d88a58754010000000000000000000000000000000000ffff188a1995208de0d78754010000000000000000000000000000000000ffff62a7a6bd208d18f66b54010000000000000000000000000000000000ffffdb4fbe80208dfcf78754010000000000000000000000000000000000ffff67145102208d3d3a8854010000000000000000000000000000000000ffff64259bd6208dcaa98654010000000000000000000000000000000000ffff32c737e1208d3a6a5c54010000000000000000000000000000000000ffff6d793f75208d22d38754010000000000000000000000000000000000ffff0595cc0d208da9ea8754010000000000000000000000000000000000ffff62ca37d3208d440e8854010000000000000000000000000000000000ffff123e1c11208dab428854010000000000000000000000000000000000ffff461df51f208d0f0b8854010000000000000000000000000000000000ffff59d36752208d631f8854010000000000000000000000000000000000ffff5ef8c640208dbc1d8854010000000000000000000000000000000000ffff5f5dc582208d04bf8754010000000000000000000000000000000000ffff0e6797e3208db8028854010000000000000000000000000000000000ffff3cf0c4a1208d6a0c8854010000000000000000000000000000000000ffff58bb5c55208d4f438854010000000000000000000000000000000000ffff5d326005208df6068854010000000000000000000000000000000000ffff5d5a5850208d40eb8754010000000000000000000000000000000000ffff5751ed86208dbad18754010000000000000000000000000000000000ffff63e51608208d99108854010000000000000000000000000000000000ffff36e299cd208d9a1e88540100000000000000200100005ef579fd38a43785a5d441b7208d13258854010000000000000000000000000000000000ffffb90de279208db3778754010000000000000000000000000000000000ffff67fcc80c208d3d358854010000000000000000000000000000000000ffffd00c40fc208dfd0d8854010000000000000000000000000000000000ffff5e89c2f3208dd6428854010000000000000000000000000000000000ffff1863e14a208d89e78754010000000000000000000000000000000000ffff43a11d76208d89ce8754010000000000000000000000000000000000ffff3edb6281208d03298854010000000000000000000000000000000000ffff6d5b26dd208d16df6e54010000000000000000000000000000000000ffffd9c3d176208d7c028854010000000000000000000000000000000000ffffbcc2db1f208d67fc8754010000000000000000000000000000000000ffff59910667208d86b18754010000000000000000000000000000000000ffff6c1482b9208d790b8854010000000000000000000000000000000000ffff0263150d208d89c44554010000000000000000000000000000000000ffff72fcd6b8208d331c8854010000000000000000000000000000000000ffff4c7dcfa8208d9fe98754010000000000000000000000000000000000ffffad08fd05208d0ecd8754010000000000000000000000000000000000ffff7c0fec89208d4af98754010000000000000000000000000000000000ffff2ea6a167208d270b8854010000000000000000000000000000000000ffff59d40fca208d11cf4054010000000000000000000000000000000000ffffb52ac058208d63358254010000000000000000000000000000000000ffff6bd9a130208dbde48754010000000000000000000000000000000000ffff4f915dc7208dece78754010000000000000000000000000000000000ffff5f8423ef208dba308854010000000000000000000000000000000000ffff904cba8c208d953d8854010000000000000000000000000000000000ffff8d1421e5208d5f188854010000000000000000000000000000000000ffff4e1bbfb6208d36fc8754010000000000000000000000000000000000ffff3205cfb6208d5e458854010000000000000000000000000000000000ffff493092c2208dd0878754010000000000000000000000000000000000ffff97caacde208dd99d8754010000000000000000000000000000000000ffffc05f3c38208da7018854010000000000000000000000000000000000ffffdcf5f82d208df0f42254010000000000000000000000000000000000ffff58bf997f208d94228854010000000000000000000000000000000000ffffbc8ee72d208de3448854010000000000000000000000000000000000ffff6d780f99208d32448854010000000000000000000000000000000000ffffbc64c76e208d0b3d8854010000000000000000000000000000000000ffff6c414312208d49138854010000000000000000000000000000000000ffff407e52c6208d2d128854010000000000000000000000000000000000ffff6dc987d8208d4acf8754010000000000000000000000000000000000ffffae151a25208de9dd8754010000000000000000000000000000000000ffff522d2d10208d17df8754010000000000000000000000000000000000ffff4d294737208ddbd48754010000000000000000000000000000000000ffff443703fd208d79108854010000000000000000000000000000000000ffff4bb5a154208d1df28753010000000000000000000000000000000000ffff4c44fc51208d5d496a53010000000000000000000000000000000000ffff530924b0208d180b8854010000000000000000000000000000000000ffffc15fced3208d53128854010000000000000000000000000000000000ffff5bc5b9e4208de21f8854010000000000000000000000000000000000ffff2e05fe1f208d31ab6554010000000000000000000000000000000000ffffae865915208d09248854010000000000000000000000000000000000ffff7d71a4b0208d120b8854010000000000000000000000000000000000ffff93e40150208d25d98754010000000000000000000000000000000000ffffc19f7a86208d99e78754010000000000000000000000000000000000ffff4d675993208d2b218854010000000000000000000000000000000000ffff5144776c208d5a208854010000000000000000000000000000000000ffff2e1cce5820f69e8f8154010000000000000000000000000000000000ffff58718848208d9edd6554010000000000000000000000000000000000ffff2ea758c5208d28c98754010000000000000000000000000000000000ffffc60bd694208d181d8854010000000000000000000000000000000000ffffba6b689e208d77868754010000000000000000000000000000000000ffff182016aa208de1698054010000000000000000000000000000000000ffff5cf5daa9208d823d8854010000000000000000000000000000000000ffffbe4d61c8208d2c3b8854010000000000000000000000000000000000ffff71647df2208da2248854010000000000000000000000000000000000ffff4ff359ca208da2dd8754010000000000000000000000000000000000ffff59f1e52b208da6e60d54010000000000000000000000000000000000ffff579596231159ad218854010000000000000000000000000000000000ffff5895f42d208d5ba78754010000000000000000000000000000000000ffff458ae8b0208ddc9b8754010000000000000000000000000000000000ffff18b507a5208d20eb5754010000000000000000000000000000000000ffff5181a537208daf1d8854010000000000000000000000000000000000ffffd5f51eba208d07f58754010000000000000000000000000000000000ffff6dec54bc208d4b3b8854010000000000000000000000000000000000ffff5c3e1991208d13b54054010000000000000000000000000000000000ffffb273845a208d4f338854010000000000000000000000000000000000ffffcfac797b208d4d898754010000000000000000000000000000000000ffffadaf880d208de72f8854010000000000000000000000000000000000ffffd956ef58208dc1e98754010000000000000000000000000000000000ffff980711cf208dfd8f7154010000000000000000000000000000000000ffff50aba98f208d59fe8754010000000000000000000000000000000000ffff5f2ae582208d3ffa8754010000000000000000000000000000000000ffffbca836db208d389b0054010000000000000000000000000000000000ffffded10925208deb154354010000000000000000000000000000000000ffff717532da208dadde7654010000000000000000000000000000000000ffff93afd0e5208d40458854010000000000000000000000000000000000ffff54ee8cb0208d08fa8754010000000000000000000000000000000000ffff3658eba9208d0df58754010000000000000000000000000000000000ffff72c6876e208d5d408854010000000000000000000000000000000000ffffa7582d7c208de8338854010000000000000000000000000000000000ffffad40d7ad208d6c2a8854010000000000000000000000000000000000ffffbc1833a3208d0fc28754010000000000000000000000000000000000ffffcbceb676208d98448854010000000000000000000000000000000000ffff0121ce6e208d77b58754010000000000000000000000000000000000ffff4b40d938208d853b8854010000000000000000000000000000000000ffff5648d643208d1c9c7854010000000000000000000000000000000000ffff6c3230db208d4e028754010000000000000000000000000000000000ffffd8e33c5d208daf738754010000000000000000000000000000000000ffffad4e9d56208dca438854010000000000000000000000000000000000ffff4f8a0353208d7b408854010000000000000000000000000000000000ffff0599e92a208dc62f8854010000000000000000000000000000000000ffff46236049208dc4d58754010000000000000000000000000000000000ffff4400384d208d0ddb4c54010000000000000000000000000000000000ffff71653b5a208d53388854010000000000000000000000000000000000ffff43bddf66208d7c388854010000000000000000000000000000000000ffff47edca96208d8c068854010000000000000000000000000000000000ffffdded3c2c208d89f60554010000000000000000000000000000000000ffff4e60d8d6208da5ff1154010000000000000000000000000000000000ffff55983c68208d72f58754010000000000000000000000000000000000ffffce47f56a208d7e2d8854010000000000000000000000000000000000ffff17e25c12208da7ca8754010000000000000000000000000000000000ffff051d0baa208d19af8754010000000000000000000000000000000000ffffad42d883208dffd68754010000000000000000000000000000000000ffff5418ff88208d87bf8754010000000000000000000000000000000000ffff4c1fe0dc208deef18754010000000000000000000000000000000000ffff4c71d406208d25868754010000000000000000000000000000000000ffffda67a475208d4d348854010000000000000000000000000000000000ffff5d561269208da5918754010000000000000000000000000000000000ffff42b163b3208dbfac3754010000000000000000000000000000000000ffffad4e01eb208d5c408854010000000000000000000000000000000000ffffcc0bb91e208d4a928754010000000000000000000000000000000000ffff531dba30208db9fd8754010000000000000000000000000000000000ffffa3f72b33208dade58754010000000000000000000000000000000000ffffd8b93aeb208db75d4d54010000000000000000000000000000000000ffffae1d5595208de8d18754010000000000000000000000000000000000ffff4405665c208d88e78754010000000000000000000000000000000000ffff6b96180a208dae667354010000000000000000000000000000000000ffff531f490a208d92f98754010000000000000000000000000000000000ffffd447e857208db1428854010000000000000000000000000000000000ffff36c6b4bb208dd42c8854010000000000000000000000000000000000ffff4b4aff14208df71acd53010000000000000000000000000000000000ffff62d17930208da0b88754010000000000000000000000000000000000ffff974bf913208d5faa7953010000000000000000000000000000000000ffff7419d269208d6c1e8854010000000000000000000000000000000000ffff48a72343208d9c2b8854010000000000000000000000000000000000ffff64431e87208de8908754010000000000000000000000000000000000ffff44660d45208d410b7d54010000000000000000000000000000000000ffff43a3340d208d5b298854010000000000000000000000000000000000ffff9ffda678208de7238854010000000000000000000000000000000000ffff189a3759208da5745354010000000000000000000000000000000000ffff57026e31208df23c885401000000000000002a010488006710000523fbe100000001208dddf48754010000000000000000000000000000000000ffffc1531c5b208d61888754010000000000000000000000000000000000ffff42cd8bc1208df92e8854010000000000000000000000000000000000ffff36e1e970208d0cf75754010000000000000000000000000000000000ffffad4e2420208d0f028854010000000000000000000000000000000000ffff6ec61b02208de6228854010000000000000000000000000000000000ffffdcaa807c208d1cac8754010000000000000000000000000000000000ffff6179416c208db6068854010000000000000000000000000000000000ffffd46121e4208d7ea58754010000000000000000000000000000000000ffff80a41679208d91216254010000000000000000000000000000000000ffff69ece091208d0bf78754010000000000000000000000000000000000ffff45320c0b208dd03c8854010000000000000000000000000000000000ffff4859a2a5208d8e308854010000000000000000000000000000000000ffff2e1ce15a208d30f36354010000000000000000000000000000000000ffff4b61ee15208d7aa05553010000000000000000000000000000000000ffffb129186b208dbb238854010000000000000000000000000000000000ffff581a7f6f208d41248754010000000000000000000000000000000000ffffb009055b208dee218854010000000000000000000000000000000000ffff2e7771f9208db4e78754010000000000000000000000000000000000ffff411bf6ee208db5178854010000000000000000000000000000000000ffffacff001b208dbcf487540100000000000000200100009d386ab83061cfabfe3513a3208d76048854010000000000000000000000000000000000ffff2e35dbc2208d83d28754010000000000000000000000000000000000ffffd91bb1d5208d5c3d8854010000000000000000000000000000000000ffff32a47969208df4bd875401000000000000002a0104f8012032250000000000000002208d1bfa8754010000000000000000000000000000000000ffff53a2f4b6208d141c4554010000000000000000000000000000000000ffffb27b8281208d580c7e54010000000000000000000000000000000000ffffc9ea1340208df7228854010000000000000000000000000000000000ffffd90a268d208d41e18754010000000000000000000000000000000000ffff555b8809208d66358854010000000000000000000000000000000000ffff5280ff23208deecd8754010000000000000000000000000000000000ffff84c6a102208df9bc8754010000000000000000000000000000000000ffffbbc96dae208d9d0a8854010000000000000000000000000000000000ffffb2a2d18a208da9458854010000000000000000000000000000000000ffffca16c30e208d2ca88754010000000000000000000000000000000000ffff6baab63e208d923b8854010000000000000000000000000000000000ffffd5b87bee208d12258854010000000000000000000000000000000000ffff59ee408b208d980e8854010000000000000000000000000000000000ffff2edfb0c4208d33378854010000000000000000000000000000000000ffff6caa7b42208d41176d53010000000000000000000000000000000000ffff1fa2df68208dd1c57f54010000000000000000000000000000000000ffffbeab679a208d17c78754010000000000000000000000000000000000ffff3f983f51208dbb278854010000000000000000000000000000000000ffff568dbc28208d5d5ad953010000000000000000000000000000000000ffff0ec112b7208da1b78754010000000000000000000000000000000000ffffbc287698208d99348854010000000000000000000000000000000000ffff5ff1a302208d23ef8454010000000000000000000000000000000000ffff7ba55d22208d90e98754010000000000000000000000000000000000ffff5ae14503208d58f48754010000000000000000000000000000000000ffffd45a3cae208d530c8854010000000000000000000000000000000000ffff18fb80c4208dc6138854010000000000000000000000000000000000ffff4e2fd6eb208d97208854010000000000000000000000000000000000ffff55ddd5b8208d74f88654010000000000000000000000000000000000ffff1809ad86208dc0278854010000000000000000000000000000000000ffff6ef2dfb6208d84338854010000000000000000000000000000000000ffff58d8114e208dcae78754010000000000000000000000000000000000ffffc21c474c208d61e78754010000000000000000000000000000000000ffffd5b3fc7a208d7a078854010000000000000000000000000000000000ffff32740193208de7547b54010000000000000000000000000000000000ffff8046aac3208db5328854010000000000000000000000000000000000ffff5b0c5366208d5f208854010000000000000000000000000000000000ffff6caa054a208d1d682854010000000000000000000000000000000000ffff69e3eb9d208d179e6b54010000000000000000000000000000000000ffff54aac628208ded2e8854010000000000000000000000000000000000ffff4166d226208d8e148854010000000000000000000000000000000000ffff54305af6208d1ed88754010000000000000000000000000000000000ffff3ed2b2a4208d78ec8554010000000000000000000000000000000000ffff6dd2e575208ddd3e7854010000000000000000000000000000000000ffff1b83a102208d421e8854010000000000000000000000000000000000ffff2eb51bf1208dc01f8854010000000000000000000000000000000000ffff58c66033208d08ce8754010000000000000000000000000000000000ffff5d57b84c208df22e8854010000000000000000000000000000000000ffffbf213e3d208d89cb8754010000000000000000000000000000000000ffff53d7ece1208da9d68754010000000000000000000000000000000000ffff71bef412208d38268854010000000000000000000000000000000000ffff84fc8a6f208d4f107254010000000000000000000000000000000000ffff57a072d9208d990f88540100000000000000200100009d3890d71029db21863020f9208df3c36854010000000000000000000000000000000000ffffbba6a6c4208d3ea71f54010000000000000000000000000000000000ffff3e61237b208d60a18754010000000000000000000000000000000000ffff53a56b4b208db2328854010000000000000000000000000000000000ffff44eef265208d2c0f8854010000000000000000000000000000000000ffff566553c0208dec268854010000000000000000000000000000000000ffff57a69ecd208d93148854010000000000000000000000000000000000ffff9b8f4433208d741b8854010000000000000000000000000000000000ffffae17c74c208ddab94f54010000000000000000000000000000000000ffffab19c63a208d5e886f54010000000000000000000000000000000000ffffbc67a037208d5c3ccc53010000000000000000000000000000000000ffff0e77c86e208d26fb8754010000000000000000000000000000000000ffffc1eae172208d61278854010000000000000000000000000000000000ffff5ce15439208d60df8754010000000000000000000000000000000000ffff2599fb3b208d52418854010000000000000000000000000000000000ffff028710e6208dae448854010000000000000000000000000000000000ffff18152eee208d6ff18754010000000000000000000000000000000000ffff542e396d208d8c248854010000000000000000000000000000000000ffff5519d6d8208d01e33e54010000000000000000000000000000000000ffff5027d563208d05cd8754010000000000000000000000000000000000ffff45a5a9c5208d7c1e8854010000000000000000000000000000000000ffff68c813c8208d38a48754010000000000000000000000000000000000ffff3a60a934208d73ec8754010000000000000000000000000000000000ffffae3db8f3208d096c8754010000000000000000000000000000000000ffff4cb88802208d55d38754010000000000000000000000000000000000ffffd31f082e208d0d8a8754010000000000000000000000000000000000ffff6c22c9bb208d81ba7754010000000000000000000000000000000000ffffca5f88da208d5df88754010000000000000000000000000000000000ffffc31abc05208db1d58754010000000000000000000000000000000000ffff5cf614c8208d2b257c54010000000000000000000000000000000000ffff45f9baa0208d38d78754010000000000000000000000000000000000ffff490e0608208d27e88754010000000000000000000000000000000000ffff17f1ccd0208d501c8854010000000000000000000000000000000000ffff5be834a7208d860b8854010000000000000000000000000000000000ffff640173bc208deada8754010000000000000000000000000000000000ffffdc98f8db208d983d3c54010000000000000000000000000000000000ffff021ab398208d99f28754010000000000000000000000000000000000ffff59a9e417208d19468854010000000000000000000000000000000000ffff91ff01a1208ddbf68754010000000000000000000000000000000000ffff50048949208d89118854010000000000000000000000000000000000ffffc8366923208dea3b8854010000000000000000000000000000000000ffffbcbbb5a9208d364a8854010000000000000000000000000000000000ffffc654bd58208dd52ef953010000000000000000000000000000000000ffff7cabb7bc208db086cc53010000000000000000000000000000000000ffff6c4004ea208d0ff48754010000000000000000000000000000000000ffff0536a3cb208d1c0b8854010000000000000000000000000000000000ffffd90bfef3208dbf188854010000000000000000000000000000000000ffff0252431f208dd1c78754010000000000000000000000000000000000ffff25732b19208dd6fa3954010000000000000000000000000000000000ffff6c1131dc208da6108854010000000000000000000000000000000000ffff1fb9b748208daf368854010000000000000000000000000000000000ffff1f2a2981208d9e2f8854010000000000000000000000000000000000ffffbc658482208d6a458854010000000000000000000000000000000000ffff568b843a208dcd428854010000000000000000000000000000000000ffff5d820794208d38258854010000000000000000000000000000000000ffff6440c630208d1cda8754010000000000000000000000000000000000ffff6e9f7be5208ddd388854010000000000000000000000000000000000ffff9f080244208d2e2d8854010000000000000000000000000000000000ffffbb70cf3d208d3e0c8854010000000000000000000000000000000000ffff3ec27a16208d89098854010000000000000000000000000000000000ffffb55fb2fb208d13468854010000000000000000000000000000000000ffff180ab1e5208dfc2a8854010000000000000000000000000000000000ffffd58a5c0e208db9188854010000000000000000000000000000000000ffff81ce808d208d03d06b54010000000000000000000000000000000000ffff4b496858208d319e8454010000000000000000000000000000000000ffff531fac9f208dc8d98754010000000000000000000000000000000000ffffc113e4ea208d06395754010000000000000000000000000000000000ffff7cabf0d6208d722b8854010000000000000000000000000000000000ffff545db4cd208dd91f8854010000000000000000000000000000000000ffff5f12a597208dfbd57054010000000000000000000000000000000000ffff3cf654e6208dd7358854010000000000000000000000000000000000ffffb4998e79208dd7018854010000000000000000000000000000000000ffffb45cc220208d86df5554010000000000000000000000000000000000ffff7660d462208decd28754010000000000000000000000000000000000ffff5b7bdfe2208dafe28754010000000000000000000000000000000000ffff2e76899e208d0c318854010000000000000000000000000000000000ffffc7bcb183208d35258854010000000000000000000000000000000000ffff3ab2d076208db5c38754010000000000000000000000000000000000ffff48b24d30208ddfd18754010000000000000000000000000000000000ffff904cb00c208d40478854010000000000000000000000000000000000ffff02a3b787208deb318854010000000000000000000000000000000000ffffd2564026208de63f8854010000000000000000000000000000000000ffff615d16c0208dbf1d8854010000000000000000000000000000000000ffffc6fff6f0208d4aee8754010000000000000000000000000000000000ffff56c74bc8208d68bc8754010000000000000000000000000000000000ffff31b581f9208ddcca8754010000000000000000000000000000000000ffff0e97397a208db2318854010000000000000000000000000000000000ffffc766348d208de1bd8754010000000000000000000000000000000000ffffd5927a3d208d2aff8754010000000000000000000000000000000000ffff5152d0a5208da7feb753010000000000000000000000000000000000ffff53fe1694208de7418854010000000000000000000000000000000000ffff189f3d99208de7b38754010000000000000000000000000000000000ffff64004655208dacabb653010000000000000000000000000000000000ffff55413231208d43b88754010000000000000000000000000000000000ffff796e1029208d03788754010000000000000000000000000000000000ffff49b90ff6208d04be8754010000000000000000000000000000000000ffffc327ce1c208d33648254010000000000000000000000000000000000ffff2e896478208d9e308854010000000000000000000000000000000000ffffd395d9bf208df13e8854010000000000000000000000000000000000ffff51bb88ed208dec8c5653010000000000000000000000000000000000ffff557f146e208df4538854010000000000000000000000000000000000ffff48d05928208d41bd8154010000000000000000000000000000000000ffff47384162208df6428854010000000000000000000000000000000000ffffc1566314208d753e8854010000000000000000000000000000000000ffff440c9b4f208d2f078854010000000000000000000000000000000000ffff56021a19208d7b0f4754010000000000000000000000000000000000ffff71653a84208dcee88754010000000000000000000000000000000000ffff5401a332208df4db8754010000000000000000000000000000000000ffff5a9db0e3208df8e38754010000000000000000000000000000000000ffff5d5208fa208d2e298854010000000000000000000000000000000000ffff4c61c0bc208d42ea8754010000000000000000000000000000000000ffff4c405ae7208deade8754010000000000000000000000000000000000ffffc009c823208d99358854010000000000000000000000000000000000ffff6cc2b493208df3fd8754010000000000000000000000000000000000ffff904c6007208d1fde8754010000000000000000000000000000000000ffff92732ae8208d666e8354010000000000000000000000000000000000ffff6daa9d16208d18f78754010000000000000000000000000000000000ffff4d6d8d8a208ddea9ce53010000000000000000000000000000000000ffff17e26f7d208d1ae48754010000000000000000000000000000000000ffffc32ebb89208dee258854010000000000000000000000000000000000ffff4a0f10e1208d290a8854010000000000000000000000000000000000ffff42731593208d7cb33354010000000000000000000000000000000000ffff532e8b97208dfd1e8854010000000000000000000000000000000000ffff6ee91680208d480a1354010000000000000000000000000000000000ffff60f220f6208d55838754010000000000000000000000000000000000ffff1f36d48f208d247e8754010000000000000000000000000000000000ffff44b5a49a208d0efa4954010000000000000000000000000000000000ffff63890597208d862e8854010000000000000000000000000000000000ffffc14d8751208d443c8854010000000000000000000000000000000000ffff70d16dba208d72fe8754010000000000000000000000000000000000ffff55983dd3208d236b6854010000000000000000000000000000000000ffff7aea27f9208d67e08754010000000000000000000000000000000000ffff1b20750d208df10a7154010000000000000000000000000000000000ffff7b9fe56e208db32d8854010000000000000000000000000000000000ffff7ba42d54208db3f58754010000000000000000000000000000000000ffff027b4eba208d70d68754010000000000000000000000000000000000ffffbc1b62b9208d97951454010000000000000000000000000000000000ffffb4b6af10208d251288540100000000000000200100009d386ab800773149c4d7e673208d7b168854010000000000000000000000000000000000ffff58969392208d91d18754010000000000000000000000000000000000ffff9ffd6d4e208d19008854010000000000000000000000000000000000ffff4e926cb8208dd1c98754010000000000000000000000000000000000ffff546cdb77208d6a0a8854010000000000000000000000000000000000ffff6caa8c15208d3a3a8854010000000000000000000000000000000000ffff62e28d6a208d3fe48754010000000000000000000000000000000000ffffd9850be7208dcb438854010000000000000000000000000000000000ffff6c2444b3208d78338854010000000000000000000000000000000000ffffb2df574a208d3b2d3054010000000000000000000000000000000000ffff4b529e67208d5b988754010000000000000000000000000000000000ffff36e152e6208d01ab8754010000000000000000000000000000000000ffff58b531bf208d7b038854010000000000000000000000000000000000ffff54717a6f208db0388854010000000000000000000000000000000000ffff4a694e98208d65418854010000000000000000000000000000000000ffffcef84b25208dcf218854010000000000000000000000000000000000ffff5364fed9208db6c68754010000000000000000000000000000000000ffff4d03decd208dc6158854010000000000000000000000000000000000ffffb9044c79208d65418854010000000000000000000000000000000000ffff56b2192f208d23308754010000000000000000000000000000000000ffffd973f7a4208d05158854010000000000000000000000000000000000ffff1b6d9975208d52cd8754010000000000000000000000000000000000ffffdf5b92ad208d3a128854010000000000000000000000000000000000ffff6d93787e208d351e8854010000000000000000000000000000000000ffffb6a4336f208d9bd58754010000000000000000000000000000000000ffff3ba7f521208dc3288854010000000000000000000000000000000000ffff6bbf20cc208d68998754010000000000000000000000000000000000ffff63b30032208d86848754010000000000000000000000000000000000ffffb52ef15c208dff108854010000000000000000000000000000000000ffff4d06718b208d226f0754010000000000000000000000000000000000ffff44248ba1208da3af7354010000000000000000000000000000000000ffff86f9d72c208d9fd68754010000000000000000000000000000000000ffff521f2444208dae428854010000000000000000000000000000000000ffffd445b025208dfafc8754010000000000000000000000000000000000ffffd447fa84208dbb358854010000000000000000000000000000000000ffff3ee2d196208da01a8854010000000000000000000000000000000000ffff45a615b2208d32edb053010000000000000000000000000000000000ffff6d6494da208d77ed8754010000000000000000000000000000000000ffff555dcc44208d09608754010000000000000000000000000000000000ffff45a5d222208d84558754010000000000000000000000000000000000ffffb01c30ab208d71fe8754010000000000000000000000000000000000ffffae5f68c2208de0acdf53010000000000000000000000000000000000ffffae737936208d29e18754010000000000000000000000000000000000ffffb00a63cb208d220b8854010000000000000000000000000000000000ffff9ec4d12f208db4408854010000000000000000000000000000000000ffff4c6d9bcc208d65a58754010000000000000000000000000000000000ffff5962c453208d2d628854010000000000000000000000000000000000ffff257191d50000" + }, + "PING": { + "message": "f9beb4d9706f6e67000000000000000008000000c6466f1e6b86480ae969867c", + "payload": "6b86480ae969867c" + } +} diff --git a/demo/data/sighash.json b/demo/data/sighash.json new file mode 100644 index 0000000..d66a56a --- /dev/null +++ b/demo/data/sighash.json @@ -0,0 +1,503 @@ +[ + ["raw_transaction, script, input_index, hashType, signature_hash (result)"], + ["907c2bc503ade11cc3b04eb2918b6f547b0630ab569273824748c87ea14b0696526c66ba740200000004ab65ababfd1f9bdd4ef073c7afc4ae00da8a66f429c917a0081ad1e1dabce28d373eab81d8628de802000000096aab5253ab52000052ad042b5f25efb33beec9f3364e8a9139e8439d9d7e26529c3c30b6c3fd89f8684cfd68ea0200000009ab53526500636a52ab599ac2fe02a526ed040000000008535300516352515164370e010000000003006300ab2ec229", "", 2, 1864164639, "31af167a6cf3f9d5f6875caa4d31704ceb0eba078d132b78dab52c3b8997317e"], + ["a0aa3126041621a6dea5b800141aa696daf28408959dfb2df96095db9fa425ad3f427f2f6103000000015360290e9c6063fa26912c2e7fb6a0ad80f1c5fea1771d42f12976092e7a85a4229fdb6e890000000001abc109f6e47688ac0e4682988785744602b8c87228fcef0695085edf19088af1a9db126e93000000000665516aac536affffffff8fe53e0806e12dfd05d67ac68f4768fdbe23fc48ace22a5aa8ba04c96d58e2750300000009ac51abac63ab5153650524aa680455ce7b000000000000499e50030000000008636a00ac526563ac5051ee030000000003abacabd2b6fe000000000003516563910fb6b5", "65", 0, -1391424484, "48d6a1bd2cd9eec54eb866fc71209418a950402b5d7e52363bfb75c98e141175"], + ["6e7e9d4b04ce17afa1e8546b627bb8d89a6a7fefd9d892ec8a192d79c2ceafc01694a6a7e7030000000953ac6a51006353636a33bced1544f797f08ceed02f108da22cd24c9e7809a446c61eb3895914508ac91f07053a01000000055163ab516affffffff11dc54eee8f9e4ff0bcf6b1a1a35b1cd10d63389571375501af7444073bcec3c02000000046aab53514a821f0ce3956e235f71e4c69d91abe1e93fb703bd33039ac567249ed339bf0ba0883ef300000000090063ab65000065ac654bec3cc504bcf499020000000005ab6a52abac64eb060100000000076a6a5351650053bbbc130100000000056a6aab53abd6e1380100000000026a51c4e509b8", "acab655151", 0, 479279909, "2a3d95b09237b72034b23f2d2bb29fa32a58ab5c6aa72f6aafdfa178ab1dd01c"], + ["73107cbd025c22ebc8c3e0a47b2a760739216a528de8d4dab5d45cbeb3051cebae73b01ca10200000007ab6353656a636affffffffe26816dffc670841e6a6c8c61c586da401df1261a330a6c6b3dd9f9a0789bc9e000000000800ac6552ac6aac51ffffffff0174a8f0010000000004ac52515100000000", "5163ac63635151ac", 1, 1190874345, "06e328de263a87b09beabe222a21627a6ea5c7f560030da31610c4611f4a46bc"], + ["e93bbf6902be872933cb987fc26ba0f914fcfc2f6ce555258554dd9939d12032a8536c8802030000000453ac5353eabb6451e074e6fef9de211347d6a45900ea5aaf2636ef7967f565dce66fa451805c5cd10000000003525253ffffffff047dc3e6020000000007516565ac656aabec9eea010000000001633e46e600000000000015080a030000000001ab00000000", "5300ac6a53ab6a", 1, -886562767, "f03aa4fc5f97e826323d0daa03343ebf8a34ed67a1ce18631f8b88e5c992e798"], + ["50818f4c01b464538b1e7e7f5ae4ed96ad23c68c830e78da9a845bc19b5c3b0b20bb82e5e9030000000763526a63655352ffffffff023b3f9c040000000008630051516a6a5163a83caf01000000000553ab65510000000000", "6aac", 0, 946795545, "746306f322de2b4b58ffe7faae83f6a72433c22f88062cdde881d4dd8a5a4e2d"], + ["a93e93440250f97012d466a6cc24839f572def241c814fe6ae94442cf58ea33eb0fdd9bcc1030000000600636a0065acffffffff5dee3a6e7e5ad6310dea3e5b3ddda1a56bf8de7d3b75889fc024b5e233ec10f80300000007ac53635253ab53ffffffff0160468b04000000000800526a5300ac526a00000000", "ac00636a53", 1, 1773442520, "5c9d3a2ce9365bb72cfabbaa4579c843bb8abf200944612cf8ae4b56a908bcbd"], + ["ce7d371f0476dda8b811d4bf3b64d5f86204725deeaa3937861869d5b2766ea7d17c57e40b0100000003535265ffffffff7e7e9188f76c34a46d0bbe856bde5cb32f089a07a70ea96e15e92abb37e479a10100000006ab6552ab655225bcab06d1c2896709f364b1e372814d842c9c671356a1aa5ca4e060462c65ae55acc02d0000000006abac0063ac5281b33e332f96beebdbc6a379ebe6aea36af115c067461eb99d22ba1afbf59462b59ae0bd0200000004ab635365be15c23801724a1704000000000965006a65ac00000052ca555572", "53ab530051ab", 1, 2030598449, "c336b2f7d3702fbbdeffc014d106c69e3413c7c71e436ba7562d8a7a2871f181"], + ["d3b7421e011f4de0f1cea9ba7458bf3486bee722519efab711a963fa8c100970cf7488b7bb0200000003525352dcd61b300148be5d05000000000000000000", "535251536aac536a", 0, -1960128125, "29aa6d2d752d3310eba20442770ad345b7f6a35f96161ede5f07b33e92053e2a"], + ["04bac8c5033460235919a9c63c42b2db884c7c8f2ed8fcd69ff683a0a2cccd9796346a04050200000003655351fcad3a2c5a7cbadeb4ec7acc9836c3f5c3e776e5c566220f7f965cf194f8ef98efb5e3530200000007526a006552526526a2f55ba5f69699ece76692552b399ba908301907c5763d28a15b08581b23179cb01eac03000000075363ab6a516351073942c2025aa98a05000000000765006aabac65abd7ffa6030000000004516a655200000000", "53ac6365ac526a", 1, 764174870, "bf5fdc314ded2372a0ad078568d76c5064bf2affbde0764c335009e56634481b"], + ["c363a70c01ab174230bbe4afe0c3efa2d7f2feaf179431359adedccf30d1f69efe0c86ed390200000002ab51558648fe0231318b04000000000151662170000000000008ac5300006a63acac00000000", "", 0, 2146479410, "191ab180b0d753763671717d051f138d4866b7cb0d1d4811472e64de595d2c70"], + ["8d437a7304d8772210a923fd81187c425fc28c17a5052571501db05c7e89b11448b36618cd02000000026a6340fec14ad2c9298fde1477f1e8325e5747b61b7e2ff2a549f3d132689560ab6c45dd43c3010000000963ac00ac000051516a447ed907a7efffebeb103988bf5f947fc688aab2c6a7914f48238cf92c337fad4a79348102000000085352ac526a5152517436edf2d80e3ef06725227c970a816b25d0b58d2cd3c187a7af2cea66d6b27ba69bf33a0300000007000063ab526553f3f0d6140386815d030000000003ab6300de138f00000000000900525153515265abac1f87040300000000036aac6500000000", "51", 3, -315779667, "b6632ac53578a741ae8c36d8b69e79f39b89913a2c781cdf1bf47a8c29d997a5"], + ["fd878840031e82fdbe1ad1d745d1185622b0060ac56638290ec4f66b1beef4450817114a2c0000000009516a63ab53650051abffffffff37b7a10322b5418bfd64fb09cd8a27ddf57731aeb1f1f920ffde7cb2dfb6cdb70300000008536a5365ac53515369ecc034f1594690dbe189094dc816d6d57ea75917de764cbf8eccce4632cbabe7e116cd0100000003515352ffffffff035777fc000000000003515200abe9140300000000050063005165bed6d10200000000076300536363ab65195e9110", "635265", 0, 1729787658, "6e3735d37a4b28c45919543aabcb732e7a3e1874db5315abb7cc6b143d62ff10"], + ["f40a750702af06efff3ea68e5d56e42bc41cdb8b6065c98f1221fe04a325a898cb61f3d7ee030000000363acacffffffffb5788174aef79788716f96af779d7959147a0c2e0e5bfb6c2dba2df5b4b97894030000000965510065535163ac6affffffff0445e6fd0200000000096aac536365526a526aa6546b000000000008acab656a6552535141a0fd010000000000c897ea030000000008526500ab526a6a631b39dba3", "00abab5163ac", 1, -1778064747, "d76d0fc0abfa72d646df888bce08db957e627f72962647016eeae5a8412354cf"], + ["a63bc673049c75211aa2c09ecc38e360eaa571435fedd2af1116b5c1fa3d0629c269ecccbf0000000008ac65ab516352ac52ffffffffbf1a76fdda7f451a5f0baff0f9ccd0fe9136444c094bb8c544b1af0fa2774b06010000000463535253ffffffff13d6b7c3ddceef255d680d87181e100864eeb11a5bb6a3528cb0d70d7ee2bbbc02000000056a0052abab951241809623313b198bb520645c15ec96bfcc74a2b0f3db7ad61d455cc32db04afc5cc702000000016309c9ae25014d9473020000000004abab6aac3bb1e803", "", 3, -232881718, "6e48f3da3a4ac07eb4043a232df9f84e110485d7c7669dd114f679c27d15b97e"], + ["4c565efe04e7d32bac03ae358d63140c1cfe95de15e30c5b84f31bb0b65bb542d637f49e0f010000000551abab536348ae32b31c7d3132030a510a1b1aacf7b7c3f19ce8dc49944ef93e5fa5fe2d356b4a73a00100000009abac635163ac00ab514c8bc57b6b844e04555c0a4f4fb426df139475cd2396ae418bc7015820e852f711519bc202000000086a00510000abac52488ff4aec72cbcfcc98759c58e20a8d2d9725aa4a80f83964e69bc4e793a4ff25cd75dc701000000086a52ac6aac5351532ec6b10802463e0200000000000553005265523e08680100000000002f39a6b0", "", 3, 70712784, "c6076b6a45e6fcfba14d3df47a34f6aadbacfba107e95621d8d7c9c0e40518ed"], + ["1233d5e703403b3b8b4dae84510ddfc126b4838dcb47d3b23df815c0b3a07b55bf3098110e010000000163c5c55528041f480f40cf68a8762d6ed3efe2bd402795d5233e5d94bf5ddee71665144898030000000965525165655151656affffffff6381667e78bb74d0880625993bec0ea3bd41396f2bcccc3cc097b240e5e92d6a01000000096363acac6a63536365ffffffff04610ad60200000000065251ab65ab52e90d680200000000046351516ae30e98010000000008abab52520063656a671856010000000004ac6aac514c84e383", "6aabab636300", 1, -114996813, "aeb8c5a62e8a0b572c28f2029db32854c0b614dbecef0eaa726abebb42eebb8d"], + ["0c69702103b25ceaed43122cc2672de84a3b9aa49872f2a5bb458e19a52f8cc75973abb9f102000000055365656aacffffffff3ffb1cf0f76d9e3397de0942038c856b0ebbea355dc9d8f2b06036e19044b0450100000000ffffffff4b7793f4169617c54b734f2cd905ed65f1ce3d396ecd15b6c426a677186ca0620200000008655263526551006a181a25b703240cce0100000000046352ab53dee22903000000000865526a6a516a51005e121602000000000852ab52ababac655200000000", "6a516aab63", 1, -2040012771, "a6e6cb69f409ec14e10dd476f39167c29e586e99bfac93a37ed2c230fcc1dbbe"], + ["fd22692802db8ae6ab095aeae3867305a954278f7c076c542f0344b2591789e7e33e4d29f4020000000151ffffffffb9409129cfed9d3226f3b6bab7a2c83f99f48d039100eeb5796f00903b0e5e5e0100000006656552ac63abd226abac0403e649000000000007abab51ac5100ac8035f10000000000095165006a63526a52510d42db030000000007635365ac6a63ab24ef5901000000000453ab6a0000000000", "536a52516aac6a", 1, 309309168, "7ca0f75e6530ec9f80d031fc3513ca4ecd67f20cb38b4dacc6a1d825c3cdbfdb"], + ["a43f85f701ffa54a3cc57177510f3ea28ecb6db0d4431fc79171cad708a6054f6e5b4f89170000000008ac6a006a536551652bebeaa2013e779c05000000000665ac5363635100000000", "ac", 0, 2028978692, "58294f0d7f2e68fe1fd30c01764fe1619bcc7961d68968944a0e263af6550437"], + ["c2b0b99001acfecf7da736de0ffaef8134a9676811602a6299ba5a2563a23bb09e8cbedf9300000000026300ffffffff042997c50300000000045252536a272437030000000007655353ab6363ac663752030000000002ab6a6d5c900000000000066a6a5265abab00000000", "52ac525163515251", 0, -894181723, "8b300032a1915a4ac05cea2f7d44c26f2a08d109a71602636f15866563eaafdc"], + ["82f9f10304c17a9d954cf3380db817814a8c738d2c811f0412284b2c791ec75515f38c4f8c020000000265ab5729ca7db1b79abee66c8a757221f29280d0681355cb522149525f36da760548dbd7080a0100000001510b477bd9ce9ad5bb81c0306273a3a7d051e053f04ecf3a1dbeda543e20601a5755c0cfae030000000451ac656affffffff71141a04134f6c292c2e0d415e6705dfd8dcee892b0d0807828d5aeb7d11f5ef0300000001520b6c6dc802a6f3dd0000000000056aab515163bfb6800300000000015300000000", "", 3, -635779440, "d55ed1e6c53510f2608716c12132a11fb5e662ec67421a513c074537eeccc34b"], + ["8edcf5a1014b604e53f0d12fe143cf4284f86dc79a634a9f17d7e9f8725f7beb95e8ffcd2403000000046aabac52ffffffff01c402b5040000000005ab6a63525100000000", "6351525251acabab6a", 0, 1520147826, "2765bbdcd3ebb8b1a316c04656b28d637f80bffbe9b040661481d3dc83eea6d6"], + ["2074bad5011847f14df5ea7b4afd80cd56b02b99634893c6e3d5aaad41ca7c8ee8e5098df003000000026a6affffffff018ad59700000000000900ac656a526551635300000000", "65635265", 0, -1804671183, "663c999a52288c9999bff36c9da2f8b78d5c61b8347538f76c164ccba9868d0a"], + ["7100b11302e554d4ef249ee416e7510a485e43b2ba4b8812d8fe5529fe33ea75f36d392c4403000000020000ffffffff3d01a37e075e9a7715a657ae1bdf1e44b46e236ad16fd2f4c74eb9bf370368810000000007636553ac536365ffffffff01db696a0400000000065200ac656aac00000000", "63005151", 0, -1210499507, "b9c3aee8515a4a3b439de1ffc9c156824bda12cb75bfe5bc863164e8fd31bd7a"], + ["02c1017802091d1cb08fec512db7b012fe4220d57a5f15f9e7676358b012786e1209bcff950100000004acab6352ffffffff799bc282724a970a6fea1828984d0aeb0f16b67776fa213cbdc4838a2f1961a3010000000951516a536552ab6aabffffffff016c7b4b03000000000865abac5253ac5352b70195ad", "65655200516a", 0, -241626954, "be567cb47170b34ff81c66c1142cb9d27f9b6898a384d6dfc4fce16b75b6cb14"], + ["cb3178520136cd294568b83bb2520f78fecc507898f4a2db2674560d72fd69b9858f75b3b502000000066aac00515100ffffffff03ab005a01000000000563526363006e3836030000000001abfbda3200000000000665ab0065006500000000", "ab516a0063006a5300", 0, 1182109299, "2149e79c3f4513da4e4378608e497dcfdfc7f27c21a826868f728abd2b8a637a"], + ["18a4b0c004702cf0e39686ac98aab78ad788308f1d484b1ddfe70dc1997148ba0e28515c310300000000ffffffff05275a52a23c59da91129093364e275da5616c4070d8a05b96df5a2080ef259500000000096aac51656a6aac53ab66e64966b3b36a07dd2bb40242dd4a3743d3026e7e1e0d9e9e18f11d068464b989661321030000000265ac383339c4fae63379cafb63b0bab2eca70e1f5fc7d857eb5c88ccd6c0465093924bba8b2a000000000300636ab5e0545402bc2c4c010000000000cd41c002000000000000000000", "abac635253656a00", 3, 2052372230, "32db877b6b1ca556c9e859442329406f0f8246706522369839979a9f7a235a32"], + ["1d9c5df20139904c582285e1ea63dec934251c0f9cf5c47e86abfb2b394ebc57417a81f67c010000000353515222ba722504800d3402000000000353656a3c0b4a0200000000000fb8d20500000000076300ab005200516462f30400000000015200000000", "ab65", 0, -210854112, "edf73e2396694e58f6b619f68595b0c1cdcb56a9b3147845b6d6afdb5a80b736"], + ["4504cb1904c7a4acf375ddae431a74de72d5436efc73312cf8e9921f431267ea6852f9714a01000000066a656a656553a2fbd587c098b3a1c5bd1d6480f730a0d6d9b537966e20efc0e352d971576d0f87df0d6d01000000016321aeec3c4dcc819f1290edb463a737118f39ab5765800547522708c425306ebfca3f396603000000055300ac656a1d09281d05bfac57b5eb17eb3fa81ffcedfbcd3a917f1be0985c944d473d2c34d245eb350300000007656a51525152ac263078d9032f470f0500000000066aac00000052e12da60200000000003488410200000000076365006300ab539981e432", "52536a52526a", 1, -31909119, "f0a2deee7fd8a3a9fad6927e763ded11c940ee47e9e6d410f94fda5001f82e0c"], + ["14bc7c3e03322ec0f1311f4327e93059c996275302554473104f3f7b46ca179bfac9ef753503000000016affffffff9d405eaeffa1ca54d9a05441a296e5cc3a3e32bb8307afaf167f7b57190b07e00300000008abab51ab5263abab45533aa242c61bca90dd15d46079a0ab0841d85df67b29ba87f2393cd764a6997c372b55030000000452005263ffffffff0250f40e02000000000651516a0063630e95ab0000000000046a5151ac00000000", "6a65005151", 0, -1460947095, "aa418d096929394c9147be8818d8c9dafe6d105945ab9cd7ec682df537b5dd79"], + ["2b3bd0dd04a1832f893bf49a776cd567ec4b43945934f4786b615d6cb850dfc0349b33301a000000000565ac000051cf80c670f6ddafab63411adb4d91a69c11d9ac588898cbfb4cb16061821cc104325c895103000000025163ffffffffa9e2d7506d2d7d53b882bd377bbcc941f7a0f23fd15d2edbef3cd9df8a4c39d10200000009ac63006a52526a5265ffffffff44c099cdf10b10ce87d4b38658d002fd6ea17ae4a970053c05401d86d6e75f99000000000963ab53526a5252ab63ffffffff035af69c01000000000100ba9b8b0400000000004cead10500000000026a520b77d667", "ab52abac526553", 3, -1955078165, "eb9ceecc3b401224cb79a44d23aa8f428e29f1405daf69b4e01910b848ef1523"], + ["35df11f004a48ba439aba878fe9df20cc935b4a761c262b1b707e6f2b33e2bb7565cd68b130000000000ffffffffb2a2f99abf64163bb57ca900500b863f40c02632dfd9ea2590854c5fb4811da90200000006ac006363636affffffffaf9d89b2a8d2670ca37c8f7c140600b81259f2e037cb4590578ec6e37af8bf200000000005abac6a655270a4751eb551f058a93301ffeda2e252b6614a1fdd0e283e1d9fe53c96c5bbaafaac57b8030000000153ffffffff020d9f3b02000000000100ed7008030000000004abac000000000000", "abac", 3, 593793071, "88fdee1c2d4aeead71d62396e28dc4d00e5a23498eea66844b9f5d26d1f21042"], + ["a08ff466049fb7619e25502ec22fedfb229eaa1fe275aa0b5a23154b318441bf547989d0510000000005ab5363636affffffff2b0e335cb5383886751cdbd993dc0720817745a6b1c9b8ab3d15547fc9aafd03000000000965656a536a52656a532b53d10584c290d3ac1ab74ab0a19201a4a039cb59dc58719821c024f6bf2eb26322b33f010000000965ac6aac0053ab6353ffffffff048decba6ebbd2db81e416e39dde1f821ba69329725e702bcdea20c5cc0ecc6402000000086363ab5351ac6551466e377b0468c0fa00000000000651ab53ac6a513461c6010000000008636a636365535100eeb3dc010000000006526a52ac516a43f362010000000005000063536500000000", "0063516a", 1, -1158911348, "f6a1ecb50bd7c2594ebecea5a1aa23c905087553e40486dade793c2f127fdfae"], + ["5ac2f17d03bc902e2bac2469907ec7d01a62b5729340bc58c343b7145b66e6b97d434b30fa000000000163ffffffff44028aa674192caa0d0b4ebfeb969c284cb16b80c312d096efd80c6c6b094cca000000000763acabac516a52ffffffff10c809106e04b10f9b43085855521270fb48ab579266e7474657c6c625062d2d030000000351636595a0a97004a1b69603000000000465ab005352ad68010000000008636a5263acac5100da7105010000000002acab90325200000000000000000000", "6a6aab516a63526353", 2, 1518400956, "f7efb74b1dcc49d316b49c632301bc46f98d333c427e55338be60c7ef0d953be"], + ["aeb2e11902dc3770c218b97f0b1960d6ee70459ecb6a95eff3f05295dc1ef4a0884f10ba460300000005516352526393e9b1b3e6ae834102d699ddd3845a1e159aa7cf7635edb5c02003f7830fee3788b795f20100000009ab006a526553ac006ad8809c570469290e0400000000050000abab00b10fd5040000000008ab655263abac53ab630b180300000000009d9993040000000002516300000000", "5351ababac6a65", 0, 1084852870, "f2286001af0b0170cbdad92693d0a5ebaa8262a4a9d66e002f6d79a8c94026d1"], + ["9860ca9a0294ff4812534def8c3a3e3db35b817e1a2ddb7f0bf673f70eab71bb79e90a2f3100000000086a636551acac5165ffffffffed4d6d3cd9ff9b2d490e0c089739121161a1445844c3e204296816ab06e0a83702000000035100ac88d0db5201c3b59a050000000005ac6a0051ab00000000", "535263ab006a526aab", 1, -962088116, "30df2473e1403e2b8e637e576825f785528d998af127d501556e5f7f5ed89a2a"], + ["4ddaa680026ec4d8060640304b86823f1ac760c260cef81d85bd847952863d629a3002b54b0200000008526365636a656aab65457861fc6c24bdc760c8b2e906b6656edaf9ed22b5f50e1fb29ec076ceadd9e8ebcb6b000000000152ffffffff033ff04f00000000000551526a00657a1d900300000000002153af040000000003006a6300000000", "ab526a53acabab", 0, 1055317633, "7f21b62267ed52462e371a917eb3542569a4049b9dfca2de3c75872b39510b26"], + ["01e76dcd02ad54cbc8c71d68eaf3fa7c883b65d74217b30ba81f1f5144ef80b706c0dc82ca000000000352ab6a078ec18bcd0514825feced2e8b8ea1ccb34429fae41c70cc0b73a2799e85603613c6870002000000086363ab6365536a53ffffffff043acea90000000000016ad20e1803000000000100fa00830200000000056352515351e864ee00000000000865535253ab6a6551d0c46672", "6a6365abacab", 0, -1420559003, "8af0b4cbdbc011be848edf4dbd2cde96f0578d662cfebc42252495387114224a"], + ["fa00b26402670b97906203434aa967ce1559d9bd097d56dbe760469e6032e7ab61accb54160100000006635163630052fffffffffe0d3f4f0f808fd9cfb162e9f0c004601acf725cd7ea5683bbdc9a9a433ef15a0200000005ab52536563d09c7bef049040f305000000000153a7c7b9020000000004ac63ab52847a2503000000000553ab00655390ed80010000000005006553ab52860671d4", "536565ab52", 0, 799022412, "40ed8e7bbbd893e15f3cce210ae02c97669818de5946ca37eefc7541116e2c78"], + ["cb5c06dc01b022ee6105ba410f0eb12b9ce5b5aa185b28532492d839a10cef33d06134b91b010000000153ffffffff02cec0530400000000005e1e4504000000000865656551acacac6a00000000", "ab53", 0, -1514251329, "136beb95459fe6b126cd6cefd54eb5d971524b0e883e41a292a78f78015cb8d5"], + ["f10a0356031cd569d652dbca8e7a4d36c8da33cdff428d003338602b7764fe2c96c505175b010000000465ac516affffffffbb54563c71136fa944ee20452d78dc87073ac2365ba07e638dce29a5d179da600000000003635152ffffffff9a411d8e2d421b1e6085540ee2809901e590940bbb41532fa38bd7a16b68cc350100000007535251635365636195df1603b61c45010000000002ab65bf6a310400000000026352fcbba10200000000016aa30b7ff0", "5351", 0, 1552495929, "9eb8adf2caecb4bf9ac59d7f46bd20e83258472db2f569ee91aba4cf5ee78e29"], + ["c3325c9b012f659466626ca8f3c61dfd36f34670abc054476b7516a1839ec43cd0870aa0c0000000000753525265005351e7e3f04b0112650500000000000363ac6300000000", "acac", 0, -68961433, "5ca70e727d91b1a42b78488af2ed551642c32d3de4712a51679f60f1456a8647"], + ["2333e54c044370a8af16b9750ac949b151522ea6029bacc9a34261599549581c7b4e5ece470000000007510052006563abffffffff80630fc0155c750ce20d0ca4a3d0c8e8d83b014a5b40f0b0be0dd4c63ac28126020000000465000000ffffffff1b5f1433d38cdc494093bb1d62d84b10abbdae57e3d04e82e600857ab3b1dc990300000003515100b76564be13e4890a908ea7508afdad92ec1b200a9a67939fadce6eb7a29eb4550a0a28cb0300000001acffffffff02926c930300000000016373800201000000000153d27ee740", "ab6365ab516a53", 3, 598653797, "2be27a686eb7940dd32c44ff3a97c1b28feb7ab9c5c0b1593b2d762361cfc2db"], + ["b500ca48011ec57c2e5252e5da6432089130603245ffbafb0e4c5ffe6090feb629207eeb0e010000000652ab6a636aab8302c9d2042b44f40500000000015278c05a050000000004ac5251524be080020000000007636aac63ac5252c93a9a04000000000965ab6553636aab5352d91f9ddb", "52005100", 0, -2024394677, "49c8a6940a461cc7225637f1e512cdd174c99f96ec05935a59637ededc77124c"], + ["f52ff64b02ee91adb01f3936cc42e41e1672778962b68cf013293d649536b519bc3271dd2c00000000020065afee11313784849a7c15f44a61cd5fd51ccfcdae707e5896d131b082dc9322a19e12858501000000036aac654e8ca882022deb7c020000000006006a515352abd3defc0000000000016300000000", "63520063", 0, 1130989496, "7f208df9a5507e98c62cebc5c1e2445eb632e95527594929b9577b53363e96f6"], + ["ab7d6f36027a7adc36a5cf7528fe4fb5d94b2c96803a4b38a83a675d7806dda62b380df86a0000000003000000ffffffff5bc00131e29e22057c04be854794b4877dda42e416a7a24706b802ff9da521b20000000007ac6a0065ac52ac957cf45501b9f06501000000000500ac6363ab25f1110b", "00526500536a635253", 0, 911316637, "5fa09d43c8aef6f6fa01c383a69a5a61a609cd06e37dce35a39dc9eae3ddfe6c"], + ["f940888f023dce6360263c850372eb145b864228fdbbb4c1186174fa83aab890ff38f8c9a90300000000ffffffff01e80ccdb081e7bbae1c776531adcbfb77f2e5a7d0e5d0d0e2e6c8758470e85f00000000020053ffffffff03b49088050000000004656a52ab428bd604000000000951630065ab63ac636a0cbacf0400000000070063ac5265ac53d6e16604", "ac63", 0, 39900215, "713ddeeefcfe04929e7b6593c792a4efbae88d2b5280d1f0835d2214eddcbad6"], + ["530ecd0b01ec302d97ef6f1b5a6420b9a239714013e20d39aa3789d191ef623fc215aa8b940200000005ac5351ab6a3823ab8202572eaa04000000000752ab6a51526563fd8a270100000000036a006581a798f0", "525153656a0063", 0, 1784562684, "fe42f73a8742676e640698222b1bd6b9c338ff1ccd766d3d88d7d3c6c6ac987e"], + ["5d781d9303acfcce964f50865ddfddab527ea971aee91234c88e184979985c00b4de15204b0100000003ab6352a009c8ab01f93c8ef2447386c434b4498538f061845862c3f9d5751ad0fce52af442b3a902000000045165ababb909c66b5a3e7c81b3c45396b944be13b8aacfc0204f3f3c105a66fa8fa6402f1b5efddb01000000096a65ac636aacab656ac3c677c402b79fa4050000000004006aab5133e35802000000000751ab635163ab0078c2e025", "6aac51636a6a005265", 0, -882306874, "551ce975d58647f10adefb3e529d9bf9cda34751627ec45e690f135ef0034b95"], + ["25ee54ef0187387564bb86e0af96baec54289ca8d15e81a507a2ed6668dc92683111dfb7a50100000004005263634cecf17d0429aa4d000000000007636a6aabab5263daa75601000000000251ab4df70a01000000000151980a890400000000065253ac6a006377fd24e3", "65ab", 0, 797877378, "069f38fd5d47abff46f04ee3ae27db03275e9aa4737fa0d2f5394779f9654845"], + ["a9c57b1a018551bcbc781b256642532bbc09967f1cbe30a227d352a19365d219d3f11649a3030000000451655352b140942203182894030000000006ab00ac6aab654add350400000000003d379505000000000553abacac00e1739d36", "5363", 0, -1069721025, "6da32416deb45a0d720a1dbe6d357886eabc44029dd5db74d50feaffbe763245"], + ["05c4fb94040f5119dc0b10aa9df054871ed23c98c890f1e931a98ffb0683dac45e98619fdc0200000007acab6a525263513e7495651c9794c4d60da835d303eb4ee6e871f8292f6ad0b32e85ef08c9dc7aa4e03c9c010000000500ab52acacfffffffffee953259cf14ced323fe8d567e4c57ba331021a1ef5ac2fa90f7789340d7c550100000007ac6aacac6a6a53ffffffff08d9dc820d00f18998af247319f9de5c0bbd52a475ea587f16101af3afab7c210100000003535363569bca7c0468e34f00000000000863536353ac51ac6584e319010000000006650052ab6a533debea030000000003ac0053ee7070020000000006ac52005253ac00000000", "6351005253", 2, 1386916157, "76c4013c40bfa1481badd9d342b6d4b8118de5ab497995fafbf73144469e5ff0"], + ["c95ab19104b63986d7303f4363ca8f5d2fa87c21e3c5d462b99f1ebcb7c402fc012f5034780000000009006aac63ac65655265ffffffffbe91afa68af40a8700fd579c86d4b706c24e47f7379dad6133de389f815ef7f501000000046aac00abffffffff1520db0d81be4c631878494668d258369f30b8f2b7a71e257764e9a27f24b48701000000076a515100535300b0a989e1164db9499845bac01d07a3a7d6d2c2a76e4c04abe68f808b6e2ef5068ce6540e0100000009ac53636a63ab65656affffffff0309aac6050000000005ab6563656a6067e8020000000003ac536aec91c8030000000009655251ab65ac6a53acc7a45bc5", "63526a65abac", 1, 512079270, "fb7eca81d816354b6aedec8cafc721d5b107336657acafd0d246049556f9e04b"], + ["ca66ae10049533c2b39f1449791bd6d3f039efe0a121ab7339d39ef05d6dcb200ec3fb2b3b020000000465006a53ffffffff534b8f97f15cc7fb4f4cea9bf798472dc93135cd5b809e4ca7fe4617a61895980100000000ddd83c1dc96f640929dd5e6f1151dab1aa669128591f153310d3993e562cc7725b6ae3d903000000046a52536582f8ccddb8086d8550f09128029e1782c3f2624419abdeaf74ecb24889cc45ac1a64492a0100000002516a4867b41502ee6ccf03000000000752acacab52ab6a4b7ba80000000000075151ab0052536300000000", "6553", 2, -62969257, "8085e904164ab9a8c20f58f0d387f6adb3df85532e11662c03b53c3df8c943cb"], + ["ba646d0b0453999f0c70cb0430d4cab0e2120457bb9128ed002b6e9500e9c7f8d7baa20abe0200000001652a4e42935b21db02b56bf6f08ef4be5adb13c38bc6a0c3187ed7f6197607ba6a2c47bc8a03000000040052516affffffffa55c3cbfc19b1667594ac8681ba5d159514b623d08ed4697f56ce8fcd9ca5b0b00000000096a6a5263ac655263ab66728c2720fdeabdfdf8d9fb2bfe88b295d3b87590e26a1e456bad5991964165f888c03a0200000006630051ac00acffffffff0176fafe0100000000070063acac65515200000000", "63", 1, 2002322280, "9db4e320208185ee70edb4764ee195deca00ba46412d5527d9700c1cf1c3d057"], + ["2ddb8f84039f983b45f64a7a79b74ff939e3b598b38f436def7edd57282d0803c7ef34968d02000000026a537eb00c4187de96e6e397c05f11915270bcc383959877868ba93bac417d9f6ed9f627a7930300000004516551abffffffffacc12f1bb67be3ae9f1d43e55fda8b885340a0df1175392a8bbd9f959ad3605003000000025163ffffffff02ff0f4700000000000070bd99040000000003ac53abf8440b42", "", 2, -393923011, "0133f1a161363b71dfb3a90065c7128c56bd0028b558b610142df79e055ab5c7"], + ["b21fc15403b4bdaa994204444b59323a7b8714dd471bd7f975a4e4b7b48787e720cbd1f5f00000000000ffffffff311533001cb85c98c1d58de0a5fbf27684a69af850d52e22197b0dc941bc6ca9030000000765ab6363ab5351a8ae2c2c7141ece9a4ff75c43b7ea9d94ec79b7e28f63e015ac584d984a526a73fe1e04e0100000007526352536a5365ffffffff02a0a9ea030000000002ab52cfc4f300000000000465525253e8e0f342", "000000", 1, 1305253970, "d1df1f4bba2484cff8a816012bb6ec91c693e8ca69fe85255e0031711081c46a"], + ["d1704d6601acf710b19fa753e307cfcee2735eada0d982b5df768573df690f460281aad12d0000000007656300005100acffffffff0232205505000000000351ab632ca1bc0300000000016300000000", "ac65ab65ab51", 0, 165179664, "40b4f03c68288bdc996011b0f0ddb4b48dc3be6762db7388bdc826113266cd6c"], + ["d2f6c096025cc909952c2400bd83ac3d532bfa8a1f8f3e73c69b1fd7b8913379793f3ce92202000000076a00ab6a53516ade5332d81d58b22ed47b2a249ab3a2cb3a6ce9a6b5a6810e18e3e1283c1a1b3bd73e3ab00300000002acabffffffff01a9b2d40500000000056352abab00dc4b7f69", "ab0065", 0, -78019184, "2ef025e907f0fa454a2b48a4f3b81346ba2b252769b5c35d742d0c8985e0bf5e"], + ["3e6db1a1019444dba461247224ad5933c997256d15c5d37ade3d700506a0ba0a57824930d7010000000852ab6500ab00ac00ffffffff03389242020000000001aba8465a0200000000086a6a636a5100ab52394e6003000000000953ac51526351000053d21d9800", "abababacab53ab65", 0, 1643661850, "1f8a3aca573a609f4aea0c69522a82fcb4e15835449da24a05886ddc601f4f6a"], + ["f821a042036ad43634d29913b77c0fc87b4af593ac86e9a816a9d83fd18dfcfc84e1e1d57102000000076a63ac52006351ffffffffbcdaf490fc75086109e2f832c8985716b3a624a422cf9412fe6227c10585d21203000000095252abab5352ac526affffffff2efed01a4b73ad46c7f7bc7fa3bc480f8e32d741252f389eaca889a2e9d2007e000000000353ac53ffffffff032ac8b3020000000009636300000063516300d3d9f2040000000006510065ac656aafa5de0000000000066352ab5300ac9042b57d", "525365", 1, 667065611, "0d17a92c8d5041ba09b506ddf9fd48993be389d000aad54f9cc2a44fcc70426b"], + ["58e3f0f704a186ef55d3919061459910df5406a9121f375e7502f3be872a449c3f2bb058380100000000f0e858da3ac57b6c973f889ad879ffb2bd645e91b774006dfa366c74e2794aafc8bbc871010000000751ac65516a515131a68f120fd88ca08687ceb4800e1e3fbfea7533d34c84fef70cc5a96b648d580369526d000000000600ac00515363f6191d5b3e460fa541a30a6e83345dedfa3ed31ad8574d46d7bbecd3c9074e6ba5287c24020000000151e3e19d6604162602010000000004005100ac71e17101000000000065b5e90300000000040053ab53f6b7d101000000000200ac00000000", "6563ab", 1, -669018604, "8221d5dfb75fc301a80e919e158e0b1d1e86ffb08870a326c89408d9bc17346b"], + ["efec1cce044a676c1a3d973f810edb5a9706eb4cf888a240f2b5fb08636bd2db482327cf500000000005ab51656a52ffffffff46ef019d7c03d9456e5134eb0a7b5408d274bd8e33e83df44fab94101f7c5b650200000009ac5100006353630051407aadf6f5aaffbd318fdbbc9cae4bd883e67d524df06bb006ce2f7c7e2725744afb76960100000005536aab53acec0d64eae09e2fa1a7c4960354230d51146cf6dc45ee8a51f489e20508a785cbe6ca86fc000000000651536a516300ffffffff014ef598020000000006636aac655265a6ae1b75", "53516a5363526563ab", 2, -1823982010, "13e8b5ab4e5b2ceeff0045c625e19898bda2d39fd7af682e2d1521303cfe1154"], + ["3c436c2501442a5b700cbc0622ee5143b34b1b8021ea7bbc29e4154ab1f5bdfb3dff9d640501000000086aab5251ac5252acffffffff0170b9a20300000000066aab6351525114b13791", "63acabab52ab51ac65", 0, -2140612788, "87ddf1f9acb6640448e955bd1968f738b4b3e073983af7b83394ab7557f5cd61"], + ["d62f183e037e0d52dcf73f9b31f70554bce4f693d36d17552d0e217041e01f15ad3840c838000000000963acac6a6a6a63ab63ffffffffabdfb395b6b4e63e02a763830f536fc09a35ff8a0cf604021c3c751fe4c88f4d0300000006ab63ab65ac53aa4d30de95a2327bccf9039fb1ad976f84e0b4a0936d82e67eafebc108993f1e57d8ae39000000000165ffffffff04364ad30500000000036a005179fd84010000000007ab636aac6363519b9023030000000008510065006563ac6acd2a4a02000000000000000000", "52", 1, 595020383, "da8405db28726dc4e0f82b61b2bfd82b1baa436b4e59300305cc3b090b157504"], + ["44c200a5021238de8de7d80e7cce905606001524e21c8d8627e279335554ca886454d692e6000000000500acac52abbb8d1dc876abb1f514e96b21c6e83f429c66accd961860dc3aed5071e153e556e6cf076d02000000056553526a51870a928d0360a580040000000004516a535290e1e302000000000851ab6a00510065acdd7fc5040000000007515363ab65636abb1ec182", "6363", 0, -785766894, "ed53cc766cf7cb8071cec9752460763b504b2183442328c5a9761eb005c69501"], + ["d682d52d034e9b062544e5f8c60f860c18f029df8b47716cabb6c1b4a4b310a0705e754556020000000400656a0016eeb88eef6924fed207fba7ddd321ff3d84f09902ff958c815a2bf2bb692eb52032c4d803000000076365ac516a520099788831f8c8eb2552389839cfb81a9dc55ecd25367acad4e03cfbb06530f8cccf82802701000000085253655300656a53ffffffff02d543200500000000056a510052ac03978b05000000000700ac51525363acfdc4f784", "", 2, -696035135, "e1a256854099907050cfee7778f2018082e735a1f1a3d91437584850a74c87bb"], + ["e8c0dec5026575ddf31343c20aeeca8770afb33d4e562aa8ee52eeda6b88806fdfd4fe0a97030000000953acabab65ab516552ffffffffdde122c2c3e9708874286465f8105f43019e837746686f442666629088a970e0010000000153ffffffff01f98eee0100000000025251fe87379a", "63", 1, 633826334, "abe441209165d25bc6d8368f2e7e7dc21019056719fef1ace45542aa2ef282e2"], + ["b288c331011c17569293c1e6448e33a64205fc9dc6e35bc756a1ac8b97d18e912ea88dc0770200000007635300ac6aacabfc3c890903a3ccf8040000000004656500ac9c65c9040000000009ab6a6aabab65abac63ac5f7702000000000365005200000000", "526a63", 0, 1574937329, "0dd1bd5c25533bf5f268aa316ce40f97452cca2061f0b126a59094ca5b65f7a0"], + ["fc0a092003cb275fa9a25a72cf85d69c19e4590bfde36c2b91cd2c9c56385f51cc545530210000000004ab530063ffffffff729b006eb6d14d6e5e32b1c376acf1c62830a5d9246da38dbdb4db9f51fd1c74020000000463636500ffffffff0ae695c6d12ab7dcb8d3d4b547b03f178c7268765d1de9af8523d244e3836b12030000000151ffffffff0115c1e20100000000066a6aabac6a6a1ff59aec", "ab0053ac", 0, 931831026, "73fe22099c826c34a74edf45591f5d7b3a888c8178cd08facdfd96a9a681261c"], + ["0fcae7e004a71a4a7c8f66e9450c0c1785268679f5f1a2ee0fb3e72413d70a9049ecff75de020000000452005251ffffffff99c8363c4b95e7ec13b8c017d7bb6e80f7c04b1187d6072961e1c2479b1dc0320200000000ffffffff7cf03b3d66ab53ed740a70c5c392b84f780fff5472aee82971ac3bfeeb09b2df0200000006ab5265636a0058e4fe9257d7c7c7e82ff187757c6eadc14cceb6664dba2de03a018095fd3006682a5b9600000000056353536a636de26b2303ff76de010000000001acdc0a2e020000000001ab0a53ed020000000007530063ab51510088417307", "ac6aacab5165535253", 2, -902160694, "eea96a48ee572aea33d75d0587ce954fcfb425531a7da39df26ef9a6635201be"], + ["612701500414271138e30a46b7a5d95c70c78cc45bf8e40491dac23a6a1b65a51af04e6b94020000000451655153ffffffffeb72dc0e49b2fad3075c19e1e6e4b387f1365dca43d510f6a02136318ddecb7f0200000003536352e115ffc4f9bae25ef5baf534a890d18106fb07055c4d7ec9553ba89ed1ac2101724e507303000000080063006563acabac2ff07f69a080cf61a9d19f868239e6a4817c0eeb6a4f33fe254045d8af2bca289a8695de0300000000430736c404d317840500000000086a00abac5351ab65306e0503000000000963ab0051536aabab6a6c8aca01000000000565516351ab5dcf960100000000016a00000000", "ab", 2, -604581431, "5ec805e74ee934aa815ca5f763425785ae390282d46b5f6ea076b6ad6255a842"], + ["6b68ba00023bb4f446365ea04d68d48539aae66f5b04e31e6b38b594d2723ab82d44512460000000000200acffffffff5dfc6febb484fff69c9eeb7c7eb972e91b6d949295571b8235b1da8955f3137b020000000851ac6352516a535325828c8a03365da801000000000800636aabac6551ab0f594d03000000000963ac536365ac63636a45329e010000000005abac53526a00000000", "005151", 0, 1317038910, "42f5ba6f5fe1e00e652a08c46715871dc4b40d89d9799fd7c0ea758f86eab6a7"], + ["aff5850c0168a67296cc790c1b04a9ed9ad1ba0469263a9432fcb53676d1bb4e0eea8ea1410100000005ac65526a537d5fcb1d01d9c26d0200000000065265ab5153acc0617ca1", "51ab650063", 0, 1712981774, "8449d5247071325e5f8edcc93cb9666c0fecabb130ce0e5bef050575488477eb"], + ["e6d6b9d8042c27aec99af8c12b6c1f7a80453e2252c02515e1f391da185df0874e133696b50300000006ac5165650065ffffffff6a4b60a5bfe7af72b198eaa3cde2e02aa5fa36bdf5f24ebce79f6ecb51f3b554000000000652656aababac2ec4c5a6cebf86866b1fcc4c5bd5f4b19785a8eea2cdfe58851febf87feacf6f355324a80100000001537100145149ac1e287cef62f6f5343579189fad849dd33f25c25bfca841cb696f10c5a34503000000046a636a63df9d7c4c018d96e20100000000015100000000", "53ab", 1, -1924777542, "f98f95d0c5ec3ac3e699d81f6c440d2e7843eab15393eb023bc5a62835d6dcea"], + ["046ac25e030a344116489cc48025659a363da60bc36b3a8784df137a93b9afeab91a04c1ed020000000951ab0000526a65ac51ffffffff6c094a03869fde55b9a8c4942a9906683f0a96e2d3e5a03c73614ea3223b2c29020000000500ab636a6affffffff3da7aa5ecef9071600866267674b54af1740c5aeb88a290c459caa257a2683cb0000000004ab6565ab7e2a1b900301b916030000000005abac63656308f4ed03000000000852ab53ac63ac51ac73d620020000000003ab00008deb1285", "6a", 2, 1299505108, "f79e6b776e2592bad45ca328c54abf14050c241d8f822d982c36ea890fd45757"], + ["bd515acd0130b0ac47c2d87f8d65953ec7d657af8d96af584fc13323d0c182a2e5f9a96573000000000652ac51acac65ffffffff0467aade000000000003655363dc577d050000000006515252ab5300137f60030000000007535163530065004cdc860500000000036a5265241bf53e", "acab", 0, 621090621, "771d4d87f1591a13d77e51858c16d78f1956712fe09a46ff1abcabbc1e7af711"], + ["ff1ae37103397245ac0fa1c115b079fa20930757f5b6623db3579cb7663313c2dc4a3ffdb300000000076353656a000053ffffffff83c59e38e5ad91216ee1a312d15b4267bae2dd2e57d1a3fd5c2f0f809eeb5d46010000000800abab6a6a53ab51ffffffff9d5e706c032c1e0ca75915f8c6686f64ec995ebcd2539508b7dd8abc3e4d7d2a01000000006b2bdcda02a8fe070500000000045253000019e31d04000000000700ab63acab526a00000000", "53656aab6a525251", 0, 881938872, "726bb88cdf3af2f7603a31f33d2612562306d08972a4412a55dbbc0e3363721c"], + ["ff5400dd02fec5beb9a396e1cbedc82bedae09ed44bae60ba9bef2ff375a6858212478844b03000000025253ffffffff01e46c203577a79d1172db715e9cc6316b9cfc59b5e5e4d9199fef201c6f9f0f000000000900ab6552656a5165acffffffff02e8ce62040000000002515312ce3e00000000000251513f119316", "", 0, 1541581667, "1e0da47eedbbb381b0e0debbb76e128d042e02e65b11125e17fd127305fc65cd"], + ["28e3daa603c03626ad91ffd0ff927a126e28d29db5012588b829a06a652ea4a8a5732407030200000004ab6552acffffffff8e643146d3d0568fc2ad854fd7864d43f6f16b84e395db82b739f6f5c84d97b40000000004515165526b01c2dc1469db0198bd884e95d8f29056c48d7e74ff9fd37a9dec53e44b8769a6c99c030200000009ab006a516a53630065eea8738901002398000000000007ac5363516a51abeaef12f5", "52ab52515253ab", 2, 1687390463, "55591346aec652980885a558cc5fc2e3f8d21cbd09f314a798e5a7ead5113ea6"], + ["b54bf5ac043b62e97817abb892892269231b9b220ba08bc8dbc570937cd1ea7cdc13d9676c010000000451ab5365a10adb7b35189e1e8c00b86250f769319668189b7993d6bdac012800f1749150415b2deb0200000003655300ffffffff60b9f4fb9a7e17069fd00416d421f804e2ef2f2c67de4ca04e0241b9f9c1cc5d0200000003ab6aacfffffffff048168461cce1d40601b42fbc5c4f904ace0d35654b7cc1937ccf53fe78505a0100000008526563525265abacffffffff01dbf4e6040000000007acac656553636500000000", "63", 2, 882302077, "f5b38b0f06e246e47ce622e5ee27d5512c509f8ac0e39651b3389815eff2ab93"], + ["ebf628b30360bab3fa4f47ce9e0dcbe9ceaf6675350e638baff0c2c197b2419f8e4fb17e16000000000452516365ac4d909a79be207c6e5fb44fbe348acc42fc7fe7ef1d0baa0e4771a3c4a6efdd7e2c118b0100000003acacacffffffffa6166e9101f03975721a3067f1636cc390d72617be72e5c3c4f73057004ee0ee010000000863636a6a516a5252c1b1e82102d8d54500000000000153324c900400000000015308384913", "0063516a51", 1, -1658428367, "eb2d8dea38e9175d4d33df41f4087c6fea038a71572e3bad1ea166353bf22184"], + ["d6a8500303f1507b1221a91adb6462fb62d741b3052e5e7684ea7cd061a5fc0b0e93549fa50100000004acab65acfffffffffdec79bf7e139c428c7cfd4b35435ae94336367c7b5e1f8e9826fcb0ebaaaea30300000000ffffffffd115fdc00713d52c35ea92805414bd57d1e59d0e6d3b79a77ee18a3228278ada020000000453005151ffffffff040231510300000000085100ac6a6a000063c6041c0400000000080000536a6563acac138a0b04000000000263abd25fbe03000000000900656a00656aac510000000000", "ac526aac6a00", 1, -2007972591, "13d12a51598b34851e7066cd93ab8c5212d60c6ed2dae09d91672c10ccd7f87c"], + ["658cb1c1049564e728291a56fa79987a4ed3146775fce078bd2e875d1a5ca83baf6166a82302000000056a656351ab2170e7d0826cbdb45fda0457ca7689745fd70541e2137bb4f52e7b432dcfe2112807bd720300000007006a0052536351ffffffff8715ca2977696abf86d433d5c920ef26974f50e9f4a20c584fecbb68e530af5101000000009e49d864155bf1d3c757186d29f3388fd89c7f55cc4d9158b4cf74ca27a35a1dd93f945502000000096a535353ac656351510d29fa870230b809040000000006ab6a6a526a633b41da050000000004ab6a6a65ed63bf62", "52acabac", 2, -1774073281, "53ab197fa7e27b8a3f99ff48305e67081eb90e95d89d7e92d80cee25a03a6689"], + ["e92492cc01aec4e62df67ea3bc645e2e3f603645b3c5b353e4ae967b562d23d6e043badecd0100000003acab65ffffffff02c7e5ea040000000002ab52e1e584010000000005536365515195d16047", "6551", 0, -424930556, "93c34627f526d73f4bea044392d1a99776b4409f7d3d835f23b03c358f5a61c2"], + ["02e242db04be2d8ced9179957e98cee395d4767966f71448dd084426844cbc6d15f2182e85030000000200650c8ffce3db9de9c3f9cdb9104c7cb26647a7531ad1ebf7591c259a9c9985503be50f8de30000000007ac6a51636a6353ffffffffa2e33e7ff06fd6469987ddf8a626853dbf30c01719efb259ae768f051f803cd30300000000fffffffffd69d8aead941683ca0b1ee235d09eade960e0b1df3cd99f850afc0af1b73e070300000001ab60bb602a011659670100000000076363526300acac00000000", "6353ab515251", 3, 1451100552, "bbc9069b8615f3a52ac8a77359098dcc6c1ba88c8372d5d5fe080b99eb781e55"], + ["b28d5f5e015a7f24d5f9e7b04a83cd07277d452e898f78b50aae45393dfb87f94a26ef57720200000008ababac630053ac52ffffffff046475ed040000000008ab5100526363ac65c9834a04000000000251abae26b30100000000040000ac65ceefb900000000000000000000", "ac6551ac6a536553", 0, -1756558188, "5848d93491044d7f21884eef7a244fe7d38886f8ae60df49ce0dfb2a342cd51a"], + ["efb8b09801f647553b91922a5874f8e4bb2ed8ddb3536ed2d2ed0698fac5e0e3a298012391030000000952ac005263ac52006affffffff04cdfa0f050000000007ac53ab51abac65b68d1b02000000000553ab65ac00d057d50000000000016a9e1fda010000000007ac63ac536552ac00000000", "6aac", 0, 1947322973, "603a9b61cd30fcea43ef0a5c18b88ca372690b971b379ee9e01909c336280511"], + ["68a59fb901c21946797e7d07a4a3ea86978ce43df0479860d7116ac514ba955460bae78fff0000000001abffffffff03979be80100000000036553639300bc040000000008006552006a656565cfa78d0000000000076552acab63ab5100000000", "ab65ab", 0, 995583673, "3b320dd47f2702452a49a1288bdc74a19a4b849b132b6cad9a1d945d87dfbb23"], + ["67761f2a014a16f3940dcb14a22ba5dc057fcffdcd2cf6150b01d516be00ef55ef7eb07a830100000004636a6a51ffffffff01af67bd050000000008526553526300510000000000", "6a00", 0, 1570943676, "079fa62e9d9d7654da8b74b065da3154f3e63c315f25751b4d896733a1d67807"], + ["e20fe96302496eb436eee98cd5a32e1c49f2a379ceb71ada8a48c5382df7c8cd88bdc47ced03000000016556aa0e180660925a841b457aed0aae47fca2a92fa1d7afeda647abf67198a3902a7c80dd00000000085152ac636a535265bd18335e01803c810100000000046500ac52f371025e", "6363ab", 1, -651254218, "2921a0e5e3ba83c57ba57c25569380c17986bf34c366ec216d4188d5ba8b0b47"], + ["4e1bd9fa011fe7aa14eee8e78f27c9fde5127f99f53d86bc67bdab23ca8901054ee8a8b6eb0300000009ac535153006a6a0063ffffffff044233670500000000000a667205000000000652ab636a51abe5bf35030000000003535351d579e505000000000700630065ab51ac3419ac30", "52abac52", 0, -1807563680, "4aae6648f856994bed252d319932d78db55da50d32b9008216d5366b44bfdf8a"], + ["ec02fbee03120d02fde12574649660c441b40d330439183430c6feb404064d4f507e704f3c0100000000ffffffffe108d99c7a4e5f75cc35c05debb615d52fac6e3240a6964a29c1704d98017fb60200000002ab63fffffffff726ec890038977adfc9dadbeaf5e486d5fcb65dc23acff0dd90b61b8e2773410000000002ac65e9dace55010f881b010000000005ac00ab650000000000", "51ac525152ac6552", 2, -1564046020, "3f988922d8cd11c7adff1a83ce9499019e5ab5f424752d8d361cf1762e04269b"], + ["23dbdcc1039c99bf11938d8e3ccec53b60c6c1d10c8eb6c31197d62c6c4e2af17f52115c3a0300000008636352000063ababffffffff17823880e1df93e63ad98c29bfac12e36efd60254346cac9d3f8ada020afc0620300000003ab63631c26f002ac66e86cd22a25e3ed3cb39d982f47c5118f03253054842daadc88a6c41a2e1500000000096a00ab636a53635163195314de015570fd0100000000096a5263acab5200005300000000", "ababac6a6553", 1, 11586329, "bd36a50e0e0a4ecbf2709e68daef41eddc1c0c9769efaee57910e99c0a1d1343"], + ["33b03bf00222c7ca35c2f8870bbdef2a543b70677e413ce50494ac9b22ea673287b6aa55c50000000005ab00006a52ee4d97b527eb0b427e4514ea4a76c81e68c34900a23838d3e57d0edb5410e62eeb8c92b6000000000553ac6aacac42e59e170326245c000000000009656553536aab516aabb1a10603000000000852ab52ab6a516500cc89c802000000000763ac6a63ac516300000000", "", 0, 557416556, "41bead1b073e1e9fee065dd612a617ca0689e8f9d3fed9d0acfa97398ebb404c"], + ["813eda1103ac8159850b4524ef65e4644e0fc30efe57a5db0c0365a30446d518d9b9aa8fdd0000000003656565c2f1e89448b374b8f12055557927d5b33339c52228f7108228149920e0b77ef0bcd69da60000000006abac00ab63ab82cdb7978d28630c5e1dc630f332c4245581f787936f0b1e84d38d33892141974c75b4750300000004ac53ab65ffffffff0137edfb02000000000000000000", "0063", 1, -1948560575, "71dfcd2eb7f2e6473aed47b16a6d5fcbd0af22813d892e9765023151e07771ec"], + ["9e45d9aa0248c16dbd7f435e8c54ae1ad086de50c7b25795a704f3d8e45e1886386c653fbf01000000025352fb4a1acefdd27747b60d1fb79b96d14fb88770c75e0da941b7803a513e6d4c908c6445c7010000000163ffffffff014069a8010000000001520a794fb3", "51ac005363", 1, -719113284, "0d31a221c69bd322ef7193dd7359ddfefec9e0a1521d4a8740326d46e44a5d6a"], + ["36e42018044652286b19a90e5dd4f8d9f361d0760d080c5c5add1970296ff0f1de630233c8010000000200ac39260c7606017d2246ee14ddb7611586178067e6a4be38e788e33f39a3a95a55a13a6775010000000352ac638bea784f7c2354ed02ea0b93f0240cdfb91796fa77649beee6f7027caa70778b091deee700000000066a65ac656363ffffffff4d9d77ab676d711267ef65363f2d192e1bd55d3cd37f2280a34c72e8b4c559d700000000056a006aab00001764e1020d30220100000000085252516aacab0053472097040000000009635353ab6a636a5100a56407a1", "006a536551ab53ab", 0, 827296034, "daec2af5622bbe220c762da77bab14dc75e7d28aa1ade9b7f100798f7f0fd97a"], + ["5e06159a02762b5f3a5edcdfc91fd88c3bff08b202e69eb5ba74743e9f4291c4059ab008200000000001ac348f5446bb069ef977f89dbe925795d59fb5d98562679bafd61f5f5f3150c3559582992d0000000008ab5165515353abac762fc67703847ec6010000000000e200cf040000000002abaca64b86010000000008520000515363acabb82b491b", "ab53525352ab6a", 0, -61819505, "75a7db0df41485a28bf6a77a37ca15fa8eccc95b5d6014a731fd8adb9ada0f12"], + ["a1948872013b543d6d902ccdeead231c585195214ccf5d39f136023855958436a43266911501000000086aac006a6a6a51514951c9b2038a538a04000000000452526563c0f345050000000007526a5252ac526af9be8e03000000000752acac51ab006306198db2", "ab6353", 0, -326384076, "ced7ef84aad4097e1eb96310e0d1c8e512cfcb392a01d9010713459b23bc0cf4"], + ["c3efabba03cb656f154d1e159aa4a1a4bf9423a50454ebcef07bc3c42a35fb8ad84014864d0000000000d1cc73d260980775650caa272e9103dc6408bdacaddada6b9c67c88ceba6abaa9caa2f7d020000000553536a5265ffffffff9f946e8176d9b11ff854b76efcca0a4c236d29b69fb645ba29d406480427438e01000000066a0065005300ffffffff040419c0010000000003ab6a63cdb5b6010000000009006300ab5352656a63f9fe5e050000000004acac5352611b980100000000086a00acac00006a512d7f0c40", "0053", 0, -59089911, "c503001c16fbff82a99a18d88fe18720af63656fccd8511bca1c3d0d69bd7fc0"], + ["efb55c2e04b21a0c25e0e29f6586be9ef09f2008389e5257ebf2f5251051cdc6a79fce2dac020000000351006affffffffaba73e5b6e6c62048ba5676d18c33ccbcb59866470bb7911ccafb2238cfd493802000000026563ffffffffe62d7cb8658a6eca8a8babeb0f1f4fa535b62f5fc0ec70eb0111174e72bbec5e0300000009abababac516365526affffffffbf568789e681032d3e3be761642f25e46c20322fa80346c1146cb47ac999cf1b0300000000b3dbd55902528828010000000001ab0aac7b0100000000015300000000", "acac52", 3, 1638140535, "e84444d91580da41c8a7dcf6d32229bb106f1be0c811b2292967ead5a96ce9d4"], + ["91d3b21903629209b877b3e1aef09cd59aca6a5a0db9b83e6b3472aceec3bc2109e64ab85a0200000003530065ffffffffca5f92de2f1b7d8478b8261eaf32e5656b9eabbc58dcb2345912e9079a33c4cd010000000700ab65ab00536ad530611da41bbd51a389788c46678a265fe85737b8d317a83a8ff7a839debd18892ae5c80300000007ab6aac65ab51008b86c501038b8a9a05000000000263525b3f7a040000000007ab535353ab00abd4e3ff04000000000665ac51ab65630b7b656f", "6551525151516a00", 2, 499657927, "ef4bd7622eb7b2bbbbdc48663c1bc90e01d5bde90ff4cb946596f781eb420a0c"], + ["5d5c41ad0317aa7e40a513f5141ad5fc6e17d3916eebee4ddb400ddab596175b41a111ead20100000005536a5265acffffffff900ecb5e355c5c9f278c2c6ea15ac1558b041738e4bffe5ae06a9346d66d5b2b00000000080000ab636a65ab6affffffff99f4e08305fa5bd8e38fb9ca18b73f7a33c61ff7b3c68e696b30a04fea87f3ca000000000163d3d1760d019fc13a00000000000000000000", "ab53acabab6aac6a52", 2, 1007461922, "4012f5ff2f1238a0eb84854074670b4703238ebc15bfcdcd47ffa8498105fcd9"], + ["ceecfa6c02b7e3345445b82226b15b7a097563fa7d15f3b0c979232b138124b62c0be007890200000009abac51536a63525253ffffffffbae481ccb4f15d94db5ec0d8854c24c1cc8642bd0c6300ede98a91ca13a4539a0200000001ac50b0813d023110f5020000000006acabac526563e2b0d0040000000009656aac0063516a536300000000", "0063526500", 0, -1862053821, "e1600e6df8a6160a79ac32aa40bb4644daa88b5f76c0d7d13bf003327223f70c"], + ["ae62d5fd0380c4083a26642159f51af24bf55dc69008e6b7769442b6a69a603edd980a33000000000005ab5100ab53ffffffff49d048324d899d4b8ed5e739d604f5806a1104fede4cb9f92cc825a7fa7b4bfe0200000005536a000053ffffffff42e5cea5673c650881d0b4005fa4550fd86de5f21509c4564a379a0b7252ac0e0000000007530000526a53525f26a68a03bfacc3010000000000e2496f000000000009ab5253acac52636563b11cc600000000000700510065526a6a00000000", "abab", 1, -1600104856, "05cf0ec9c61f1a15f651a0b3c5c221aa543553ce6c804593f43bb5c50bb91ffb"], + ["f06f64af04fdcb830464b5efdb3d5ee25869b0744005375481d7b9d7136a0eb8828ad1f0240200000003516563fffffffffd3ba192dabe9c4eb634a1e3079fca4f072ee5ceb4b57deb6ade5527053a92c5000000000165ffffffff39f43401a36ba13a5c6dd7f1190e793933ae32ee3bf3e7bfb967be51e681af760300000009650000536552636a528e34f50b21183952cad945a83d4d56294b55258183e1627d6e8fb3beb8457ec36cadb0630000000005abab530052334a7128014bbfd10100000000085352ab006a63656afc424a7c", "53650051635253ac00", 2, 313255000, "d309da5afd91b7afa257cfd62df3ca9df036b6a9f4b38f5697d1daa1f587312b"], + ["6dfd2f98046b08e7e2ef5fff153e00545faf7076699012993c7a30cb1a50ec528281a9022f030000000152ffffffff1f535e4851920b968e6c437d84d6ecf586984ebddb7d5db6ae035bd02ba222a8010000000651006a53ab51605072acb3e17939fa0737bc3ee43bc393b4acd58451fc4ffeeedc06df9fc649828822d5010000000253525a4955221715f27788d302382112cf60719be9ae159c51f394519bd5f7e70a4f9816c7020200000009526a6a51636aab656a36d3a5ff0445548e0100000000086a6a00516a52655167030b050000000004ac6a63525cfda8030000000000e158200000000000010000000000", "535263ac6a65515153", 3, 585774166, "72b7da10704c3ca7d1deb60c31b718ee12c70dc9dfb9ae3461edce50789fe2ba"], + ["187eafed01389a45e75e9dda526d3acbbd41e6414936b3356473d1f9793d161603efdb45670100000002ab00ffffffff04371c8202000000000563630063523b3bde02000000000753516563006300e9e765010000000005516aac656a373f9805000000000665525352acab08d46763", "ab", 0, 122457992, "393aa6c758e0eed15fa4af6d9e2d7c63f49057246dbb92b4268ec24fc87301ca"], + ["7d50b977035d50411d814d296da9f7965ddc56f3250961ca5ba805cadd0454e7c521e31b0300000000003d0416c2cf115a397bacf615339f0e54f6c35ffec95aa009284d38390bdde1595cc7aa7c0100000005ab52ac5365ffffffff4232c6e796544d5ac848c9dc8d25cfa74e32e847a5fc74c74d8f38ca51188562030000000653ac51006a51ffffffff016bd8bb00000000000465ab5253163526f3", "51ab526a00005353", 1, -1311316785, "60b7544319b42e4159976c35c32c2644f0adf42eff13be1dc2f726fc0b6bb492"], + ["2a45cd1001bf642a2315d4a427eddcc1e2b0209b1c6abd2db81a800c5f1af32812de42032702000000050051525200ffffffff032177db050000000005530051abac49186f000000000004ab6aab00645c0000000000000765655263acabac00000000", "6a65", 0, -1774715722, "6a9ac3f7da4c7735fbc91f728b52ecbd602233208f96ac5592656074a5db118a"], + ["479358c202427f3c8d19e2ea3def6d6d3ef2281b4a93cd76214f0c7d8f040aa042fe19f71f0300000001abffffffffa2709be556cf6ecaa5ef530df9e4d056d0ed57ce96de55a5b1f369fa40d4e74a020000000700006a51635365c426be3f02af578505000000000363ab63fd8f590500000000065153abac53632dfb14b3", "520063ab51", 1, -763226778, "cfe147982afacde044ce66008cbc5b1e9f0fd9b8ed52b59fc7c0fecf95a39b0e"], + ["76179a8e03bec40747ad65ab0f8a21bc0d125b5c3c17ad5565556d5cb03ade7c83b4f32d98030000000151ffffffff99b900504e0c02b97a65e24f3ad8435dfa54e3c368f4e654803b756d011d24150200000003ac5353617a04ac61bb6cf697cfa4726657ba35ed0031432da8c0ffb252a190278830f9bd54f0320100000006656551005153c8e8fc8803677c77020000000007ac6553535253ac70f442030000000001535be0f20200000000026300bf46cb3a", "6aab52", 1, -58495673, "35e94b3776a6729d20aa2f3ddeeb06d3aad1c14cc4cde52fd21a4efc212ea16c"], + ["75ae53c2042f7546223ce5d5f9e00a968ddc68d52e8932ef2013fa40ce4e8c6ed0b6195cde01000000056563ac630079da0452c20697382e3dba6f4fc300da5f52e95a9dca379bb792907db872ba751b8024ee0300000009655151536500005163ffffffffe091b6d43f51ff00eff0ccfbc99b72d3aff208e0f44b44dfa5e1c7322cfc0c5f01000000075200005363ab63ffffffff7e96c3b83443260ac5cfd18258574fbc4225c630d3950df812bf51dceaeb0f9103000000065365655165639a6bf70b01b3e14305000000000563530063ac00000000", "6300ab00ac", 2, 982422189, "ee4ea49d2aae0dbba05f0b9785172da54408eb1ec67d36759ff7ed25bfc28766"], + ["1cdfa01e01e1b8078e9c2b0ca5082249bd18fdb8b629ead659adedf9a0dd5a04031871ba120200000008525351536565ab6affffffff011e28430200000000076a5363636aac52b2febd4a", "abacac63656300", 0, 387396350, "299dcaac2bdaa627eba0dfd74767ee6c6f27c9200b49da8ff6270b1041669e7e"], + ["cc28c1810113dfa6f0fcd9c7d9c9a30fb6f1d774356abeb527a8651f24f4e6b25cf763c4e00300000003ab636affffffff02dfc6050000000000080053636351ab0052afd56903000000000453ab5265f6c90d99", "006551abacacac", 0, 1299280838, "a4c0773204ab418a939e23f493bd4b3e817375d133d307609e9782f2cc38dbcf"], + ["ca816e7802cd43d66b9374cd9bf99a8da09402d69c688d8dcc5283ace8f147e1672b757e020200000005516aabab5240fb06c95c922342279fcd88ba6cd915933e320d7becac03192e0941e0345b79223e89570300000004005151ac353ecb5d0264dfbd010000000005ac6aacababd5d70001000000000752ac53ac6a5151ec257f71", "63ac", 1, 774695685, "cc180c4f797c16a639962e7aec58ec4b209853d842010e4d090895b22e7a7863"], + ["b42b955303942fedd7dc77bbd9040aa0de858afa100f399d63c7f167b7986d6c2377f66a7403000000066aac00525100ffffffff0577d04b64880425a3174055f94191031ad6b4ca6f34f6da9be7c3411d8b51fc000000000300526a6391e1cf0f22e45ef1c44298523b516b3e1249df153590f592fcb5c5fc432dc66f3b57cb03000000046a6aac65ffffffff0393a6c9000000000004516a65aca674ac0400000000046a525352c82c370000000000030053538e577f89", "", 1, -1237094944, "566953eb806d40a9fb684d46c1bf8c69dea86273424d562bd407b9461c8509af"], + ["92c9fe210201e781b72554a0ed5e22507fb02434ddbaa69aff6e74ea8bad656071f1923f3f02000000056a63ac6a514470cef985ba83dcb8eee2044807bedbf0d983ae21286421506ae276142359c8c6a34d68020000000863ac63525265006aa796dd0102ca3f9d05000000000800abab52ab535353cd5c83010000000007ac00525252005322ac75ee", "5165", 0, 97879971, "6e6307cef4f3a9b386f751a6f40acebab12a0e7e17171d2989293cbec7fd45c2"], + ["ccca1d5b01e40fe2c6b3ee24c660252134601dab785b8f55bd6201ffaf2fddc7b3e2192325030000000365535100496d4703b4b66603000000000665535253ac633013240000000000015212d2a502000000000951abac636353636a5337b82426", "0052", 0, -1691630172, "577bf2b3520b40aef44899a20d37833f1cded6b167e4d648fc5abe203e43b649"], + ["bc1a7a3c01691e2d0c4266136f12e391422f93655c71831d90935fbda7e840e50770c61da20000000008635253abac516353ffffffff031f32aa020000000003636563786dbc0200000000003e950f00000000000563516a655184b8a1de", "51536a", 0, -1627072905, "730bc25699b46703d7718fd5f5c34c4b5f00f594a9968ddc247fa7d5175124ed"], + ["076d209e02d904a6c40713c7225d23e7c25d4133c3c3477828f98c7d6dbd68744023dbb66b030000000753ab00536565acffffffff10975f1b8db8861ca94c8cc7c7cff086ddcd83e10b5fffd4fc8f2bdb03f9463c0100000000ffffffff029dff76010000000006526365530051a3be6004000000000000000000", "515253ac65acacac", 1, -1207502445, "66c488603b2bc53f0d22994a1f0f66fb2958203102eba30fe1d37b27a55de7a5"], + ["690fd1f80476db1f9eebe91317f2f130a60cbc1f4feadd9d6474d438e9cb7f91e4994600af0300000004ab536a63a15ce9fa6622d0c4171d895b42bff884dc6e8a7452f827fdc68a29c3c88e6fdee364eaf50000000002ab52ffffffff022dc39d3c0956b24d7f410b1e387859e7a72955f45d6ffb1e884d77888d18fe0300000005ac6a63656afffffffff10b06bce1800f5c49153d24748fdefb0bf514c12863247d1042d56018c3e25c03000000086a63ac6365536a52ffffffff031f162f0500000000060000655265abffbcd40500000000045151ac001a9c8c05000000000652ac53656a6300000000", "ac51ab63acac", 0, -67986012, "051c0df7ac688c2c930808dabde1f50300aea115f2bb3334f4753d5169b51e46"], + ["49ac2af00216c0307a29e83aa5de19770e6b20845de329290bd69cf0e0db7aed61ae41b39002000000035163ac8b2558ef84635bfc59635150e90b61fc753d34acfd10d97531043053e229cd720133cd95000000000463516a51ffffffff02458471040000000008abab636a51ac0065545aa80000000000096a6553516a5263ac6a00000000", "51526300ab5363", 1, 1449668540, "ddfd902bba312a06197810da96a0ddccb595f96670b28ded7dba88d8cd0469b8"], + ["fa4d868b024b010bd5dce46576c2fb489aa60bb797dac3c72a4836f49812c5c564c258414f03000000007a9b3a585e05027bdd89edbadf3c85ac61f8c3a04c773fa746517ae600ff1a9d6b6c02fb0200000004515163abffffffff01b17d020500000000046a65520000000000", "536565ab65635363", 0, -1718953372, "96c2b32f0a00a5925db7ba72d0b5d39922f30ea0f7443b22bc1b734808513c47"], + ["cac6382d0462375e83b67c7a86c922b569a7473bfced67f17afd96c3cd2d896cf113febf9e0300000003006a53ffffffffaa4913b7eae6821487dd3ca43a514e94dcbbf350f8cc4cafff9c1a88720711b800000000096a6a525300acac6353ffffffff184fc4109c34ea27014cc2c1536ef7ed1821951797a7141ddacdd6e429fae6ff01000000055251655200ffffffff9e7b79b4e6836e290d7b489ead931cba65d1030ccc06f20bd4ca46a40195b33c030000000008f6bc8304a09a2704000000000563655353511dbc73050000000000cf34c500000000000091f76e0000000000085200ab00005100abd07208cb", "0063656a", 2, -1488731031, "bf078519fa87b79f40abc38f1831731422722c59f88d86775535f209cb41b9b1"], + ["1711146502c1a0b82eaa7893976fefe0fb758c3f0e560447cef6e1bde11e42de91a125f71c030000000015bd8c04703b4030496c7461482481f290c623be3e76ad23d57a955807c9e851aaaa20270300000000d04abaf20326dcb7030000000001632225350400000000075263ac00520063dddad9020000000000af23d148", "52520053510063", 0, 1852122830, "e33d5ee08c0f3c130a44d7ce29606450271b676f4a80c52ab9ffab00cecf67f8"], + ["8d5b124d0231fbfc640c706ddb1d57bb49a18ba8ca0e1101e32c7e6e65a0d4c7971d93ea360100000008acabac0000abac65ffffffff8fe0fd7696597b845c079c3e7b87d4a44110c445a330d70342a5501955e17dd70100000004ab525363ef22e8a90346629f030000000009516a00ac63acac51657bd57b05000000000200acfd4288050000000009acab5352ab00ab636300000000", "53ac526553ab65", 0, 1253152975, "8b57a7c3170c6c02dd14ae1d392ce3d828197b20e9145c89c1cfd5de050e1562"], + ["38146dc502c7430e92b6708e9e107b61cd38e5e773d9395e5c8ad8986e7e4c03ee1c1e1e760100000000c8962ce2ac1bb3b1285c0b9ba07f4d2e5ce87c738c42ac0548cd8cec1100e6928cd6b0b6010000000763ab636aab52527cccefbd04e5f6f8020000000006006aabacac65ab2c4a00000000000351635209a6f40100000000026aacce57dc040000000008ab5353ab516a516a00000000", "ab", 0, -1205978252, "3cb5b030e7da0b60ccce5b4a7f3793e6ca56f03e3799fe2d6c3cc22d6d841dcb"], + ["22d81c740469695a6a83a9a4824f77ecff8804d020df23713990afce2b72591ed7de98500502000000065352526a6a6affffffff90dc85e118379b1005d7bbc7d2b8b0bab104dad7eaa49ff5bead892f17d8c3ba010000000665656300ab51ffffffff965193879e1d5628b52005d8560a35a2ba57a7f19201a4045b7cbab85133311d0200000003ac005348af21a13f9b4e0ad90ed20bf84e4740c8a9d7129632590349afc03799414b76fd6e826200000000025353ffffffff04a0d40d04000000000060702700000000000652655151516ad31f1502000000000365ac0069a1ac0500000000095100655300ab53525100000000", "51636a52ac", 0, -1644680765, "add7f5da27262f13da6a1e2cc2feafdc809bd66a67fb8ae2a6f5e6be95373b6f"], + ["a27dcbc801e3475174a183586082e0914c314bc9d79d1570f29b54591e5e0dff07fbb45a7f0000000004ac53ab51ffffffff027347f5020000000005535351ab63d0e5c9030000000009ac65ab6a63515200ab7cd632ed", "ac63636553", 0, -686435306, "883a6ea3b2cc53fe8a803c229106366ca14d25ffbab9fef8367340f65b201da6"], + ["b123ed2204410d4e8aaaa8cdb95234ca86dad9ff77fb4ae0fd4c06ebed36794f0215ede0040100000002ac63ffffffff3b58b81b19b90d8f402701389b238c3a84ff9ba9aeea298bbf15b41a6766d27a01000000056a6553ab00151824d401786153b819831fb15926ff1944ea7b03d884935a8bde01ed069d5fd80220310200000000ffffffffa9c9d246f1eb8b7b382a9032b55567e9a93f86c77f4e32c092aa1738f7f756c30100000002ab65ffffffff011a2b48000000000000ed44d1fb", "630051ab63", 2, -1118263883, "b5dab912bcabedff5f63f6dd395fc2cf030d83eb4dd28214baba68a45b4bfff0"], + ["1339051503e196f730955c5a39acd6ed28dec89b4dadc3f7c79b203b344511270e5747fa9900000000045151636affffffff378c6090e08a3895cedf1d25453bbe955a274657172491fd2887ed5c9aceca7b0100000000ffffffffcf7cc3c36ddf9d4749edfa9cefed496d2f86e870deb814bfcd3b5637a5496461030000000451006300ffffffff04dcf3fa010000000008526a63005263acabb41d84040000000004abac5153800eff020000000005656a535365106c5e00000000000000000000", "abac5300", 2, 2013719928, "7fc74de39ce6ca46ca25d760d3cec7bb21fd14f7efe1c443b5aa294f2cb5f546"], + ["0728c606014c1fd6005ccf878196ba71a54e86cc8c53d6db500c3cc0ac369a26fac6fcbc210000000005ab53ac5365ba9668290182d7870100000000066a000053655100000000", "65", 0, 1789961588, "ab6baa6da3b2bc853868d166f8996ad31d63ef981179f9104f49968fd61c8427"], + ["a1134397034bf4067b6c81c581e2b73fb63835a08819ba24e4e92df73074bf773c94577df7000000000465525251ffffffff8b6608feaa3c1f35f49c6330a769716fa01c5c6f6e0cdc2eb10dfc99bbc21e77010000000952656aac005352655180a0bda4bc72002c2ea8262e26e03391536ec36867258cab968a6fd6ec7523b64fa1d8c001000000056a53ac6353ffffffff04dbeeed05000000000553650052abcd5d0e01000000000463abab51104b2e0500000000066aac53ac5165283ca7010000000004535252ab00000000", "ab515151516552ab", 1, -324598676, "91178482112f94d1c8e929de443e4b9c893e18682998d393ca9ca77950412586"], + ["bcdafbae04aa18eb75855aeb1f5124f30044741351b33794254a80070940cb10552fa4fa8e0300000001acd0423fe6e3f3f88ae606f2e8cfab7a5ef87caa2a8f0401765ff9a47d718afcfb40c0099b0000000008ac6565ab53ac6aac645308009d680202d600e492b31ee0ab77c7c5883ebad5065f1ce87e4dfe6453e54023a0010000000151ffffffffb9d818b14245899e1d440152827c95268a676f14c3389fc47f5a11a7b38b1bde03000000026300ffffffff03cda22102000000000751ac535263005100a4d20400000000045200536ac8bef405000000000700ab51ab6563ac00000000", "6553516a526aab", 1, -2111409753, "5e1849e7368cf4f042718586d9bd831d61479b775bab97aba9f450042bd9876a"], + ["ed3bb93802ddbd08cb030ef60a2247f715a0226de390c9c1a81d52e83f8674879065b5f87d0300000003ab6552ffffffff04d2c5e60a21fb6da8de20bf206db43b720e2a24ce26779bca25584c3f765d1e0200000008ab656a6aacab00ab6e946ded025a811d04000000000951abac6352ac00ab5143cfa3030000000005635200636a00000000", "5352ac650065535300", 1, -668727133, "e9995065e1fddef72a796eef5274de62012249660dc9d233a4f24e02a2979c87"], + ["59f4629d030fa5d115c33e8d55a79ea3cba8c209821f979ed0e285299a9c72a73c5bba00150200000002636affffffffd8aca2176df3f7a96d0dc4ee3d24e6cecde1582323eec2ebef9a11f8162f17ac0000000007ab6565acab6553ffffffffeebc10af4f99c7a21cbc1d1074bd9f0ee032482a71800f44f26ee67491208e0403000000065352ac656351ffffffff0434e955040000000004ab515152caf2b305000000000365ac007b1473030000000003ab530033da970500000000060051536a5253bb08ab51", "", 2, 396340944, "0e9c47973ef2c292b2252c623f465bbb92046fe0b893eebf4e1c9e02cb01c397"], + ["286e3eb7043902bae5173ac3b39b44c5950bc363f474386a50b98c7bdab26f98dc83449c4a020000000752ac6a00510051ffffffff4339cd6a07f5a5a2cb5815e5845da70300f5c7833788363bf7fe67595d3225520100000000fffffffff9c2dd8b06ad910365ffdee1a966f124378a2b8021065c8764f6138bb1e951380200000005ab5153ac6affffffff0370202aba7a68df85436ea7c945139513384ef391fa33d16020420b8ad40e9a000000000900ab5165526353abacffffffff020c1907000000000004abac526a1b490b040000000000df1528f7", "5353ab", 3, -1407529517, "32154c09174a9906183abf26538c39e78468344ca0848bbd0785e24a3565d932"], + ["2e245cf80179e2e95cd1b34995c2aff49fe4519cd7cee93ad7587f7f7e8105fc2dff206cd30200000009006a63516a6553ab52350435a201d5ed2d02000000000352ab6558552c89", "00ab53", 0, -233917810, "4605ae5fd3d50f9c45d37db7118a81a9ef6eb475d2333f59df5d3e216f150d49"], + ["33a98004029d262f951881b20a8d746c8c707ea802cd2c8b02a33b7e907c58699f97e42be80100000007ac53536552abacdee04cc01d205fd8a3687fdf265b064d42ab38046d76c736aad8865ca210824b7c622ecf02000000070065006a536a6affffffff01431c5d010000000000270d48ee", "", 1, 921554116, "ff9d7394002f3f196ea25472ea6c46f753bd879a7244795157bb7235c9322902"], + ["aac18f2b02b144ed481557c53f2146ae523f24fcde40f3445ab0193b6b276c315dc2894d2300000000075165650000636a233526947dbffc76aec7db1e1baa6868ad4799c76e14794dcbaaec9e713a83967f6a65170200000005abac6551ab27d518be01b652a30000000000015300000000", "52ac5353", 1, 1559377136, "59fc2959bb7bb24576cc8a237961ed95bbb900679d94da6567734c4390cb6ef5"], + ["5ab79881033555b65fe58c928883f70ce7057426fbdd5c67d7260da0fe8b1b9e6a2674cb850300000009ac516aac6aac006a6affffffffa5be9223b43c2b1a4d120b5c5b6ec0484f637952a3252181d0f8e813e76e11580200000000e4b5ceb8118cb77215bbeedc9a076a4d087bb9cd1473ea32368b71daeeeacc451ec209010000000005acac5153aced7dc34e02bc5d11030000000005ac5363006a54185803000000000552ab00636a00000000", "5100", 1, 1927062711, "e9f53d531c12cce1c50abed4ac521a372b4449b6a12f9327c80020df6bff66c0"], + ["6c2c8fac0124b0b7d4b610c3c5b91dee32b7c927ac71abdf2d008990ca1ac40de0dfd530660300000006ababac5253656bd7eada01d847ec000000000004ac52006af4232ec8", "6a6a6a0051", 0, -340809707, "fb51eb9d7e47d32ff2086205214f90c7c139e08c257a64829ae4d2b301071c6a"], + ["6e3880af031735a0059c0bb5180574a7dcc88e522c8b56746d130f8d45a52184045f96793e0100000008acabac6a526a6553fffffffffe05f14cdef7d12a9169ec0fd37524b5fcd3295f73f48ca35a36e671da4a2f560000000008006a526a6351ab63ffffffffdfbd869ac9e472640a84caf28bdd82e8c6797f42d03b99817a705a24fde2736600000000010090a090a503db956b04000000000952ac53ab6a536a63ab358390010000000009656a5200525153ac65353ee204000000000763530052526aaba6ad83fb", "535151ab6300", 2, 222014018, "57a34ddeb1bf36d28c7294dda0432e9228a9c9e5cc5c692db98b6ed2e218d825"], + ["8df1cd19027db4240718dcaf70cdee33b26ea3dece49ae6917331a028c85c5a1fb7ee3e475020000000865ab6a00510063636157988bc84d8d55a8ba93cdea001b9bf9d0fa65b5db42be6084b5b1e1556f3602f65d4d0100000005ac00ab0052206c852902b2fb54030000000008ac5252536aacac5378c4a5050000000007acabac535163532784439e", "acab6a", 0, 1105620132, "edb7c74223d1f10f9b3b9c1db8064bc487321ff7bb346f287c6bc2fad83682de"], + ["0e803682024f79337b25c98f276d412bc27e56a300aa422c42994004790cee213008ff1b8303000000080051ac65ac655165f421a331892b19a44c9f88413d057fea03c3c4a6c7de4911fe6fe79cf2e9b3b10184b1910200000005525163630096cb1c670398277204000000000253acf7d5d502000000000963536a6a636a5363ab381092020000000002ac6a911ccf32", "6565", 1, -1492094009, "f0672638a0e568a919e9d8a9cbd7c0189a3e132940beeb52f111a89dcc2daa2c"], + ["7d71669d03022f9dd90edac323cde9e56354c6804c6b8e687e9ae699f46805aafb8bcaa636000000000253abffffffff698a5fdd3d7f2b8b000c68333e4dd58fa8045b3e2f689b889beeb3156cecdb490300000009525353abab0051acabc53f0aa821cdd69b473ec6e6cf45cf9b38996e1c8f52c27878a01ec8bb02e8cb31ad24e500000000055353ab0052ffffffff0447a23401000000000565ab53ab5133aaa0030000000006515163656563057d110300000000056a6aacac52cf13b5000000000003526a5100000000", "6a6a51", 1, -1349253507, "722efdd69a7d51d3d77bed0ac5544502da67e475ea5857cd5af6bdf640a69945"], + ["9ff618e60136f8e6bb7eabaaac7d6e2535f5fba95854be6d2726f986eaa9537cb283c701ff02000000026a65ffffffff012d1c0905000000000865ab00ac6a516a652f9ad240", "51515253635351ac", 0, 1571304387, "659cd3203095d4a8672646add7d77831a1926fc5b66128801979939383695a79"], + ["9fbd43ac025e1462ecd10b1a9182a8e0c542f6d1089322a41822ab94361e214ed7e1dfdd8a020000000263519d0437581538e8e0b6aea765beff5b4f3a4a202fca6e5d19b34c141078c6688f71ba5b8e0100000003ac6552ffffffff02077774050000000009655153655263acab6a0ae4e10100000000035152524c97136b", "635152ab", 0, 1969622955, "d82d4ccd9b67810f26a378ad9592eb7a30935cbbd27e859b00981aefd0a72e08"], + ["0117c92004314b84ed228fc11e2999e657f953b6de3b233331b5f0d0cf40d5cc149b93c7b30300000005515263516a083e8af1bd540e54bf5b309d36ba80ed361d77bbf4a1805c7aa73667ad9df4f97e2da410020000000600ab6351ab524d04f2179455e794b2fcb3d214670001c885f0802e4b5e015ed13a917514a7618f5f332203000000086a536aab51000063ecf029e65a4a009a5d67796c9f1eb358b0d4bd2620c8ad7330fb98f5a802ab92d0038b1002000000036a6551a184a88804b04490000000000009ab6a5152535165526a33d1ab020000000001518e92320000000000002913df04000000000952abac6353525353ac8b19bfdf", "000051ab0000", 0, 489433059, "8eebac87e60da524bbccaf285a44043e2c9232868dda6c6271a53c153e7f3a55"], + ["e7f5482903f98f0299e0984b361efb2fddcd9979869102281e705d3001a9d283fe9f3f3a1e02000000025365ffffffffcc5c7fe82feebad32a22715fc30bc584efc9cd9cadd57e5bc4b6a265547e676e0000000001ab579d21235bc2281e08bf5e7f8f64d3afb552839b9aa5c77cf762ba2366fffd7ebb74e49400000000055263ab63633df82cf40100982e05000000000453ac535300000000", "acacab", 2, -1362931214, "046de666545330e50d53083eb78c9336416902f9b96c77cc8d8e543da6dfc7e4"], + ["09adb2e90175ca0e816326ae2dce7750c1b27941b16f6278023dbc294632ab97977852a09d030000000465ab006affffffff027739cf0100000000075151ab63ac65ab8a5bb601000000000653ac5151520011313cdc", "ac", 0, -76831756, "478ee06501b4965b40bdba6cbaad9b779b38555a970912bb791b86b7191c54bc"], + ["f973867602e30f857855cd0364b5bbb894c049f44abbfd661d7ae5dbfeaafca89fac8959c20100000005ab52536a51ffffffffbeceb68a4715f99ba50e131884d8d20f4a179313691150adf0ebf29d05f8770303000000066352ab00ac63ffffffff021fddb90000000000036a656322a177000000000008526500ac5100acac84839083", "52acab53ac", 0, 1407879325, "db0329439490efc64b7104d6d009b03fbc6fac597cf54fd786fbbb5fd73b92b4"], + ["fd22ebaa03bd588ad16795bea7d4aa7f7d48df163d75ea3afebe7017ce2f350f6a0c1cb0bb00000000086aabac5153526363ffffffff488e0bb22e26a565d77ba07178d17d8f85702630ee665ec35d152fa05af3bda10200000004515163abffffffffeb21035849e85ad84b2805e1069a91bb36c425dc9c212d9bae50a95b6bfde1200300000001ab5df262fd02b69848040000000008ab6363636a6363ace23bf2010000000007655263635253534348c1da", "006353526563516a00", 0, -1491036196, "92364ba3c7a85d4e88885b8cb9b520dd81fc29e9d2b750d0790690e9c1246673"], + ["130b462d01dd49fac019dc4442d0fb54eaa6b1c2d1ad0197590b7df26969a67abd7f3fbb4f0100000008ac65abac53ab6563ffffffff0345f825000000000004ac53acac9d5816020000000002ababeff8e90500000000086aab006552ac6a53a892dc55", "ab0065ac530052", 0, 944483412, "1f4209fd4ce7f13d175fdd522474ae9b34776fe11a5f17a27d0796c77a2a7a9d"], + ["f8e50c2604609be2a95f6d0f31553081f4e1a49a0a30777fe51eb1c596c1a9a92c053cf28c0300000009656a51ac5252630052fffffffff792ed0132ae2bd2f11d4a2aab9d0c4fbdf9a66d9ae2dc4108afccdc14d2b1700100000007ab6a6563ac636a7bfb2fa116122b539dd6a2ab089f88f3bc5923e5050c8262c112ff9ce0a3cd51c6e3e84f02000000066551ac5352650d5e687ddf4cc9a497087cabecf74d236aa4fc3081c3f67b6d323cba795e10e7a171b725000000000852635351ab635100ffffffff02df5409020000000008ac6a53acab5151004156990200000000045163655200000000", "ac53abac65005300", 0, -173065000, "b596f206d7eba22b7e2d1b7a4f4cf69c7c541b6c84dcc943f84e19a99a923310"], + ["18020dd1017f149eec65b2ec23300d8df0a7dd64fc8558b36907723c03cd1ba672bbb0f51d0300000005ab65ab6a63ffffffff037cd7ae000000000009ab516a65005352ac65f1e4360400000000056353530053f118f0040000000009536363ab006500abac00000000", "63ab51acab52ac", 0, -550412404, "e19b796c14a0373674968e342f2741d8b51092a5f8409e9bff7dcd52e56fcbcb"], + ["b04154610363fdade55ceb6942d5e5a723323863b48a0cb04fdcf56210717955763f56b08d0300000009ac526a525151635151ffffffff93a176e76151a9eabdd7af00ef2af72f9e7af5ecb0aa4d45d00618f394cdd03c030000000074d818b332ebe05dc24c44d776cf9d275c61f471cc01efce12fd5a16464157f1842c65cb00000000066a0000ac6352d3c4134f01d8a1c0030000000005520000005200000000", "5200656a656351", 2, -9757957, "6e3e5ba77f760b6b5b5557b13043f1262418f3dd2ce7f0298b012811fc8ad5bc"], + ["9794b3ce033df7b1e32db62d2f0906b589eacdacf5743963dc2255b6b9a6cba211fadd0d41020000000600ab00650065ffffffffaae00687a6a4131152bbcaafedfaed461c86754b0bde39e2bef720e6d1860a0302000000070065516aac6552ffffffff50e4ef784d6230df7486e972e8918d919f005025bc2d9aacba130f58bed7056703000000075265ab52656a52ffffffff02c6f1a9000000000006005251006363cf450c040000000008abab63510053abac00000000", "ac0063ababab515353", 1, 2063905082, "fad092fc98f17c2c20e10ba9a8eb44cc2bcc964b006f4da45cb9ceb249c69698"], + ["94533db7015e70e8df715066efa69dbb9c3a42ff733367c18c22ff070392f988f3b93920820000000006535363636300ce4dac3e03169af80300000000080065ac6a53ac65ac39c050020000000006abacab6aacac708a02050000000005ac5251520000000000", "6553", 0, -360458507, "5418cf059b5f15774836edd93571e0eed3855ba67b2b08c99dccab69dc87d3e9"], + ["c8597ada04f59836f06c224a2640b79f3a8a7b41ef3efa2602592ddda38e7597da6c639fee0300000009005251635351acabacffffffff4c518f347ee694884b9d4072c9e916b1a1f0a7fc74a1c90c63fdf8e5a185b6ae02000000007113af55afb41af7518ea6146786c7c726641c68c8829a52925e8d4afd07d8945f68e7230300000008ab00ab65ab650063ffffffffc28e46d7598312c420e11dfaae12add68b4d85adb182ae5b28f8340185394b63000000000165ffffffff04dbabb7010000000000ee2f6000000000000852ab6500ab6a51acb62a27000000000009ac53515300ac006a6345fb7505000000000752516a0051636a00000000", "", 3, 15199787, "0d66003aff5bf78cf492ecbc8fd40c92891acd58d0a271be9062e035897f317e"], + ["1a28c4f702c8efaad96d879b38ec65c5283b5c084b819ad7db1c086e85e32446c7818dc7a90300000008656351536a525165fa78cef86c982f1aac9c5eb8b707aee8366f74574c8f42ef240599c955ef4401cf578be30200000002ab518893292204c430eb0100000000016503138a0300000000040053abac60e0eb010000000005525200ab63567c2d030000000004abab52006cf81e85", "ab51525152", 1, 2118315905, "4e4c9a781f626b59b1d3ad8f2c488eb6dee8bb19b9bc138bf0dc33e7799210d4"], + ["c6c7a87003f772bcae9f3a0ac5e499000b68703e1804b9ddc3e73099663564d53ddc4e1c6e01000000076a536a6aac63636e3102122f4c30056ef8711a6bf11f641ddfa6984c25ac38c3b3e286e74e839198a80a34010000000165867195cd425821dfa2f279cb1390029834c06f018b1e6af73823c867bf3a0524d1d6923b0300000005acab53ab65ffffffff02fa4c49010000000008ab656a0052650053e001100400000000008836d972", "ac526351acab", 1, 978122815, "a869c18a0edf563d6e5eddd5d5ae8686f41d07f394f95c9feb8b7e52761531ca"], + ["0ea580ac04c9495ab6af3b8d59108bb4194fcb9af90b3511c83f7bb046d87aedbf8423218e02000000085152acac006363ab9063d7dc25704e0caa5edde1c6f2dd137ded379ff597e055b2977b9c559b07a7134fcef2000000000200aca89e50181f86e9854ae3b453f239e2847cf67300fff802707c8e3867ae421df69274449402000000056365abababffffffff47a4760c881a4d7e51c69b69977707bd2fb3bcdc300f0efc61f5840e1ac72cee0000000000ffffffff0460179a020000000004ab53ab52a5250c0500000000096565acac6365ab52ab6c281e02000000000952635100ac006563654e55070400000000046552526500000000", "ab526563acac53ab", 2, 1426964167, "b1c50d58b753e8f6c7513752158e9802cf0a729ebe432b99acc0fe5d9b4e9980"], + ["c33028b301d5093e1e8397270d75a0b009b2a6509a01861061ab022ca122a6ba935b8513320200000000ffffffff013bcf5a0500000000015200000000", "", 0, -513413204, "6b1459536f51482f5dbf42d7e561896557461e1e3b6bf67871e2b51faae2832c"], + ["43b2727901a7dd06dd2abf690a1ccedc0b0739cb551200796669d9a25f24f71d8d101379f50300000000ffffffff0418e031040000000000863d770000000000085352ac526563ac5174929e040000000004ac65ac00ec31ac0100000000066a51ababab5300000000", "65", 0, -492874289, "154ff7a9f0875edcfb9f8657a0b98dd9600fabee3c43eb88af37cf99286d516c"], + ["4763ed4401c3e6ab204bed280528e84d5288f9cac5fb8a2e7bd699c7b98d4df4ac0c40e55303000000066a6aacab5165ffffffff015b57f80400000000046a63535100000000", "ac51abab53", 0, -592611747, "849033a2321b5755e56ef4527ae6f51e30e3bca50149d5707368479723d744f8"], + ["d24f647b02f71708a880e6819a1dc929c1a50b16447e158f8ff62f9ccd644e0ca3c592593702000000050053536a00ffffffff67868cd5414b6ca792030b18d649de5450a456407242b296d936bcf3db79e07b02000000005af6319c016022f50100000000036a516300000000", "6aab526353516a6a", 0, 1350782301, "8556fe52d1d0782361dc28baaf8774b13f3ce5ed486ae0f124b665111e08e3e3"], + ["fe6ddf3a02657e42a7496ef170b4a8caf245b925b91c7840fd28e4a22c03cb459cb498b8d603000000065263656a650071ce6bf8d905106f9f1faf6488164f3decac65bf3c5afe1dcee20e6bc3cb6d052561985a030000000163295b117601343dbb0000000000026563dba521df", "", 1, -1696179931, "d9684685c99ce48f398fb467a91a1a59629a850c429046fb3071f1fa9a5fe816"], + ["c61523ef0129bb3952533cbf22ed797fa2088f307837dd0be1849f20decf709cf98c6f032f03000000026563c0f1d378044338310400000000066363516a5165a14fcb0400000000095163536a6a00ab53657271d60200000000001d953f0500000000010000000000", "53516353005153", 0, 1141615707, "7e975a72db5adaa3c48d525d9c28ac11cf116d0f8b16ce08f735ad75a80aec66"], + ["ba3dac6c0182562b0a26d475fe1e36315f0913b6869bdad0ecf21f1339a5fcbccd32056c840200000000ffffffff04300351050000000000220ed405000000000851abac636565ac53dbbd19020000000007636363ac6a52acbb005a0500000000016abd0c78a8", "63006a635151005352", 0, 1359658828, "47bc8ab070273e1f4a0789c37b45569a6e16f3f3092d1ce94dddc3c34a28f9f4"], + ["ac27e7f5025fc877d1d99f7fc18dd4cadbafa50e34e1676748cc89c202f93abf36ed46362101000000036300abffffffff958cd5381962b765e14d87fc9524d751e4752dd66471f973ed38b9d562e525620100000003006500ffffffff02b67120050000000004ac51516adc330c0300000000015200000000", "656352", 1, 15049991, "f3374253d64ac264055bdbcc32e27426416bd595b7c7915936c70f839e504010"], + ["edb30140029182b80c8c3255b888f7c7f061c4174d1db45879dca98c9aab8c8fed647a6ffc03000000086a53510052ab6300ffffffff82f65f261db62d517362c886c429c8fbbea250bcaad93356be6f86ba573e9d930100000000ffffffff04daaf150400000000016a86d1300100000000096a6353535252ac5165d4ddaf000000000002abab5f1c6201000000000000000000", "ab6a6a00ac", 0, -2058017816, "8d7794703dad18e2e40d83f3e65269834bb293e2d2b8525932d6921884b8f368"], + ["7e50207303146d1f7ad62843ae8017737a698498d4b9118c7a89bb02e8370307fa4fada41d000000000753006300005152b7afefc85674b1104ba33ef2bf37c6ed26316badbc0b4aa6cb8b00722da4f82ff3555a6c020000000900ac656363ac51ac52ffffffff93fab89973bd322c5d7ad7e2b929315453e5f7ada3072a36d8e33ca8bebee6e0020000000300acab930da52b04384b04000000000004650052ac435e380200000000076a6a515263ab6aa9494705000000000600ab6a525252af8ba90100000000096565acab526353536a279b17ad", "acac005263536aac63", 1, -34754133, "4e6357da0057fb7ff79da2cc0f20c5df27ff8b2f8af4c1709e6530459f7972b0"], + ["c05764f40244fb4ebe4c54f2c5298c7c798aa90e62c29709acca0b4c2c6ec08430b26167440100000008acab6a6565005253ffffffffc02c2418f398318e7f34a3cf669d034eef2111ea95b9f0978b01493293293a870100000000e563e2e00238ee8d040000000002acab03fb060200000000076500ac656a516aa37f5534", "52ab6a0065", 1, -2033176648, "83deef4a698b62a79d4877dd9afebc3011a5275dbe06e89567e9ef84e8a4ee19"], + ["5a59e0b9040654a3596d6dab8146462363cd6549898c26e2476b1f6ae42915f73fd9aedfda00000000036363abffffffff9ac9e9ca90be0187be2214251ff08ba118e6bf5e2fd1ba55229d24e50a510d53010000000165ffffffff41d42d799ac4104644969937522873c0834cc2fcdab7cdbecd84d213c0e96fd60000000000ffffffffd838db2c1a4f30e2eaa7876ef778470f8729fcf258ad228b388df2488709f8410300000000fdf2ace002ceb6d903000000000265654c1310040000000003ac00657e91c0ec", "536a63ac", 0, 82144555, "98ccde2dc14d14f5d8b1eeea5364bd18fc84560fec2fcea8de4d88b49c00695e"], + ["156ebc8202065d0b114984ee98c097600c75c859bfee13af75dc93f57c313a877efb09f230010000000463536a51ffffffff81114e8a697be3ead948b43b5005770dd87ffb1d5ccd4089fa6c8b33d3029e9c03000000066a5251656351ffffffff01a87f140000000000050000ac51ac00000000", "00", 0, -362221092, "a903c84d8c5e71134d1ab6dc1e21ac307c4c1a32c90c90f556f257b8a0ec1bf5"], + ["15e37793023c7cbf46e073428908fce0331e49550f2a42b92468827852693f0532a01c29f70200000007005353636351acffffffff38426d9cec036f00eb56ec1dcd193647e56a7577278417b8a86a78ac53199bc403000000056353006a53ffffffff04a25ce103000000000900ab5365656a526a63c8eff7030000000004526353537ab6db0200000000016a11a3fa02000000000651acacab526500000000", "53ac6aab6a6551", 0, 1117532791, "83c68b3c5a89260ce16ce8b4dbf02e1f573c532d9a72f5ea57ab419fa2630214"], + ["f7a09f10027250fc1b70398fb5c6bffd2be9718d3da727e841a73596fdd63810c9e4520a6a010000000963ac516a636a65acac1d2e2c57ab28d311edc4f858c1663972eebc3bbc93ed774801227fda65020a7ec1965f780200000005ac5252516a8299fddc01dcbf7200000000000463ac6551960fda03", "65acab51", 1, 2017321737, "9c5fa02abfd34d0f9dec32bf3edb1089fca70016debdb41f4f54affcb13a2a2a"], + ["6d97a9a5029220e04f4ccc342d8394c751282c328bf1c132167fc05551d4ca4da4795f6d4e02000000076a0052ab525165ffffffff9516a205e555fa2a16b73e6db6c223a9e759a7e09c9a149a8f376c0a7233fa1b0100000007acab51ab63ac6affffffff04868aed04000000000652ac65ac536a396edf01000000000044386c0000000000076aab5363655200894d48010000000001ab8ebefc23", "6351526aac51", 1, 1943666485, "f0bd4ca8e97203b9b4e86bc24bdc8a1a726db5e99b91000a14519dc83fc55c29"], + ["8e3fddfb028d9e566dfdda251cd874cd3ce72e9dde837f95343e90bd2a93fe21c5daeb5eed01000000045151525140517dc818181f1e7564b8b1013fd68a2f9a56bd89469686367a0e72c06be435cf99db750000000003635251ffffffff01c051780300000000096552ababac6a65acab099766eb", "5163ab6a52ababab51", 1, 1296295812, "5509eba029cc11d7dd2808b8c9eb47a19022b8d8b7778893459bbc19ab7ea820"], + ["a603f37b02a35e5f25aae73d0adc0b4b479e68a734cf722723fd4e0267a26644c36faefdab0200000000ffffffff43374ad26838bf733f8302585b0f9c22e5b8179888030de9bdda180160d770650200000001004c7309ce01379099040000000005526552536500000000", "abababab005153", 0, 1409936559, "4ca73da4fcd5f1b10da07998706ffe16408aa5dff7cec40b52081a6514e3827e"], + ["9eeedaa8034471a3a0e3165620d1743237986f060c4434f095c226114dcb4b4ec78274729f03000000086a5365510052ac6afb505af3736e347e3f299a58b1b968fce0d78f7457f4eab69240cbc40872fd61b5bf8b120200000002ac52df8247cf979b95a4c97ecb8edf26b3833f967020cd2fb25146a70e60f82c9ee4b14e88b103000000008459e2fa0125cbcd05000000000000000000", "52ab5352006353516a", 0, -1832576682, "fb018ae54206fdd20c83ae5873ec82b8e320a27ed0d0662db09cda8a071f9852"], + ["05921d7c048cf26f76c1219d0237c226454c2a713c18bf152acc83c8b0647a94b13477c07f0300000003ac526afffffffff2f494453afa0cabffd1ba0a626c56f90681087a5c1bd81d6adeb89184b27b7402000000036a6352ffffffff0ad10e2d3ce355481d1b215030820da411d3f571c3f15e8daf22fe15342fed04000000000095f29f7b93ff814a9836f54dc6852ec414e9c4e16a506636715f569151559100ccfec1d100000000055263656a53ffffffff04f4ffef010000000008ac6a6aabacabab6a0e6689040000000006ab536a5352abe364d005000000000965536363655251ab53807e00010000000004526aab63f18003e3", "6363ac51", 3, -375891099, "001b0b176f0451dfe2d9787b42097ceb62c70d324e925ead4c58b09eebdf7f67"], + ["b9b44d9f04b9f15e787d7704e6797d51bc46382190c36d8845ec68dfd63ee64cf7a467b21e00000000096aac00530052ab636aba1bcb110a80c5cbe073f12c739e3b20836aa217a4507648d133a8eedd3f02cb55c132b203000000076a000063526352b1c288e3a9ff1f2da603f230b32ef7c0d402bdcf652545e2322ac01d725d75f5024048ad0100000000ffffffffffd882d963be559569c94febc0ef241801d09dc69527c9490210f098ed8203c700000000056a006300ab9109298d01719d9a0300000000066a52ab006365d7894c5b", "ac6351650063636a", 3, -622355349, "ac87b1b93a6baab6b2c6624f10e8ebf6849b0378ef9660a3329073e8f5553c8d"], + ["ff60473b02574f46d3e49814c484081d1adb9b15367ba8487291fc6714fd6e3383d5b335f001000000026a6ae0b82da3dc77e5030db23d77b58c3c20fa0b70aa7d341a0f95f3f72912165d751afd57230300000008ac536563516a6363ffffffff04f86c0200000000000553acab636ab13111000000000003510065f0d3f305000000000951ab516a65516aabab730a3a010000000002515200000000", "ac6a", 1, 1895032314, "0767e09bba8cd66d55915677a1c781acd5054f530d5cf6de2d34320d6c467d80"], + ["f218026204f4f4fc3d3bd0eada07c57b88570d544a0436ae9f8b753792c0c239810bb30fbc0200000002536affffffff8a468928d6ec4cc10aa0f73047697970e99fa64ae8a3b4dca7551deb0b639149010000000851ab520052650051ffffffffa98dc5df357289c9f6873d0f5afcb5b030d629e8f23aa082cf06ec9a95f3b0cf0000000000ffffffffea2c2850c5107705fd380d6f29b03f533482fd036db88739122aac9eff04e0aa010000000365536a03bd37db034ac4c4020000000007515152655200ac33b27705000000000151efb71e0000000000007b65425b", "515151", 3, -1772252043, "de35c84a58f2458c33f564b9e58bc57c3e028d629f961ad1b3c10ee020166e5a"], + ["48e7d42103b260b27577b70530d1ac2fed2551e9dd607cbcf66dca34bb8c03862cf8f5fd5401000000075151526aacab00ffffffff1e3d3b841552f7c6a83ee379d9d66636836673ce0b0eda95af8f2d2523c91813030000000665acac006365ffffffff388b3c386cd8c9ef67c83f3eaddc79f1ff910342602c9152ffe8003bce51b28b0100000008636363006a636a52ffffffff04b8f67703000000000852005353ac6552520cef720200000000085151ab6352ab00ab5096d6030000000005516a005100662582020000000001ac6c137280", "6a65", 1, 1513618429, "e2fa3e1976aed82c0987ab30d4542da2cb1cffc2f73be13480132da8c8558d5c"], + ["91ebc4cf01bc1e068d958d72ee6e954b196f1d85b3faf75a521b88a78021c543a06e056279000000000265ab7c12df0503832121030000000000cc41a6010000000005ab5263516540a951050000000006ab63ab65acac00000000", "526a0065636a6a6aac", 0, -614046478, "7de4ba875b2e584a7b658818c112e51ee5e86226f5a80e5f6b15528c86400573"], + ["3cd4474201be7a6c25403bf00ca62e2aa8f8f4f700154e1bb4d18c66f7bb7f9b975649f0dc0100000006535151535153ffffffff01febbeb000000000006005151006aac00000000", "", 0, -1674687131, "6b77ca70cc452cc89acb83b69857cda98efbfc221688fe816ef4cb4faf152f86"], + ["92fc95f00307a6b3e2572e228011b9c9ed41e58ddbaefe3b139343dbfb3b34182e9fcdc3f50200000002acab847bf1935fde8bcfe41c7dd99683289292770e7f163ad09deff0e0665ed473cd2b56b0f40300000006516551ab6351294dab312dd87b9327ce2e95eb44b712cfae0e50fda15b07816c8282e8365b643390eaab01000000026aacffffffff016e0b6b040000000001ac00000000", "650065acac005300", 2, -1885164012, "bd7d26bb3a98fc8c90c972500618bf894cb1b4fe37bf5481ff60eef439d3b970"], + ["4db591ab018adcef5f4f3f2060e41f7829ce3a07ea41d681e8cb70a0e37685561e4767ac3b0000000005000052acabd280e63601ae6ef20000000000036a636326c908f7", "ac6a51526300630052", 0, 862877446, "355ccaf30697c9c5b966e619a554d3323d7494c3ea280a9b0dfb73f953f5c1cb"], + ["503fd5ef029e1beb7b242d10032ac2768f9a1aca0b0faffe51cec24770664ec707ef7ede4f01000000045253ac53375e350cc77741b8e96eb1ce2d3ca91858c052e5f5830a0193200ae2a45b413dda31541f0000000003516553ffffffff0175a5ba0500000000015200000000", "6aab65510053ab65", 1, 1603081205, "353ca9619ccb0210ae18b24d0e57efa7abf8e58fa6f7102738e51e8e72c9f0c4"], + ["c80abebd042cfec3f5c1958ee6970d2b4586e0abec8305e1d99eb9ee69ecc6c2cbd76374380000000007ac53006300ac510acee933b44817db79320df8094af039fd82111c7726da3b33269d3820123694d849ee5001000000056a65ab526562699bea8530dc916f5d61f0babea709dac578774e8a4dcd9c640ec3aceb6cb2443f24f302000000020063ea780e9e57d1e4245c1e5df19b4582f1bf704049c5654f426d783069bcc039f2d8fa659f030000000851ab53635200006a8d00de0b03654e8500000000000463ab635178ebbb0400000000055100636aab239f1d030000000006ab006300536500000000", "6565ac515100", 3, 1460851377, "b35bb1b72d02fab866ed6bbbea9726ab32d968d33a776686df3ac16aa445871e"], + ["0337b2d5043eb6949a76d6632b8bb393efc7fe26130d7409ef248576708e2d7f9d0ced9d3102000000075352636a5163007034384dfa200f52160690fea6ce6c82a475c0ef1caf5c9e5a39f8f9ddc1c8297a5aa0eb02000000026a51ffffffff38e536298799631550f793357795d432fb2d4231f4effa183c4e2f61a816bcf0030000000463ac5300706f1cd3454344e521fde05b59b96e875c8295294da5d81d6cc7efcfe8128f150aa54d6503000000008f4a98c704c1561600000000000072cfa6000000000000e43def01000000000100cf31cc0500000000066365526a6500cbaa8e2e", "", 3, 2029506437, "7615b4a7b3be865633a31e346bc3db0bcc410502c8358a65b8127089d81b01f8"], + ["59f6cffd034733f4616a20fe19ea6aaf6abddb30b408a3a6bd86cd343ab6fe90dc58300cc90200000000ffffffffc835430a04c3882066abe7deeb0fa1fdaef035d3233460c67d9eabdb05e95e5a02000000080065ac535353ab00ffffffff4b9a043e89ad1b4a129c8777b0e8d87a014a0ab6a3d03e131c27337bbdcb43b402000000066a5100abac6ad9e9bf62014bb118010000000001526cbe484f", "ab526352ab65", 0, 2103515652, "4f2ccf981598639bec57f885b4c3d8ea8db445ea6e61cfd45789c69374862e5e"], + ["cbc79b10020b15d605680a24ee11d8098ad94ae5203cb6b0589e432832e20c27b72a926af20300000006ab65516a53acbb854f3146e55c508ece25fa3d99dbfde641a58ed88c051a8a51f3dacdffb1afb827814b02000000026352c43e6ef30302410a020000000000ff4bd90100000000065100ab63000008aa8e0400000000095265526565ac5365abc52c8a77", "53526aac0051", 0, 202662340, "984efe0d8d12e43827b9e4b27e97b3777ece930fd1f589d616c6f9b71dab710e"], + ["7c07419202fa756d29288c57b5c2b83f3c847a807f4a9a651a3f6cd6c46034ae0aa3a7446b0200000004ab6a6365ffffffff9da83cf4219bb96c76f2d77d5df31c1411a421171d9b59ec02e5c1218f29935403000000008c13879002f8b1ac0400000000086a63536a636553653c584f02000000000000000000", "abac53ab656363", 1, -1038419525, "4a74f365a161bc6c9bddd249cbd70f5dadbe3de70ef4bd745dcb6ee1cd299fbd"], + ["351cbb57021346e076d2a2889d491e9bfa28c54388c91b46ee8695874ad9aa576f1241874d0200000008ab6563525300516affffffffe13e61b8880b8cd52be4a59e00f9723a4722ea58013ec579f5b3693b9e115b1100000000096363abac5252635351ffffffff027fee02040000000008ab6a5200ab006a65b85f130200000000086a52630053ab52ab00000000", "ab6aab65", 1, 586415826, "08bbb746a596991ab7f53a76e19acad087f19cf3e1db54054aab403c43682d09"], + ["a8252ea903f1e8ff953adb16c1d1455a5036222c6ea98207fc21818f0ece2e1fac310f9a0100000000095163ac635363ac0000be6619e9fffcde50a0413078821283ce3340b3993ad00b59950bae7a9f931a9b0a3a035f010000000463005300b8b0583fbd6049a1715e7adacf770162811989f2be20af33f5f60f26eba653dc26b024a00000000006525351636552ffffffff046d2acc030000000002636a9a2d430500000000080065005165ab53abecf63204000000000052b9ed050000000008acacac53ab65656500000000", "65ab53635253636a51", 2, 1442639059, "8ca11838775822f9a5beee57bdb352f4ee548f122de4a5ca61c21b01a1d50325"], + ["2f1a425c0471a5239068c4f38f9df135b1d24bf52d730d4461144b97ea637504495aec360801000000055300515365c71801dd1f49f376dd134a9f523e0b4ae611a4bb122d8b26de66d95203f181d09037974300000000025152ffffffff9bdcea7bc72b6e5262e242c94851e3a5bf8f314b3e5de0e389fc9e5b3eadac030000000009525265655151005153ffffffffdbb53ce99b5a2320a4e6e2d13b01e88ed885a0957d222e508e9ec8e4f83496cb0200000007635200abac63ac04c96237020cc5490100000000080000516a51ac6553074a360200000000025152225520ca", "6551ab65ac65516a", 1, -489869549, "9bc5bb772c553831fb40abe466074e59a469154679c7dee042b8ea3001c20393"], + ["ef3acfd4024defb48def411b8f8ba2dc408dc9ee97a4e8bde4d6cb8e10280f29c98a6e8e9103000000035100513d5389e3d67e075469dfd9f204a7d16175653a149bd7851619610d7ca6eece85a516b2df0300000005516aac6552ca678bdf02f477f003000000000057e45b0300000000055252525252af35c20a", "5165ac53ab", 1, -1900839569, "78eb6b24365ac1edc386aa4ffd15772f601059581c8776c34f92f8a7763c9ccf"], + ["ff4468dc0108475fc8d4959a9562879ce4ab4867a419664bf6e065f17ae25043e6016c70480100000000ffffffff02133c6f0400000000000bd0a8020000000004006a520035afa4f6", "51ac65ab", 0, -537664660, "f6da59b9deac63e83728850ac791de61f5dfcaeed384ebcbb20e44afcd8c8910"], + ["4e8594d803b1d0a26911a2bcdd46d7cbc987b7095a763885b1a97ca9cbb747d32c5ab9aa91030000000353ac53a0cc4b215e07f1d648b6eeb5cdbe9fa32b07400aa773b9696f582cebfd9930ade067b2b200000000060065abab6500fc99833216b8e27a02defd9be47fafae4e4a97f52a9d2a210d08148d2a4e5d02730bcd460100000004516351ac37ce3ae1033baa55040000000006006a636a63acc63c990400000000025265eb1919030000000005656a6a516a00000000", "", 1, -75217178, "04c5ee48514cd033b82a28e336c4d051074f477ef2675ce0ce4bafe565ee9049"], + ["a88830a7023f13ed19ab14fd757358eb6af10d6520f9a54923a6d613ac4f2c11e249cda8aa030000000851630065abababacffffffff8f5fe0bc04a33504c4b47e3991d25118947a0261a9fa520356731eeabd561dd3020000000363ababffffffff038404bd010000000008ab5153516aab6a63d33a5601000000000263004642dc020000000009655152acac636352004be6f3af", "5253536565006aab6a", 0, 1174417836, "2e42ead953c9f4f81b72c27557e6dc7d48c37ff2f5c46c1dbe9778fb0d79f5b2"], + ["44e1a2b4010762af23d2027864c784e34ef322b6e24c70308a28c8f2157d90d17b99cd94a401000000085163656565006300ffffffff0198233d020000000002000000000000", "52525153656365", 0, 1119696980, "d9096de94d70c6337da6202e6e588166f31bff5d51bb5adc9468594559d65695"], + ["44ca65b901259245abd50a745037b17eb51d9ce1f41aa7056b4888285f48c6f26cb97b7a25020000000552636363abffffffff047820350400000000040053acab14f3e603000000000652635100ab630ce66c03000000000001bdc704000000000765650065ac51ac3e886381", "51", 0, -263340864, "ed5622ac642d11f90e68c0feea6a2fe36d880ecae6b8c0d89c4ea4b3d162bd90"], + ["cfa147d2017fe84122122b4dda2f0d6318e59e60a7207a2d00737b5d89694d480a2c26324b0000000006006351526552ffffffff0456b5b804000000000800516aab525363ab166633000000000004655363ab254c0e02000000000952ab6a6a00ab525151097c1b020000000009656a52ac6300530065ad0d6e50", "6a535165ac6a536500", 0, -574683184, "f926d4036eac7f019a2b0b65356c4ee2fe50e089dd7a70f1843a9f7bc6997b35"], + ["91c5d5f6022fea6f230cc4ae446ce040d8313071c5ac1749c82982cc1988c94cb1738aa48503000000016a19e204f30cb45dd29e68ff4ae160da037e5fc93538e21a11b92d9dd51cf0b5efacba4dd70000000005656a6aac51ffffffff03db126905000000000953006a53ab6563636a36a273030000000006656a52656552b03ede00000000000352516500000000", "530052526a00", 1, 1437328441, "255c125b60ee85f4718b2972174c83588ee214958c3627f51f13b5fb56c8c317"], + ["03f20dc202c886907b607e278731ebc5d7373c348c8c66cac167560f19b341b782dfb634cb03000000076a51ac6aab63abea3e8de7adb9f599c9caba95aa3fa852e947fc88ed97ee50e0a0ec0d14d164f44c0115c10100000004ab5153516fdd679e0414edbd000000000005ac636a53512021f2040000000007006a0051536a52c73db2050000000005525265ac5369046e000000000003ab006a1ef7bd1e", "52656a", 0, 1360223035, "5a0a05e32ce4cd0558aabd5d79cd5fcbffa95c07137506e875a9afcba4bef5a2"], + ["d9611140036881b61e01627078512bc3378386e1d4761f959d480fdb9d9710bebddba2079d020000000763536aab5153ab819271b41e228f5b04daa1d4e72c8e1955230accd790640b81783cfc165116a9f535a74c000000000163ffffffffa2e7bb9a28e810624c251ff5ba6b0f07a356ac082048cf9f39ec036bba3d431a02000000076a000000ac65acffffffff01678a820000000000085363515153ac635100000000", "535353", 2, -82213851, "52b9e0778206af68998cbc4ebdaad5a9469e04d0a0a6cef251abfdbb74e2f031"], + ["98b3a0bf034233afdcf0df9d46ac65be84ef839e58ee9fa59f32daaa7d684b6bdac30081c60200000007636351acabababffffffffc71cf82ded4d1593e5825618dc1d5752ae30560ecfaa07f192731d68ea768d0f0100000006650052636563f3a2888deb5ddd161430177ce298242c1a86844619bc60ca2590d98243b5385bc52a5b8f00000000095365acacab520052ac50d4722801c3b8a60300000000035165517e563b65", "51", 1, -168940690, "b6b684e2d2ecec8a8dce4ed3fc1147f8b2e45732444222aa8f52d860c2a27a9d"], + ["97be4f7702dc20b087a1fdd533c7de762a3f2867a8f439bddf0dcec9a374dfd0276f9c55cc0300000000cdfb1dbe6582499569127bda6ca4aaff02c132dc73e15dcd91d73da77e92a32a13d1a0ba0200000002ab51ffffffff048cfbe202000000000900516351515363ac535128ce0100000000076aac5365ab6aabc84e8302000000000863536a53ab6a6552f051230500000000066aac535153510848d813", "ac51", 0, 229541474, "e5da9a416ea883be1f8b8b2d178463633f19de3fa82ae25d44ffb531e35bdbc8"], + ["085b6e04040b5bff81e29b646f0ed4a45e05890a8d32780c49d09643e69cdccb5bd81357670100000001abffffffffa5c981fe758307648e783217e3b4349e31a557602225e237f62b636ec26df1a80300000004650052ab4792e1da2930cc90822a8d2a0a91ea343317bce5356b6aa8aae6c3956076aa33a5351a9c0300000004abac5265e27ddbcd472a2f13325cc6be40049d53f3e266ac082172f17f6df817db1936d9ff48c02b000000000152ffffffff021aa7670500000000085353635163ab51ac14d584000000000001aca4d136cc", "6a525300536352536a", 0, -1398925877, "41ecca1e8152ec55074f4c39f8f2a7204dda48e9ec1e7f99d5e7e4044d159d43"], + ["eec32fff03c6a18b12cd7b60b7bdc2dd74a08977e53fdd756000af221228fe736bd9c42d870100000007005353ac515265ffffffff037929791a188e9980e8b9cc154ad1b0d05fb322932501698195ab5b219488fc02000000070063510065ab6a0bfc176aa7e84f771ea3d45a6b9c24887ceea715a0ff10ede63db8f089e97d927075b4f1000000000551abab63abffffffff02eb933c000000000000262c420000000000036563632549c2b6", "6352", 2, 1480445874, "ff8a4016dfdd918f53a45d3a1f62b12c407cd147d68ca5c92b7520e12c353ff5"], + ["98ea7eac0313d9fb03573fb2b8e718180c70ce647bebcf49b97a8403837a2556cb8c9377f30000000004ac53ac65ffffffff8caac77a5e52f0d8213ef6ce998bedbb50cfdf108954771031c0e0cd2a78423900000000010066e99a44937ebb37015be3693761078ad5c73aa73ec623ac7300b45375cc8eef36087eb80000000007515352acac5100ffffffff0114a51b02000000000000000000", "6aacab", 0, 243527074, "bad77967f98941af4dd52a8517d5ad1e32307c0d511e15461e86465e1b8b5273"], + ["3ab70f4604e8fc7f9de395ec3e4c3de0d560212e84a63f8d75333b604237aa52a10da17196000000000763526a6553ac63a25de6fd66563d71471716fe59087be0dde98e969e2b359282cf11f82f14b00f1c0ac70f02000000050052516aacdffed6bb6889a13e46956f4b8af20752f10185838fd4654e3191bf49579c961f5597c36c0100000005ac636363abc3a1785bae5b8a1b4be5d0cbfadc240b4f7acaa7dfed6a66e852835df5eb9ac3c553766801000000036a65630733b7530218569602000000000952006a6a6a51acab52777f06030000000007ac0063530052abc08267c9", "000000536aac0000", 1, 1919096509, "df1c87cf3ba70e754d19618a39fdbd2970def0c1bfc4576260cba5f025b87532"], + ["bdb6b4d704af0b7234ced671c04ba57421aba7ead0a117d925d7ebd6ca078ec6e7b93eea6600000000026565ffffffff3270f5ad8f46495d69b9d71d4ab0238cbf86cc4908927fbb70a71fa3043108e6010000000700516a65655152ffffffff6085a0fdc03ae8567d0562c584e8bfe13a1bd1094c518690ebcb2b7c6ce5f04502000000095251530052536a53aba576a37f2c516aad9911f687fe83d0ae7983686b6269b4dd54701cb5ce9ec91f0e6828390300000000ffffffff04cc76cc020000000002656a01ffb702000000000253ab534610040000000009acab006565516a00521f55f5040000000000389dfee9", "6a525165", 0, 1336204763, "71c294523c48fd7747eebefbf3ca06e25db7b36bff6d95b41c522fecb264a919"], + ["54258edd017d22b274fbf0317555aaf11318affef5a5f0ae45a43d9ca4aa652c6e85f8a040010000000953ac65ab5251656500ffffffff03321d450000000000085265526a51526a529ede8b030000000003635151ce6065020000000001534c56ec1b", "acac", 0, 2094130012, "110d90fea9470dfe6c5048f45c3af5e8cc0cb77dd58fd13d338268e1c24b1ccc"], + ["ce0d322e04f0ffc7774218b251530a7b64ebefca55c90db3d0624c0ff4b3f03f918e8cf6f60300000003656500ffffffff9cce943872da8d8af29022d0b6321af5fefc004a281d07b598b95f6dcc07b1830200000007abab515351acab8d926410e69d76b7e584aad1470a97b14b9c879c8b43f9a9238e52a2c2fefc2001c56af8010000000400ab5253cd2cd1fe192ce3a93b5478af82fa250c27064df82ba416dfb0debf4f0eb307a746b6928901000000096500abacac6a0063514214524502947efc0200000000035251652c40340100000000096a6aab52000052656a5231c54c", "51", 2, -2090320538, "0322ca570446869ec7ec6ad66d9838cff95405002d474c0d3c17708c7ee039c6"], + ["47ac54940313430712ebb32004679d3a512242c2b33d549bf5bbc8420ec1fd0850ed50eb6d0300000009536aac6a65acacab51ffffffffb843e44266ce2462f92e6bff54316661048c8c17ecb092cb493b39bfca9117850000000001519ab348c05e74ebc3f67423724a3371dd99e3bceb4f098f8860148f48ad70000313c4c223000000000653006565656512c2d8dc033f3c97010000000002636aa993aa010000000006526365ab526ab7cf560300000000076a0065ac6a526500000000", "005352535300ab6a", 2, 59531991, "8b5b3d00d9c658f062fe6c5298e54b1fe4ed3a3eab2a87af4f3119edc47b1691"], + ["233cd90b043916fc41eb870c64543f0111fb31f3c486dc72457689dea58f75c16ae59e9eb2000000000500536a6a6affffffff9ae30de76be7cd57fb81220fce78d74a13b2dbcad4d023f3cadb3c9a0e45a3ce000000000965ac6353ac5165515130834512dfb293f87cb1879d8d1b20ebad9d7d3d5c3e399a291ce86a3b4d30e4e32368a9020000000453005165ffffffff26d84ae93eb58c81158c9b3c3cbc24a84614d731094f38d0eea8686dec02824d0300000005636a65abacf02c784001a0bd5d03000000000900655351ab65ac516a416ef503", "", 1, -295106477, "b79f31c289e95d9dadec48ebf88e27c1d920661e50d090e422957f90ff94cb6e"], + ["9200e26b03ff36bc4bf908143de5f97d4d02358db642bd5a8541e6ff709c420d1482d471b70000000008abab65536a636553ffffffff61ba6d15f5453b5079fb494af4c48de713a0c3e7f6454d7450074a2a80cb6d880300000007ac6a00ab5165515dfb7574fbce822892c2acb5d978188b1d65f969e4fe874b08db4c791d176113272a5cc10100000000ffffffff0420958d000000000009ac63516a0063516353dd885505000000000465ac00007b79e901000000000066d8bf010000000005525252006a00000000", "ac5152", 0, 2089531339, "89ec7fab7cfe7d8d7d96956613c49dc48bf295269cfb4ea44f7333d88c170e62"], + ["45f335ba01ce2073a8b0273884eb5b48f56df474fc3dff310d9706a8ac7202cf5ac188272103000000025363ffffffff049d859502000000000365ab6a8e98b1030000000002ac51f3a80603000000000752535151ac00000306e30300000000020051b58b2b3a", "", 0, 1899564574, "78e01310a228f645c23a2ad0acbb8d91cedff4ecdf7ca997662c6031eb702b11"], + ["d8f652a6043b4faeada05e14b81756cd6920cfcf332e97f4086961d49232ad6ffb6bc6c097000000000453526563ffffffff1ea4d60e5e91193fbbc1a476c8785a79a4c11ec5e5d6c9950c668ceacfe07a15020000000352ab51fffffffffe029a374595c4edd382875a8dd3f20b9820abb3e93f877b622598d11d0b09e503000000095351000052ac515152ffffffff9d65fea491b979699ceb13caf2479cd42a354bd674ded3925e760758e85a756803000000046365acabffffffff0169001d00000000000651636a65656300000000", "ab0063630000ac", 3, 1050965951, "4cc85cbc2863ee7dbce15490d8ca2c5ded61998257b9eeaff968fe38e9f009ae"], + ["718662be026e1dcf672869ac658fd0c87d6835cfbb34bd854c44e577d5708a7faecda96e260300000004526a636a489493073353b678549adc7640281b9cbcb225037f84007c57e55b874366bb7b0fa03bdc00000000095165ababac65ac00008ab7f2a802eaa53d000000000007acac516aac526ae92f380100000000056aac00536500000000", "ab00", 1, 43296088, "2d642ceee910abff0af2116af75b2e117ffb7469b2f19ad8fef08f558416d8f7"], + ["94083c840288d40a6983faca876d452f7c52a07de9268ad892e70a81e150d602a773c175ad03000000007ec3637d7e1103e2e7e0c61896cbbf8d7e205b2ecc93dd0d6d7527d39cdbf6d335789f660300000000ffffffff019e1f7b03000000000800ac0051acac0053539cb363", "", 1, -183614058, "a17b66d6bb427f42653d08207a22b02353dd19ccf2c7de6a9a3a2bdb7c49c9e7"], + ["30e0d4d20493d0cd0e640b757c9c47a823120e012b3b64c9c1890f9a087ae4f2001ca22a61010000000152f8f05468303b8fcfaad1fb60534a08fe90daa79bff51675472528ebe1438b6f60e7f60c10100000009526aab6551ac510053ffffffffaaab73957ea2133e32329795221ed44548a0d3a54d1cf9c96827e7cffd1706df0200000009ab00526a005265526affffffffd19a6fe54352015bf170119742821696f64083b5f14fb5c7d1b5a721a3d7786801000000085265abababac53abffffffff020f39bd030000000004ab6aac52049f6c050000000004ab52516aba5b4c60", "6a6365516a6a655253", 0, -624256405, "8e221a6c4bf81ca0d8a0464562674dcd14a76a32a4b7baf99450dd9195d411e6"], + ["f9c69d940276ec00f65f9fe08120fc89385d7350388508fd80f4a6ba2b5d4597a9e21c884f010000000663ab63ababab15473ae6d82c744c07fc876ecd53bd0f3018b2dbedad77d757d5bdf3811b23d294e8c0170000000001abafababe00157ede2050000000006ac6a5263635300000000", "ab53", 1, 606547088, "714d8b14699835b26b2f94c58b6ea4c53da3f7adf0c62ea9966b1e1758272c47"], + ["5c0ac112032d6885b7a9071d3c5f493aa16c610a4a57228b2491258c38de8302014276e8be030000000300ab6a17468315215262ad5c7393bb5e0c5a6429fd1911f78f6f72dafbbbb78f3149a5073e24740300000003ac5100ffffffff33c7a14a062bdea1be3c9c8e973f54ade53fe4a69dcb5ab019df5f3345050be00100000008ac63655163526aab428defc0033ec36203000000000765516365536a00ae55b2000000000002ab53f4c0080400000000095265516a536563536a00000000", "6a005151006a", 2, 272749594, "91082410630337a5d89ff19145097090f25d4a20bdd657b4b953927b2f62c73b"], + ["e3683329026720010b08d4bec0faa244f159ae10aa582252dd0f3f80046a4e145207d54d31000000000852acac52656aacac3aaf2a5017438ad6adfa3f9d05f53ebed9ceb1b10d809d507bcf75e0604254a8259fc29c020000000653526552ab51f926e52c04b44918030000000000f7679c0100000000090000525152005365539e3f48050000000009516500ab635363ab008396c905000000000253650591024f", "6a6365", 0, 908746924, "458aec3b5089a585b6bad9f99fd37a2b443dc5a2eefac2b7e8c5b06705efc9db"], + ["48c4afb204204209e1df6805f0697edaa42c0450bbbd767941fe125b9bc40614d63d757e2203000000066a5363005152dc8b6a605a6d1088e631af3c94b8164e36e61445e2c60130292d81dabd30d15f54b355a802000000036a6353ffffffff1d05dcec4f3dedcfd02c042ce5d230587ee92cb22b52b1e59863f3717df2362f0300000005536552ac52ffffffffd4d71c4f0a7d53ba47bb0289ca79b1e33d4c569c1e951dd611fc9c9c1ca8bc6c030000000865536a65ab51abacffffffff042f9aa905000000000753655153656351ab93d8010000000002655337440e0300000000005d4c690000000000015278587acb", "ab006565526a51", 0, 1502064227, "bbed77ff0f808aa8abd946ba9e7ec1ddb003a969fa223dee0af779643cb841a9"], + ["00b20fd104dd59705b84d67441019fa26c4c3dec5fd3b50eca1aa549e750ef9ddb774dcabe000000000651ac656aac65ffffffff52d4246f2db568fc9eea143e4d260c698a319f0d0670f84c9c83341204fde48b0200000000ffffffffb8aeabb85d3bcbc67b132f1fd815b451ea12dcf7fc169c1bc2e2cf433eb6777a03000000086a51ac6aab6563acd510d209f413da2cf036a31b0def1e4dcd8115abf2e511afbcccb5ddf41d9702f28c52900100000006ac52ab6a0065ffffffff039c8276000000000008ab53655200656a52401561010000000003acab0082b7160100000000035100ab00000000", "535265", 1, -947367579, "3212c6d6dd8d9d3b2ac959dec11f4638ccde9be6ed5d36955769294e23343da0"], + ["455131860220abbaa72015519090a666faf137a0febce7edd49da1eada41feab1505a0028b02000000036365ab453ead4225724eb69beb590f2ec56a7693a608871e0ab0c34f5e96157f90e0a96148f3c502000000085251ab51535163acffffffff022d1249040000000009abac00acac6565630088b310040000000000e3920e59", "5152ab6a52ac5152", 0, 294375737, "c40fd7dfa72321ac79516502500478d09a35cc22cc264d652c7d18b14400b739"], + ["624d28cb02c8747915e9af2b13c79b417eb34d2fa2a73547897770ace08c6dd9de528848d3030000000651ab63abab533c69d3f9b75b6ef8ed2df50c2210fd0bf4e889c42477d58682f711cbaece1a626194bb85030000000765acab53ac5353ffffffff018cc280040000000009abacabac52636352ac6859409e", "ac51ac", 1, 1005144875, "919144aada50db8675b7f9a6849c9d263b86450570293a03c245bd1e3095e292"], + ["8f28471d02f7d41b2e70e9b4c804f2d90d23fb24d53426fa746bcdcfffea864925bdeabe3e0200000001acffffffff76d1d35d04db0e64d65810c808fe40168f8d1f2143902a1cc551034fd193be0e0000000001acffffffff048a5565000000000005005151516afafb610400000000045263ac53648bb30500000000086363516a6a5165513245de01000000000000000000", "6a0053510053", 1, -1525137460, "305fc8ff5dc04ebd9b6448b03c9a3d945a11567206c8d5214666b30ec6d0d6cc"], + ["10ec50d7046b8b40e4222a3c6449490ebe41513aad2eca7848284a08f3069f3352c2a9954f0000000009526aac656352acac53ffffffff0d979f236155aa972472d43ee6f8ce22a2d052c740f10b59211454ff22cb7fd00200000007acacacab63ab53ffffffffbbf97ebde8969b35725b2e240092a986a2cbfd58de48c4475fe077bdd493a20c010000000663ab5365ababffffffff4600722d33b8dba300d3ad037bcfc6038b1db8abfe8008a15a1de2da2264007302000000035351ac6dbdafaf020d0ccf04000000000663ab6a51ab6ae06e5e0200000000036aabab00000000", "", 0, -1658960232, "2420dd722e229eccafae8508e7b8d75c6920bfdb3b5bac7cb8e23419480637c2"], + ["fef98b7101bf99277b08a6eff17d08f3fcb862e20e13138a77d66fba55d54f26304143e5360100000006515365abab00ffffffff04265965030000000004655252ace2c775010000000001002b23b4040000000007516a5153ab53ac456a7a00000000000753ab525251acacba521291", "526aacacab00abab53", 0, -1614097109, "4370d05c07e231d6515c7e454a4e401000b99329d22ed7def323976fa1d2eeb5"], + ["34a2b8830253661b373b519546552a2c3bff7414ea0060df183b1052683d78d8f54e842442000000000152ffffffffd961a8e34cf374151058dfcddc86509b33832bc57267c63489f69ff01199697c0300000002abacba856cfb01b17c2f050000000008515365ac53ab000000000000", "5263ab656a", 1, -2104480987, "2f9993e0a84a6ca560d6d1cc2b63ffe7fd71236d9cfe7d809491cef62bbfad84"], + ["43559290038f32fda86580dd8a4bc4422db88dd22a626b8bd4f10f1c9dd325c8dc49bf479f01000000026351ffffffff401339530e1ed3ffe996578a17c3ec9d6fccb0723dd63e7b3f39e2c44b976b7b0300000006ab6a65656a51ffffffff6fb9ba041c96b886482009f56c09c22e7b0d33091f2ac5418d05708951816ce7000000000551ac525100ffffffff020921e40500000000035365533986f40500000000016a00000000", "52ac51", 0, 1769771809, "02040283ef2291d8e1f79bb71bdabe7c1546c40d7ed615c375643000a8b9600d"], + ["6878a6bd02e7e1c8082d5e3ee1b746cfebfac9e8b97e61caa9e0759d8a8ecb3743e36a30de0100000002ab532a911b0f12b73e0071f5d50b6bdaf783f4b9a6ce90ec0cad9eecca27d5abae188241ddec0200000001651c7758d803f7457b0500000000036551515f4e90000000000001007022080200000000035365acc86b6946", "6351ab", 0, -1929374995, "f24be499c58295f3a07f5f1c6e5084496ae160450bd61fdb2934e615289448f1"], + ["35b6fc06047ebad04783a5167ab5fc9878a00c4eb5e7d70ef297c33d5abd5137a2dea9912402000000036aacacffffffff21dc291763419a584bdb3ed4f6f8c60b218aaa5b99784e4ba8acfec04993e50c03000000046a00ac6affffffff69e04d77e4b662a82db71a68dd72ef0af48ca5bebdcb40f5edf0caf591bb41020200000000b5db78a16d93f5f24d7d932f93a29bb4b784febd0cbb1943f90216dc80bba15a0567684b000000000853ab52ab5100006a1be2208a02f6bdc103000000000265ab8550ea04000000000365636a00000000", "", 0, -1114114836, "1c8655969b241e717b841526f87e6bd68b2329905ba3fc9e9f72526c0b3ea20c"], + ["bebb90c302bf91fd4501d33555a5fc5f2e1be281d9b7743680979b65c3c919108cc2f517510100000003abab00ffffffff969c30053f1276550532d0aa33cfe80ca63758cd215b740448a9c08a84826f3303000000056565ab5153ffffffff04bf6f2a04000000000565ab5265ab903e760100000000026a6a7103fa020000000006526553525365b05b2c000000000006ab000000535300000000", "51510053ab63635153", 1, 1081291172, "94338cd47a4639be30a71e21a7103cee4c99ef7297e0edd56aaf57a068b004de"], + ["af48319f031b4eeb4319714a285f44244f283cbff30dcb9275b06f2348ccd0d7f015b54f8500000000066363ac65ac6affffffff2560a9817ebbc738ad01d0c9b9cf657b8f9179b1a7f073eb0b67517409d108180200000005ac6365ab52ffffffff0bdd67cd4ecae96249a2e2a96db1490ee645f042fd9d5579de945e22b799f4d003000000086552ab515153ab00cf187c8202e51abf0300000000066552006a00abadf37d000000000004ac6a535100000000", "63ab65", 1, -1855554446, "60caf46a7625f303c04706cec515a44b68ec319ee92273acb566cca4f66861c1"], + ["f35befbc03faf8c25cc4bc0b92f6239f477e663b44b83065c9cb7cf231243032cf367ce3130000000005ab65526a517c4c334149a9c9edc39e29276a4b3ffbbab337de7908ea6f88af331228bd90086a6900ba020000000151279d19950d2fe81979b72ce3a33c6d82ebb92f9a2e164b6471ac857f3bbd3c0ea213b542010000000953ab51635363520065052657c20300a9ba04000000000452636a6a0516ea020000000008535253656365ababcfdd3f01000000000865ac516aac00530000000000", "", 2, -99793521, "c834a5485e68dc13edb6c79948784712122440d7fa5bbaa5cd2fc3d4dac8185d"], + ["d3da18520216601acf885414538ce2fb4d910997eeb91582cac42eb6982c9381589587794f0300000000fffffffff1b1c9880356852e10cf41c02e928748dd8fae2e988be4e1c4cb32d0bfaea6f7000000000465ab6aabffffffff02fb0d69050000000002ababeda8580500000000085163526565ac52522b913c95", "ac", 1, -1247973017, "99b32b5679d91e0f9cdd6737afeb07459806e5acd7630c6a3b9ab5d550d0c003"], + ["8218eb740229c695c252e3630fc6257c42624f974bc856b7af8208df643a6c520ef681bfd00000000002510066f30f270a09b2b420e274c14d07430008e7886ec621ba45665057120afce58befca96010300000004525153ab84c380a9015d96100000000000076a5300acac526500000000", "ac005263", 0, -1855679695, "5071f8acf96aea41c7518bd1b5b6bbe16258b529df0c03f9e374b83c66b742c6"], + ["1123e7010240310013c74e5def60d8e14dd67aedff5a57d07a24abc84d933483431b8cf8ea0300000003530051fc6775ff1a23c627a2e605dd2560e84e27f4208300071e90f4589e762ad9c9fe8d0da95e020000000465655200ffffffff04251598030000000004ab65ab639d28d90400000000096563636aacac525153474df801000000000851525165ac51006a75e23b040000000000e5bd3a4a", "6363636565", 0, -467124448, "9cb0dd04e9fe287b112e94a1647590d27e8b164ca13c4fe70c610fd13f82c2fd"], + ["fd92fe1003083c5179f97e77bf7d71975788138147adbdb283306802e261c0aee080fa22630200000000860c643ba9a1816b9badf36077b4554d11720e284e395a1121bc45279e148b2064c65e49020000000651ab6a53636a2c713088d20f4bc4001264d972cce05b9fe004dc33376ad24d0d013e417b91a5f1b6734e000000000100ffffffff02e3064c0500000000066552006a5165b86e8705000000000665ab65ab53522052eadb", "00ab53525265", 0, 776203277, "47207b48777727532f62e09afcd4104ea6687e723c7657c30504fa2081331cc8"], + ["d1b6a703038f14d41fcc5cc45455faa135a5322be4bf0f5cbcd526578fc270a236cacb853f0200000001abffffffff135aeff902fa38f202ccf5bd34437ff89c9dc57a028b62447a0a38579383e8ef0000000000ffffffffadf398d2c818d0b90bc474f540c3618a4a643482eeab73d36101987e2ec0335900000000004bd3323504e69fc10000000000055151535251790ada02000000000563ab6aab521337a704000000000963ac63abacac52656a1e9862010000000007656500ac51ab6a8f4ee672", "ab5251656565ac63", 2, 82008394, "b8f3d255549909c07588ecba10a02e55a2d6f2206d831af9da1a7dae64cfbc8b"], + ["81dadaa7011556683db3fe95262f4fdb20391b7e75b7ffcee51b176af64d83c06f85545d620200000005ab5151ab52ffffffff044805ef0300000000065353516352639702c802000000000900516351515252ab5270db08040000000009ac516aab526553abac4aabc90500000000096365ab0052636a525100000000", "6565ab6a5152", 0, -2126294159, "ad01ec9d6dbae325ec3a8e1fd98e2d03b1188378210efef093dd8b0b0ef3f19d"], + ["3b937e05032b8895d2f4945cb7e3679be2fbd15311e2414f4184706dbfc0558cf7de7b4d000000000001638b91a12668a3c3ce349788c961c26aa893c862f1e630f18d80e7843686b6e1e6fc396310000000000852635353ab65ac51eeb09dd1c9605391258ee6f74b9ae17b5e8c2ef010dc721c5433dcdc6e93a1593e3b6d1700000000085365ac6553526351ffffffff0308b18e04000000000253acb6dd00040000000008536aac5153ac516ab0a88201000000000500ac006500804e3ff2", "", 0, 416167343, "595a3c02254564634e8085283ec4ea7c23808da97ce9c5da7aecd7b553e7fd7f"], + ["a48f27ca047997470da74c8ee086ddad82f36d9c22e790bd6f8603ee6e27ad4d3174ea875403000000095153ac636aab6aacabffffffffefc936294e468d2c9a99e09909ba599978a8c0891ad47dc00ba424761627cef202000000056a51630053ffffffff304cae7ed2d3dbb4f2fbd679da442aed06221ffda9aee460a28ceec5a9399f4e0200000000f5bddf82c9c25fc29c5729274c1ff0b43934303e5f595ce86316fc66ad263b96ca46ab8d0100000003536500d7cf226b0146b00c04000000000200ac5c2014ce", "515100636563", 0, 1991799059, "9c051a7092fe17fa62b1720bc2c4cb2ffc1527d9fb0b006d2e142bb8fe07bf3c"], + ["180cd53101c5074cf0b7f089d139e837fe49932791f73fa2342bd823c6df6a2f72fe6dba1303000000076a6a63ac53acabffffffff03853bc1020000000007ac526a6a6a6a003c4a8903000000000453515163a0fbbd030000000005ab656a5253253d64cf", "ac65", 0, -1548453970, "4d8efb3b99b9064d2f6be33b194a903ffabb9d0e7baa97a48fcec038072aac06"], + ["c21ec8b60376c47e057f2c71caa90269888d0ffd5c46a471649144a920d0b409e56f190b700000000008acac6a526a536365ffffffff5d315d9da8bf643a9ba11299450b1f87272e6030fdb0c8adc04e6c1bfc87de9a0000000000ea43a9a142e5830c96b0ce827663af36b23b0277244658f8f606e95384574b91750b8e940000000007516a63ac0063acffffffff023c61be0400000000055165ab5263313cc8020000000006006a53526551ed8c3d56", "6a", 1, 1160627414, "a638cc17fd91f4b1e77877e8d82448c84b2a4e100df1373f779de7ad32695112"], + ["128cd90f04b66a4cbc78bf48748f6eec0f08d5193ee8d0a6f2e8d3e5f138ed12c2c87d01a301000000085200ab6aac00ab00ffffffff09fc88bb1851e3dfb3d30179c38e15aeb1b39929c7c74f6acd071994ed4806490300000000e7fc5ea12ec56f56c0d758ecf4bb88aa95f3b08176b336db3b9bec2f6e27336dce28adbe030000000400530051fffffffffd6ff1adcf1fbe0d883451ee46904f1b7e8820243d395559b2d4ee8190a6e891000000000080fb1ae702f85b400000000000035200ab8d9651010000000006ab6a52536aab00000000", "ab", 1, 1667598199, "c10ccc9db8a92d7d4b133a2980782dab9d9d1d633d0dde9f9612ada57771fd89"], + ["da9695a403493d3511c10e1fe1286f954db0366b7667c91ef18ae4578056c1bf752114ac5901000000035351519788d91dd1f9c62dc005d80ea54eb13f7131ca5aace3d5d29f9b58ccc5fbc9a27e779950010000000453ac6a00ffffffffe2556ff29ebe83eb42a32c7a8d93bc598043578f491b5935805a33608538845a030000000252ab65d21b3b018f26c4030000000006acab51535352e1cbcb10", "006565ab52", 2, -1550927794, "0ca673a1ee66f9625ceb9ab278ebef772c113c188112b02824570c17fdf48194"], + ["b240517501334021240427adb0b413433641555424f6d24647211e3e6bfbb22a8045cbda2f000000000071bac8630112717802000000000000000000", "6a5165abac52656551", 0, 1790414254, "2c8be597620d95abd88f9c1cf4967c1ae3ca2309f3afec8928058c9598660e9e"], + ["96bac43903044a199b4b3efeeec5d196ee23fb05495541fa2cd6fb6405a9432d1723363660010000000151ffffffffe6ce2b66ce1488918a3e880bebb0e750123f007c7bcbac8fcd67ce75cb6fbae80300000000ffffffff9c0955aa07f506455834895c0c56be5a095398f47c62a3d431fe125b161d666a0200000005520000abac7ffdbc540216f2f004000000000165a26dce010000000001ab00000000", "5151ab656a656a6a63", 0, -707123065, "26b22e18d5d9081fde9631594a4f7c49069ed2e429f3d08caf9d834f685ccab2"], + ["b8fd394001ed255f49ad491fecc990b7f38688e9c837ccbc7714ddbbf5404f42524e68c18f0000000007ab6353535363ab081e15ee02706f7d050000000008515200535351526364c7ec040000000005636a53acac9206cbe1", "655352ac", 0, -1251578838, "8e0697d8cd8a9ccea837fd798cc6c5ed29f6fbd1892ee9bcb6c944772778af19"], + ["e42a76740264677829e30ed610864160c7f97232c16528fe5610fc08814b21c34eefcea69d010000000653006a6a0052ffffffff647046cf44f217d040e6a8ff3f295312ab4dd5a0df231c66968ad1c6d8f4428000000000025352ffffffff0199a7f900000000000000000000", "655263006a005163", 1, 1122505713, "7cda43f1ff9191c646c56a4e29b1a8c6cb3f7b331da6883ef2f0480a515d0861"], + ["0f034f32027a8e094119443aa9cfe11737c6d7dda9a52b839bc073dcc0235b847b28e0fab60200000006ac53ac536a63eee63447dfdad80476994b68706e916df1bd9d7cb4f3a4f6b14369de84564bea2e8688bd030000000565636a65acf8434663020b35fe01000000000800abab655163acabb3d6a103000000000353acab345eeda0", "526a51ac63ab51", 1, 66020215, "4435e62ff6531ac73529aac9cf878a7219e0b6e6cac79af8487c5355d1ad6d43"], + ["a2dfa4690214c1ab25331815a5128f143219de51a47abdc7ce2d367e683eeb93960a31af9f010000000363636affffffff8be0628abb1861b078fcc19c236bc4cc726fa49068b88ad170adb2a97862e7460200000004ac655363ffffffff0441f11103000000000153dbab0c000000000009ab53ac5365526aab63abbb95050000000004ab52516a29a029040000000003ac526a00000000", "6a52ac63", 1, -1302210567, "913060c7454e6c80f5ba3835454b54db2188e37dc4ce72a16b37d11a430b3d23"], + ["9dbc591f04521670af83fb3bb591c5d4da99206f5d38e020289f7db95414390dddbbeb56680100000004ac5100acffffffffb6a40b5e29d5e459f8e72d39f800089529f0889006cad3d734011991da8ef09d0100000009526a5100acab536a515fc427436df97cc51dc8497642ffc868857ee245314d28b356bd70adba671bd6071301fc0000000000ffffffff487efde2f620566a9b017b2e6e6d42525e4070f73a602f85c6dfd58304518db30000000005516353006a8d8090180244904a0200000000046a65656ab1e9c203000000000451ab63aba06a5449", "", 0, -1414953913, "bae189eb3d64aedbc28a6c28f6c0ccbd58472caaf0cf45a5aabae3e031dd1fea"], + ["1345fb2c04bb21a35ae33a3f9f295bece34650308a9d8984a989dfe4c977790b0c21ff9a7f0000000006ac52ac6a0053ffffffff7baee9e8717d81d375a43b691e91579be53875350dfe23ba0058ea950029fcb7020000000753ab53ab63ab52ffffffff684b6b3828dfb4c8a92043b49b8cb15dd3a7c98b978da1d314dce5b9570dadd202000000086353ab6a5200ac63d1a8647bf667ceb2eae7ec75569ca249fbfd5d1b582acfbd7e1fcf5886121fca699c011d0100000003ac006affffffff049b1eb00300000000001e46dc0100000000080065ab6a6a630065ca95b40300000000030051520c8499010000000006ab6aac526a6500000000", "53526aac636300", 2, 1809978100, "cfeaa36790bc398783d4ca45e6354e1ea52ee74e005df7f9ebd10a680e9607bf"], + ["7d75dc8f011e5f9f7313ba6aedef8dbe10d0a471aca88bbfc0c4a448ce424a2c5580cda1560300000003ab5152ffffffff01997f8e0200000000096552ac6a65656563530d93bbcc", "00656a6563", 0, 1414485913, "ec91eda1149f75bffb97612569a78855498c5d5386d473752a2c81454f297fa7"], + ["1459179504b69f01c066e8ade5e124c748ae5652566b34ed673eea38568c483a5a4c4836ca0100000008ac5352006563656affffffff5d4e037880ab1975ce95ea378d2874dcd49d5e01e1cdbfae3343a01f383fa35800000000095251ac52ac6aac6500ffffffff7de3ae7d97373b7f2aeb4c55137b5e947b2d5fb325e892530cb589bc4f92abd503000000086563ac53ab520052ffffffffb4db36a32d6e543ef49f4bafde46053cb85b2a6c4f0e19fa0860d9083901a1190300000003ab51531bbcfe5504a6dbda040000000008536a5365abac6500d660c80300000000096565abab6a53536a6a54e84e010000000003acac52df2ccf0500000000025351220c857e", "", 2, 1879181631, "3aad18a209fab8db44954eb55fd3cc7689b5ec9c77373a4d5f4dae8f7ae58d14"], + ["d98b777f04b1b3f4de16b07a05c31d79965579d0edda05600c118908d7cf642c9cd670093f020000000953005351ac65ab5363a268caad6733b7d1718008997f249e1375eb3ab9fe68ab0fe170d8e745ea24f54ce67f9b00000000066500516a5151ffffffff7ef8040dfcc86a0651f5907e8bfd1017c940f51cf8d57e3d3fe78d57e40b1e610200000003535263ffffffff39846cfed4babc098ff465256ba3820c30d710581316afcb67cd31c623b703360300000001acffffffff03d405120100000000056300006a5201a73d050000000004ab636a6a294c8c000000000006ac65536553ac00000000", "63525351abac", 1, 2018694761, "86970af23c89b72a4f9d6281e46b9ef5220816bed71ebf1ae20df53f38fe16ff"], + ["cabb1b06045a895e6dcfc0c1e971e94130c46feace286759f69a16d298c8b0f6fd0afef8f20300000004ac006352ffffffffa299f5edac903072bfb7d29b663c1dd1345c2a33546a508ba5cf17aab911234602000000056a65515365ffffffff89a20dc2ee0524b361231092a070ace03343b162e7162479c96b757739c8394a0300000002abab92ec524daf73fabee63f95c1b79fa8b84e92d0e8bac57295e1d0adc55dc7af5534ebea410200000001534d70e79b04674f6f00000000000600abacab53517d60cc0200000000035265ab96c51d040000000004ac6300ac62a787050000000008006a516563ab63639e2e7ff7", "6551ac6351ac", 3, 1942663262, "d0c4a780e4e0bc22e2f231e23f01c9d536b09f6e5be51c123d218e906ec518be"], + ["8b96d7a30132f6005b5bd33ea82aa325e2bcb441f46f63b5fca159ac7094499f380f6b7e2e00000000076aacabac6300acffffffff0158056700000000000465005100c319e6d0", "52006a", 0, -1100733473, "fb4bd26a91b5cf225dd3f170eb09bad0eac314bc1e74503cc2a3f376833f183e"], + ["112191b7013cfbe18a175eaf09af7a43cbac2c396f3695bbe050e1e5f4250603056d60910e02000000001c8a5bba03738a22010000000005525352656a77a149010000000002510003b52302000000000351ac52722be8e6", "65ac6565", 0, -1847972737, "8e795aeef18f510d117dfa2b9f4a2bd2e2847a343205276cedd2ba14548fd63f"], + ["ce6e1a9e04b4c746318424705ea69517e5e0343357d131ad55d071562d0b6ebfedafd6cb840100000003656553ffffffff67bd2fa78e2f52d9f8900c58b84c27ef9d7679f67a0a6f78645ce61b883fb8de000000000100d699a56b9861d99be2838e8504884af4d30b909b1911639dd0c5ad47c557a0773155d4d303000000046a5151abffffffff9fdb84b77c326921a8266854f7bbd5a71305b54385e747fe41af8a397e78b7fa010000000863acac6a51ab00ac0d2e9b9d049b8173010000000007ac53526a650063ba9b7e010000000008526a00525263acac0ab3fd030000000000ea8a0303000000000200aca61a97b9", "", 1, -1276952681, "b6ed4a3721be3c3c7305a5128c9d418efa58e419580cec0d83f133a93e3a22c5"], + ["a7721d94021652d90c79aaf5022d98219337d50f836382403ed313adb1116ba507ac28b0b0010000000551ac6300ab89e6d64a7aa81fb9595368f04d1b36d7020e7adf5807535c80d015f994cce29554fe869b01000000065353ab636500ffffffff024944c90100000000046300635369df9f01000000000000000000", "656a536551ab", 0, -1740151687, "935892c6f02948f3b08bcd463b6acb769b02c1912be4450126768b055e8f183a"], + ["2f7353dd02e395b0a4d16da0f7472db618857cd3de5b9e2789232952a9b154d249102245fd030000000151617fd88f103280b85b0a198198e438e7cab1a4c92ba58409709997cc7a65a619eb9eec3c0200000003636aabffffffff0397481c0200000000045300636a0dc97803000000000009d389030000000003ac6a53134007bb", "0000536552526a", 0, -1912746174, "30c4cd4bd6b291f7e9489cc4b4440a083f93a7664ea1f93e77a9597dab8ded9c"], + ["7d95473604fd5267d0e1bb8c9b8be06d7e83ff18ad597e7a568a0aa033fa5b4e1e2b6f1007020000000465006a6affffffffaee008503bfc5708bd557c7e78d2eab4878216a9f19daa87555f175490c40aaf000000000263abffffffffabd74f0cff6e7ceb9acc2ee25e65af1abcebb50c08306e6c78fa8171c37613dd010000000552acacababffffffff54a3069393f7930fa1b331cdff0cb945ec21c11d4605d8eedba1d3e094c6ae1f01000000026300ffffffff0182edeb050000000009526353ab5153530065a247e8cd", "51516aab00", 2, -426210430, "2707ca714af09494bb4cf0794abe33c6cba5f29891d619e76070269d1fa8e690"], + ["221d4718023d9ca9fe1af178dbfce02b2b369bf823ea3f43f00891b7fef98e215c06b94fdd000000000951005153ab000051acffffffffb1c7ad1c64b7441bf5e70cd0f6eb4ec96821d67fc4997d9e6dfdceadecd36dde01000000070051536a635153ffffffff04e883cd00000000000851ab536553ab0052bbb2f70400000000002f1b2e03000000000165259fcb00000000000010dbde99", "ab", 1, 665721280, "4abce77432a86dfe608e7c1646c18b5253a373392ff962e288e3ab96bba1ba1d"], + ["6f66c0b3013e6ae6aabae9382a4326df31c981eac169b6bc4f746edaa7fc1f8c796ef4e374000000000665ab6aabac6affffffff0191c8d6030000000002525300000000", "6a5352516a635352ab", 0, -1299629906, "48411efeb133c6b7fec4e7bdbe613f827093cb06ea0dbcc2ffcfde3a9ac4356c"], + ["89e7928c04363cb520eff4465251fd8e41550cbd0d2cdf18c456a0be3d634382abcfd4a2130200000006ac516a6a656355042a796061ed72db52ae47d1607b1ceef6ca6aea3b7eea48e7e02429f382b378c4e51901000000085351ab6352ab5252ffffffff53631cbda79b40183000d6ede011c778f70147dc6fa1aed3395d4ce9f7a8e69701000000096a6553ab52516a52abad0de418d80afe059aab5da73237e0beb60af4ac490c3394c12d66665d1bac13bdf29aa8000000000153f2b59ab6027a33eb040000000007005351ac5100ac88b941030000000003ab0052e1e8a143", "63656a", 0, 1258533326, "b575a04b0bb56e38bbf26e1a396a76b99fb09db01527651673a073a75f0a7a34"], + ["ca356e2004bea08ec2dd2df203dc275765dc3f6073f55c46513a588a7abcc4cbde2ff011c7020000000553525100003aefec4860ef5d6c1c6be93e13bd2d2a40c6fb7361694136a7620b020ecbaca9413bcd2a030000000965ac00536352535100ace4289e00e97caaea741f2b89c1143060011a1f93090dc230bee3f05e34fbd8d8b6c399010000000365526affffffff48fc444238bda7a757cb6a98cb89fb44338829d3e24e46a60a36d4e24ba05d9002000000026a53ffffffff03d70b440200000000056a6a526aac853c97010000000002515335552202000000000351635300000000", "0052", 3, -528192467, "fc93cc056c70d5e033933d730965f36ad81ef64f1762e57f0bc5506c5b507e24"], + ["82d4fa65017958d53e562fac073df233ab154bd0cf6e5a18f57f4badea8200b217975e31030200000004636aab51ac0891a204227cc9050000000006635200655365bfef8802000000000865650051635252acfc2d09050000000006ab65ac51516380195e030000000007ac52525352510063d50572", "53", 0, -713567171, "e095003ca82af89738c1863f0f5488ec56a96fb81ea7df334f9344fcb1d0cf40"], + ["75f6949503e0e47dd70426ef32002d6cdb564a45abedc1575425a18a8828bf385fa8e808e600000000036aabab82f9fd14e9647d7a1b5284e6c55169c8bd228a7ea335987cef0195841e83da45ec28aa2e0300000002516350dc6fe239d150efdb1b51aa288fe85f9b9f741c72956c11d9dcd176889963d699abd63f0000000001ab429a63f502777d20010000000007abac52ac516a53d081d9020000000003acac630c3cc3a8", "535152516551510000", 1, 973814968, "c6ec1b7cb5c16a1bfd8a3790db227d2acc836300534564252b57bd66acf95092"], + ["24f24cd90132b2162f938f1c22d3ca5e7daa83515883f31a61a5177aebf99d7db6bdfc398c010000000163ffffffff01d5562d0100000000016300000000", "5265ac5165ac5252ab", 0, 1055129103, "5eeb03e03806cd7bfd44bbba69c30f84c2c5120df9e68cd8facc605fcfbc9693"], + ["5ff2cac201423064a4d87a96b88f1669b33adddc6fa9acdc840c0d8a243671e0e6de49a5b00300000005ac6353655353b91db50180db5a03000000000663535151006a047a3aff", "52ab51ab5365005163", 0, -1336626596, "b8db8d57fe40ab3a99cf2f8ed57da7a65050fcc1d34d4280e25faf10108d3110"], + ["10011f150220ad76a50ccc7bb1a015eda0ff987e64cd447f84b0afb8dc3060bdae5b36a6900200000000ffffffff1e92dd814dfafa830187bc8e5b9258de2445ec07b02c420ee5181d0b203bb334000000000565ab536a65ffffffff0124e65401000000000800ab636553ab53ac00000000", "53abab0051", 0, 440222748, "c6675bf229737e005b5c8ffa6f81d9e2c4396840921b6151316f67c4315a4270"], + ["8b95ec900456648d820a9b8df1d8f816db647df8a8dc9f6e7151ebf6079d90ee3f6861352a02000000085200ab00ac535151ffffffff039b10b845f961225ac0bcaac4f5fe1991029a051aa3d06a3811b5762977a67403000000035252abffffffff8559d65f40d5e261f45aec8aad3d2c56c6114b22b26f7ee54a06f0881be3a7f5010000000765635252536363ffffffff38f8b003b50f6412feb2322b06b270197f81ad69c36af02ca5008b94eee5f650020000000165ffffffff01ae2b00010000000001638eb153a2", "0053ab5300ac53", 2, 1266056769, "205f3653f0142b35ce3ef39625442efebae98cde8cbf0516b97b51073bb0479f"], + ["babbb7ea01ab5d584727cb44393b17cf66521606dc81e25d85273be0d57bad43e8f6b6d43501000000036a656aba83a68803fb0f4a000000000005536353ab633fcfe4020000000009ac00acab6351006a65182a0c03000000000453ac5363bee74f44", "536a6a6a6365ac51ab", 0, -799187625, "3275e98dca37243b977525a07b5d8e369d6c3bdc08cb948029a635547d0d1a4e"], + ["e86a24bc03e4fae784cdf81b24d120348cb5e52d937cd9055402fdba7e43281e482e77a1c100000000046363006affffffffa5447e9bdcdab22bd20d88b19795d4c8fb263fbbf7ce8f4f9a85f865953a6325020000000663ac53535253ffffffff9f8b693bc84e0101fc73748e0513a8cecdc264270d8a4ee1a1b6717607ee1eaa00000000026a513417bf980158d82c020000000009005253005351acac5200000000", "6353516365536a6a", 2, -563792735, "508129278ef07b43112ac32faf00170ad38a500eed97615a860fd58baaad174b"], + ["53bd749603798ed78798ef0f1861b498fc61dcee2ee0f2b37cddb115b118e73bc6a5a47a0201000000096a63656a6aab6a000007ff674a0d74f8b4be9d2e8e654840e99d533263adbdd0cf083fa1d5dd38e44d2d163d900100000007abab5251ac6a51c8b6b63f744a9b9273ccfdd47ceb05d3be6400c1ed0f7283d32b34a7f4f0889cccf06be30000000009516a52636551ab516a9ac1fe63030c677e05000000000027bc610000000000086565636a635100526e2dc60200000000015300000000", "6552536a515351ab", 1, -1617066878, "fe516df92299e995b8e6489be824c6839543071ec5e9286060b2600935bf1f20"], + ["691bf9fc028ca3099020b79184e70039cf53b3c7b3fe695d661fd62d7b433e65feda2150610000000003ac63abffffffff2c814c15b142bc944192bddccb90a392cd05b968b599c1d8cd99a55a28a243fd0100000009ab5300526a5200abac98516a5803dfd3540500000000046552ac522838120100000000040053ab6a4409a903000000000665636a5300658759621b", "65ac5165ab", 0, -359941441, "d582c442e0ecc400c7ba33a56c93ad9c8cfd45af820350a13623594b793486f0"], + ["536bc5e60232eb60954587667d6bcdd19a49048d67a027383cc0c2a29a48b960dc38c5a0370300000005ac636300abffffffff8f1cfc102f39b1c9348a2195d496e602c77d9f57e0769dabde7eaaedf9c69e250100000006acabab6a6351ffffffff0432f56f0400000000046a5365517fd54b0400000000035265539484e4050000000003536a5376dc25020000000008ac536aab6aab536ab978e686", "ac0051006a006a006a", 0, -273074082, "f151f1ec305f698d9fdce18ea292b145a58d931f1518cf2a4c83484d9a429638"], + ["74606eba01c2f98b86c29ba5a32dc7a7807c2abe6ed8d89435b3da875d87c12ae05329e6070200000003510052ffffffff02a1e2c4020000000006516563526a63c68bae04000000000952ab6363ab00006363fe19ae4f", "63ababacac5365", 0, 112323400, "d1b1d79001b4a0324962607b739972d6f39c1493c4500ce814fd3bd72d32a5a0"], + ["2ed805e20399e52b5bcc9dc075dad5cf19049ff5d7f3de1a77aee9288e59c5f4986751483f020000000165ffffffff967531a5726e7a653a9db75bd3d5208fa3e2c5e6cd5970c4d3aba84eb644c72c0300000000ffffffffd79030d20c65e5f8d3c55b5692e5bdaa2ae78cfa1935a0282efb97515feac43f030000000400006365261ab88c02bdf66a000000000003ab6351d6ad8b000000000005525152abac00000000", "630053ab5265", 0, 2072814938, "1d25d16d84d5793be1ad5cda2de9c9cf70e04a66c3dae618f1a7ca4026198e7f"], + ["fab796ee03f737f07669160d1f1c8bf0800041157e3ac7961fea33a293f976d79ce49c02ab0200000003ac5252eb097ea1a6d1a7ae9dace338505ba559e579a1ee98a2e9ad96f30696d6337adcda5a85f403000000096500abab656a6a656396d5d41a9b11f571d91e4242ddc0cf2420eca796ad4882ef1251e84e42b930398ec69dd80100000005526551ac6a8e5d0de804f763bb0400000000015288271a010000000001acf2bf2905000000000300ab51c9641500000000000952655363636365ac5100000000", "00ac536552", 0, -1854521113, "f3bbab70b759fe6cfae1bf349ce10716dbc64f6e9b32916904be4386eb461f1f"], + ["f2b539a401e4e8402869d5e1502dbc3156dbce93583f516a4947b333260d5af1a34810c6a00200000003525363ffffffff01d305e2000000000005acab535200a265fe77", "", 0, -1435650456, "41617b27321a830c712638dbb156dae23d4ef181c7a06728ccbf3153ec53d7dd"], + ["9f10b1d8033aee81ac04d84ceee0c03416a784d1017a2af8f8a34d2f56b767aea28ff88c8f02000000025352ffffffff748cb29843bea8e9c44ed5ff258df1faf55fbb9146870b8d76454786c4549de100000000016a5ba089417305424d05112c0ca445bc7107339083e7da15e430050d578f034ec0c589223b0200000007abac53ac6565abffffffff025a4ecd010000000006636563ab65ab40d2700000000000056a6553526333fa296c", "", 0, -395044364, "20fd0eee5b5716d6cbc0ddf852614b686e7a1534693570809f6719b6fcb0a626"], + ["ab81755f02b325cbd2377acd416374806aa51482f9cc5c3b72991e64f459a25d0ddb52e66703000000036a00ab8727056d48c00cc6e6222be6608c721bc2b1e69d0ffbadd51d131f05ec54bcd83003aac5000000000003f2cdb60454630e020000000007526aac63000000e9e25c040000000003516a0088c97e0000000000076a535265655263771b5805000000000851ab00ac6565515100000000", "5151ab00ac", 0, -230931127, "ba0a2c987fcdd74b6915f6462f62c3f126a0750aa70048f7aa20f70726e6a20b"], + ["7a17e0ef0378dab4c601240639139335da3b7d684600fa682f59b7346ef39386fe9abd69350000000004ac5252ab807f26fb3249326813e18260a603b9ad66f41f05eaa8146f66bcca452162a502aac4aa8b02000000026a534ea460faa7e3d7854ec6c70d7e797025697b547ec500b2c09c873b4d5517767d3f3720660300000000ffffffff01b12e7a02000000000900ab006aab65656a63991c03e2", "6aab6a", 1, -1577994103, "62cd3413d9d819fb7355336365cf8a2a997f7436cc050a7143972044343b3281"], + ["ff2ecc09041b4cf5abb7b760e910b775268abee2792c7f21cc5301dd3fecc1b4233ee70a2c0200000009acac5300006a51526affffffffeb39c195a5426afff38379fc85369771e4933587218ef4968f3f05c51d6b7c92000000000165453a5f039b8dbef7c1ffdc70ac383b481f72f99f52b0b3a5903c825c45cfa5d2c0642cd50200000001654b5038e6c49daea8c0a9ac8611cfe904fc206dad03a41fb4e5b1d6d85b1ecad73ecd4c0102000000096a51000053ab656565bdb5548302cc719200000000000452655265214a3603000000000300ab6a00000000", "52516a006a63", 1, -2113289251, "37ed6fae36fcb3360c69cac8b359daa62230fc1419b2cf992a32d8f3e079dcff"], + ["70a8577804e553e462a859375957db68cfdf724d68caeacf08995e80d7fa93db7ebc04519d02000000045352ab53619f4f2a428109c5fcf9fee634a2ab92f4a09dc01a5015e8ecb3fc0d9279c4a77fb27e900000000006ab6a51006a6affffffff3ed1a0a0d03f25c5e8d279bb5d931b7eb7e99c8203306a6c310db113419a69ad010000000565516300abffffffff6bf668d4ff5005ef73a1b0c51f32e8235e67ab31fe019bf131e1382050b39a630000000004536a6563ffffffff02faf0bb00000000000163cf2b4b05000000000752ac635363acac15ab369f", "ac", 0, -1175809030, "1c9d6816c20865849078f9777544b5ddf37c8620fe7bd1618e4b72fb72dddca1"], + ["a3604e5304caa5a6ba3c257c20b45dcd468f2c732a8ca59016e77b6476ac741ce8b16ca8360200000004acac6553ffffffff695e7006495517e0b79bd4770f955040610e74d35f01e41c9932ab8ccfa3b55d0300000007ac5253515365acffffffff6153120efc5d73cd959d72566fc829a4eb00b3ef1a5bd3559677fb5aae116e38000000000400abab52c29e7abd06ff98372a3a06227386609adc7665a602e511cadcb06377cc6ac0b8f63d4fdb03000000055100acabacffffffff04209073050000000009ab5163ac525253ab6514462e05000000000952abacab636300656a20672c0400000000025153b276990000000000056565ab6a5300000000", "5351", 0, 1460890590, "249c4513a49076c6618aabf736dfd5ae2172be4311844a62cf313950b4ba94be"], + ["c6a72ed403313b7d027f6864e705ec6b5fa52eb99169f8ea7cd884f5cdb830a150cebade870100000009ac63ab516565ab6a51ffffffff398d5838735ff43c390ca418593dbe43f3445ba69394a6d665b5dc3b4769b5d700000000075265acab515365ffffffff7ee5616a1ee105fd18189806a477300e2a9cf836bf8035464e8192a0d785eea3030000000700ac6a51516a52ffffffff018075fd0000000000015100000000", "005251acac5252", 2, -656067295, "2cc1c7514fdc512fd45ca7ba4f7be8a9fe6d3318328bc1a61ae6e7675047e654"], + ["93c12cc30270fc4370c960665b8f774e07942a627c83e58e860e38bd6b0aa2cb7a2c1e060901000000036300abffffffff4d9b618035f9175f564837f733a2b108c0f462f28818093372eec070d9f0a5440300000001acffffffff039c2137020000000001525500990100000000055265ab636a07980e0300000000005ba0e9d1", "656a5100", 1, 18954182, "6beca0e0388f824ca33bf3589087a3c8ad0857f9fe7b7609ae3704bef0eb83e2"], + ["97bddc63015f1767619d56598ad0eb5c7e9f880b24a928fea1e040e95429c930c1dc653bdb0100000008ac53acac00005152aaa94eb90235ed10040000000000287bdd0400000000016a8077673a", "acac6a536352655252", 0, -813649781, "5990b139451847343c9bb89cdba0e6daee6850b60e5b7ea505b04efba15f5d92"], + ["cc3c9dd303637839fb727270261d8e9ddb8a21b7f6cbdcf07015ba1e5cf01dc3c3a327745d0300000000d2d7804fe20a9fca9659a0e49f258800304580499e8753046276062f69dbbde85d17cd2201000000096352536a520000acabffffffffbc75dfa9b5f81f3552e4143e08f485dfb97ae6187330e6cd6752de6c21bdfd21030000000600ab53650063ffffffff0313d0140400000000096565515253526aacac167f0a040000000008acab00535263536a9a52f8030000000006abab5151ab63f75b66f2", "6a635353636a65ac65", 1, 377286607, "dbc7935d718328d23d73f8a6dc4f53a267b8d4d9816d0091f33823bd1f0233e9"], + ["236f91b702b8ffea3b890700b6f91af713480769dda5a085ae219c8737ebae90ff25915a3203000000056300ac6300811a6a10230f12c9faa28dae5be2ebe93f37c06a79e76214feba49bb017fb25305ff84eb020000000100ffffffff041e351703000000000351ac004ff53e050000000003ab53636c1460010000000000cb55f701000000000651520051ab0000000000", "acac636a6aac5300", 0, 406448919, "793a3d3c37f6494fab79ff10c16702de002f63e34be25dd8561f424b0ea938c4"], + ["22e10d2003ab4ea9849a2801921113583b7c35c3710ff49a6003489395789a7cfb1e6051900100000006526a65535151ffffffff82f21e249ec60db33831d33b9ead0d56f6496db64337dcb7f1c3327c47729c4a020000000253abffffffff138f098f0e6a4cf51dc3e7a3b749f487d1ebde71b73b731d1d02ad1180ac7b8c02000000036563acda215011027a9484020000000007635165530000ac4bf6cb0400000000066aacabab65ab3ce3f32c", "ab0052ab", 2, 1136359457, "b5bd080bbcb8cd652f440484311d7a3cb6a973cd48f03c5c00fd6beb52dfc061"], + ["c47d5ad60485cb2f7a825587b95ea665a593769191382852f3514a486d7a7a11d220b62c54000000000663655253acab8c3cf32b0285b040e50dcf6987ddf7c385b3665048ad2f9317b9e0c5ba0405d8fde4129b00000000095251ab00ac65635300ffffffff549fe963ee410d6435bb2ed3042a7c294d0c7382a83edefba8582a2064af3265000000000152fffffffff7737a85e0e94c2d19cd1cde47328ece04b3e33cd60f24a8a345da7f2a96a6d0000000000865ab6a0051656aab28ff30d5049613ea020000000005ac51000063f06df1050000000008ac63516aabac5153afef5901000000000700656500655253688bc00000000000086aab5352526a53521ff1d5ff", "51ac52", 2, -1296011911, "0c1fd44476ff28bf603ad4f306e8b6c7f0135a441dc3194a6f227cb54598642a"], + ["0b43f122032f182366541e7ee18562eb5f39bc7a8e5e0d3c398f7e306e551cdef773941918030000000863006351ac51acabffffffffae586660c8ff43355b685dfa8676a370799865fbc4b641c5a962f0849a13d8250100000005abab63acabffffffff0b2b6b800d8e77807cf130de6286b237717957658443674df047a2ab18e413860100000008ab6aac655200ab63ffffffff04f1dbca03000000000800635253ab656a52a6eefd0300000000036365655d8ca90200000000005a0d530400000000015300000000", "65ac65acac", 0, 351448685, "86f26e23822afd1bdfc9fff92840fc1e60089f12f54439e3ab9e5167d0361dcf"], + ["4b0ecc0c03ba35700d2a30a71f28e432ff6ac7e357533b49f4e97cf28f1071119ad6b97f3e0300000008acab516363ac63acffffffffcd6a2019d99b5c2d639ddca0b1aa5ea7c1326a071255ea226960bd88f45ca57d00000000085253655363005353ffffffffba257635191c9f216de3277be548cb5a2313114cb1a4c563b03b4ef6c0f4f7040300000001abda542edf0495cdc40100000000026353c049e903000000000752516a53ab65512b0f9304000000000963ab516aac65516552fa9ece050000000009acab6500005152530000000000", "65ab51525352510052", 1, -1355414590, "3cd85f84aae6d702436f3f9b8980adcc1f8f202e957759540a27da0a32fc6c87"], + ["adaac0a803f66811346271c733036d6e0d45e15a9b602092e2e04ad93564f196e7f020b088000000000600526a636a00700ec3f9db07a3a6ce910bf318c7ec87a876e1f2a3366cc69f20cde09203b99c1cb9d15800000000050000ac636a4d0de554ebe95c6cc14faf5ff6361d1deba9474b8b0fd3b93c011cd96aec783abb3f36830200000005ab65005251ffffffff0464eb10050000000007520000ab6a65ab1beaa80300000000005a2f31050000000006526aab65ac52ba7db10000000000045251ab6a0cfb46e7", "ab0051ac52636a", 1, -184733716, "961ff413850336d3987c550404fc1d923266ca36cc9ffee7113edb3a9fea7f30"], + ["af1c4ab301ec462f76ee69ba419b1b2557b7ded639f3442a3522d4f9170b2d6859765c3df402000000016affffffff01a5ca6c000000000008ab52536aab00005300000000", "6a6351", 0, 110304602, "e88ed2eea9143f2517b15c03db00767eb01a5ce12193b99b964a35700607e5f4"], + ["0bfd34210451c92cdfa02125a62ba365448e11ff1db3fb8bc84f1c7e5615da40233a8cd368010000000252ac9a070cd88dec5cf9aed1eab10d19529720e12c52d3a21b92c6fdb589d056908e43ea910e0200000009ac516a52656a6a5165ffffffffc3edcca8d2f61f34a5296c405c5f6bc58276416c720c956ff277f1fb81541ddd00000000030063abffffffff811247905cdfc973d179c03014c01e37d44e78f087233444dfdce1d1389d97c302000000065163000063ab1724a26e02ca37c902000000000851ab53525352ac529012a90100000000085200525253535353fa32575b", "5352ac6351", 1, -1087700448, "b8f1e1f35e3e1368bd17008c756e59cced216b3c699bcd7bebdb5b6c8eec4697"], + ["2c84c0640487a4a695751d3e4be48019dbaea85a6e854f796881697383ea455347d2b2769001000000055265526500ffffffff6aac176d8aa00778d496a7231eeb7d3334f20c512d3db1683276402100d98de5030000000700536a5263526ac1ee9ceb171c0c984ebaf12c234fd1487fbf3b3d73aa0756907f26837efba78d1bed33200300000001ab4d9e8ec0bed837cb929bbed76ee848959cec59de44bd7667b7631a744f880d5c71a20cfd0100000007005363515300abffffffff023753fb0000000000036565532d3873050000000009005152ab6a63acab5200000000", "ab650053ab", 0, -877941183, "c49af297dffe2d80deddf10ceea84b99f8554bd2d55bbdc34e449728c31f0835"], + ["1f7e4b1b045d3efa6cd7a11d7873a8bab886c19bd11fcb6712f0948f2db3a7be76ff76c8f100000000095265ab6a0065ac5363ffffffffdaafcfa6029336c997680a541725190f09a6f6da21e54560eca4b5b8ae987da1000000000952ac52acac52515165ffffffff825a38d3b1e5bb4d10f33653ab3ab6882c7abdaec74460257d1528ce7be3f98e0100000007526a006a656a63c14adc8f04953a5d3d3f89237f38b857dd357713896d36215f7e8b77b11d98ea3cdc93df02000000015212484f6104bfafae0300000000025263a2b0120000000000056563ab00516c4d2605000000000653ac6500655301cc93030000000002acab14643b1f", "63acac53ab", 0, 333824258, "18da6ceb011cd36f15ad7dd6c55ef07e6f6ed48881ce3bb31416d3c290d9a0e9"], + ["467a3e7602e6d1a7a531106791845ec3908a29b833598e41f610ef83d02a7da3a1900bf2960000000005ab6a636353ffffffff031db6dac6f0bafafe723b9199420217ad2c94221b6880654f2b35114f44b1df010000000965ab52636a63ac6352ffffffff02b3b95c0100000000026300703216030000000001ab3261c0aa", "6a", 0, 2110869267, "3078b1d1a7713c6d101c64afe35adfae0977a5ab4c7e07a0b170b041258adbf2"], + ["8713bc4f01b411149d575ebae575f5dd7e456198d61d238695df459dd9b86c4e3b2734b62e0300000004abac6363ffffffff03b58049050000000002ac653c714c04000000000953656a005151526a527b5a9e03000000000652ac5100525300000000", "52", 0, -647281251, "0e0bed1bf2ff255aef6e5c587f879ae0be6222ab33bd75ee365ec6fbb8acbe38"], + ["f2ba8a8701b9c401efe3dd0695d655e20532b90ac0142768cee4a3bb0a89646758f544aa8102000000036a52527899f4e4040c6f0b030000000008636565ab530051ab52b60c000000000009515200ab630053ac53a49c5f040000000008ab53ab516300ab63fa27340300000000015100000000", "ac63abab5251", 0, -1328936437, "ab61497afd39e61fe06bc5677326919716f9b20083c9f3417dcea905090e0411"], + ["b5a7df6102107beded33ae7f1dec0531d4829dff7477260925aa2cba54119b7a07d92d5a1d02000000046a516a52803b625c334c1d2107a326538a3db92c6c6ae3f7c3516cd90a09b619ec6f58d10e77bd6703000000056563006a63ffffffff0117484b03000000000853acab52526a65abc1b548a1", "ac006a525100", 0, 2074359913, "680336db57347d8183b8898cd27a83f1ba5884155aeae5ce20b4840b75e12871"], + ["278cb16204b9dadf400266106392c4aa9df01ba03af988c8139dae4c1818ac009f13fc5f1a00000000065200ac656a52ffffffffd006bbebd8cbd7bdead24cddc9badfcc6bc0c2e63c037e5c29aa858f5d0f3e7d01000000046a0051acffffffffbc62a5f57e58da0b67956003ae81ac97cb4cbd1d694c914fc41515c008c4d8fd020000000165e329c844bcc16164be64b64a81cbf4ffd41ed2934e0daa0040ccb8365bab0b2a9e401c180300000003ab52abffffffff02588460030000000000a25a12030000000005535100005300000000", "6553ab6a5300acab51", 3, 989407546, "1c29f110576f4a3b257f67454d99dfc0dee62ef5517ca702848ce4bd2ea1a1d7"], + ["49eb2178020a04fca08612c34959fd41447319c190fb7ffed9f71c235aa77bec28703aa1820200000003ac6353abaff326071f07ec6b77fb651af06e8e8bd171068ec96b52ed584de1d71437fed186aecf0300000001acffffffff03da3dbe02000000000652ac63ac6aab8f3b680400000000096a536a65636a53516a5175470100000000016500000000", "6a536365", 0, 1283691249, "c670219a93234929f662ecb9aa148a85a2d281e83f4e53d10509461cdea47979"], + ["0f96cea9019b4b3233c0485d5b1bad770c246fe8d4a58fb24c3b7dfdb3b0fd90ea4e8e947f0300000006006a5163515303571e1e01906956030000000005ab635353abadc0fbbe", "acac", 0, -1491469027, "716a8180e417228f769dcb49e0491e3fda63badf3d5ea0ceeac7970d483dd7e2"], + ["9a7d858604577171f5fe3f3fd3e5e039c4b0a06717a5381e9977d80e9f53e025e0f16d2877020000000752636565536353ffffffff5862bd028e8276e63f044be1dddcbb8d0c3fa097678308abf2b0f45104a93dbd0100000001531200667ba8fdd3b28e98a35da73d3ddfe51e210303d8eb580f923de988ee632d77793892030000000752526363526563ffffffffe9744eb44db2658f120847c77f47786d268c302120d269e6004455aa3ea5f5e20200000009ab6300636aab656551ffffffff03c61a3c020000000009ab516a6aab6aab53ab737f1a05000000000853acabab655365ab92a4a00400000000016367edf6c8", "535352ab", 3, 659348595, "d36ee79fc80db2e63e05cdc50357d186181b40ae20e3720878284228a13ee8b3"], + ["148e68480196eb52529af8e83e14127cbfdbd4a174e60a86ac2d86eac9665f46f4447cf7aa01000000045200ac538f8f871401cf240c0300000000065252ab52656a5266cf61", "", 0, -344314825, "eacc47c5a53734d6ae3aedbc6a7c0a75a1565310851b29ef0342dc4745ceb607"], + ["e2bc29d4013660631ba14ecf75c60ec5e9bed7237524d8c10f66d0675daa66d1492cb834530200000004ac510065e42d0c9e04f2b26c01000000000951525152acac65ababa35b7504000000000953ac6aac00650053ab94688c0400000000056365526553a1bced0300000000016a00000000", "65ab0063655353", 0, -888431789, "59a34b3ed3a1cce0b104de8f7d733f2d386ffc7445efae67680cd90bc915f7e0"], + ["0c8a70d70494dca6ab05b2bc941b5b431c43a292bd8f2f02eab5e240a408ca73a676044a4103000000056a51ab006affffffff84496004e54836c035821f14439149f22e1db834f315b24588ba2f031511926c0100000000ffffffffbbc5e70ed1c3060ba1bfe99c1656a3158a7307c3ce8eb362ec32c668596d2bd30000000009636563635351abab00b039344c6fc4f9bec24322e45407af271b2d3dfec5f259ee2fc7227bc5285e22b3be85b40100000009ac00ab53abac6a5352e5ddfcff02d50231020000000005006a51536ab086d9020000000006ababac51ac6a00000000", "abab636565acac6a", 3, 241546088, "643a7b4c8d832e14d5c10762e74ec84f2c3f7ed96c03053157f1bed226614911"], + ["f98f79cf0274b745e1d6f36da7cbe205a79132a7ad462bdc434cfb1dcd62a6977c3d2a5dbc010000000553516a5365ffffffff4f89f485b53cdad7fb80cc1b7e314b9735b9383bc92c1248bb0e5c6173a55c0d010000000353655293f9b014045ad96d02000000000963ac526a53ac636365f4c27904000000000952536563635152526a2788f0030000000002516aff5add01000000000863530051655351abd04716ba", "ab6552536a53", 1, -2128899945, "56d29f5e300ddfed2cd8dcce5d79826e193981d0b70dc7487772c8a0b3b8d7b1"], + ["6c7913f902aa3f5f939dd1615114ce961beda7c1e0dd195be36a2f0d9d047c28ac62738c3a020000000453abac00ffffffff477bf2c5b5c6733881447ac1ecaff3a6f80d7016eee3513f382ad7f554015b970100000007ab6563acab5152ffffffff04e58fe1040000000009ab00526aabab526553e59790010000000002ab525a834b03000000000035fdaf0200000000086551ac65515200ab00000000", "63ac53", 1, 1285478169, "1536da582a0b6de017862445e91ba14181bd6bf953f4de2f46b040d351a747c9"], + ["4624aa9204584f06a8a325c84e3b108cafb97a387af62dc9eab9afd85ae5e2c71e593a3b690200000003636a005eb2b44eabbaeca6257c442fea00107c80e32e8715a1293cc164a42e62ce14fea146220c020000000090b9ee38106e3310037bfc519fd209bdbd21c588522a0e96df5fba4e979392bc993bfe9f01000000086363636a635353ab6f1907d218ef6f3c729d9200e23c1dbff2df58b8b1282c6717b26cf760ee4c880d23f4d100000000086a516a536a525163ffffffff01d6f162050000000000ebbab208", "525365ab0053", 1, -1515409325, "6cf9cd409b7185b1f118171f0a34217af5b612ea54195ea186505b667c19337f"], + ["16562fc503f1cf9113987040c408bfd4523f1512da699a2ca6ba122dc65677a4c9bf7763830000000003636552ffffffff1ec1fab5ff099d1c8e6b068156f4e39b5543286bab53c6d61e2582d1e07c96cf02000000045163656affffffffd0ef40003524d54c08cb4d13a5ee61c84fbb28cde9eca7a6d11ba3a9335d8c620100000007635153536a6300fbb84fc2012003a601000000000363ab6a00000000", "63636a006a6aab", 0, -1310262675, "1efbf3d37a92bc03d9eb950b792f307e95504f7c4998f668aa250707ebb752ac"], + ["531665d701f86bacbdb881c317ef60d9cd1baeffb2475e57d3b282cd9225e2a3bf9cbe0ded01000000086300ac515263acabffffffff0453a8500100000000086353acab516a6565e5e9200500000000026a52a44caa00000000000453ac000065e41b0500000000076500ac0065526ab4476f4d", "006563006aab00636a", 0, 1770013777, "0898b26dd3ca08632a5131fa48eb55b44386d0c5070c24d6e329673d5e3693b8"], + ["0f1227a20140655a3da36e413b9b5d108a866f6f147eb4940f032f5a89854eae6d7c3a91600100000009525363515153515253e37a79480161ab61020000000001ab00000000", "ab65005200", 0, -1996383599, "979782dc3f36d908d37d7e4046a38d306b4b08ddc60a5eba355fe3d6da1b29a9"], + ["063ff6eb01aff98d0d2a6db224475010edb634c2f3b46257084676adeb84165a4ff8558d7601000000066353006a5165deb3262c042d109c0000000000076363ab52ac005200b9c4050000000007516300ac510063cfffc800000000000200639e815501000000000700526a52ac6365ac7b07b8", "656552abac6500", 0, -1559847112, "674a4bcb04247f8dc98780f1792cac86b8aee41a800fc1e6f5032f6e1dccde65"], + ["3320f6730132f830c4681d0cae542188e4177cad5d526fae84565c60ceb5c0118e844f90bd030000000163ffffffff0257ec5a040000000005525251ac6538344d000000000002515200000000", "5352656a53ac516a65", 0, 788050308, "3afacaca0ef6be9d39e71d7b1b118994f99e4ea5973c9107ca687d28d8eba485"], + ["c13aa4b702eedd7cde09d0416e649a890d40e675aa9b5b6d6912686e20e9b9e10dbd40abb1000000000863ab6353515351ac11d24dc4cc22ded7cdbc13edd3f87bd4b226eda3e4408853a57bcd1becf2df2a1671fd1600000000045165516affffffff01baea300100000000076aab52ab53005300000000", "0065", 0, -1195908377, "241a23e7b1982d5f78917ed97a8678087acbbffe7f624b81df78a5fe5e41e754"], + ["d9a6f20e019dd1b5fae897fb472843903f9c3c2293a0ffb59cff2b413bae6eceab574aaf9d030000000663ab006a515102f54939032df5100100000000056a51ab65530ec28f010000000004ac5100007e874905000000000651005265ac6a00000000", "abacab63acacabab", 0, 271463254, "1326a46f4c21e7619f30a992719a905aa1632aaf481a57e1cbd7d7c22139b41e"], + ["157c81bf0490432b3fcb3f9a5b79e5f91f67f05efb89fa1c8740a3fe7e9bdc18d7cb6acd2203000000026351ffffffff912e48e72bbcf8a540b693cf8b028e532a950e6e63a28801f6eaad1afcc52ad00000000000b1a4b170a2b9e60e0cad88a0085137309f6807d25d5afb5c1e1d32aa10ba1cdf7df596dd0000000009525165656a51ab65ab3674fba32a76fe09b273618d5f14124465933f4190ba4e0fd09d838daafc6223b31642ac00000000086a53536551ac6565ffffffff01fe9fb6030000000008ab51656a5165636a00000000", "ab00ab6a6551", 3, -64357617, "1ddaab7f973551d71f16bd70c4c4edbf7225e64e784a6da0ee7f7a9fe4f12a0b"], + ["a2692fff03b2387f5bacd5640c86ba7df574a0ee9ed7f66f22c73cccaef3907eae791cbd230200000004536363abffffffff4d9fe7e5b375de88ba48925d9b2005447a69ea2e00495a96eafb2f144ad475b40000000008000053000052636537259bee3cedd3dcc07c8f423739690c590dc195274a7d398fa196af37f3e9b4a1413f810000000006ac63acac52abffffffff04c65fe60200000000075151536365ab657236fc020000000009005263ab00656a6a5195b8b6030000000007ac5165636aac6a7d7b66010000000002acab00000000", "51", 2, -826546582, "925037c7dc7625f3f12dc83904755a37016560de8e1cdd153c88270a7201cf15"], + ["2c5b003201b88654ac2d02ff6762446cb5a4af77586f05e65ee5d54680cea13291efcf930d0100000005ab536a006a37423d2504100367000000000004536a515335149800000000000152166aeb03000000000452510063226c8e03000000000000000000", "635251", 0, 1060344799, "7e058ca5dd07640e4aae7dea731cfb7d7fef1bfd0d6d7b6ce109d041f4ca2a31"], + ["f981b9e104acb93b9a7e2375080f3ea0e7a94ce54cd8fb25c57992fa8042bdf4378572859f0100000002630008604febba7e4837da77084d5d1b81965e0ea0deb6d61278b6be8627b0d9a2ecd7aeb06a0300000005ac5353536a42af3ef15ce7a2cd60482fc0d191c4236e66b4b48c9018d7dbe4db820f5925aad0e8b52a0300000008ab0063510052516301863715efc8608bf69c0343f18fb81a8b0c720898a3563eca8fe630736c0440a179129d03000000086aac6a52ac6a63ac44fec4c00408320a03000000000062c21c030000000007ac6a655263006553835f0100000000015303cd60000000000005535263536558b596e0", "00", 0, -2140385880, "49870a961263354c9baf108c6979b28261f99b374e97605baa532d9fa3848797"], + ["e7416df901269b7af14a13d9d0507709b3cd751f586ce9d5da8d16a121e1bd481f5a086e1103000000056aab005200ffffffff01aa269c040000000006acac6a6a5263ee718de6", "ab525363", 0, 1309186551, "eea7d2212bda2d408fff146f9ae5e85e6b640a93b9362622bb9d5e6e36798389"], + ["402a815902193073625ab13d876190d1bbb72aecb0ea733c3330f2a4c2fe6146f322d8843a0300000008656aab0000535363fffffffff9dccdec5d8509d9297d26dfcb1e789cf02236c77dc4b90ebccbf94d1b5821150300000001510bf1f96a03c5c145000000000002ac6ae11b1c0100000000055163516a5239c8a600000000000365636300000000", "63536aacab", 0, -1811424955, "0090803a20102a778ab967a74532faee13e03b702083b090b1497bc2267ee2fe"], + ["c4b702e502f1a54f235224f0e6de961d2e53b506ab45b9a40805d1dacd35148f0acf24ca5e00000000085200ac65ac53acabf34ba6099135658460de9d9b433b84a8562032723635baf21ca1db561dce1c13a06f4407000000000851ac006a63516aabffffffff02a853a603000000000163d17a67030000000005ab63006a5200000000", "ac5363515153", 1, 480734903, "5c46f7ac3d6460af0da28468fcc5b3c87f2b9093d0f837954b7c8174b4d7b6e7"], + ["9b83f78704f492b9b353a3faad8d93f688e885030c274856e4037818848b99e490afef27770200000000ffffffff36b60675a5888c0ef4d9e11744ecd90d9fe9e6d8abb4cff5666c898fdce98d9e00000000056aab656352596370fca7a7c139752971e169a1af3e67d7656fc4fc7fd3b98408e607c2f2c836c9f27c030000000653ac51ab6300a0761de7e158947f401b3595b7dc0fe7b75fa9c833d13f1af57b9206e4012de0c41b8124030000000953656a53ab53510052242e5f5601bf83b301000000000465516a6300000000", "63515200ac656365", 3, -150879312, "9cf05990421ea853782e4a2c67118e03434629e7d52ab3f1d55c37cf7d72cdc4"], + ["f492a9da04f80b679708c01224f68203d5ea2668b1f442ebba16b1aa4301d2fe5b4e2568f3010000000953005351525263ab65ffffffff93b34c3f37d4a66df255b514419105b56d7d60c24bf395415eda3d3d8aa5cd0101000000020065ffffffff9dba34dabdc4f1643b372b6b77fdf2b482b33ed425914bb4b1a61e4fad33cf390000000002ab52ffffffffbbf3dc82f397ef3ee902c5146c8a80d9a1344fa6e38b7abce0f157be7adaefae0000000009515351005365006a51ffffffff021359ba010000000000403fea0200000000095200ac6353abac635300000000", "00ac51acacac", 0, -2115078404, "fd44fc98639ca32c927929196fc3f3594578f4c4bd248156a25c04a65bf3a9f3"], + ["2f73e0b304f154d3a00fde2fdd40e791295e28d6cb76af9c0fd8547acf3771a02e3a92ba37030000000852ac6351ab6565639aa95467b065cec61b6e7dc4d6192b5536a7c569315fb43f470078b31ed22a55dab8265f02000000080065636a6aab6a53ffffffff9e3addbff52b2aaf9fe49c67017395198a9b71f0aa668c5cb354d06c295a691a0100000000ffffffff45c2b4019abaf05c5e484df982a4a07459204d1343a6ee5badade358141f8f990300000007ac516a6aacac6308655cd601f3bc2f0000000000015200000000", "", 0, -2082053939, "9a95e692e1f78efd3e46bb98f178a1e3a0ef60bd0301d9f064c0e5703dc879c2"], + ["5a60b9b503553f3c099f775db56af3456330f1e44e67355c4ab290d22764b9144a7b5f959003000000030052acbd63e0564decc8659aa53868be48c1bfcda0a8c9857b0db32a217bc8b46d9e7323fe9649020000000553ac6551abd0ecf806211db989bead96c09c7f3ec5f73c1411d3329d47d12f9e46678f09bac0dc383e0200000000ffffffff01494bb202000000000500516551ac00000000", "ac", 0, 1169947809, "62a36c6e8da037202fa8aeae03e533665376d5a4e0a854fc4624a75ec52e4eb1"], + ["7e98d353045569c52347ca0ff2fdba608829e744f61eb779ffdb5830aae0e6d6857ab2690e03000000075365acab656352ffffffffa890dd37818776d12da8dca53d02d243ef23b4535c67016f4c58103eed85360f030000000093dbacdc25ca65d2951e047d6102c4a7da5e37f3d5e3c8b87c29b489360725dcd117ee2003000000056a6300ac53c7e99fa1dc2b8b51733034e6555f6d6de47dbbf1026effac7db80cb2080678687380dc1e02000000075352005263516affffffff04423272040000000008ab6353ab65510051e0f53b0500000000086300516552635152f74a5f04000000000853acab0053ab52ab0e8e5f00000000000951ac5363516a6aabab00000000", "6a5163ab52", 3, 890006103, "476868cecd1763c91dade98f17defa42d31049547df45acffa1cc5ae5c3d75d6"], + ["e3649aa40405e6ffe377dbb1bbbb672a40d8424c430fa6512c6165273a2b9b6afa9949ec430200000007630052ab655153a365f62f2792fa90c784efe3f0981134d72aac0b1e1578097132c7f0406671457c332b84020000000353ab6ad780f40cf51be22bb4ff755434779c7f1def4999e4f289d2bd23d142f36b66fbe5cfbb4b01000000076a5252abac52ab1430ffdc67127c9c0fc97dcd4b578dab64f4fb9550d2b59d599773962077a563e8b6732c02000000016affffffff04cb2687000000000002ab636e320904000000000252acf70e9401000000000100dc3393050000000006ab0063536aacbc231765", "65520053", 3, -2016196547, "f64f805f0ff7f237359fa6b0e58085f3c766d1859003332223444fd29144112a"], + ["1d033569040700441686672832b531ab55db89b50dc1f9fc00fb72218b652da9dcfbc83be901000000066551ac526a632b390f9ad068e5fdee6563e88e2a8e4e09763c861072713dc069893dc6bbc9db3f00e26502000000096a5363526565525252ffffffff8a36bdd0aaf38f6707592d203e14476ca9f259021e487135c7e8324244057ed90300000000ed3fb2a3dfd4d46b5f3603fe0148653911988457bd0ed7f742b07c452f5476c228ff9f600200000007526aac00525152ffffffff04b88e48030000000000c753d602000000000853510000006553518fda2603000000000853ac52acac5263534839f1030000000006ac006aacac5300000000", "516553635300ab0052", 1, 2075958316, "c2cefaec2293134acbcf6d2a8bf2b3eb42e4ec04ee8f8bf30ff23e65680677c1"], + ["4c4be7540344050e3044f0f1d628039a334a7c1f7b4573469cfea46101d6888bb6161fe9710200000000ffffffffac85a4fdad641d8e28523f78cf5b0f4dc74e6c5d903c10b358dd13a5a1fd8a06000000000163e0ae75d05616b72467b691dc207fe2e65ea35e2eadb7e06ea442b2adb9715f212c0924f10200000000ffffffff0194ddfe02000000000265ac00000000", "00006500", 1, -479922562, "d66924d49f03a6960d3ca479f3415d638c45889ce9ab05e25b65ac260b51d634"], + ["202c18eb012bc0a987e69e205aea63f0f0c089f96dd8f0e9fcde199f2f37892b1d4e6da90302000000055352ac6565ffffffff0257e5450100000000025300ad257203000000000000000000", "520052ac6a005265", 0, 168054797, "502967a6f999f7ee25610a443caf8653dda288e6d644a77537bcc115a8a29894"], + ["32fa0b0804e6ea101e137665a041cc2350b794e59bf42d9b09088b01cde806ec1bbea077df0200000008515153650000006506a11c55904258fa418e57b88b12724b81153260d3f4c9f080439789a391ab147aabb0fa0000000007000052ac51ab510986f2a15c0d5e05d20dc876dd2dafa435276d53da7b47c393f20900e55f163b97ce0b800000000008ab526a520065636a8087df7d4d9c985fb42308fb09dce704650719140aa6050e8955fa5d2ea46b464a333f870000000009636300636a6565006affffffff01994a0d040000000002536500000000", "516563530065", 2, -163068286, "f58637277d2bc42e18358dc55f7e87e7043f5e33f4ce1fc974e715ef0d3d1c2a"], + ["ae23424d040cd884ebfb9a815d8f17176980ab8015285e03fdde899449f4ae71e04275e9a80100000007ab006553530053ffffffff018e06db6af519dadc5280c07791c0fd33251500955e43fe4ac747a4df5c54df020000000251ac330e977c0fec6149a1768e0d312fdb53ed9953a3737d7b5d06aad4d86e9970346a4feeb5030000000951ab51ac6563ab526a67cabc431ee3d8111224d5ecdbb7d717aa8fe82ce4a63842c9bd1aa848f111910e5ae1eb0100000004ac515300bfb7e0d7048acddc030000000009636a5253636a655363a3428e040000000001525b99c6050000000004655265ab717e6e020000000000d99011eb", "ac6a6a516565", 1, -716251549, "b098eb9aff1bbd375c70a0cbb9497882ab51f3abfebbf4e1f8d74c0739dc7717"], + ["030f44fc01b4a9267335a95677bd190c1c12655e64df74addc53b753641259af1a54146baa020000000152e004b56c04ba11780300000000026a53f125f001000000000251acd2cc7c03000000000763536563655363c9b9e50500000000015200000000", "ac", 0, -1351818298, "19dd32190ed2a37be22f0224a9b55b91e37290577c6c346d36d32774db0219a3"], + ["c05f448f02817740b30652c5681a3b128322f9dc97d166bd4402d39c37c0b14506d8adb5890300000003536353ffffffffa188b430357055ba291c648f951cd2f9b28a2e76353bef391b71a889ba68d5fc02000000056565526a6affffffff02745f73010000000001ab3ec34c0400000000036aac5200000000", "516551510053", 0, -267877178, "3a1c6742d4c374f061b1ebe330b1e169a113a19792a1fdde979b53e094cc4a3c"], + ["163ba45703dd8c2c5a1c1f8b806afdc710a2a8fc40c0138e2d83e329e0e02a9b6c837ff6b8000000000700655151ab6a522b48b8f134eb1a7e6f5a6fa319ce9d11b36327ba427b7d65ead3b4a6a69f85cda8bbcd22030000000563656552acffffffffdbcf4955232bd11eef0cc6954f3f6279675b2956b9bcc24f08c360894027a60201000000066500006500abffffffff04d0ce9d0200000000008380650000000000015233f360040000000003006aabedcf0801000000000000000000", "000065006500ac", 0, 216965323, "9afe3f4978df6a86e9a8ebd62ef6a9d48a2203f02629349f1864ef2b8b92fd55"], + ["07f7f5530453a12ad0c7eb8fbc3f140c7ab6818144d67d2d8752600ca5d9a9358e2dff87d4000000000663526aab526a9e599c379d455e2da36d0cde88d931a863a3e97e01e93b9edb65856f3d958dc08b92b720000000000165bbc8d66dae3b1b170a6e2457f5b161465cb8706e0e6ffc6af55deb918365f14c5f40d4890100000000a7bd77c069ee4b48638e2363fcf2a86b02bea022047bd9fcb16d2b94ad068308d19b31cb00000000066aab5300ab529672aa8f01dbd8a205000000000663536353006a02e99901", "ac006351006a63ab63", 1, 119789359, "6629a1e75c6ae8f4f9d5f734246b6a71682a5ea57246040ef0584f6b97916175"], + ["fe647f950311bf8f3a4d90afd7517df306e04a344d2b2a2fea368935faf11fa6882505890d0000000005ab5100516affffffff43c140947d9778718919c49c0535667fc6cc727f5876851cb8f7b6460710c7f60100000000ffffffffce4aa5d90d7ab93cbec2e9626a435afcf2a68dd693c15b0e1ece81a9fcbe025e0300000000ffffffff02f34806020000000002515262e54403000000000965635151ac655363636de5ce24", "6a005100ac516351", 2, 989643518, "818a7ceaf963f52b5c48a7f01681ac6653c26b63a9f491856f090d9d60f2ffe3"], + ["a1050f8604d0f9d2feefcdb5051ae0052f38e21bf39daf583fd0c3900faa3eab5d431c0bbe030000000653536a005151683d27e5c6e0da8f22125823f32d5d98477d8098ef36263b9694d61d4d85d3f2ac02b7570200000007000052005165abffffffff0cad981542bcb54a87d9400aa63e514c7c6fab7158c2b1fb37821ea755eb162a0200000000b94feb5100e5ef3bf8ed8d43356c8a8d5ac6c7e80d7ff6040f4f0aa19abbe783f4f461240200000007636500000052655686fd70042be3ad02000000000465ab636a15680b000000000004acac53511277c705000000000452635252d27a0102000000000000000000", "6a6aacab65655251", 1, -982144648, "dfcf484111801989eb6df8dc2bafb944d7365ffeb36a575a08f3270d3ef24c9f"], + ["cef7316804c3e77fe67fc6207a1ea6ae6eb06b3bf1b3a4010a45ae5c7ad677bb8a4ebd16d90200000009ac536a5152ac5263005301ab8a0da2b3e0654d31a30264f9356ba1851c820a403be2948d35cafc7f9fe67a06960300000006526a63636a53ffffffffbada0d85465199fa4232c6e4222df790470c5b7afd54704595a48eedd7a4916b030000000865ab63ac006a006ab28dba4ad55e58b5375053f78b8cdf4879f723ea4068aed3dd4138766cb4d80aab0aff3d0300000003ac6a00ffffffff010f5dd6010000000006ab006aab51ab00000000", "", 1, 889284257, "d0f32a6db43378af84b063a6706d614e2d647031cf066997c48c04de3b493a94"], + ["7b3ff28004ba3c7590ed6e36f45453ebb3f16636fe716acb2418bb2963df596a50ed954d2e03000000065251515265abffffffff706ee16e32e22179400c9841013971645dabf63a3a6d2d5feb42f83aa468983e030000000653ac51ac5152ffffffffa03a16e5e5de65dfa848b9a64ee8bf8656cc1f96b06a15d35bd5f3d32629876e020000000043c1a3965448b3b46f0f0689f1368f3b2981208a368ec5c30defb35595ef9cf95ffd10e902000000036aac65253a5bbe042e907204000000000800006565656352634203b4020000000002656336b3b7010000000001ab7a063f0100000000026500a233cb76", "006551636a53ac5251", 1, -1144216171, "68c7bd717b399b1ee33a6562a916825a2fed3019cdf4920418bb72ffd7403c8c"], + ["d5c1b16f0248c60a3ddccf7ebd1b3f260360bbdf2230577d1c236891a1993725e262e1b6cb000000000363636affffffff0a32362cfe68d25b243a015fc9aa172ea9c6b087c9e231474bb01824fd6bd8bc0300000005ab52ab516affffffff0420d9a70200000000045152656a45765d0000000000055252536a5277bad100000000000252ab3f3f3803000000000463acac5200000000", "52636a52ab65", 1, 1305123906, "978dc178ecd03d403b048213d904653979d11c51730381c96c4208e3ea24243a"], + ["1be8ee5604a9937ebecffc832155d9ba7860d0ca451eaced58ca3688945a31d93420c27c460100000006abac5300535288b65458af2f17cbbf7c5fbcdcfb334ffd84c1510d5500dc7d25a43c36679b702e850f7c0200000003005300ffffffff7c237281cb859653eb5bb0a66dbb7aeb2ac11d99ba9ed0f12c766a8ae2a2157203000000086aabac526365acabfffffffff09d3d6639849f442a6a52ad10a5d0e4cb1f4a6b22a98a8f442f60280c9e5be80200000007ab00ab6565ab52ffffffff0398fe83030000000005526aababacbdd6ec010000000005535252ab6a82c1e6040000000001652b71c40c", "6563526353656351", 2, -853634888, "0d936cceda2f56c7bb87d90a7b508f6208577014ff280910a710580357df25f3"], + ["9e0f99c504fbca858c209c6d9371ddd78985be1ab52845db0720af9ae5e2664d352f5037d4010000000552ac53636affffffff0e0ce866bc3f5b0a49748f597c18fa47a2483b8a94cef1d7295d9a5d36d31ae7030000000663515263ac635bb5d1698325164cdd3f7f3f7831635a3588f26d47cc30bf0fefd56cd87dc4e84f162ab702000000036a6365ffffffff85c2b1a61de4bcbd1d5332d5f59f338dd5e8accbc466fd860f96eef1f54c28ec030000000165ffffffff04f5cabd010000000007000052ac526563c18f1502000000000465510051dc9157050000000008655363ac525253ac506bb600000000000865656a53ab63006a00000000", "006a6a0052", 0, 1186324483, "2f9b7348600336512686e7271c53015d1cb096ab1a5e0bce49acd35bceb42bc8"], + ["11ce51f90164b4b54b9278f0337d95c50d16f6828fcb641df9c7a041a2b274aa70b1250f2b0000000008ab6a6a65006551524c9fe7f604af44be050000000005525365006521f79a0300000000015306bb4e04000000000265ac99611a05000000000765acab656500006dc866d0", "", 0, -1710478768, "cfa4b7573559b3b199478880c8013fa713ca81ca8754a3fd68a6d7ee6147dc5a"], + ["86bc233e02ba3c647e356558e7252481a7769491fb46e883dd547a4ce9898fc9a1ca1b77790000000006ab5351abab51f0c1d09c37696d5c7c257788f5dff5583f4700687bcb7d4acfb48521dc953659e325fa390300000003acac5280f29523027225af03000000000963abac0065ab65acab7e59d90400000000016549dac846", "53006aac52acac", 0, 711159875, "880330ccde00991503ea598a6dfd81135c6cda9d317820352781417f89134d85"], + ["beac155d03a853bf18cd5c490bb2a245b3b2a501a3ce5967945b0bf388fec2ba9f04c03d68030000000012fe96283aec4d3aafed8f888b0f1534bd903f9cd1af86a7e64006a2fa0d2d30711af770010000000163ffffffffd963a19d19a292104b9021c535d3e302925543fb3b5ed39fb2124ee23a9db00302000000056500ac63acffffffff01ad67f503000000000300ac5189f78db2", "53536a636500", 2, 748992863, "bde3dd0575164d7ece3b5783ce0783ffddb7df98f178fe6468683230314f285a"], + ["81dab34a039c9e225ba8ef421ec8e0e9d46b5172e892058a9ade579fe0eb239f7d9c97d45b0300000009ac65655351ab526363ffffffff10c0faaf7f597fc8b00bbc67c3fd4c6b70ca6b22718d15946bf6b032e62dae570000000005536a00ab6a02cddec3acf985bbe62c96fccf17012a87026ed63fc6756fa39e286eb4c2dd79b59d37400300000002516affffffff04f18b8d03000000000753abab5152636564411c02000000000400ab6300e965750300000000001bd2cf02000000000565ab526aab00000000", "006551ab", 0, -1488174485, "a3d65a8cd0c1eea8558d01396b929520a2221c29d9f25f29035b8abae874447f"], + ["489ebbf10478e260ba88c0168bd7509a651b36aaee983e400c7063da39c93bf28100011f280100000004abab63ab2fc856f05f59b257a4445253e0d91b6dffe32302d520ac8e7f6f2467f7f6b4b65f2f59e903000000096353abacab6351656affffffff0122d9480db6c45a2c6fd68b7bc57246edffbf6330c39ccd36aa3aa45ec108fc030000000265ab9a7e78a69aadd6b030b12602dff0739bbc346b466c7c0129b34f50ae1f61e634e11e9f3d0000000006516a53525100ffffffff011271070000000000086563ab6353536352c4dd0e2c", "", 0, -293358504, "4eba3055bc2b58765593ec6e11775cea4b6493d8f785e28d01e2d5470ea71575"], + ["6911195d04f449e8eade3bc49fd09b6fb4b7b7ec86529918b8593a9f6c34c2f2d301ec378b000000000263ab49162266af054643505b572c24ff6f8e4c920e601b23b3c42095881857d00caf56b28acd030000000565525200ac3ac4d24cb59ee8cfec0950312dcdcc14d1b360ab343e834004a5628d629642422f3c5acc02000000035100accf99b663e3c74787aba1272129a34130668a877cc6516bfb7574af9fa6d07f9b4197303400000000085351ab5152635252ffffffff042b3c95000000000000ff92330200000000046a5252ab884a2402000000000853530065520063000d78be03000000000953abab52ab53ac65aba72cb34b", "6a", 2, -637739405, "6b80d74eb0e7ee59d14f06f30ba7d72a48d3a8ff2d68d3b99e770dec23e9284f"], + ["746347cf03faa548f4c0b9d2bd96504d2e780292730f690bf0475b188493fb67ca58dcca4f0000000002005336e3521bfb94c254058e852a32fc4cf50d99f9cc7215f7c632b251922104f638aa0b9d080100000008656aac5351635251ffffffff4da22a678bb5bb3ad1a29f97f6f7e5b5de11bb80bcf2f7bb96b67b9f1ac44d09030000000365ababffffffff036f02b30000000000076353ab6aac63ac50b72a050000000002acaba8abf804000000000663006a6a6353797eb999", "acac5100", 1, -1484493812, "164c32a263f357e385bd744619b91c3f9e3ce6c256d6a827d6defcbdff38fa75"], + ["e17149010239dd33f847bf1f57896db60e955117d8cf013e7553fae6baa9acd3d0f1412ad90200000006516500516500cb7b32a8a67d58dddfb6ceb5897e75ef1c1ff812d8cd73875856487826dec4a4e2d2422a0100000004ac525365196dbb69039229270400000000070000535351636a8b7596020000000006ab51ac52655131e99d040000000003516551ee437f5c", "ac656a53", 1, 1102662601, "8858bb47a042243f369f27d9ab4a9cd6216adeac1c1ac413ed0890e46f23d3f3"], + ["144971940223597a2d1dec49c7d4ec557e4f4bd207428618bafa3c96c411752d494249e1fb0100000004526a5151ffffffff340a545b1080d4f7e2225ff1c9831f283a7d4ca4d3d0a29d12e07d86d6826f7f0200000003006553ffffffff03c36965000000000000dfa9af00000000000451636aac7f7d140300000000016300000000", "", 1, -108117779, "c84fcaf9d779df736a26cc3cabd04d0e61150d4d5472dd5358d6626e610be57f"], + ["b11b6752044e650b9c4744fb9c930819227d2ac4040d8c91a133080e090b042a142e93906e0000000003650053ffffffff6b9ce7e29550d3c1676b702e5e1537567354b002c8b7bb3d3535e63ad03b50ea01000000055100516300fffffffffcf7b252fea3ad5a108af3640a9bc2cd724a7a3ce22a760fba95496e88e2f2e801000000036a00ac7c58df5efba193d33d9549547f6ca839f93e14fa0e111f780c28c60cc938f785b363941b000000000863ab51516552ac5265e51fcd0308e9830400000000036a00abab72190300000000016a63d0710000000000050051ab6a6300000000", "53005165ac51ab65", 0, 229563932, "e562579d1a2b10d1c5e45c06513456002a6bec157d7eb42511d30b118103c052"], + ["2aee6b9a02172a8288e02fac654520c9dd9ab93cf514d73163701f4788b4caeeb9297d2e250300000004ab6363008fb36695528d7482710ea2926412f877a3b20acae31e9d3091406bfa6b62ebf9d9d2a6470100000009535165536a63520065ffffffff03f7b560050000000003acab6a9a8338050000000000206ce90000000000056552516a5100000000", "5252", 1, -1102319963, "fa4676c374ae3a417124b4c970d1ed3319dc3ac91fb36efca1aa9ed981a8aa1b"], + ["9554595203ad5d687f34474685425c1919e3d2cd05cf2dac89d5f33cd3963e5bb43f8706480100000000ffffffff9de2539c2fe3000d59afbd376cb46cefa8bd01dbc43938ff6089b63d68acdc2b02000000096553655251536a6500fffffffff9695e4016cd4dfeb5f7dadf00968e6a409ef048f81922cec231efed4ac78f5d010000000763abab6a5365006caaf0070162cc640200000000045163ab5100000000", "", 0, -1105256289, "e8e10ed162b1a43bfd23bd06b74a6c2f138b8dc1ab094ffb2fa11d5b22869bee"], + ["04f51f2a0484cba53d63de1cb0efdcb222999cdf2dd9d19b3542a896ca96e23a643dfc45f00200000007acac53510063002b091fd0bfc0cfb386edf7b9e694f1927d7a3cf4e1d2ce937c1e01610313729ef6419ae7030000000165a3372a913c59b8b3da458335dc1714805c0db98992fd0d93f16a7f28c55dc747fe66a5b503000000095351ab65ab52536351ffffffff5650b318b3e236802a4e41ed9bc0a19c32b7aa3f9b2cda1178f84499963a0cde000000000165ffffffff0383954f04000000000553ac536363a8fc90030000000000a2e315000000000005acab00ab5100000000", "0053", 2, -1424653648, "a5bc0356f56b2b41a2314ec05bee7b91ef57f1074bcd2efc4da442222269d1a3"], + ["5e4fab42024a27f0544fe11abc781f46596f75086730be9d16ce948b04cc36f86db7ad50fd01000000026a00613330f4916285b5305cc2d3de6f0293946aa6362fc087727e5203e558c676b314ef8dd401000000001af590d202ba496f040000000001009e3c9604000000000351ac51943d64d3", "51acabab5100ab52", 1, -129301207, "556c3f90aa81f9b4df5b92a23399fe6432cf8fecf7bba66fd8fdb0246440036c"], + ["a115284704b88b45a5f060af429a3a8eab10b26b7c15ed421258f5320fa22f4882817d6c2b0300000003005300ffffffff4162f4d738e973e5d26991452769b2e1be4b2b5b7e8cbeab79b9cf9df2882c040000000006636aac63ac5194abc8aa22f8ddc8a7ab102a58e39671683d1891799d19bd1308d24ea6d365e571172f1e030000000700515352515153ffffffff4da7ad75ce6d8541acbb0226e9818a1784e9c97c54b7d1ff82f791df1c6578f60000000000ffffffff01b1f265040000000009ab0051ac656a516a5300000000", "51abab6352535265", 0, -1269106800, "0ef7b6e87c782fa33fe109aab157a2d9cddc4472864f629510a1c92fa1fe7fc1"], + ["f3f771ae02939752bfe309d6c652c0d271b7cab14107e98032f269d92b2a8c8853ab057da8010000000563ab6a6365670c305c38f458e30a7c0ab45ee9abd9a8dc03bae1860f965ffced879cb2e5d0bb156821020000000153ffffffff025dc619050000000002ac51ec0d250100000000076a5200636a6363333aecd8", "650053ac515100ab", 1, 1812404608, "a7aa34bf8a5644f03c6dd8801f9b15ba2e07e07256dbf1e02dad59f0d3e17ea9"], + ["fd3e267203ae7d6d3975e738ca84f12540229bb237dd228d5f688e9d5ba53fce4302b0334d01000000026353ffffffff602a3ab75af7aa951d93093e345ef0037a2863f3f580a9b1a575fffe68e677450300000000239e476d1e8f81e8b6313880d8a49b27c1b00af467f29756e76f675f084a5676539636ab030000000765ab6351acac52d9217747044d773204000000000752ac51526353acc33e45050000000005516500005115d889040000000004ab5163510cbbbd0200000000016500000000", "65ac526aac6a53ab52", 2, -886179388, "bc46f3f83058ddf5bebd9e1f2c117a673847c4dc5e31cfb24bac91adf30877cf"], + ["f380ae23033646af5dfc186f6599098015139e961919aea28502ea2d69474413d94a555ea2000000000853635265abacac5314da394b99b07733341ddba9e86022637be3b76492992fb0f58f23c915098979250a96620300000003ab6300ffffffff4bb6d1c0a0d84eac7f770d3ad0fdc5369ae42a21bbe4c06e0b5060d5990776220300000000ffffffff0486fd70020000000007ac6500635252acf3fd72010000000005656a6a6551212de90500000000096365006a63635153000fa33100000000000600535151656300000000", "ab52", 2, -740890152, "f804fc4d81f039009ed1f2cccb5c91da797543f235ac71b214c20e763a6d86d7"], + ["5c45d09801bb4d8e7679d857b86b97697472d514f8b76d862460e7421e8617b15a2df217c6010000000863acacab6565006affffffff01156dbc03000000000952ac63516551ac6aac00000000", "6aabac", 0, 1310125891, "270445ab77258ced2e5e22a6d0d8c36ac7c30fff9beefa4b3e981867b03fa0ad"], + ["4ecc6bde030ca0f83c0ed3d4b777f94c0c88708c6c933fe1df6874f296d425cac95355c23d0000000006ac6a51536a52f286a0969d6170e20f2a8000193807f5bc556770e9d82341ef8e17b0035eace89c76edd50200000007ac65525100656affffffff5bade6e462fac1927f078d69d3a981f5b4c1e59311a38efcb9a910aa436afaa80000000007ac6a006352ab52ffffffff0331e58902000000000763ac53636352abb8b3ca000000000001637a1d26040000000009535263ac6a5352ab655ae34a39", "6a65ab", 2, 2142728517, "4a3415eb1677ae4e0c939644a4cfd5dc6299780b55cd0dc735967057b6b1526a"], + ["a59484b501eb50114be0fc79e72ab9bc9f4a5f7acdf274a56d6b68684eb68cf8b07ec5d1c2000000000765abab00ab00639e09aa940141e3530200000000046500ac6500000000", "00516565ab", 0, -1561622405, "d60bbadd2cc0674100baa08d0e0493ee4248f0304b3eb778da942041f503a896"], + ["53dc1a88046531c7b57a35f4d9adf101d068bf8d63fbbedaf4741dba8bc5e92c8725def571030000000453655251fcdf116a226b3ec240739c4c7493800e4edfe67275234e371a227721eac43d3d9ecaf1b50300000003ac0052ffffffff2c9279ffeea4718d167e9499bd067600715c14484e373ef93ae4a31d2f5671ab0000000009516553ac636a6a65001977752eeba95a8f16b88c571a459c2f2a204e23d48cc7090e4f4cc35846ca7fc0a455ce00000000055165ac0063188143f80205972902000000000765ac63ac516353c7b6a50000000000036a510000000000", "655351536a", 0, 103806788, "b276584d3514e5b4e058167c41dc02915b9d97f6795936a51f40e894ed8508bc"], + ["53f8959f01ddb36afdcd20167edcbb75a63d18654fdcf10bc0004c761ab450fe236d79cb2702000000065151650063653435003a033a5e34050000000009ac52516a630000516ab86db3030000000002006344ac090500000000046363ab00f3644537", "5263abab63ac656353", 0, -218513553, "f1f2a489682e42a6fc20025dfc89584d17f150b2d7ae3ddedd2bf43d5e24f37f"], + ["5a06cb4602dcfc85f49b8d14513f33c48f67146f2ee44959bbca092788e6823b2719f3160b0200000001ab3c013f2518035b9ea635f9a1c74ec1a3fb7496a160f46aae2e09bfc5cd5111a0f20969e003000000015158c89ab7049f20d6010000000008ac6a52abac53515349765e00000000000300ab638292630100000000045351ab0086da09010000000006656a6365525300000000", "526a63", 1, 1502936586, "bdfaff8a4e775379c5dc26e024968efa805f923de53fa8272dd53ec582afa0c5"], + ["ca9d84fa0129011e1bf27d7cb71819650b59fb292b053d625c6f02b0339249b498ff7fd4b601000000025352ffffffff032173a0040000000008525253abab5152639473bb030000000009005153526a53535151d085bd0000000000086a5365ab5165655300000000", "005152ac51", 0, 580353445, "c629d93b02037f40aa110e46d903edb34107f64806aa0c418d435926feef68b8"], + ["e3cdbfb4014d90ae6a4401e85f7ac717adc2c035858bf6ff48979dd399d155bce1f150daea0300000002ac51a67a0d39017f6c71040000000005535200535200000000", "", 0, -1899950911, "c1c7df8206e661d593f6455db1d61a364a249407f88e99ecad05346e495b38d7"], + ["b2b6b9ab0283d9d73eeae3d847f41439cd88279c166aa805e44f8243adeb3b09e584efb1df00000000026300ffffffff7dfe653bd67ca094f8dab51007c6adaced09de2af745e175b9714ca1f5c68d050000000003ac6500aa8e596903fd3f3204000000000553ac6a6a533a2e210500000000075253acabab526392d0ee020000000008520065635200ab5200000000", "65acacac65005365", 0, 28298553, "39c2aaa2496212b3ab120ab7d7f37c5e852bfe38d20f5226413a2268663eeae8"], + ["f30c5c3d01a6edb9e10fafaf7e85db14e7fec558b9dca4a80b05d7c3a2944d282c5018f4680200000003005263ffffffff04aac3530300000000026551bc2419010000000009005163acab6a5100658e7085050000000000c5e4ec050000000007656a6a635365ab2d8e8882", "abac53ab005251ac52", 0, -490287546, "877e347ec7487497769e2581142276d1a8d813b652e4483cf9cc993d16354417"], + ["4314339e01de40faabcb1b970245a7f19eedbc17c507dac86cf986c2973715035cf95736ae0200000007abababababab65bde67b900151510b04000000000853ac00655200535300000000", "52", 0, 399070095, "47585dc25469d04ff3a60939d0a03779e3e81a411bf0ca18b91bb925ebd30718"], + ["2d4cf4e9031b3e175b2ff18cd933151379d9cfac4713d8bd0e63b70bd4a92277aa7af901ab000000000565515353abffffffff557666c7f3be9cdecdad44c3df206eb63a2da4ed1f159d21193882a9f0340081020000000963ab53ab5252ac63abffffffff8a8c897bdb87e93886aad5ded9d82a13101d5476554386373646ca5e23612e450300000009006a526552abab6a635ac03fc00198bb02040000000009525100526a6563636a1d052834", "ab52ac00acac6a", 0, -1469882480, "09ed6563a454814ab7e3b4c28d56d8751162b77df1825b37ba66c6147750b2a3"], + ["f063171b03e1830fdc1d685a30a377537363ccafdc68b42bf2e3acb908dac61ee24b37595c020000000765ac5100ab6aacf447bc8e037b89d6cadd62d960cc442d5ced901d188867b5122b42a862929ce45e7b628d010000000253aba009a1ba42b00f1490b0b857052820976c675f335491cda838fb7934d5eea0257684a2a202000000001e83cf2401a7f777030000000008ab6553526a53526a00000000", "", 2, 1984790332, "c19caada8e71535e29a86fa29cfd9b74a0c7412003fc722a121005e461e01636"], + ["cf7bdc250249e22cbe23baf6b648328d31773ea0e771b3b76a48b4748d7fbd390e88a004d30000000003ac536a4ab8cce0e097136c90b2037f231b7fde2063017facd40ed4e5896da7ad00e9c71dd70ae600000000096a0063516352525365ffffffff01b71e3e00000000000300536a00000000", "", 1, 546970113, "6a815ba155270af102322c882f26d22da11c5330a751f520807936b320b9af5d"], + ["ac7a125a0269d35f5dbdab9948c48674616e7507413cd10e1acebeaf85b369cd8c88301b7c030000000963656aac6a530053abffffffffed94c39a582e1a46ce4c6bffda2ccdb16cda485f3a0d94b06206066da12aecfe010000000752abab63536363ef71dcfb02ee07fa0400000000016a6908c802000000000751656a6551abac688c2c2d", "6a6351526551", 0, 858400684, "552ff97d7924f51cda6d1b94be53483153ef725cc0a3a107adbef220c753f9a6"], + ["3a1f454a03a4591e46cf1f7605a3a130b631bf4dfd81bd2443dc4fac1e0a224e74112884fe0000000005516aac6a53a87e78b55548601ffc941f91d75eab263aa79cd498c88c37fdf275a64feff89fc1710efe03000000016a39d7ef6f2a52c00378b4f8f8301853b61c54792c0f1c4e2cd18a08cb97a7668caa008d970200000002656affffffff017642b20100000000096a63535253abac6a6528271998", "51", 2, 1459585400, "e9a7f21fc2d38be7be47095fbc8f1bf8923660aa4d71df6d797ae0ba5ca4d5b0"], + ["f59366cc0114c2a18e6bd1347ed9470f2522284e9e835dd5c5f7ef243639ebea95d9b232b6020000000153474b62eb045c00170500000000096352ab516352ab5200038a520400000000086aab5253656a63005b968904000000000963536353ac0053635387106002000000000000000000", "ab52526300ab51", 0, 1834116153, "cdf51f6e3a9dc2be5a59ea4c00f5aac1e1426a5202c325e6cf2567d07d8d8de4"], + ["6269e0fa0173e76e89657ca495913f1b86af5b8f1c1586bcd6c960aede9bc759718dfd5044000000000352ac530e2c7bd90219849b000000000007ab00ab6a53006319f281000000000007ab00515165ac5200000000", "6a", 0, -2039568300, "62094f98234a05bf1b9c7078c5275ed085656856fb5bdfd1b48090e86b53dd85"], + ["eb2bc00604815b9ced1c604960d54beea4a3a74b5c0035d4a8b6bfec5d0c9108f143c0e99a0000000000ffffffff22645b6e8da5f11d90e5130fd0a0df8cf79829b2647957471d881c2372c527d8010000000263acffffffff1179dbaf17404109f706ae27ad7ba61e860346f63f0c81cb235d2b05d14f2c1003000000025300264cb23aaffdc4d6fa8ec0bb94eff3a2e50a83418a8e9473a16aaa4ef8b855625ed77ef40100000003ac51acf8414ad404dd328901000000000652526500006ab6261c000000000002526a72a4c9020000000006ac526500656586d2e7000000000006656aac00ac5279cd8908", "51", 1, -399279379, "d37532e7b2b8e7db5c7c534197600397ebcc15a750e3af07a3e2d2e4f84b024f"], + ["dc9fe6a8038b84209bbdae5d848e8c040433237f415437592907aa798bf30d9dbbddf0ff85010000000153ffffffff23269a7ea29fcf788db483b8d4c4b35669e582608644259e950ce152b0fa6e050000000003acababffffffff65de94857897ae9ea3aa0b938ba6e5adf374d48469922d2b36dbb83d3b8c8261010000000452ac5200ffffffff02856e9b0300000000026a51980c8e02000000000365ab63d2648db4", "00ab0051ac526565", 2, 1562581941, "5cef9d8e18a2d5a70448f17b465d411a19dab78f0ddf1672ffd518b188f52433"], + ["eba8b0de04ac276293c272d0d3636e81400b1aaa60db5f11561480592f99e6f6fa13ad387002000000070053acab536563bebb23d66fd17d98271b182019864a90e60a54f5a615e40b643a54f8408fa8512cfac927030000000963ac6a6aabac65ababffffffff890a72192bc01255058314f376bab1dc72b5fea104c154a15d6faee75dfa5dba020000000100592b3559b0085387ac7575c05b29b1f35d9a2c26a0c27903cc0f43e7e6e37d5a60d8305a030000000252abffffffff0126518f05000000000000000000", "005300635252635351", 1, 664344756, "26dc2cba4bd5334e5c0b3a520b44cc1640c6b923d10e576062f1197171724097"], + ["91bd040802c92f6fe97411b159df2cd60fb9571764b001f31657f2d616964637605875c2a901000000055263006a65ffffffff3651df372645f50cf4e32fdf6e61c766e912e16335db2b40c5d52fe89eefe7cd00000000040065ab65ffffffff03ca8625030000000009ab51ac63530052ab52c6bf14020000000006ab00ab52005167d270000000000007ab53525351636a00000000", "5151ab63005252ac", 1, 1983087664, "3e5aa0200248d8d86ede3b315ca1b857018b89184a4bd023bd88ab12e499f6e1"], + ["185cda1a01ecf7a8a8c28466725b60431545fc7a3367ab68e34d486e8ea85ee3128e0d8384000000000465ac63abec88b7bb031c56eb04000000000965636a51005252006a7c78d5040000000007acac63abac51ac3024a40500000000086300526a51abac51464c0e8c", "0065535265515352", 0, 1594558917, "b5280b9610c0625a65b36a8c2402a95019a7bbb9dd3de77f7c3cb1d82c3263ba"], + ["a9531f07034091668b65fea8b1a79700d586ac9e2f42ca0455a26abe41f9e1805d009a0f5702000000096365516365ac5263ab3619bac643a9e28ee47855118cf80c3a74531cdf198835d206d0fe41804e325a4f9f105e03000000016a58e3ab0d46375d98994daf0fa7c600d2bb4669e726fca0e3a3f21ea0d9e777396740328f0100000008636a5363ab526a538d3ea7700304cb66030000000007515163ab52ab510184030500000000085353636565ac0051d9cff402000000000751ab52ab5352abf0e36254", "ab5353ac5365acab", 2, 1633101834, "04c9ef72f33668ca449c0415becf62cc0b8e0c75f9c8813852d42a58acf107c8"], + ["6b5ecc7903fe0ba37ea551df92a59e12bad0a3065846ba69179a8f4a741a2b4fcf679aac810200000004535263529a3d343293b99ab425e7ef8529549d84f480bcd92472bab972ea380a302128ae14dfcd0200000000025163ffffffff24636e4545cab9bf87009119b7fc3ec4d5ee9e206b90f35d1df8a563b6cd097a010000000852abac53005153abc64467860406e832020000000009526300006a53ac6352ac1395010000000002ac53b117f300000000000863655351acab00651edf02030000000008ab51ac6353535252628ef71d", "ab63ab6a52ac526563", 2, -1559697626, "8f07ece7d65e509f1e0780584ef8d271c1c61a13b10335d5faafc7afc8b5b8ec"], + ["92c9fb780138abc472e589d5b59489303f234acc838ca66ffcdf0164517a8679bb622a4267020000000153468e373d04de03fa020000000009ac006a5265ab5163006af649050000000007515153006a00658ceb59030000000001ac36afa0020000000009ab53006351ab51000000000000", "6a", 0, 2059357502, "e2358dfb51831ee81d7b0bc602a65287d6cd2dbfacf55106e2bf597e22a4b573"], + ["6f62138301436f33a00b84a26a0457ccbfc0f82403288b9cbae39986b34357cb2ff9b889b302000000045253655335a7ff6701bac9960400000000086552ab656352635200000000", "6aac51", 0, 1444414211, "502a2435fd02898d2ff3ab08a3c19078414b32ec9b73d64a944834efc9dae10c"], + ["9981143a040a88c2484ac3abe053849e72d04862120f424f373753161997dd40505dcb4783030000000700536365536565a2e10da3f4b1c1ad049d97b33f0ae0ea48c5d7c30cc8810e144ad93be97789706a5ead180100000003636a00ffffffffbdcbac84c4bcc87f03d0ad83fbe13b369d7e42ddb3aecf40870a37e814ad8bb5010000000963536a5100636a53abffffffff883609905a80e34202101544f69b58a0b4576fb7391e12a769f890eef90ffb72020000000651656352526affffffff04243660000000000004ab5352534a9ce001000000000863656363ab6a53652df19d030000000003ac65acedc51700000000000000000000", "ac6300acac", 2, 293672388, "7ba99b289c04718a7283f150d831175ed6303081e191a0608ea81f78926c5bdf"], + ["a2bb630b01989bc5d643f2da4fb9b55c0cdf846ba06d1dbe372893024dbbe5b9b8a1900af802000000055265ac63aca7a68d2f04916c74010000000003abac007077f0040000000001007d4127010000000005ac516aac000f31e8030000000000571079c9", "65ab0051ac", 0, -1103627693, "92d53b4390262e6b288e8a32e0cfc36cd5adfdfabfe96c7bfd4a19d65e233761"], + ["49f7d0b6037bba276e910ad3cd74966c7b3bc197ffbcfefd6108d6587006947e97789835ea0300000008526a52006a650053ffffffff8d7b6c07cd10f4c4010eac7946f61aff7fb5f3920bdf3467e939e58a1d4100ab03000000076aac63ac535351ffffffff8f48c3ba2d52ad67fbcdc90d8778f3c8a3894e3c35b9730562d7176b81af23c80100000003ab5265ffffffff0301e3ef0300000000046a525353e899ac0500000000075153ab6a65abac259bea0400000000007b739972", "53516aacac6aac", 1, 955403557, "5d366a7f4346ae18aeb7c9fc4dab5af71173184aa20ed22fcb4ea8511ad25449"], + ["58a4fed801fbd8d92db9dfcb2e26b6ff10b120204243fee954d7dcb3b4b9b53380e7bb8fb60100000003006351ffffffff02a0795b050000000006536351ac6aac2718d00200000000075151acabac515354d21ba1", "005363515351", 0, -1322430665, "bbee941bbad950424bf40e3623457db47f60ed29deaa43c99dec702317cb3326"], + ["32765a0b02e455793d9ce530e9f6a44bcbc612e893a875b5da61d822dc56d8245166c398b403000000085353abac6300006a6bdee2a78d0d0b6a5ea666eed70b9bfea99d1d612ba3878f615c4da10d4a521cba27155002000000035363abffffffff043cd42401000000000551656a53653685320100000000030000511881bc0500000000065165abab636a20169f010000000007acab656aac63acdb0706a8", "65ac53ab53", 0, 1936499176, "5c5a9c3a5de7dc7a82bc171c9d3505913b8bcc450bc8b2d11772c1a1d781210b"], + ["17fad0d303da0d764fedf9f2887a91ea625331b28704940f41e39adf3903d8e75683ef6d46020000000151ffffffffff376eea4e880bcf0f03d33999104aafed2b3daf4907950bb06496af6b51720a020000000900636a63525253525196521684f3b08497bad2c660b00b43a6a517edc58217876eb5e478aa3b5fda0f29ee1bea00000000046aacab6affffffff03dde8e2050000000007ac5365ac51516a14772e000000000005630000abacbbb360010000000006ab5251ab656a50f180f0", "0053", 0, -1043701251, "a3bdf8771c8990971bff9b4e7d59b7829b067ed0b8d3ac1ec203429811384668"], + ["236c32850300045e292c84ede2b9ab5733ba08315a2bb09ab234c4b4e8894808edbdac0d3b020000000653635363abacffffffffd3f696bb31fdd18a72f3fc2bb9ae54b416a253fc37c1a0f0180b52d35bad49440100000004650053abffffffffa85c75a2406d82a93b12e555b66641c1896a4e83ae41ef1038218311e38ace060200000006abab006a51ac104b5e6701e2842c04000000000800630051ac0000ab00000000", "ab63ac6a516a", 1, -1709887524, "8c29ea8ef60c5a927fccdba8ea385db6b6b84d98e891db45f5d4ee3148d3f5a7"], + ["b78d5fd601345f3100af494cdf447e7d4076179f940035b0ebe8962587d4d0c9c6c9fc34ee0300000003516a6affffffff03dc5c890100000000085353ac53ac6a52534ac941040000000007ac63656a51ab51d4266b0100000000036aacac70731f2d", "005351ab0053", 0, -1789071265, "d5f1c1cb35956a5711d67bfb4cedbc67e77c089b912d688ad440ff735adb390d"], + ["5a2257df03554550b774e677f348939b37f8e765a212e566ce6b60b4ea8fed4c9504b7f7d1000000000653655265ab5258b67bb931df15b041177cf9599b0604160b79e30f3d7a594e7826bae2c29700f6d8f8f40300000005515300ac6a159cf8808a41f504eb5c2e0e8a9279f3801a5b5d7bc6a70515fbf1c5edc875bb4c9ffac500000000050063510052ffffffff0422a90105000000000965006a650000516a006417d2020000000006526363ab00524d969d0100000000035153acc4f077040000000005ac5200636500000000", "6a52", 1, -1482463464, "37b794b05d0687c9b93d5917ab068f6b2f0e38406ff04e7154d104fc1fb14cdc"], + ["e0032ad601269154b3fa72d3888a3151da0aed32fb2e1a15b3ae7bee57c3ddcffff76a1321010000000100110d93ae03f5bd080100000000075263516a6551002871e60100000000046a005252eaa753040000000004ab6aab526e325c71", "630052", 0, -1857873018, "ea117348e94de86381bb8ad1c7f93b8c623f0272104341701bb54e6cb433596c"], + ["014b2a5304d46764817aca180dca50f5ab25f2e0d5749f21bb74a2f8bf6b8b7b3fa8189cb7030000000965ac5165ab6a51ac6360ecd91e8abc7e700a4c36c1a708a494c94bb20cbe695c408543146566ab22be43beae9103000000045163ab00ffffffffffa48066012829629a9ec06ccd4905a05df0e2b745b966f6a269c9c8e13451fc00000000026565ffffffffc40ccadc21e65fe8a4b1e072f4994738ccaf4881ae6fede2a2844d7da4d199ab02000000065152ab536aabffffffff01b6e054030000000004515352ab3e063432", "", 0, 1056459916, "a7aff48f3b8aeb7a4bfe2e6017c80a84168487a69b69e46681e0d0d8e63a84b6"], + ["c4ef04c103c5dde65410fced19bf6a569549ecf01ceb0db4867db11f2a3a3eef0320c9e8e001000000085100536a53516aabffffffff2a0354fa5bd96f1e28835ffe30f52e19bd7d5150c687d255021a6bec03cf4cfd03000000056a006300514900c5b01d3d4ae1b97370ff1155b9dd0510e198d266c356d6168109c54c11b4c283dca00300000002ababffffffff02e19e3003000000000451655351fa5c0003000000000163ef1fc64b", "51636a51ab630065", 1, -1754709177, "0a281172d306b6a32e166e6fb2a2cc52c505c5d60ea448e9ba7029aa0a2211e1"], + ["29083fe00398bd2bb76ceb178f22c51b49b5c029336a51357442ed1bac35b67e1ae6fdf13100000000066a6500acab51ffffffffe4ca45c9dc84fd2c9c47c7281575c2ba4bf33b0b45c7eca8a2a483f9e3ebe4b3010000000200abffffffffdf47ad2b8c263fafb1e3908158b18146357c3a6e0832f718cd464518a219d18303000000096352ac656351ac0052daddfb3b0231c36f00000000000400526a5275c7e0020000000001ab00000000", "acab536aac52", 2, 300802386, "82ebc07b16cff0077e9c1a279373185b3494e39d08fd3194aae6a4a019377509"], + ["1201ab5d04f89f07c0077abd009762e59db4bb0d86048383ba9e1dad2c9c2ad96ef660e6d00200000007ab6a65ac5200652466fa5143ab13d55886b6cdc3d0f226f47ec1c3020c1c6e32602cd3428aceab544ef43e00000000086a6a6a526a6a5263ffffffffd5be0b0be13ab75001243749c839d779716f46687e2e9978bd6c9e2fe457ee48020000000365abab1e1bac0f72005cf638f71a3df2e3bbc0fa35bf00f32d9c7dc9c39a5e8909f7d53170c8ae0200000008ab6a51516363516affffffff02f0a6210500000000036300ac867356010000000009acab65ac6353536a659356d367", "ac53535252", 0, 917543338, "418acc156c2bc76a5d7baa58db29f1b4cf6c266c9222ed167ef5b4d47f0e0f41"], + ["344fa11e01c19c4dd232c77742f0dd0aeb3695f18f76da627628741d0ee362b0ea1fb3a2180200000007635151005100529bab25af01937c1f0500000000055153ab53656e7630af", "6351005163ac51", 0, -629732125, "228ca52a0a376fe0527a61cfa8da6d7baf87486bba92d49dfd3899cac8a1034f"], + ["b2fda1950191358a2b855f5626a0ebc830ab625bea7480f09f9cd3b388102e35c0f303124c030000000565ac65ab53ffffffff03f9c5ec04000000000765ab51516551650e2b9f0500000000045365525284e8f6040000000001ac00000000", "ac51655253", 0, 1433027632, "d2fa7e13c34cecda5105156bd2424c9b84ee0a07162642b0706f83243ff811a8"], + ["a4a6bbd201aa5d882957ac94f2c74d4747ae32d69fdc765add4acc2b68abd1bdb8ee333d6e0300000008516a6552515152abffffffff02c353cb040000000007ac6351ab51536588bd320500000000066552525253ac00000000", "", 0, 1702060459, "499da7d74032388f820645191ac3c8d20f9dba8e8ded7fa3a5401ea2942392a1"], + ["584e8d6c035a6b2f9dac2791b980a485994bf38e876d9dda9b77ad156eee02fa39e19224a60300000003ab636529db326cc8686a339b79ab6b6e82794a18e0aabc19d9ad13f31dee9d7aad8eff38288588020000000452530052ffffffff09a41f07755c16cea1c7e193c765807d18cadddca6ec1c2ed7f5dcdca99e90e80000000001acffffffff01cba62305000000000451ac63acccdf1f67", "ab536a6363", 2, -27393461, "1125645b49202dca2df2d76dae51877387903a096a9d3f66b5ac80e042c95788"], + ["83a583d204d926f2ee587a83dd526cf1e25a44bb668e45370798f91a2907d184f7cddcbbc7030000000700ab6565536a539f71d3776300dffdfa0cdd1c3784c9a1f773e34041ca400193612341a9c42df64e3f550e01000000050052515251ffffffff52dab2034ab0648553a1bb8fc4e924b2c89ed97c18dfc8a63e248b454035564b01000000015139ab54708c7d4d2c2886290f08a5221cf69592a810fd1979d7b63d35c271961e710424fd0300000005ac65ac5251ffffffff01168f7c030000000000a85e5fb0", "6a536353656a00", 0, 179595345, "5350a31ac954a0b49931239d0ecafbf34d035a537fd0c545816b8fdc355e9961"], + ["ffd35d51042f290108fcb6ea49a560ba0a6560f9181da7453a55dfdbdfe672dc800b39e7320200000006630065516a65f2166db2e3827f44457e86dddfd27a8af3a19074e216348daa0204717d61825f198ec0030100000006ab51abab00abffffffffdf41807adb7dff7db9f14d95fd6dc4e65f8402c002d009a3f1ddedf6f4895fc8030000000500ab006a65a5a848345052f860620abd5fcd074195548ce3bd0839fa9ad8642ed80627bf43a0d47dbd010000000765ab006a656a53b38cdd6502a186da05000000000765ab00ab006a53527c0e0100000000085365ab51acacac52534bd1b1", "6a635253ac0000", 0, 1095082149, "3c05473a816621a3613f0e903faa1a1e44891dd40862b029e41fc520776350fa"], + ["6c9a4b98013c8f1cae1b1df9f0f2de518d0c50206a0ab871603ac682155504c0e0ce946f460100000000ffffffff04e9266305000000000753535100ac6aacded39e04000000000365ac6ab93ccd010000000002515397bf3d050000000003ab636300000000", "63520052ac656353", 0, -352633155, "936eff8cdfd771be24124da87c7b24feb48da7cbc2c25fb5ba13d1a23255d902"], + ["e01dc7f0021dc07928906b2946ca3e9ac95f14ad4026887101e2d722c26982c27dc2b59fdb0000000005ac5200516ab5a31ffadcbe74957a5a3f97d7f1475cc6423fc6dbc4f96471bd44c70cc736e7dec0d1ea020000000951636a526a52abac53ffffffff04bc2edd05000000000252ab528c7b02000000000952ac51526500525353324820040000000002005380c713000000000009630065ab00ac525252451bbb48", "53ab65ac", 0, -552384418, "69c0b30f4c630a6c878fde6ea6b74dae94f4eb3bcfbde2dc3649e1a9ada00757"], + ["009046a1023f266d0113556d604931374d7932b4d6a7952d08fbd9c9b87cbd83f4f4c178b4030000000452ac526346e73b438c4516c60edd5488023131f07acb5f9ea1540b3e84de92f4e3c432289781ea4900000000046500655357dfd6da02baef910100000000026a007d101703000000000800516500abacac5100000000", "6aab6553ac", 0, -802456605, "f8757fbb4448ca34e0cd41b997685b37238d331e70316659a9cc9087d116169d"], + ["df76ec0801a3fcf3d18862c5f686b878266dd5083f16cf655facab888b4cb3123b3ce5db7e01000000010010e7ac6a0233c83803000000000365ac51faf14a040000000004ac51655100000000", "6353acab", 0, 15705861, "e7d873aa079a19ec712b269a37d2670f60d8cb334c4f97e2e3fd10eeb8ee5f5e"], + ["828fd3e0031084051ccef9cfdd97fae4d9cc50c0dae36bd22a3ff332881f17e9756c3e288e0200000004ab535363961a2ccccaf0218ec6a16ba0c1d8b5e93cfd025c95b6e72bc629ec0a3f47da7a4c396dad01000000025353ffffffff19ad28747fb32b4caf7b5dbd9b2da5a264bedb6c86d3a4805cd294ae53a86ac40200000009ab53535351ab6551abffffffff04a41650030000000005656aab6aab8331a304000000000700516365ac516a0d2a47010000000007abac516353abacdebc19040000000006ab5300636a6300000000", "51ab52ab53ac52", 0, 1866105980, "311094b4d73e31aefc77e97859ef07ca2f07a7b7e4d7def80c69d3f5d58527e5"], + ["c4b80f850323022205b3e1582f1ed097911a81be593471a8dce93d5c3a7bded92ef6c7c1260100000002006affffffff70294d62f37c3da7c5eae5d67dce6e1b28fedd7316d03f4f48e1829f78a88ae801000000096a5200530000516351f6b7b544f7c39189d3a2106ca58ce4130605328ce7795204be592a90acd81bef517d6f170200000000ffffffff012ab8080000000000075100006365006335454c1e", "53ac6a536aacac", 0, -1124103895, "06277201504e6bf8b8c94136fad81b6e3dadacb9d4a2c21a8e10017bfa929e0e"], + ["8ab69ed50351b47b6e04ac05e12320984a63801716739ed7a940b3429c9c9fed44d3398ad40300000006536a516a52638171ef3a46a2adb8025a4884b453889bc457d63499971307a7e834b0e76eec69c943038a0300000000ffffffff566bb96f94904ed8d43d9d44a4a6301073cef2c011bf5a12a89bedbaa03e4724030000000265acb606affd01edea38050000000008515252516aacac6300000000", "65000000006365ac53", 0, -1338942849, "7912573937824058103cb921a59a7f910a854bf2682f4116a393a2045045a8c3"], + ["2484991e047f1cf3cfe38eab071f915fe86ebd45d111463b315217bf9481daf0e0d10902a402000000006e71a424eb1347ffa638363604c0d5eccbc90447ff371e000bf52fc743ec832851bb564a0100000001abffffffffef7d014fad3ae7927948edbbb3afe247c1bcbe7c4c8f5d6cf97c799696412612020000000851536a5353006a001dfee0d7a0dd46ada63b925709e141863f7338f34f7aebde85d39268ae21b77c3068c01d0000000008535151ab00636563ffffffff018478070200000000095200635365ac52ab5341b08cd3", "", 3, 265623923, "24cb420a53b4f8bb477f7cbb293caabfd2fc47cc400ce37dbbab07f92d3a9575"], + ["54839ef9026f65db30fc9cfcb71f5f84d7bb3c48731ab9d63351a1b3c7bc1e7da22bbd508e0300000000442ad138f170e446d427d1f64040016032f36d8325c3b2f7a4078766bdd8fb106e52e8d20000000003656500ffffffff02219aa101000000000851ababac52ab00659646bd02000000000552acacabac24c394a5", "ac", 0, 906807497, "69264faadcd1a581f7000570a239a0a26b82f2ad40374c5b9c1f58730514de96"], + ["5036d7080434eb4eef93efda86b9131b0b4c6a0c421e1e5feb099a28ff9dd8477728639f77030000000951516aab535152ab5391429be9cce85d9f3d358c5605cf8c3666f034af42740e94d495e28b9aaa1001ba0c87580300000008006552ab00ab006affffffffd838978e10c0c78f1cd0a0830d6815f38cdcc631408649c32a25170099669daa0000000002acab8984227e804ad268b5b367285edcdf102d382d027789250a2c0641892b480c21bf84e3fb0100000000b518041e023d8653010000000001004040fb0100000000080051ac5200636a6300000000", "52ac", 0, 366357656, "bd0e88829afa6bdc1e192bb8b2d9d14db69298a4d81d464cbd34df0302c634c6"], + ["9ad5ccf503fa4facf6a27b538bc910cce83c118d6dfd82f3fb1b8ae364a1aff4dcefabd38f03000000096365655263ac655300807c48130c5937190a996105a69a8eba585e0bd32fadfc57d24029cbed6446d30ebc1f100100000004000053650f0ccfca1356768df7f9210cbf078a53c72e0712736d9a7a238e0115faac0ca383f219d0010000000600ab536552002799982b0221b8280000000000000c41320000000000086552ac6365636a6595f233a3", "6a5152", 2, 553208588, "f99c29a79f1d73d2a69c59abbb5798e987639e36d4c44125d8dc78a94ddcfb13"], + ["669538a204047214ce058aed6a07ca5ad4866c821c41ac1642c7d63ed0054f84677077a84f030000000853abacab6a655353ffffffff70c2a071c115282924e3cb678b13800c1d29b6a028b3c989a598c491bc7c76c5030000000752ac52ac5163ac80420e8a6e43d39af0163271580df6b936237f15de998e9589ec39fe717553d415ac02a4030000000463635153184ad8a5a4e69a8969f71288c331aff3c2b7d1b677d2ebafad47234840454b624bf7ac1d03000000056a63abab63df38c24a02fbc63a040000000002ab535ec3dc050000000002536500000000", "635153", 3, -190399351, "9615541884dfb1feeb08073a6a6aa73ef694bc5076e52187fdf4138a369f94d9"], + ["a7f139e502af5894be88158853b7cbea49ba08417fbbca876ca6614b5a41432be34499987b000000000765635165abac63ffffffff8b8d70e96c7f54eb70da0229b548ced438e1ca2ba5ddd648a027f72277ee1efc0100000001abffffffff044f2c4204000000000165e93f550100000000050000526a6a94550304000000000365536aadc21c0300000000016300000000", "6aacac6363ab5265ac", 1, 2143189425, "6e3f97955490d93d6a107c18d7fe402f1cada79993bb0ff0d096357261b3a724"], + ["3b94438f0366f9f53579a9989b86a95d134256ce271da63ca7cd16f7dd5e4bffa17d35133f010000000100ffffffff1aaad0c721e06ec00d07e61a84fb6dc840b9a968002ce7e142f943f06fd143a10100000008535151ac51ab0053b68b8e9c672daf66041332163e04db3f6048534bd718e1940b3fc3811c4eef5b7a56888b01000000001d58e38c012e38e700000000000852ab53ac6365536a00000000", "ab655352", 1, -935223304, "b3b336de141d4f071313a2207b2a0c7cf54a070dd8d234a511b7f1d13e23b0c4"], + ["e5dca8a20456de0a67e185fa6ea94085ceae478d2c15c73cb931a500db3a1b6735dd1649ec0200000005ab536aabab32d11bbdcb81361202681df06a6b824b12b5cb40bb1a672cf9af8f2a836e4d95b7839327030000000951005365ab65abacabb345085932939eef0c724adef8a57f9e1bf5813852d957c039b6a12d9c2f201ea520fb030000000009ac5352005165acac6a5efc6072f1a421dc7dc714fc6368f6d763a5d76d0278b95fc0503b9268ccfadb48213a2500000000026a53ffffffff039ee1c4020000000009ac5353ab6353535163184018000000000005655265526a9a4a8a050000000001ac00000000", "65ab53ab6a00ab6553", 2, 1902561212, "7928ae8e86c0b0cad1b2c120ea313087437974382ee6d46443ca5ac3f5878b88"], + ["972128b904e7b673517e96e98d80c0c8ceceae76e2f5c126d63da77ffd7893fb53308bb2da0300000006ac6552ab52acffffffff4cac767c797d297c079a93d06dc8569f016b4bf7a7d79b605c526e1d36a40e2202000000095365ab636aac6a6a6a69928d2eddc836133a690cfb72ec2d3115bf50fb3b0d10708fa5d2ebb09b4810c426a1db01000000060052526300001e8e89585da7e77b2dd2e30625887f0660accdf29e53a614d23cf698e6fc8ab03310e87700000000076a520051acac6555231ddb0330ec2d03000000000200abfaf457040000000004ab6a6352bdc42400000000000153d6dd2f04", "", 0, 209234698, "4a92fec1eb03f5bd754ee9bfd70707dc4420cc13737374f4675f48529be518e4"], + ["1fb4085b022c6cfb848f8af7ba3ba8d21bd23ffa9f0bfd181cb68bcaaf2074e66d4974a31602000000090000006a6a6500acab6c12c07d9f3dbd2d93295c3a49e3757119767097e7fd5371f7d1ba9ba32f1a67a5a426f00000000000ffffffff018fd2fc04000000000363ac5100000000", "65ab006a6aab526a", 0, 1431502299, "8b7dd0ff12ca0d8f4dbf9abf0abba00e897c2f6fd3b92c79f5f6a534e0b33b32"], + ["5374f0c603d727f63006078bd6c3dce48bd5d0a4b6ea00a47e5832292d86af258ea0825c260000000009655353636352526a6af2221067297d42a9f8933dfe07f61a574048ff9d3a44a3535cd8eb7de79fb7c45b6f47320200000003ac006affffffff153d917c447d367e75693c5591e0abf4c94bbdd88a98ab8ad7f75bfe69a08c470200000005ac65516365ffffffff037b5b7b000000000001515dc4d904000000000004bb26010000000004536a6aac00000000", "516552516352ac", 2, 328538756, "8bb7a0129eaf4b8fc23e911c531b9b7637a21ab11a246352c6c053ff6e93fcb6"], + ["c441132102cc82101b6f31c1025066ab089f28108c95f18fa67db179610247086350c163bd010000000651525263ab00ffffffff9b8d56b1f16746f075249b215bdb3516cbbe190fef6292c75b1ad8a8988897c3000000000751ab6553abab00ffffffff02f9078b000000000009ab0053ac51ac00ab51c0422105000000000651006563525200000000", "ac51", 0, -197051790, "55acd8293ed0be6792150a3d7ced6c5ccd153ca7daf09cee035c1b0dac92bb96"], + ["ab82ad3b04545bd86b3bb937eb1af304d3ef1a6d1343ed809b4346cafb79b7297c09e1648202000000086351ac5200535353ffffffff95d32795bbaaf5977a81c2128a9ec0b3c7551b9b1c3d952876fcb423b2dfb9e80000000005515363acac47a7d050ec1a603627ce6cd606b3af314fa7964abcc579d92e19c7aba00cf6c3090d6d4601000000056a516551633e794768bfe39277ebc0db18b5afb5f0c8117dde9b4dfd5697e9027210eca76a9be20d63000000000700520063ab6aacffffffff01ec2ddc050000000008ac52ac65ac65ac5100000000", "536300abab", 1, -2070209841, "b362da5634f20be7267de78b545d81773d711b82fe9310f23cd0414a8280801d"], + ["8bff9d170419fa6d556c65fa227a185fe066efc1decf8a1c490bc5cbb9f742d68da2ab7f320100000007ab000053525365a7a43a80ab9593b9e8b6130a7849603b14b5c9397a190008d89d362250c3a2257504eb810200000007acabacac00ab51ee141be418f003e75b127fd3883dbf4e8c3f6cd05ca4afcaac52edd25dd3027ae70a62a00000000008ac52526a5200536affffffffb8058f4e1d7f220a1d1fa17e96d81dfb9a304a2de4e004250c9a576963a586ae0300000005abacac5363b9bc856c039c01d804000000000951656aac53005365acb0724e00000000000565abab63acea7c7a0000000000036a00ac00000000", "6565", 1, -1349282084, "2b822737c2affeefae13451d7c9db22ff98e06490005aba57013f6b9bbc97250"], + ["0e1633b4041c50f656e882a53fde964e7f0c853b0ada0964fc89ae124a2b7ffc5bc97ea6230100000006ac6aacacabacffffffff2e35f4dfcad2d53ea1c8ada8041d13ea6c65880860d96a14835b025f76b1fbd9000000000351515121270867ef6bf63a91adbaf790a43465c61a096acc5a776b8e5215d4e5cd1492e611f761000000000600ac6aab5265ffffffff63b5fc39bcac83ca80ac36124abafc5caee608f9f63a12479b68473bd4bae769000000000965ac52acac5263acabffffffff0163153e020000000008ab005165ab65515300000000", "6a6aac00", 0, -968477862, "20732d5073805419f275c53784e78db45e53332ee618a9fcf60a3417a6e2ca69"], + ["2b052c24022369e956a8d318e38780ef73b487ba6a8f674a56bdb80a9a63634c6110fb5154010000000251acffffffff48fe138fb7fdaa014d67044bc05940f4127e70c113c6744fbd13f8d51d45143e01000000005710db3804e01aa9030000000008acac6a516a5152abfd55aa01000000000751ab510000ac636d6026010000000000b97da9000000000000fddf3b53", "006552", 0, 595461670, "685d67d84755906d67a007a7d4fa311519467b9bdc6a351913246a41e082a29f"], + ["073bc856015245f03b2ea2da62ccedc44ecb99e4250c7042f596bcb23b294c9dc92cfceb6b02000000095163abab52abab636afe292fb303b7c3f001000000000352636af3c49502000000000400ac6a535851850100000000066aac6553ab6500000000", "ab6aab53006aab52", 0, 247114317, "123916c6485cf23bfea95654a8815fbf04ce4d21a3b7f862805c241472906658"], + ["7888b71403f6d522e414d4ca2e12786247acf3e78f1918f6d727d081a79813d129ee8befce0100000009ab516a6353ab6365abffffffff4a882791bf6400fda7a8209fb2c83c6eef51831bdf0f5dacde648859090797ec030000000153ffffffffbb08957d59fa15303b681bad19ccf670d7d913697a2f4f51584bf85fcf91f1f30200000008526565ac52ac63acffffffff0227c0e8050000000001ac361dc801000000000800515165ab00ab0000000000", "656a", 2, 1869281295, "f43378a0b7822ad672773944884e866d7a46579ee34f9afc17b20afc1f6cf197"], + ["cc4dda57047bd0ca6806243a6a4b108f7ced43d8042a1acaa28083c9160911cf47eab910c40200000007526a0000ab6a63e4154e581fcf52567836c9a455e8b41b162a78c85906ccc1c2b2b300b4c69caaaa2ba0230300000008ab5152ac5100ab65ffffffff69696b523ed4bd41ecd4d65b4af73c9cf77edf0e066138712a8e60a04614ea1c0300000004ab6a000016c9045c7df7836e05ac4b2e397e2dd72a5708f4a8bf6d2bc36adc5af3cacefcf074b8b403000000065352ac5252acffffffff01d7e380050000000000cf4e699a", "525163656351", 1, -776533694, "ff18c5bffd086e00917c2234f880034d24e7ea2d1e1933a28973d134ca9e35d2"], + ["b7877f82019c832707a60cf14fba44cfa254d787501fdd676bd58c744f6e951dbba0b3b77f0200000009ac515263ac53525300a5a36e500148f89c0500000000085265ac6a6a65acab00000000", "6563", 0, -1785108415, "cb6e4322955af12eb29613c70e1a00ddbb559c887ba844df0bcdebed736dffbd"], + ["aeb14046045a28cc59f244c2347134d3434faaf980961019a084f7547218785a2bd03916f3000000000165f852e6104304955bda5fa0b75826ee176211acc4a78209816bbb4419feff984377b2352200000000003a94a5032df1e0d60390715b4b188c330e4bb7b995f07cdef11ced9d17ee0f60bb7ffc8e0100000002516513e343a5c1dc1c80cd4561e9dddad22391a2dbf9c8d2b6048e519343ca1925a9c6f0800a020000000665516365ac513180144a0290db27000000000006ab655151ab5138b187010000000007ab5363abac516a9e5cd98a", "53ac", 0, 478591320, "e8d89a302ae626898d4775d103867a8d9e81f4fd387af07212adab99946311ef"], + ["c9270fe004c7911b791a00999d108ce42f9f1b19ec59143f7b7b04a67400888808487bd59103000000066a0052ac6565b905e76687be2dd7723b22c5e8269bc0f2000a332a289cfc40bc0d617cfe3214a61a85a30300000007ac63ac00635251560871209f21eb0268f175b8b4a06edd0b04162a974cf8b5dada43e499a1f22380d35ede0300000000792213fc58b6342cc8100079f9f5f046fb89f2d92cf0a2cb6d07304d32d9da858757037c0000000008abab51636565516affffffff02c72a8b03000000000452acac530dfb9f05000000000096f94307", "5253ab536351", 3, 543688436, "0278adbcc476d135493ae9bdcd7b3c2002df17f2d81c17d631c50c73e546c264"], + ["57a5a04c0278c8c8e243d2df4bb716f81d41ac41e2df153e7096f5682380c4f441888d9d260300000004ab63ab6afdbe4203525dff42a7b1e628fe22bccaa5edbb34d8ab02faff198e085580ea5fcdb0c61b0000000002ac6affffffff03375e6c05000000000663ab516a6a513cb6260400000000007ca328020000000006516a636a52ab94701cc7", "0053ac5152", 0, -550925626, "b7ca991ab2e20d0158168df2d3dd842a57ab4a3b67cca8f45b07c4b7d1d11126"], + ["072b75a504ad2550c2e9a02614bc9b2a2f50b5b553af7b87c0ef07c64ddc8d8934c96d216401000000036aabaca1387242a5bcd21099b016ad6045bed7dce603472757d9822cc5f602caa4ae20414d378b02000000026a63e4ac816734acdc969538d6f70b8ab43a2589f55e0177a4dc471bdd0eb61d59f0f46f6bb801000000065351526aab52d9f2977be76a492c3a7617b7a16dc29a3b0a7618f328c2f7d4fd9bafe760dc427a5066ef000000000465635165ffffffff02c5793600000000000165296820050000000002ac6300000000", "53006a6aac0052ab", 2, 66084636, "437e89bb6f70fd2ed2feef33350b6f6483b891305e574da03e580b3efd81ae13"], + ["7e27c42d0279c1a05eeb9b9faedcc9be0cab6303bde351a19e5cbb26dd0d594b9d74f40d2b020000000200518c8689a08a01e862d5c4dcb294a2331912ff11c13785be7dce3092f154a005624970f84e0200000000500cf5a601e74c1f0000000000076aab52636a6a5200000000", "6500006a5351", 0, 449533391, "535ba819d74770d4d613ee19369001576f98837e18e1777b8246238ff2381dd0"], + ["11414de403d7f6c0135a9df01cb108c1359b8d4e105be50a3dcba5e6be595c8817217490b20000000003005263ffffffff0c6becb9c3ad301c8dcd92f5cbc07c8bed7973573806d1489316fc77a829da03030000000700005253535352ffffffff2346d74ff9e12e5111aa8779a2025981850d4bf788a48de72baa2e321e4bc9ca00000000056352acab63cc585b64045e0385050000000009ab5253ab516aacac00efa9cf0300000000065200635151acbe80330400000000070063635100ab000be159050000000007525300655300ac00000000", "51656a0051ab", 0, 683137826, "d4737f3b58f3e5081b35f36f91acde89dda00a6a09d447e516b523e7a99264d5"], + ["1c6b5f29033fc139338658237a42456123727c8430019ca25bd71c6168a9e35a2bf54538d80100000008536aac52ac6a6a52ffffffff3fb36be74036ff0c940a0247c451d923c65f826793d0ac2bb3f01ecbec8033290100000007ab000051ab6363ffffffff5d9eca0cf711685105bd060bf7a67321eaef95367acffab36ce8dedddd632ee2000000000652ac6a63ac517167319e032d26de040000000003516363dc38fb010000000000b37b00000000000006ab520051ac534baba51f", "636300ababac6563", 0, -2049129935, "3282a2ec6b8c87c9303e6060c17b421687db1bd35fbfa0345b48f2490e15b6cc"], + ["978b9dad0214cfc7ce392d74d9dcc507350dc34007d72e4125861c63071ebf2cc0a6fd4856020000000651ac6a6aab52ffffffff47f20734e3370e733f87a6edab95a7a268ae44db7a8974e255614836b22938720200000008635265ac51516553ffffffff0137b2560100000000035252ac2f3363e9", "006aab6352", 1, 2014249801, "55611a5fb1483bce4c14c33ed15198130e788b72cd8929b2ceef4dd68b1806bf"], + ["442f1c8703ab39876153c241ab3d69f432ba6db4732bea5002be45c8ca10c3a2356fe0e9590300000001accb2b679cab7c58a660cb6d4b3452c21cd7251a1b77a52c300f655f5baeb6fa27ff5b79880300000003005252e5ccf55712bc8ed6179f6726f8a78f3018a7a0391594b7e286ef5ee99efdcde302a102cc0200000009006352526351536a63ffffffff04443f63030000000006536a63ab63651405fb020000000009ac535351525300ab6a9f172b000000000004ab535263ad5c50050000000008656a65ab630000ac00000000", "65636aab006552", 2, 2125838294, "b3ff10f21e71ebc8b25fe058c4074c42f08617e0dcc03f9e75d20539d3242644"], + ["2b3470dd028083910117f86614cdcfb459ee56d876572510be4df24c72e8f58c70d5f5948b03000000066aab65635265da2c3aac9d42c9baafd4b655c2f3efc181784d8cba5418e053482132ee798408ba43ccf90300000000ffffffff047dda4703000000000765516a52ac53009384a603000000000651636a63ab6a8cf57a03000000000352ab6a8cf6a405000000000952636a6a6565525100661e09cb", "ac520063ac6a6a52", 1, 1405647183, "9b360c3310d55c845ef537125662b9fe56840c72136891274e9fedfef56f9bb5"], + ["d74282b501be95d3c19a5d9da3d49c8a88a7049c573f3788f2c42fc6fa594f59715560b9b00000000009655353525265ac52ac9772121f028f8303030000000003510065af5f47040000000007ac516a6551630000000000", "acab53006363ac", 0, -1113209770, "2f482b97178f17286f693796a756f4d7bd2dfcdbecd4142528eec1c7a3e5101a"], + ["3a5644a9010f199f253f858d65782d3caec0ac64c3262b56893022b9796086275c9d4d097b02000000009d168f7603a67b30050000000007ac51536a0053acd9d88a050000000007655363535263ab3cf1f403000000000352ac6a00000000", "005363536565acac6a", 0, -1383947195, "6390ab0963cf611e0cea35a71dc958b494b084e6fd71d22217fdc5524787ade6"], + ["67b3cc43049d13007485a8133b90d94648bcf30e83ba174f5486ab42c9107c69c5530c5e1f0000000003005100ffffffff9870ebb65c14263282ea8d41e4f4f40df16b565c2cf86f1d22a9494cad03a67f01000000016a5a121bee5e359da548e808ae1ad6dfccae7c67cbb8898d811638a1f455a671e822f228ef030000000151c1fcc9f9825f27c0dde27ea709da62a80a2ff9f6b1b86a5874c50d6c37d39ae31fb6c8a0030000000163553b8786020ca74a00000000000665635153ab5275c0760000000000020052e659b05d", "636aab6a6a", 0, -342795451, "f77c3322c97b1681c17b1eba461fa27b07e04c1534e8aaf735a49cab72c7c2e2"], + ["bda1ff6804a3c228b7a12799a4c20917301dd501c67847d35da497533a606701ad31bf9d5e0300000001ac16a6c5d03cf516cd7364e4cbbf5aeccd62f8fd03cb6675883a0636a7daeb650423cb1291010000000500656553ac4a63c30b6a835606909c9efbae1b2597e9db020c5ecfc0642da6dc583fba4e84167539a8020000000865525353515200acffffffff990807720a5803c305b7da08a9f24b92abe343c42ac9e917a84e1f335aad785d00000000026a52ffffffff04981f20030000000001ab8c762200000000000253ab690b9605000000000151ce88b301000000000753526a6a51006500000000", "000052ac52530000", 1, -1809193140, "5299b0fb7fc16f40a5d6b337e71fcd1eb04d2600aefd22c06fe9c71fe0b0ba54"], + ["2ead28ff0243b3ab285e5d1067f0ec8724224402b21b9cef9be962a8b0d153d401be99bbee0000000004ac635153ffffffff6985987b7c1360c9fa8406dd6e0a61141709f0d5195f946da55ed83be4e3895301000000020053ffffffff016503d20500000000085251ac6a65656a6a00000000", "51abab", 1, 1723793403, "67483ee62516be17a2431a163e96fd88a08ff2ce8634a52e42c1bc04e30f3f8a"], + ["db4904e6026b6dd8d898f278c6428a176410d1ffbde75a4fa37cda12263108ccd4ca6137440100000007656a0000515263ffffffff1db7d5005c1c40da0ed17b74cf6b2a6ee2c33c9e0bacda76c0da2017dcac2fc70200000004abab6a53ffffffff0454cf2103000000000153463aef000000000009ab6a630065ab52636387e0ed050000000000e8d16f05000000000352ac63e4521b22", "", 1, 1027042424, "48315a95e49277ab6a2d561ee4626820b7bab919eea372b6bf4e9931ab221d04"], + ["dca31ad10461ead74751e83d9a81dcee08db778d3d79ad9a6d079cfdb93919ac1b0b61871102000000086500525365ab51ac7f7e9aed78e1ef8d213d40a1c50145403d196019985c837ffe83836222fe3e5955e177e70100000006525152525300ffffffff5e98482883cc08a6fe946f674cca479822f0576a43bf4113de9cbf414ca628060100000006ac53516a5253ffffffff07490b0b898198ec16c23b75d606e14fa16aa3107ef9818594f72d5776805ec502000000036a0052ffffffff01932a2803000000000865ab6551ac6a516a2687aa06", "635300ac", 2, -1880362326, "74d6a2fa7866fd8b74b2e34693e2d6fd690410384b7afdcd6461b1ae71d265ce"], + ["e14e1a9f0442ab44dfc5f6d945ad1ff8a376bc966aad5515421e96ddbe49e529614995cafc03000000055165515165fffffffff97582b8290e5a5cfeb2b0f018882dbe1b43f60b7f45e4dd21dbd3a8b0cfca3b0200000000daa267726fe075db282d694b9fee7d6216d17a8c1f00b2229085495c5dc5b260c8f8cd5d000000000363ac6affffffffaab083d22d0465471c896a438c6ac3abf4d383ae79420617a8e0ba8b9baa872b010000000963526563ac5363ababd948b5ce022113440200000000076a636552006a53229017040000000000e6f62ac8", "526353636a65", 3, -485265025, "1bc8ad76f9b7c366c5d052dc479d6a8a2015566d3a42e93ab12f727692c89d65"], + ["720d4693025ca3d347360e219e9bc746ef8f7bc88e8795162e5e2f0b0fc99dc17116fc937100000000046353520045cb1fd79824a100d30b6946eab9b219daea2b0cdca6c86367c0c36af98f19ac64f3575002000000008a1c881003ed16f3050000000008536a63630000abac45e0e704000000000151f6551a05000000000963536565515363abab00000000", "6553ab6a6a510000ab", 1, 1249091393, "a575fa4f59a8e90cd07de012c78fe8f981183bb170b9c50fcc292b8c164cbc3b"], + ["69df842a04c1410bfca10896467ce664cfa31c681a5dac10106b34d4b9d4d6d0dc1eac01c1000000000551536a5165269835ca4ad7268667b16d0a2df154ec81e304290d5ed69e0069b43f8c89e673328005e200000000076a5153006aacabffffffffc9314bd80b176488f3d634360fcba90c3a659e74a52e100ac91d3897072e3509010000000765abac51636363ffffffff0e0768b13f10f0fbd2fa3f68e4b4841809b3b5ba0e53987c3aaffcf09eee12bf0300000008ac535263526a53ac514f4c2402da8fab0400000000001ef15201000000000451526a52d0ec9aca", "525365ac52", 1, 313967049, "a72a760b361af41832d2c667c7488dc9702091918d11e344afc234a4aea3ec44"], + ["adf2340d03af5c589cb5d28c06635ac07dd0757b884d4777ba85a6a7c410408ad5efa8b19001000000045100ab00ffffffff808dc0231c96e6667c04786865727013922bcb7db20739b686f0c17f5ba70e8f0300000000fd2332a654b580881a5e2bfec8313f5aa878ae94312f37441bf2d226e7fc953dcf0c77ab000000000163aa73dc580412f8c2050000000005636aacac63da02d502000000000153e74b52020000000001536b293d030000000009636552ababacab526500000000", "000052ab52ababab", 0, -568651175, "2c45d021db545df7167ac03c9ee56473f2398d9b2b739cf3ff3e074501d324f8"], + ["e4fec9f10378a95199c1dd23c6228732c9de0d7997bf1c83918a5cfd36012476c0c3cba24002000000085165536500ac0000ad08ab93fb49d77d12a7ccdbb596bc5110876451b53a79fdce43104ff1c316ad63501de801000000046a6352ab76af9908463444aeecd32516a04dd5803e02680ed7f16307242a794024d93287595250f4000000000089807279041a82e603000000000200521429100200000000055253636a63f20b940400000000004049ed04000000000500ab5265ab43dfaf7d", "6563526aac", 2, -1923470368, "32f3c012eca9a823bebb9b282240aec40ca65df9f38da43b1dcfa0cac0c0df7e"], + ["4000d3600100b7a3ff5b41ec8d6ccdc8b2775ad034765bad505192f05d1f55d2bc39d0cbe10100000007ab5165ac6a5163ffffffff034949150100000000026a6a92c9f6000000000008ab6553ab6aab635200e697040000000007636a5353525365237ae7d2", "52000063", 0, -880046683, "c76146f68f43037289aaeb2bacf47408cddc0fb326b350eb4f5ef6f0f8564793"], + ["eabc0aa701fe489c0e4e6222d72b52f083166b49d63ad1410fb98caed027b6a71c02ab830c03000000075253ab63530065ffffffff01a5dc0b05000000000253533e820177", "", 0, 954499283, "1d849b92eedb9bf26bd4ced52ce9cb0595164295b0526842ab1096001fcd31b1"], + ["d48d55d304aad0139783b44789a771539d052db565379f668def5084daba0dfd348f7dcf6b00000000006826f59e5ffba0dd0ccbac89c1e2d69a346531d7f995dea2ca6d7e6d9225d81aec257c6003000000096a655200ac656552acffffffffa188ffbd5365cae844c8e0dea6213c4d1b2407274ae287b769ab0bf293e049eb0300000005ac6a6aab51ad1c407c5b116ca8f65ed496b476183f85f072c5f8a0193a4273e2015b1cc288bf03e9e2030000000252abffffffff04076f44040000000006655353abab53be6500050000000003ac65ac3c15040500000000095100ab536353516a52ed3aba04000000000900ac53ab53636aabac00000000", "5253526563acac", 2, -1506108646, "bbee17c8582514744bab5df50012c94b0db4aff5984d2e13a8d09421674404e2"], + ["9746f45b039bfe723258fdb6be77eb85917af808211eb9d43b15475ee0b01253d33fc3bfc502000000065163006a655312b12562dc9c54e11299210266428632a7d0ee31d04dfc7375dcad2da6e9c11947ced0e000000000009074095a5ac4df057554566dd04740c61490e1d3826000ad9d8f777a93373c8dddc4918a00000000025351ffffffff01287564030000000004636a00ab00000000", "52", 2, -1380411075, "84af1623366c4db68d81f452b86346832344734492b9c23fbb89015e516c60b2"], + ["8731b64903d735ba16da64af537eaf487b57d73977f390baac57c7b567cb2770dfa2ef65870100000001635aedd990c42645482340eacb0bfa4a0a9e888057389c728b5b6a8691cdeb1a6a67b45e140200000008ac53526a52516551ffffffff45c4f567c47b8d999916fd49642cbc5d10d43c304b99e32d044d35091679cb860100000003006a51ffffffff0176d6c200000000000000000000", "ab6a65ab53", 2, -1221546710, "ccfdba36d9445f4451fb7cbf0752cc89c23d4fc6fff0f3930d20e116f9db0b95"], + ["f5cfc52f016209ab1385e890c2865a74e93076595d1ca77cbe8fbf2022a2f2061a90fb0f3e010000000253acffffffff027de73f0200000000085252ac510052acac49cd6a020000000000e6c2cb56", "516552535300ab63", 0, -1195302704, "5532717402a2da01a1da912d824964024185ca7e8d4ad1748659dc393a14182b"], + ["df0a32ae01c4672fd1abd0b2623aae0a1a8256028df57e532f9a472d1a9ceb194267b6ee190200000009536a6a51516a525251b545f9e803469a2302000000000465526500810631040000000000441f5b050000000006530051006aaceb183c76", "536a635252ac6a", 0, 1601138113, "9a0435996cc58bdba09643927fe48c1fc908d491a050abbef8daec87f323c58f"], + ["d102d10c028b9c721abb259fe70bc68962f6cae384dabd77477c59cbeb1fb26266e091ba3e0100000002516affffffffe8d7305a74f43e30c772109849f4cd6fb867c7216e6d92e27605e69a0818899700000000026a65ecf82d58027db4620500000000026552c28ed3010000000001ab00000000", "0051ab515365", 1, -131815460, "1d1757a782cb5860302128bcbe9398243124a2f82d671a113f74f8e582c7a182"], + ["cef930ed01c36fcb1d62ceef931bef57098f27a77a4299904cc0cbb44504802d535fb11557010000000153ffffffff02c8657403000000000863ac655253520063d593380400000000046aab536a00000000", "656a0051ab6365ab53", 0, -351313308, "e69dba3efb5c02af2ab1087d0a990678784671f4744d01ca097d71aec14dd8e9"], + ["b1c0b71804dff30812b92eefb533ac77c4b9fdb9ab2f77120a76128d7da43ad70c20bbfb990200000002536392693e6001bc59411aebf15a3dc62a6566ec71a302141b0c730a3ecc8de5d76538b30f55010000000665535252ac514b740c6271fb9fe69fdf82bf98b459a7faa8a3b62f3af34943ad55df4881e0d93d3ce0ac0200000000c4158866eb9fb73da252102d1e64a3ce611b52e873533be43e6883137d0aaa0f63966f060000000001abffffffff04a605b604000000000851006a656a630052f49a0300000000000252515a94e1050000000009abac65ab0052abab00fd8dd002000000000651535163526a2566852d", "ac5363", 0, -1718831517, "b0dc030661783dd9939e4bf1a6dfcba809da2017e1b315a6312e5942d714cf05"], + ["6a270ee404ebc8d137cfd4bb6b92aa3702213a3139a579c1fc6f56fbc7edd9574ef17b13f30100000009ab00ab656565ababacffffffffaa65b1ab6c6d87260d9e27a472edceb7dd212483e72d90f08857abf1dbfd46d10100000000fffffffff93c4c9c84c4dbbe8a912b99a2830cfe3401aebc919041de063d660e585fc9f002000000096aabacab52ac6a53acfa6dcef3f28355a8d98eee53839455445eeee83eecd2c854e784efa53cee699dbfecaebd0100000003ab6a51ffffffff04f7d71b050000000009ac6a536aac6a6365513c37650500000000065265abab6a53fa742002000000000039ed82030000000009516aac635165ab51ab2fdabd17", "ab535252526563", 1, -1326210506, "1dec0d5eb921bf5b2df39c8576e19c38d0c17254a4a0b78ac4b5422bcc426258"], + ["3657e4260304ccdc19936e47bdf058d36167ee3d4eb145c52b224eff04c9eb5d1b4e434dfc0000000001ab58aefe57707c66328d3cceef2e6f56ab6b7465e587410c5f73555a513ace2b232793a74400000000036a006522e69d3a785b61ad41a635d59b3a06b2780a92173f85f8ed428491d0aaa436619baa9c4501000000046351abab2609629902eb7793050000000000a1b967040000000003525353a34d6192", "516a", 0, -1761874713, "0a2ff41f6d155d8d0e37cd9438f3b270df9f9214cda8e95c76d5a239ca189df2"], + ["a0eb6dc402994e493c787b45d1f946d267b09c596c5edde043e620ce3d59e95b2b5b93d43002000000096a5252526aac63ab6555694287a279e29ee491c177a801cd685b8744a2eab83824255a3bcd08fc0e3ea13fb8820000000009abab6365ab52ab0063ffffffff029e424a040000000008acab53ab516a636a23830f0400000000016adf49c1f9", "ac0065ac6500005252", 1, 669294500, "e05e3d383631a7ed1b78210c13c2eb26564e5577db7ddfcea2583c7c014091d4"], + ["6e67c0d3027701ef71082204c85ed63c700ef1400c65efb62ce3580d187fb348376a23e9710200000001655b91369d3155ba916a0bc6fe4f5d94cad461d899bb8aaac3699a755838bfc229d6828920010000000765536353526a52ffffffff04c0c792000000000005650052535372f79e000000000001527fc0ee010000000005ac5300ab65d1b3e902000000000251aba942b278", "6a5151", 0, 1741407676, "e657e2c8ec4ebc769ddd3198a83267b47d4f2a419fc737e813812acefad92ff7"], + ["8f53639901f1d643e01fc631f632b7a16e831d846a0184cdcda289b8fa7767f0c292eb221a00000000046a53abacffffffff037a2daa01000000000553ac6a6a51eac349020000000005ac526552638421b3040000000007006a005100ac63048a1492", "ac65", 0, 1033685559, "da86c260d42a692358f46893d6f91563985d86eeb9ea9e21cd38c2d8ffcfcc4d"], + ["491f99cb01bdfba1aa235e5538dac081fae9ce55f9622de483afe7e65105c2b0db75d360d200000000045251636340b60f0f041421330300000000096351ac000051636553ce2822040000000005516a00ac5180c8e40300000000025100caa8570400000000020000cfdc8da6", "6a5100516aab655365", 0, -953727341, "397c68803b7ce953666830b0221a5e2bcf897aa2ded8e36a6b76c497dcb1a2e1"], + ["b3cad3a7041c2c17d90a2cd994f6c37307753fa3635e9ef05ab8b1ff121ca11239a0902e700300000009ab635300006aac5163ffffffffcec91722c7468156dce4664f3c783afef147f0e6f80739c83b5f09d5a09a57040200000004516a6552ffffffff969d1c6daf8ef53a70b7cdf1b4102fb3240055a8eaeaed2489617cd84cfd56cf020000000352ab53ffffffff46598b6579494a77b593681c33422a99559b9993d77ca2fa97833508b0c169f80200000009655300655365516351ffffffff04d7ddf800000000000853536a65ac6351ab09f3420300000000056aab65abac33589d04000000000952656a65655151acac944d6f0400000000006a8004ba", "005165", 1, 1035865506, "fe1dc9e8554deecf8f50c417c670b839cc9d650722ebaaf36572418756075d58"], + ["e1cfd73b0125add9e9d699f5a45dca458355af175a7bd4486ebef28f1928d87864384d02df02000000036a0051ffffffff0357df030100000000036a5365777e2d04000000000763ab6a00005265f434a601000000000351655100000000", "ab53ab", 0, -1936500914, "950f4b4f72ccdf8a6a0f381265d6c8842fdb7e8b3df3e9742905f643b2432b69"], + ["cf781855040a755f5ba85eef93837236b34a5d3daeb2dbbdcf58bb811828d806ed05754ab8010000000351ac53ffffffffda1e264727cf55c67f06ebcc56dfe7fa12ac2a994fecd0180ce09ee15c480f7d00000000096351516a51acac00ab53dd49ff9f334befd6d6f87f1a832cddfd826a90b78fd8cf19a52cb8287788af94e939d6020000000700525251ac526310d54a7e8900ed633f0f6f0841145aae7ee0cbbb1e2a0cae724ee4558dbabfdc58ba6855010000000552536a53abfd1b101102c51f910500000000096300656a525252656a300bee010000000009ac52005263635151abe19235c9", "53005365", 2, 1422854188, "d5981bd4467817c1330da72ddb8760d6c2556cd809264b2d85e6d274609fc3a3"], + ["fea256ce01272d125e577c0a09570a71366898280dda279b021000db1325f27edda41a53460100000002ab53c752c21c013c2b3a01000000000000000000", "65", 0, 1145543262, "076b9f844f6ae429de228a2c337c704df1652c292b6c6494882190638dad9efd"] +] diff --git a/demo/data/tx_creation.json b/demo/data/tx_creation.json new file mode 100644 index 0000000..eb6bd30 --- /dev/null +++ b/demo/data/tx_creation.json @@ -0,0 +1,85 @@ +[ + [ + "from", [{ + "address": "mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1", + "txId": "a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458", + "outputIndex": 0, + "script": "OP_DUP OP_HASH160 20 0x88d9931ea73d60eaf7e5671efc0552b912911f2a OP_EQUALVERIFY OP_CHECKSIG", + "satoshis": 1020000 + }], + "to", ["mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc", 1010000], + "sign", ["cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY"], + "serialize", "01000000015884e5db9de218238671572340b207ee85b628074e7e467096c267266baf77a4000000006b4830450221009972100061da4a17a471ac1906c18bb5445c03da2a0be52c59aca6c58f1e342302202b7a19a22572cabb6e55c368ebdb5921541358fa969d5c76b5e0d6ad3f26a7d701210223078d2942df62c45621d209fab84ea9a7a23346201b7727b9b45a29c4e76f5effffffff0150690f00000000001976a9147821c0a3768aa9d1a37e16cf76002aef5373f1a888ac00000000" + ], + [ + "from", [{ + "txid": "e42447187db5a29d6db161661e4bc66d61c3e499690fe5ea47f87b79ca573986", + "vout": 1, + "address": "mgBCJAsvzgT2qNNeXsoECg2uPKrUsZ76up", + "scriptPubKey": "76a914073b7eae2823efa349e3b9155b8a735526463a0f88ac", + "amount": 0.01080000 + }], + "to", ["mn9new5vPYWuVN5m3gUBujfKh1uPQvR9mf", 500000], + "to", ["mw5ctwgEaNRbxkM4JhXH3rp5AyGvTWDZCD", 570000], + "sign", ["cSQUuwwJBAg6tYQhzqqLWW115D1s5KFZDyhCF2ffrnukZxMK6rNZ"], + "serialize", "0100000001863957ca797bf847eae50f6999e4c3616dc64b1e6661b16d9da2b57d184724e4010000006b483045022100855691c90510edf83ab632f0a0b17f5202d2cf7071050dcf0c2778325ed403cd022014ee7a4e787da8bc088d2ece43108a7b8d7112eba89876a27bb44195a0715a910121039dd446bbc85db6917f39c0b4c295b0f8cce76d1926fa76d7b84e3f7ff1c5eec5ffffffff0220a10700000000001976a91448c819246ae5645ceecd41fbe1aa6202a0a9b5ca88ac90b20800000000001976a914aab76ba4877d696590d94ea3e02948b55294815188ac00000000" + ], + [ + "from", [ + [{ + "txid": "a9db84566e0fc9351e86337d2828ab281b25ddc06fab798f6d4b5baef48c02b3", + "vout": 0, + "address": "mn9new5vPYWuVN5m3gUBujfKh1uPQvR9mf", + "account": "", + "scriptPubKey": "76a91448c819246ae5645ceecd41fbe1aa6202a0a9b5ca88ac", + "amount": 0.00500000, + "confirmations": 0 + }, { + "txid": "a9db84566e0fc9351e86337d2828ab281b25ddc06fab798f6d4b5baef48c02b3", + "vout": 1, + "address": "mw5ctwgEaNRbxkM4JhXH3rp5AyGvTWDZCD", + "account": "", + "scriptPubKey": "76a914aab76ba4877d696590d94ea3e02948b55294815188ac", + "amount": 0.00570000, + "confirmations": 0 + }] + ], + "to", ["mtymcCX5KixPjT1zxtg59qewBGWptj9etH", 1060000], + "sign", [ + ["cPGbA2C54ZZ1sw4dc2ckBE1WqkdrNSbEV8Tkjhi2p1J15oErdgP2", "cSpyve5bXAuyHrNeV9MjTdFz3HLw739yUjjUAUSMe3ppf2qzj2hw"] + ], + "serialize", "0100000002b3028cf4ae5b4b6d8f79ab6fc0dd251b28ab28287d33861e35c90f6e5684dba9000000006a4730440220635e95e1981bbb360feaf4c232f626a0af8eb5c043a99749a21b0e37fd0048fd02201c5db8a93f1f5c268be6167da7c92f5030481acf65bef750c81ec9907aba3b170121030253c73236acf5ea9085d408220141197f6094de07426bd0d32c7a543614fdd7ffffffffb3028cf4ae5b4b6d8f79ab6fc0dd251b28ab28287d33861e35c90f6e5684dba9010000006a4730440220319a0b5ee9c67ccb7de4222234f31059354be4f239c99ca24bff30adfec8e8ec02204ad4c6dedebb20d100f9484b9ea6c5ba36712e9da155c24509e793c02e4805fd012102977a001a0a7bbfd1f8a647c7d46e13e8f6920635b328390b43b3303977101149ffffffff01a02c1000000000001976a91493abf1e9e4a20c125b93f93ee39efc16b6e4bc4688ac00000000" + ], + [ + "from", [{ + "address": "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi", + "txid": "f50e13cecda9a438ebd7df213a2899e42b2461a18d4630ee773d26b4f2688bdc", + "vout": 1, + "scriptPubKey": "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac", + "amount": 0.01 + }], + "to", ["n3riXZowrjGnY74rx7Hdi9wCyvgyJC28zZ", 990000], + "sign", ["cPwWtDztEgRCMCU8pMQp4HgphvyadrAsYBrCjXUZuDSmnZkyoyNF"], + "serialize", "0100000001dc8b68f2b4263d77ee30468da161242be499283a21dfd7eb38a4a9cdce130ef5010000006a473044022012610834051e6af8594dd5d9c47123d6ce03537d321f9fe3f6ff244b23f47dd5022034901bb0d83688758a9248fdef48bd2000b55cf70111cbef8f206e72a31aaf61012103e26b47e7c0d8946954bf9dd4bc7f9e415437eb98271d05f69e78cef8fc6c9a54ffffffff01301b0f00000000001976a914f50f9826ef186074c6fe206cca6b71472ff07ba888ac00000000" + ], + [ + "from", [{ + "address":"38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z","txid":"073281b2cc94e879aaf30ea2e92947d9827b270015849d3a5b96a89ee15bfa66","vout":0,"ts":1418877950,"scriptPubKey":"a9144de752833233fe69a20064f29b2ca0f6399c8af387","amount":0.00318512,"confirmationsFromCache":false + }, ["03411e021210a933c247ea9c8dad4bbead281597d508ad84e899de13e4ce98b4ba", "03bda2c3cc11a391b36e3d695b03ab42b96fe04086b2349056108d858983e60dab", "03c16e6ecf4e02bf9db23d3247ab92db8881f0866133ffb530c3470f6d8dea7330"], 2], + "to", ["3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9", 300299], + "sign", [["L3y1PAXfjayeB3w6NP7qfNxPbuPpQFA6hd6gj4BUKa2xSdLwoVSZ", "L3a57fiNjqfbXBdYvvGYPQ1HiDX463mwA2xFGTYVkXYdooaz9Z2u"]], + "serialize", "010000000166fa5be19ea8965b3a9d841500277b82d94729e9a20ef3aa79e894ccb281320700000000fc0047304402202f66fcfc0d5bff109ec12327ca37e0bc7722d08da9538f12468994799534bed602203a0b374f3a6810b0ee26028c390e14f5b6bada8fa390f4364d70d04aee240d350147304402206757f710f25937cd846fd8c56687c463a4561e9e0421fc173c78eaf2de9b9a7d02204995db6b81513b67a42b09dabab6ed4cb90901c52f6f945b768827a9390bda60014c69522103411e021210a933c247ea9c8dad4bbead281597d508ad84e899de13e4ce98b4ba2103bda2c3cc11a391b36e3d695b03ab42b96fe04086b2349056108d858983e60dab2103c16e6ecf4e02bf9db23d3247ab92db8881f0866133ffb530c3470f6d8dea733053aeffffffff010b9504000000000017a9146c8d8b04c6a1e664b1ec20ec932760760c97688e8700000000" + ], + [ + "from", [{"address":"3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9","txid":"afbf98ca4a43db8915d75184b5204fbe71d916482adfe85cb0ed3635764fc220","vout":0,"ts":1418878108,"scriptPubKey":"a9146c8d8b04c6a1e664b1ec20ec932760760c97688e87","amount":0.00318512,"confirmationsFromCache":false}, ["020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2", "0271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b", "03a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd8"], 2 + ], + "from", [ + {"address":"3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9","txid":"dc2e197ab72f71912c39bc23a42d823a3aa8d469fe65eb591c086e60d14c64a0","vout":0,"ts":1418878014,"scriptPubKey":"a9146c8d8b04c6a1e664b1ec20ec932760760c97688e87","amount":0.00300299,"confirmationsFromCache":false}, ["020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2", "0271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b", "03a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd8"], 2], + "to", ["38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z", 150000], + "to", ["38nw4sTs3fCH1YiBjYeQAX1t9eWMxpek8Z", 160000], + "change", ["3BazTqvkvEBcWk7J4sbgRnxUw6rjYrogf9"], + "sign", ["L2U9m5My3cdyN5qX1PH4B7XstGDZFWwyukdX8gj8vsJ3fkrqArQo"], + "sign", ["L4jFVcDaqZCkknP5KQWjCBgiLFxKxRxywNGTucm3jC3ozByZcbZv"], + "serialize", "010000000220c24f763536edb05ce8df2a4816d971be4f20b58451d71589db434aca98bfaf00000000fdfd0000473044022024b955f8bf6aaf0741da011e3214eaec7040cd12694303471cefc6ba0cc4ec290220124738015033a465636dec1524a6f956a229e69d31aef6c7a98b2a291f3cfc6701483045022100e6ae6c43240e8a11a6de2d034501c2a366c0ccdf069c7828de0791f05e68e787022028b80bd36c2b2ae63fe7afb491da6c0ce23fbbb982450962c817b20f0bb24075014c695221020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2210271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b2103a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd853aeffffffffa0644cd1606e081c59eb65fe69d4a83a3a822da423bc392c91712fb77a192edc00000000fc00483045022100ae7f136cf906dc37d34d5035b8d2001c6a783773b74507ba83080e73e903623f0220023baf7738395268f7097e5586130f682b911fd49b83b265f8fa481f2a6b1ee90146304302201d60f512a8b37663d85c123933053e0354f13d89daf699ca600defa03d4a1dab021f41042b6e4ba30311fc3a68c228c3725f3b0f05a4453ef19408e6a4ae30a2b0014c695221020483ebb834d91d494a3b649cf0e8f5c9c4fcec5f194ab94341cc99bb440007f2210271ebaeef1c2bf0c1a4772d1391eab03e4d96a6e9b48551ab4e4b0d2983eb452b2103a659828aabe443e2dedabb1db5a22335c5ace5b5b7126998a288d63c99516dd853aeffffffff03f04902000000000017a9144de752833233fe69a20064f29b2ca0f6399c8af387007102000000000017a9144de752833233fe69a20064f29b2ca0f6399c8af387ab2f03000000000017a9146c8d8b04c6a1e664b1ec20ec932760760c97688e8700000000" + ] +] diff --git a/demo/index.js b/demo/index.js new file mode 100644 index 0000000..8d10c67 --- /dev/null +++ b/demo/index.js @@ -0,0 +1,8 @@ +var fs = require("fs") +fs.readdirSync(__dirname).filter(function (item) { + var reg = /^(test)/ig + if (reg.test(item)) { + require(`./${item}`) + } + return false +}) diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js new file mode 100644 index 0000000..47dfcdc --- /dev/null +++ b/demo/test-assetcreatetx.js @@ -0,0 +1,78 @@ +'use strict'; +console.error('\n=====RUN-TEST-ASSETCREATETX-START=====\n') +// usage: node test-assetcreatetx.js + +/* +Build a transaction for asset create +note: +In addition to publishing assets miners fee, we need additional deduction 550WICC + +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4. assetSymbol: Asset symbols, publishing success can not be modified (asset Symbol Capital letter A-Z 1-7 digits [A_Z]) +5. ownerAddress: asset owner +6. tokeName: asset name +7. totalSupply: total asset circulation +8. minTable: Whether the asset can be issued +9、feesCoinSymbol: fee type(WICC/WUSD) +*/ +/* +构建发布资产交易 + +发布资产除了矿工费,还需额外扣除550WICC + +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 +4、assetSymbol: 资产符号,发布成功无法再修改(1-7位大写字母) +5、ownerAddress: 资产拥有者 +6、assetName: 资产名称 +7、totalSupply: 资产总发行量 +8、minTable: 资产是否可以增发 +9、feesCoinSymbol: 小费类型(WICC/WUSD) +*/ + +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var arg = { + network: 'testnet' +} +var wiccApi = new WiccApi(arg) + +var assetData = { + assetSymbol: "STOKENN", //asset Symbol Capital letter A-Z 6-7 digits [A_Z] + ownerAddress: "0-1", //asset owner + assetName: "SS Token", //asset token name + totalSupply: 10000000000000000,// total Supply *10^8 + minTable: false //Whether to increase the number +} + + +//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result +var assetCreateInfo = { + nTxType: WiccApi.ASSET_ISUUE, + nVersion: 1, + nValidHeight: 8720, // create height + srcRegId: "8267-2", // sender's regId + assetData: assetData, + feesCoinSymbol: WriterHelper.prototype.CoinType.WICC, + fees: 10000000, // fees pay for miner min 0.01 wicc +550wicc +}; + +var wiccPrivateKey = 'Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot' +console.log("wicc private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +//console.log("get private key:") +//console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.ASSET_ISUUE, assetCreateInfo) +console.log("asset create tx raw: ") +console.log(rawtx) +console.error('\n=====RUN-TEST-ASSETCREATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-assetupdatetx.js b/demo/test-assetupdatetx.js new file mode 100644 index 0000000..01e80e8 --- /dev/null +++ b/demo/test-assetupdatetx.js @@ -0,0 +1,85 @@ +'use strict'; +console.error('\n=====RUN-TEST-ASSETUPDATETX-START=====\n') +// usage: node test-assetupdatetx.js + +/* +Build a transaction for asset update + +In addition to updating assets miners fee, we need additional deduction 110WICC + +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4. assetSymbol: Asset symbols, publishing success can not be modified +5、feesCoinSymbol: fee type(WICC/WUSD) +6、 updateType: update type 1: asset owner 2: asset name 3. number of assets +*/ +/* +构建发布资产交易 + +更新资产除了矿工费,还需额外扣除110WICC + +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 +4、assetSymbol: 资产符号,发布成功无法再修改 +5、feesCoinSymbol: 小费类型(WICC/WUSD) +6、updateType:更新类型 1:资产拥有者 2:资产名称 3.资产数量 +*/ + +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var arg = { + network: 'testnet' +} +var wiccApi = new WiccApi(arg) + +//update asset owner regid +var assetUpdateData = { + updateType: WriterHelper.prototype.UpdateAssetType.OWNER_UID, + updateValue: "0-1", //owner address +} + +//update asset name +// var assetUpdateData = { +// updateType:WriterHelper.prototype.UpdateAssetType.NAME, +// updateValue:"TokenName", //asset name +// } + +//update asset token number +// var assetUpdateData = { +// updateType: WriterHelper.prototype.UpdateAssetType.MINT_AMOUNT, +// updateValue: 11000000000000000, //Increase the number of asset +// } + + +//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result +var assetUpdateInfo = { + nTxType: WiccApi.ASSET_UPDATE, + nVersion: 1, + nValidHeight: 28128, // create height + srcRegId: "0-1", // sender's regId + assetUpdateData: assetUpdateData, + feesCoinSymbol: WriterHelper.prototype.CoinType.WICC, + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + assetSymbol: "LOLLLL", //Symbol Capital letter A-Z 6-7 digits [A_Z] + fees: 11000000000, // fees pay for miner min 0.01 wicc +110wicc +}; + +var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' +console.log("wicc private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +//console.log("get private key:") +//console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.ASSET_UPDATE, assetUpdateInfo) +console.log("asset update tx raw: ") +console.log(rawtx) +console.error('\n=====RUN-TEST-ASSETUPDATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-callcontracttx.js b/demo/test-callcontracttx.js new file mode 100644 index 0000000..b4bd739 --- /dev/null +++ b/demo/test-callcontracttx.js @@ -0,0 +1,50 @@ +'use strict'; +console.error('\n=====RUN-TEST-CALLCONTACTTX-START=====\n') +// usage: node test-contracttx.js + +var WiccApi = require('../index'); + +var arg = { network: 'testnet' } +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for calling smart contract +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建调用合约的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:调用合约交易时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var regAppInfo = { + nTxType: WiccApi.CONTRACT_TX, + nVersion: 1, + nValidHeight: 34400, // create height + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + srcRegId: '', // sender's regId + destRegId: "24555-1", // app regId + fees: 1000000, // fees pay for miner + value: 8, // amount of WICC to be sent to the app account + vContract: "f018" // contract method, hex format string +}; + +var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' +console.log("wicc private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +//console.log("get private key:") +//console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.CONTRACT_TX, regAppInfo) +console.log("contract tx raw: ") +console.log(rawtx) +console.error('\n=====RUN-TEST-CALLCONTRACTTX-END=====\n') \ No newline at end of file diff --git a/demo/test-cancelordertx.js b/demo/test-cancelordertx.js new file mode 100644 index 0000000..67be92f --- /dev/null +++ b/demo/test-cancelordertx.js @@ -0,0 +1,41 @@ +'use strict' +console.error('\n=====RUN-TEST-CANCELORDER-START=====\n') +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = { network: 'testnet' } +var wiccApi = new WiccApi(arg) +/* +Build a transaction for cancel order transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, orderId:pending trading hash +5, fee_symbol: fee type (WICC/WUSD) +*/ +/* +构建取消交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、orderId:挂单的交易hash +5, fee_symbol: 小费类型(WICC/WUSD) +*/ +var dexCancelTxinfo = { + nTxType: WiccApi.DEX_CANCEL_ORDER_TX, + nVersion: 1, + nValidHeight: 5360, + fees: 10000, + feeSymbol: WriterHelper.prototype.CoinType.WICC, + srcRegId: '', + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + orderId: '009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144', + network: 'testnet' +}; + +var dexCancelOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_CANCEL_ORDER_TX, dexCancelTxinfo); + +console.log("----dexCancelOrderTx----", dexCancelOrderTx) +console.error('\n=====RUN-TEST-CANCELORDERTX-END=====\n') diff --git a/demo/test-cdpliquidatetx.js b/demo/test-cdpliquidatetx.js new file mode 100644 index 0000000..299b947 --- /dev/null +++ b/demo/test-cdpliquidatetx.js @@ -0,0 +1,52 @@ +'use strict' +console.error('\n=====RUN-TEST-CDPLIQUIDATETX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = { network: 'testnet' } +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for cdp liquidate transaction +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4. cdpOwnerRegId: reg of the cdp creator +5. cdpTxId: the transaction hash created by the cdp +6. scoinsToLiquidate: the number of liquidation +7, fee_symbol: fee type (WICC/WUSD) +8、assetSymbol:get stake coin symbol +*/ +/* +构建cdp清算交易 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、cdpOwnerRegId:cdp创建者的regid +5、cdpTxId:该cdp的创建的交易hash +6、scoinsToLiquidate:清算的数量 +7、fee_symbol:小费类型(WICC/WUSD) +8、assetSymbol:赎回币种类型 +*/ +var cdpliquidateTxinfo = { + nTxType: WiccApi.CDP_LIQUIDATE_TX, + nVersion: 1, + nValidHeight: 501, + txUid: "", + fees: 100000, + fee_symbol: WriterHelper.prototype.CoinType.WICC, + cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + scoinsToLiquidate: 2000000000000, + assetSymbol: WriterHelper.prototype.CoinType.WICC, + network: 'testnet' +}; + + +var cdpliquidateTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_LIQUIDATE_TX, cdpliquidateTxinfo) +console.log("-----cdpliquidateTx-----", cdpliquidateTx) + +console.error('\n=====RUN-TEST-CDPLIQUIDATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-cdpredeemtx.js b/demo/test-cdpredeemtx.js new file mode 100644 index 0000000..2a449cd --- /dev/null +++ b/demo/test-cdpredeemtx.js @@ -0,0 +1,55 @@ +'use strict' +console.error('\n=====RUN-TEST-CDPREDEEMTX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = { network: 'testnet' } +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for cdp redeem +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, cdpTxId: cdp transaction hash +5, assetAmount: stake coin amount +6, assetSymbol: stake asset symbol +7, fee_symbol: fee type (WICC/WUSD) +*/ +/* +构建cdp赎回的交易 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、cdpTxId:cdp交易hash +5、scoins_to_repay:销毁的wusd数量 +6、assetAmount:赎回的数量 +7、assetSymbol: 赎回币种类型 +8、fee_symbol:小费类型(WICC/WUSD) +*/ +var assetSymbol = WriterHelper.prototype.CoinType.WICC +var assetAmount = 100000000 +var map = new Map([[assetSymbol, assetAmount]]) +var cdpRedeemTxinfo = { + nTxType: WiccApi.CDP_REDEEMP_TX, + nVersion: 1, + nValidHeight: 78, + txUid: "", + fees: 100000, + cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", + publicKey: "03af0341d7470d6e02687bec8920dbfba83544571a71f1cd6ef487c7fd88768c01", + fee_symbol: WriterHelper.prototype.CoinType.WICC, + scoins_to_repay: 0, + assetMap: map, + network: 'testnet' +}; + + +var cdpRedeemTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_REDEEMP_TX, cdpRedeemTxinfo) + +console.log('----cdpRedeemTx----', cdpRedeemTx) + +console.error('\n=====RUN-TEST-CDPREDEEMTX-END=====\n') diff --git a/demo/test-cdpstaketx.js b/demo/test-cdpstaketx.js new file mode 100644 index 0000000..faaec49 --- /dev/null +++ b/demo/test-cdpstaketx.js @@ -0,0 +1,63 @@ +'use strict' +console.error('\n=====RUN-TEST-CDPSTAKETX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') + +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +// 验证地址 +var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') +console.log(ret) + +/* +Build a transaction for cdp stake transaction +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +5、assetAmount:stake coin amount +6、scoinsToMint:get coin amount +7、fee_symbol:fee symbol(WICC/WUSD) +8、assetAmount:stake coin symbol +9、coin_symbol:get coind symbol +*/ +/* +构建cdp抵押交易 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、cdpTxId:cdp创建生成的交易hash +5、assetAmount:抵押的数量(最低1WICC) +6、scoinsToMint:获得的wusd +7、fee_symbol:小费类型(WICC/WUSD) +8、assetAmount:抵押币种 +9、coin_symbol:获得币种 +*/ +var assetSymbol=WriterHelper.prototype.CoinType.WICC +var assetAmount=100000000 +var map=new Map([[assetSymbol,assetAmount]]) +var cdpStakeTxinfo = { + nTxType: WiccApi.CDP_STAKE_TX, + nVersion: 1, + nValidHeight: 25, + txUid:"0-1", + fees: 100000, + fee_symbol:WriterHelper.prototype.CoinType.WICC, + cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + assetMap:map, + scoin_symbol:WriterHelper.prototype.CoinType.WUSD, + scoinsToMint: 0, + network: 'testnet' + }; + + + var cdpStakeTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_STAKE_TX, cdpStakeTxinfo) + + console.log("----cdpStakeTx----", cdpStakeTx) + + console.error('\n=====RUN-TEST-CDPSTAKETX-END=====\n') \ No newline at end of file diff --git a/demo/test-commontx.js b/demo/test-commontx.js new file mode 100644 index 0000000..775d445 --- /dev/null +++ b/demo/test-commontx.js @@ -0,0 +1,48 @@ +'use strict' +console.error('\n=====RUN-TEST-COMMONTX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); + +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') + +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +// 验证地址 +var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') +console.log(ret) + +/* +Build a transaction for common transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000000 sawi (0.1 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建普通转账交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var commonTxinfo = { + nTxType: 3, + nVersion: 1, + nValidHeight: 34550, + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + fees: 10000, + srcRegId: '0-1', + destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', + value:1100000000000, + memo:"test transfer", + network: 'testnet' + }; + + var value = 10000000000 + var tmp = (value >>> 7) + + + var commonTx = wiccApi.createSignTransaction(privateKey, WiccApi.COMMON_TX, commonTxinfo) + console.log("----commonTx----", commonTx) + console.error('\n=====RUN-TEST-COMMONTX-END=====\n') diff --git a/demo/test-delegatetx.js b/demo/test-delegatetx.js new file mode 100644 index 0000000..e5649e9 --- /dev/null +++ b/demo/test-delegatetx.js @@ -0,0 +1,54 @@ +'use strict'; +console.error('\n=====RUN-TEST-DELEGATE-START=====\n') +// usage: node test-contracttx.js + +var WiccApi = require('../index'); + +var arg = { + network: 'testnet' +} +var wiccApi = new WiccApi(arg) + +/* +publicKey can get from "getaccountinfo" cmd if the account have registered +*/ +var delegateData = [ // array, item is object data of delegate + { + // address: 'waFdYrQfDSsh1jVsDzPiutAPUKCHZJ4Wyp' + // publicKey: Buffer.from("02e5ee9bd73c561fc9844fc3065c87d297f6ba52f64f409346a4bb5035f2de25ab", 'hex'), + publicKey: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", + votes: 201 + },{ + // address: 'wQsRcb6VcSr9DnpaLiWwrSA6YPuaUMbbYw' + publicKey: "02dc40112e2e12106c749c5bee34b4037b2dff4cd300ee5a57948961a6c9441e27", + votes: 202 + } +] + +//note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result +var delegateInfo = { + nTxType: WiccApi.DELEGATE_TX, + nVersion: 1, + nValidHeight: 28128, // create height + srcRegId: "", // sender's regId + delegateData: delegateData, + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + fees: 1001, // fees pay for miner +}; + +var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' +console.log("wicc private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +//console.log("get private key:") +//console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.DELEGATE_TX, delegateInfo) +console.log("contract tx raw: ") +console.log(rawtx) + +console.error('\n=====RUN-TEST-DELEGATE-END=====\n') diff --git a/demo/test-dexbuylimitordertx.js b/demo/test-dexbuylimitordertx.js new file mode 100644 index 0000000..607b63e --- /dev/null +++ b/demo/test-dexbuylimitordertx.js @@ -0,0 +1,50 @@ +'use strict' +console.error('\n=====RUN-TEST-DEXBUYLIMITORDERTX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for dex buy limit transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, coinType: currency type +5, assetType: asset type +6, assetAmount: the amount of assets +7, bidPrice: price +*/ +/* +构建普通限价买交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、coinType:币种类型 +5、assetType:资产类型 +6、assetAmount:资产金额 +7、bidPrice:价格 +*/ +var dexBuyLimitTxinfo = { + nTxType: WiccApi.DEX_BUY_LIMIT_ORDER_TX, + nVersion: 1, + nValidHeight: 5360, + fees: 10000, + srcRegId: '0-1', + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + feeSymbol: WriterHelper.prototype.CoinType.WICC, + coinSymbol: WriterHelper.prototype.CoinType.WUSD, + assetSymbol:WriterHelper.prototype.CoinType.WICC, + assetAmount:10, + bidPrice:200, + network: 'testnet' + }; + + var dexBuyLimitOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_BUY_LIMIT_ORDER_TX, dexBuyLimitTxinfo) + + console.log("----dexBuyLimitOrderTx----", dexBuyLimitOrderTx) + console.error('\n=====RUN-TEST-DEXBUYLIMITORDERTX-END=====\n') diff --git a/demo/test-dexbuymarketordertx.js b/demo/test-dexbuymarketordertx.js new file mode 100644 index 0000000..1165dd8 --- /dev/null +++ b/demo/test-dexbuymarketordertx.js @@ -0,0 +1,47 @@ +'use strict' +console.error('\n=====RUN-TEST-DEXBUYMARKETORDERTX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for market buy transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, coinType: currency type +5, assetType: asset type +6, coinAmount: the amount of assets +*/ +/* +构建市价买单交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、coinType:币种类型 +5、assetType:资产类型 +6、coinAmount:资产金额 +*/ +var dexBuyMarketTxinfo = { + nTxType: WiccApi.DEX_BUY_MARKET_ORDER_TX, + nVersion: 1, + nValidHeight: 5360, + fees: 10000, + srcRegId: '', + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + feeSymbol: WriterHelper.prototype.CoinType.WICC, + coinSymbol: WriterHelper.prototype.CoinType.WUSD, + assetSymbol:WriterHelper.prototype.CoinType.WICC, + coinAmount:200, + network: 'testnet' + }; + + var dexBuyMarketOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_BUY_MARKET_ORDER_TX, dexBuyMarketTxinfo) + + console.log("----dexBuyMarketOrderTx----", dexBuyMarketOrderTx) + console.error('\n=====RUN-TEST-DEXBUYMARKETORDERTX-END=====\n') diff --git a/demo/test-dexselllimitordertx.js b/demo/test-dexselllimitordertx.js new file mode 100644 index 0000000..26366fd --- /dev/null +++ b/demo/test-dexselllimitordertx.js @@ -0,0 +1,41 @@ +'use strict' +console.error('\n=====RUN-TEST-DEXSELLLIMITORDERTX-START=====\n') +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for sell limit transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建限价卖单交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var dexSellLimitTxinfo = { + nTxType: WiccApi.DEX_SELL_LIMIT_ORDER_TX, + nVersion: 1, + nValidHeight: 602371, + fees: 10000, + srcRegId: '0-1', + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + feeSymbol: WriterHelper.prototype.CoinType.WICC, + coinSymbol: WriterHelper.prototype.CoinType.WUSD, + assetSymbol:WriterHelper.prototype.CoinType.WICC, + assetAmount:30000000000, + askPrice:200000000, + network: 'testnet' + }; + + + var dexSellLimitOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_SELL_LIMIT_ORDER_TX, dexSellLimitTxinfo) + console.log("----dexSellLimitOrderTx----", dexSellLimitOrderTx) + console.error('\n=====RUN-TEST-DEXSELLLIMITORDERTX-END=====\n') diff --git a/demo/test-dexsellmarketordertx.js b/demo/test-dexsellmarketordertx.js new file mode 100644 index 0000000..96eb622 --- /dev/null +++ b/demo/test-dexsellmarketordertx.js @@ -0,0 +1,40 @@ +'use strict' +console.error('\n=====RUN-TEST-DEXSELLMARKETORDERTX-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for sell limit transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建限价卖单交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var dexSellMarketTxinfo = { + nTxType: WiccApi.DEX_SELL_MARKET_ORDER_TX, + nVersion: 1, + nValidHeight: 602371, + fees: 10000, + srcRegId: '0-1', + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + feeSymbol: WriterHelper.prototype.CoinType.WICC, + coinSymbol: WriterHelper.prototype.CoinType.WUSD, + assetSymbol:WriterHelper.prototype.CoinType.WICC, + assetAmount:30000000000, + network: 'testnet' + }; + + var dexSellMarketOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_SELL_MARKET_ORDER_TX, dexSellMarketTxinfo) + console.log("----dexSellMarketOrderTx----", dexSellMarketOrderTx) + console.error('\n=====RUN-TEST-DEXSELLMARKETORDERTX-END=====\n') diff --git a/demo/test-fcoinstake.js b/demo/test-fcoinstake.js new file mode 100644 index 0000000..2da63b6 --- /dev/null +++ b/demo/test-fcoinstake.js @@ -0,0 +1,50 @@ +'use strict' +console.error('\n=====RUN-TEST-FCOINSTAKE-START=====\n') +// const express = require("express"); +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') + +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +// 验证地址 +var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') +console.log(ret) + +/* +Build a transaction for fcoin stake transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 10000 sawi (0.0001 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, txUid: operator's regid +5, fcoinsToStake: the number of coins stake +*/ +/* +构建权益币质押交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、txUid:操作者的regid +5、fcoinsToStake:质押数量 +*/ +var fcoinStakeTxinfo = { + nTxType: WiccApi.FCOIN_STAKE_TX, + nVersion: 1, + nValidHeight: 23594, + txUid:"", + fees: 100000, + feeSymbol:WriterHelper.prototype.CoinType.WICC, + stakeType:WriterHelper.prototype.BalanceOpType.ADD_FREE, + publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + fcoinsToStake: 2000000000000, + network: 'testnet' + }; + + + var cfcoinStakeTx = wiccApi.createSignTransaction(privateKey, WiccApi.FCOIN_STAKE_TX, fcoinStakeTxinfo) + console.log("----cointransferTx----", cfcoinStakeTx) + + console.error('\n=====RUN-TEST-FCOINSTAKE-END=====\n') diff --git a/demo/test-messagevertify.js b/demo/test-messagevertify.js new file mode 100644 index 0000000..9eb12b1 --- /dev/null +++ b/demo/test-messagevertify.js @@ -0,0 +1,20 @@ +'use strict'; +console.error('\n=====RUN-TEST-MESSAGEVERTIFY-START=====\n') +var WiccApi = require('../index'); +var Hash = require('../src/lib/crypto/hash'); +var ECDSA = require('../src/lib/crypto/ecdsa'); + +var privateKey = WiccApi.PrivateKey.fromWIF("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") +var msg = "WaykiChain" +var msgBuff = Buffer.from(msg) + +var msgBuffHash = Hash.sha256(Hash.sha256ripemd160(msgBuff)); +var signMsg = ECDSA.sign(msgBuffHash, privateKey, 'endian') + console.log("签名消息"+signMsg) + //验证消息 +var pubKey=privateKey.toPublicKey(); +console.log("公钥:"+pubKey) +var vertifySuccess=ECDSA.verify(msgBuffHash, signMsg, pubKey, 'endian') + +console.log("验证成功?"+vertifySuccess) +console.error('\n=====RUN-TEST-MESSAGEVERTIFY-END=====\n') diff --git a/demo/test-registeraccounttx.js b/demo/test-registeraccounttx.js new file mode 100644 index 0000000..18fc221 --- /dev/null +++ b/demo/test-registeraccounttx.js @@ -0,0 +1,41 @@ +'use strict' +console.error('\n=====RUN-TEST-REGISTERACCOUNTTX-START=====\n') +var WiccApi = require('../index'); + +//environment init +//环境初始化 +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +//import private key +//引入私钥 +var privateKey = WiccApi.PrivateKey.fromWIF('Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb') +var publicKey = privateKey.toPublicKey(); + +/* +Build a transaction for register account +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when registering a account, >= 100000000 sawi (0.1 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建注册地址的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:注册账户交易时的手续费, >= 10000 sawi(0.0001 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var registeraccounttxInfo = { + nTxType: 2, //REGISTER_ACCOUNT_TX + nVersion: 1, + nValidHeight: 34632, + fees: 10000, + pubkey: publicKey.toString(), + minerPubkey: '' + }; + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.REGISTER_ACCOUNT_TX, registeraccounttxInfo) +console.log("genregisteraccountraw rawtx=") +console.log(rawtx) +console.error('\n=====RUN-TEST-REGISTERACCOUNTTX-END=====\n') \ No newline at end of file diff --git a/demo/test-registercontracttx.js b/demo/test-registercontracttx.js new file mode 100644 index 0000000..9d8d39f --- /dev/null +++ b/demo/test-registercontracttx.js @@ -0,0 +1,60 @@ +'use strict'; +console.error('\n=====RUN-TEST-REGISTERCONTACTTX-START=====\n') +// usage: +// node test-registerapptx.js + +var _ = require('lodash'); +var WiccApi = require('../index'); +var fs = require("fs") + +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +var script = fs.readFileSync(__dirname + '/data/contract-hello.lua'); +//console.log("load script file:") +//console.log(script); + +console.log(_.isString(script)) +console.log(_.isArray(script)) +console.log(_.isArrayBuffer(script)) +console.log(_.isBuffer(script)) + +/* +Build a transaction for deploy smart contract +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 110000000 sawi (1.1 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建发布合约的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 110000000 sawi(1.1 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var regAppInfo = { + nTxType: WiccApi.REG_APP_TX, + nVersion: 1, + nValidHeight: 110482, // create height + regAcctId: "0-1", // sender's regId + script: script, // contract scrypt content, string or buf + scriptDesc: "test contract", // contract scrypt description, string or buf + fees: 4200000000, // fees pay for miner + }; + +var wiccPrivateKey = 'Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13' +console.log("wicc private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +//console.log("get private key:") +//console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.REG_APP_TX, regAppInfo) +console.log("reg app tx raw: ") +console.log(rawtx) +console.error('\n=====RUN-TEST-REGISTERCONTACTTX-END=====\n') \ No newline at end of file diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js new file mode 100644 index 0000000..64dd98b --- /dev/null +++ b/demo/test-ucointransfertx.js @@ -0,0 +1,58 @@ +'use strict' +console.error('\n=====RUN-TEST-UCOINTRANSFERTX-START=====\n') +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') + +var privateKey = WiccApi.PrivateKey.fromWIF('Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ') +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for common transfer +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4, srcRegId: the regid of the transferor +5, value: transfer amount +6, coinType: currency type +7, feesCoinType: fees type +*/ +/* +构建转账交易的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +4、srcRegId:转账者的regid +5、value:转账金额 +6、coinType:币种类型 +7、feesCoinType:小费类型 +*/ + +var coinType = WriterHelper.prototype.CoinType.WUSD +var destAddr = 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65' +var value = 32432 +var destArr = [{ + "coinType":coinType, + "destAddr":destAddr, + "value":value + } +] +var cointransferTxinfo = { + nTxType: WiccApi.UCOIN_TRANSFER_TX, + nVersion: 1, + nValidHeight: 602371, + fees: 10000, + srcRegId: '', + destArr:destArr, + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + memo: "test transfer", + feesCoinType: WriterHelper.prototype.CoinType.WICC, + network: 'testnet' +}; + +var cointransferTx = wiccApi.createSignTransaction(privateKey, WiccApi.UCOIN_TRANSFER_TX, cointransferTxinfo) +console.log("----cointransferTx----", cointransferTx) +console.error('\n=====RUN-TEST-UCOINTRANSFERTX-END=====\n') + diff --git a/demo/test-ucontractinvoketx.js b/demo/test-ucontractinvoketx.js new file mode 100644 index 0000000..c60e4e5 --- /dev/null +++ b/demo/test-ucontractinvoketx.js @@ -0,0 +1,52 @@ +'use strict'; +console.error('\n=====RUN-TEST-UCONTRACTINVOKETX-START=====\n') +// usage: node test-contracttx.js + +var WiccApi = require('../index'); +var WriterHelper = require('../src/lib/util/writerhelper') +var arg = { network: 'testnet' } +var wiccApi = new WiccApi(arg) + +/* +Build a transaction for calling smart contract +note: +1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 +2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +*/ +/* +构建调用合约的交易单 +注意: +1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 +2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 +*/ +var invokeAppInfo = { + nTxType: WiccApi.UCOIN_CONTRACT_INVOKE_TX, + nVersion: 1, + nValidHeight: 34400, // create height + publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + srcRegId: '0-1', // sender's regId + destRegId: "24555-1", // app regId + feesCoinType: WriterHelper.prototype.CoinType.WICC, + coinType: WriterHelper.prototype.CoinType.WUSD, + fees: 1000000, // fees pay for miner + value: 8, // amount of WICC to be sent to the app account + vContract: "f018" // contract method, hex format string +}; + +var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' +console.log("wicc wif private key:") +console.log(wiccPrivateKey) + +var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) +console.log("get private key:") +console.log(privateKey) +var address = privateKey.toAddress(); +console.log("get address:") +console.log(address.toString()) + +var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.UCOIN_CONTRACT_INVOKE_TX, invokeAppInfo) +console.log("contract tx raw: ") +console.log(rawtx) +console.error('\n=====RUN-TEST-UCONTRACTINVOKETX-END=====\n') \ No newline at end of file diff --git a/demo/test-wallet.js b/demo/test-wallet.js new file mode 100644 index 0000000..ec650f1 --- /dev/null +++ b/demo/test-wallet.js @@ -0,0 +1,53 @@ +'use strict'; +console.error('\n=====RUN-TEST-WALLET-START=====\n') +var WiccApi = require('../index'); + +//environment init +//环境初始化 +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +//Create Mnemonic Code +//创建助记词 +var strMne = wiccApi.createAllCoinMnemonicCode() +console.log('New MnemonicCode='+ strMne) + +//Check if the mnemonic is valid +//检查助记词是否有效 +var ret = wiccApi.checkMnemonicCode(strMne) +console.log('Check MnemonicCode Result=' + ret) + +//Get WIF privatekey from mnemoniccode +//根据助记词获取对应的WIF格式私钥 +var privateKey1 = wiccApi.getPriKeyFromMnemonicCode(strMne) +console.log('privateKey1='+privateKey1) + +//Create a wallet based on the mnemonic, '12345678' is the wallet password +//根据助记词创建钱包,'12345678'为钱包密码 +var walletInfo = wiccApi.createWallet(strMne, '12345678') +console.log('walletInfo=') +console.log(walletInfo) + +//Get WIF privatekey from wallet +//根据钱包种子获取对应的WIF格式私钥 +var privateKey2 = wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, '12345678') +console.log('privateKey2='+privateKey2) + +//Get mnemonics based on wallet seeds +//根据钱包种子获取助记词 +var Mne = wiccApi.getMnemonicCodeFromSeed(walletInfo.seedinfo, '12345678') +console.log("Get MnemonicCode from wallet seed="+Mne) + +//Get an address based on the WIF format private key. Note: privateKey2 and privateKey1 are equal. +//根据WIF格式私钥获取地址 ,注意:privateKey2 和 privateKey1 是一样的 +var privateKey = WiccApi.PrivateKey.fromWIF(privateKey2) +var pubKey=privateKey.toPublicKey(); +var address = privateKey.toAddress(); +console.log("New Create publicKey1="+pubKey,"New Create address="+address.toString()) + +//Check if the address is valid +//检查地址是否有效 +ret = wiccApi.validateAddress(address) +console.log("Check address Result="+ret) + +console.error('\n=====RUN-TEST-WALLET-END=====\n') diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js index 0695f9a..7a7f5ef 100644 --- a/dist/wicc-wallet-lib.js +++ b/dist/wicc-wallet-lib.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=147)}([function(e,t,r){"use strict";(function(e){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=148)}([function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var i=r(149),n=r(150),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; +var i=r(150),n=r(151),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; /** * @license * Lodash @@ -13,20 +13,20 @@ var i=r(149),n=r(150),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?21474836 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,S=32,I=64,x=128,k=256,A=512,E=30,M="...",B=800,T=16,R=1,P=2,O=1/0,C=9007199254740991,N=1.7976931348623157e308,z=NaN,U=4294967295,j=U-1,D=U>>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";var i=r(13),n=r(1);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,o){if(o=o||"(unknown name)",n.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,o)}else if(typeof e!==t)throw new i.InvalidArgumentType(e,t,o)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,o)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(39),n=r(9),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(25),o=r(15),a=r(2);function s(e,t){if(e.length!==t.length)return!1;for(var r=e.length,i=0;i>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(9),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(25),a=r(269),s=(r(15),r(2)),f=r(7),u=r(13),c=r(136),h=r(137),d=r(8);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";var i=r(1),n=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"==typeof t},isHexa:n,isHexaString:n,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(13),a=r(52),s=r(36),f=r(5),u=r(15),c=r(29);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){var i;e.exports=(i=r(6),r(37),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(119),i.curve=r(62),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(156).version,i.utils=r(157),i.rand=r(158),i.curve=r(57),i.curves=r(164),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(133),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(153).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(42),o=r(8),a=r(12),s=r(9),f=r(25),u=r(16);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);for(let t of e.entries())this.writeString(t[0]),this.writeVarInt(8,t[1])}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1,//!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";var i=r(11),n=r(1);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,o){if(o=o||"(unknown name)",n.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,o)}else if(typeof e!==t)throw new i.InvalidArgumentType(e,t,o)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,o)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(39),n=r(8),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(38),o=r(12),a=r(29),s=r(55),f=r(5),u=r(8),c=r(1),h=r(2),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=n.getN();do{e=i.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(i.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?u.reverse(this.hashbuf):this.hashbuf;o=f.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=f.sha256hmac(r,o),o=f.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=f.sha256hmac(r,o),r=f.sha256hmac(r,o);for(var h=i.fromBuffer(r),d=n.getN(),l=0;l>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(8),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(214).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(24),a=r(269),s=(r(15),r(2)),f=r(7),u=r(11),c=r(137),h=r(138),d=r(9);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var i;e.exports=(i=r(6),r(37),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(11),a=r(52),s=r(36),f=r(5),u=r(15),c=r(29);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(120),i.curve=r(62),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(156).version,i.utils=r(157),i.rand=r(158),i.curve=r(57),i.curves=r(164),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(134),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(153).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(38),o=r(5),a=r(15),s=r(36),f=r(1),u=r(2);function c(e,t){if(!(this instanceof c))return new c(e,t);if(u.checkArgument(e,"First argument is required, please include public key data."),e instanceof c)return e;t=t||{};var r=this._classifyArgs(e,t);return r.point.validate(),a.defineImmutable(this,{point:r.point,compressed:r.compressed,network:r.network||s.defaultNetwork}),this}c.prototype._classifyArgs=function(e,r){var i={compressed:f.isUndefined(r.compressed)||r.compressed};if(e instanceof n)i.point=e;else if(e.x&&e.y)i=c._transformObject(e);else if("string"==typeof e)i=c._transformDER(t.from(e,"hex"));else if(c._isBuffer(e))i=c._transformDER(e);else{if(!c._isPrivateKey(e))throw new TypeError("First argument is an unrecognized data format.");i=c._transformPrivateKey(e)}return i.network||(i.network=f.isUndefined(r.network)?void 0:s.get(r.network)),i},c._isPrivateKey=function(e){return e instanceof r(64)},c._isBuffer=function(e){return e instanceof t||e instanceof Uint8Array},c._transformPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");var t={};return t.point=n.getG().mul(e.bn),t.compressed=e.compressed,t.network=e.network,t},c._transformDER=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");var r,o,a,s,h={};if(t=!!f.isUndefined(t)||t,4!==e[0]&&(t||6!==e[0]&&7!==e[0]))if(3===e[0])a=e.slice(1),r=new i(a),(h=c._transformX(!0,r)).compressed=!0;else{if(2!==e[0])throw new TypeError("Invalid DER format public key");a=e.slice(1),r=new i(a),(h=c._transformX(!1,r)).compressed=!0}else{if(a=e.slice(1,33),s=e.slice(33,65),32!==a.length||32!==s.length||65!==e.length)throw new TypeError("Length of x and y must be 32 bytes");r=new i(a),o=new i(s),h.point=new n(r,o),h.compressed=!1}return h},c._transformX=function(e,t){u.checkArgument("boolean"==typeof e,"Must specify whether y is odd or not (true or false)");var r={};return r.point=n.fromX(e,t),r},c._transformObject=function(e){var t=new i(e.x,"hex"),r=new i(e.y,"hex");return new c(new n(t,r),{compressed:e.compressed})},c.fromPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");var t=c._transformPrivateKey(e);return new c(t.point,{compressed:t.compressed,network:t.network})},c.fromDER=c.fromBuffer=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");var r=c._transformDER(e,t);return new c(r.point,{compressed:r.compressed})},c.fromPoint=function(e,t){return u.checkArgument(e instanceof n,"First argument must be an instance of Point."),new c(e,{compressed:t})},c.fromString=function(e,r){var i=t.from(e,r||"hex"),n=c._transformDER(i);return new c(n.point,{compressed:n.compressed})},c.fromX=function(e,t){var r=c._transformX(e,t);return new c(r.point,{compressed:r.compressed})},c.getValidationError=function(e){var t;try{new c(e)}catch(e){t=e}return t},c.isValid=function(e){return!c.getValidationError(e)},c.prototype.toObject=c.prototype.toJSON=function(){return{x:this.point.getX().toString("hex",2),y:this.point.getY().toString("hex",2),compressed:this.compressed}},c.prototype.toBuffer=c.prototype.toDER=function(){var e,r=this.point.getX(),i=this.point.getY(),n=r.toBuffer({size:32}),o=i.toBuffer({size:32});return this.compressed?(e=o[o.length-1]%2?t.from([3]):t.from([2]),t.concat([e,n])):(e=t.from([4]),t.concat([e,n,o]))},c.prototype._getID=function(){return o.sha256ripemd160(this.toBuffer())},c.prototype.toAddress=function(e){return r(16).fromPublicKey(this,e||this.network)},c.prototype.toString=function(){return this.toDER().toString("hex")},c.prototype.inspect=function(){return""},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(9),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(71).Transform,o=r(75).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(11),o=r(22),a=r(31),s=r(30),f=r(8),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(84),m=r(85),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(27),n=r(34);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(42),a=r(9),s=r(15),f=r(29),u=r(13),c=r(11);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(39).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(26),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(160),i.short=r(161),i.mont=r(162),i.edwards=r(163)},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(70);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(79),s=r(108),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(16),o=r(52),a=r(7),s=r(15),f=r(36),u=r(38),c=r(29),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(132),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(84),e.exports.Input=r(85),e.exports.Output=r(31),e.exports.UnspentOutput=r(134),e.exports.Signature=r(54),e.exports.Sighash=r(33),e.exports.SighashWitness=r(86),e.exports.RegisterAccountTx=r(135),e.exports.CommonTx=r(138),e.exports.ContractTx=r(139),e.exports.DelegateTx=r(140)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(9),a=r(30),s=r(8),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(72).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(73),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(98)).Stream=t,t.Readable=t,t.Writable=r(74),t.Duplex=r(35),t.Transform=r(102),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(59);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(99),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(100);function m(){}function g(e,t){s=s||r(35),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(35),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(26),r(101).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(97),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(103),t.sha384=r(192),t.sha512=r(104)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(114);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(112),GCM:r(112)},n=r(114);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(14),n=r(40);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(28),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(9),a=r(15);function s(e){if(!(this instanceof s))return new s(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+typeof e+'" for Opcode');t=s.map[e]}return a.defineImmutable(this,{num:t}),this}for(var f in s.fromBuffer=function(e){return n.checkArgument(o.isBuffer(e)),new s(Number("0x"+e.toString("hex")))},s.fromNumber=function(e){return n.checkArgument(i.isNumber(e)),new s(e)},s.fromString=function(e){n.checkArgument(i.isString(e));var t=s.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new s(t)},s.prototype.toHex=function(){return this.num.toString(16)},s.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},s.prototype.toNumber=function(){return this.num},s.prototype.toString=function(){var e=s.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},s.smallInt=function(e){return n.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),n.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?s("OP_0"):new s(s.map.OP_1+e-1)},s.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},s.reverseMap=[],s.map)s.reverseMap[s.map[f]]=f;i.extend(s,s.map),s.isSmallIntOp=function(e){return e instanceof s&&(e=e.toNumber()),e===s.map.OP_0||e>=s.map.OP_1&&e<=s.map.OP_16},s.prototype.inspect=function(){return""},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(13),f=r(9),u=r(15),c=r(30),h=r(8),d=r(5),l=r(11),p=r(33),b=r(86),m=r(16),g=r(134),v=r(85),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(31),x=r(22),k=r(64),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(11),n=(r(22),r(31),r(30)),o=r(8),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(25),n=r(0),o=r(1),a=r(2),s=r(7),f=r(65),u=r(52),c=r(5),h=r(36),d=r(38),l=r(64),p=r(55),b=r(13),m=b.HDPrivateKey,g=r(9),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(142);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");s=s||d._mnemonic(n,r),Object.defineProperty(this,"wordlist",{configurable:!1,value:r}),Object.defineProperty(this,"phrase",{configurable:!1,value:s})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(45),o=r(94),a=r(34),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(59);e.exports=y;var o,a=r(91);y.ReadableState=v;r(72).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(99),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(100);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(35));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(75).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(35),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(35),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(32),a=r(4).Buffer,s=r(106),f=r(76),u=r(77),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(26))},function(e,t,r){var i=r(106),n=r(76),o=r(77),a=r(109),s=r(110),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(14),n=r(119);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(28).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(28),n=r(49),o=r(121),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==s.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+s(r).toString():n=n+" "+s(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},g.prototype.toASM=function(){for(var e="",t=0;t"},g.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==s.OP_DUP||this.chunks[1].opcodenum!==s.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==s.OP_EQUALVERIFY||this.chunks[4].opcodenum!==s.OP_CHECKSIG)},g.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},g.prototype.getPublicKey=function(){return h.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},g.prototype.getPublicKeyHash=function(){return h.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},g.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===s.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},g.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},g.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===s.OP_HASH160&&20===e[1]&&e[e.length-1]===s.OP_EQUAL},g.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},g.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},g.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===s.OP_0||t[0]>=s.OP_1&&t[0]<=s.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},g.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=g.fromBuffer(t)}catch(e){if(e instanceof l.Script.InvalidBuffer)return!1;throw e}return e.classify()!==g.types.UNKNOWN},g.prototype.isMultisigOut=function(){return this.chunks.length>3&&s.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&b.isBuffer(e.buf)})&&s.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===s.OP_CHECKMULTISIG},g.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&b.isBuffer(e.buf)&&u.isTxDER(e.buf)})},g.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===s.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=g.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},g.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return d.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},g.prototype.isPushOnly=function(){return d.every(this.chunks,function(e){return e.opcodenum<=s.OP_16})},(g.types={}).UNKNOWN="Unknown",g.types.PUBKEY_OUT="Pay to public key",g.types.PUBKEY_IN="Spend from public key",g.types.PUBKEYHASH_OUT="Pay to public key hash",g.types.PUBKEYHASH_IN="Spend from public key hash",g.types.SCRIPTHASH_OUT="Pay to script hash",g.types.SCRIPTHASH_IN="Spend from script hash",g.types.MULTISIG_OUT="Pay to multisig",g.types.MULTISIG_IN="Spend from multisig",g.types.DATA_OUT="Data push",g.OP_RETURN_STANDARD_SIZE=80,g.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=g.types.UNKNOWN?e:this.classifyInput()},(g.outputIdentifiers={}).PUBKEY_OUT=g.prototype.isPublicKeyOut,g.outputIdentifiers.PUBKEYHASH_OUT=g.prototype.isPublicKeyHashOut,g.outputIdentifiers.MULTISIG_OUT=g.prototype.isMultisigOut,g.outputIdentifiers.SCRIPTHASH_OUT=g.prototype.isScriptHashOut,g.outputIdentifiers.DATA_OUT=g.prototype.isDataOut,g.prototype.classifyOutput=function(){for(var e in g.outputIdentifiers)if(g.outputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},(g.inputIdentifiers={}).PUBKEY_IN=g.prototype.isPublicKeyIn,g.inputIdentifiers.PUBKEYHASH_IN=g.prototype.isPublicKeyHashIn,g.inputIdentifiers.MULTISIG_IN=g.prototype.isMultisigIn,g.inputIdentifiers.SCRIPTHASH_IN=g.prototype.isScriptHashIn,g.prototype.classifyInput=function(){for(var e in g.inputIdentifiers)if(g.inputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},g.prototype.isStandard=function(){return this.classify()!==g.types.UNKNOWN},g.prototype.prepend=function(e){return this._addByType(e,!0),this},g.prototype.equals=function(e){if(h.checkState(e instanceof g,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===s.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===s.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===s.OP_PUSHDATA1:!(r.length<=65535)||i===s.OP_PUSHDATA2)},g.prototype._decodeOP_N=function(e){if(e===s.OP_0)return 0;if(e>=s.OP_1&&e<=s.OP_16)return e-(s.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},g.prototype.getSignatureOperationsCount=function(e){e=!!d.isUndefined(e)||e;var t=this,r=0,i=s.OP_INVALIDOPCODE;return d.each(t.chunks,function(n){var o=n.opcodenum;o==s.OP_CHECKSIG||o==s.OP_CHECKSIGVERIFY?r++:o!=s.OP_CHECKMULTISIG&&o!=s.OP_CHECKMULTISIGVERIFY||(e&&i>=s.OP_1&&i<=s.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=g}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(16),f=r(87);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=r(16),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(12),r(5)),a=r(10),s=r(24),f=r(13),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=y.Hardened||t)throw new b.InvalidIndexCantDeriveHardened;if(e<0)throw new b.InvalidPath(e);var r,i=v.integerAsBuffer(e),n=v.concat([this.publicKey.toBuffer(),i]),a=f.sha512hmac(n,this._buffers.chainCode),s=o.fromBuffer(a.slice(0,32),{size:32}),u=a.slice(32,64);try{r=d.fromPoint(h.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new y({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},y.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new b.InvalidIndexCantDeriveHardened;if(!y.isValidPath(e))throw new b.InvalidPath(e);return u._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},y.isValidSerialized=function(e,t){return i.isNull(y.getSerializedError(e,t))},y.getSerializedError=function(e,t){if(!i.isString(e)&&!v.isBuffer(e))return new b.UnrecognizedArgument("expected buffer or string");if(!a.validCharacters(e))return new p.InvalidB58Char("(unknown)",e);try{e=s.decode(e)}catch(t){return new p.InvalidB58Checksum(e)}if(e.length!==y.DataSize)return new b.InvalidLength(e);if(!i.isUndefined(t)){var r=y._validateNetwork(e,t);if(r)return r}var n=v.integerFromBuffer(e.slice(0,4));return n===c.livenet.xprivkey||n===c.testnet.xprivkey?new b.ArgumentIsPrivateExtended:null},y._validateNetwork=function(e,t){var r=c.get(t);if(!r)return new p.InvalidNetworkArgument(t);var i=e.slice(y.VersionStart,y.VersionEnd);return v.integerFromBuffer(i)!==r.xpubkey?new p.InvalidNetwork(i):null},y.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=h.getG().mul(o.fromBuffer(t.privateKey));return t.publicKey=h.pointToCompressed(r),t.version=v.integerAsBuffer(c.get(v.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},y.prototype._buildFromObject=function(e){var t={version:e.network?v.integerAsBuffer(c.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?v.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?v.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?v.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?v.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?v.hexToBuffer(e.publicKey):v.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?v.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},y.prototype._buildFromSerialized=function(e){var t=s.decode(e),r={version:t.slice(y.VersionStart,y.VersionEnd),depth:t.slice(y.DepthStart,y.DepthEnd),parentFingerPrint:t.slice(y.ParentFingerPrintStart,y.ParentFingerPrintEnd),childIndex:t.slice(y.ChildIndexStart,y.ChildIndexEnd),chainCode:t.slice(y.ChainCodeStart,y.ChainCodeEnd),publicKey:t.slice(y.PublicKeyStart,y.PublicKeyEnd),checksum:t.slice(y.ChecksumStart,y.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),g.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=v.concat(r),n=s.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new p.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=c.get(v.integerFromBuffer(e.version));o=s.encode(v.concat(r)),e.xpubkey=t.from(o);var u=new d(e.publicKey,{network:a}),h=y.ParentFingerPrintSize,l=f.sha256ripemd160(u.toBuffer()).slice(0,h);return g.defineImmutable(this,{xpubkey:o,network:a,depth:v.integerFromSingleByteBuffer(e.depth),publicKey:u,fingerPrint:l}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(v.isBuffer(i),t+" argument is not a buffer, it's "+typeof i),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("publicKey",y.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.fromString=function(e){return n.checkArgument(i.isString(e),"No valid string was provided"),new y(e)},y.fromObject=function(e){return n.checkArgument(i.isObject(e),"No valid argument was provided"),new y(e)},y.prototype.toString=function(){return this.xpubkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:c.get(v.integerFromBuffer(this._buffers.version)).name,depth:v.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:v.integerFromBuffer(this.fingerPrint),parentFingerPrint:v.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:v.integerFromBuffer(this._buffers.childIndex),chainCode:v.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:v.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},y.fromBuffer=function(e){return new y(e)},y.prototype.toBuffer=function(){return v.copy(this._buffers.xpubkey)},y.Hardened=2147483648,y.RootElementAlias=["m","M"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PublicKeySize=33,y.CheckSumSize=4,y.DataSize=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PublicKeyStart=y.ChainCodeEnd,y.PublicKeyEnd=y.PublicKeyStart+y.PublicKeySize,y.ChecksumStart=y.PublicKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,m(y.PublicKeyEnd===y.DataSize),m(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(39),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(148);e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(92),a=r(16),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(144),l=r(88),p=r(9),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(135)},3:{txName:"COMMON_TX",txAction:r(138)},4:{txName:"CONTRACT_TX",txAction:r(139)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(140)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},16:{txName:"PRICE_FEED_TX",txAction:r(322)},21:{txName:"CDP_STAKE_TX",txAction:r(323)},22:{txName:"CDP_REDEEMP_TX",txAction:r(324)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(325)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(326)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(327)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(328)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(329)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(330)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e,t,r){"use strict";(function(t,i){var n=e.exports;n.version="v"+r(152).version,n.versionGuard=function(e){if(void 0!==e){throw new Error("More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.")}},n.versionGuard(t._bitcore),t._bitcore=n.version,n.crypto={},n.crypto.BN=r(7),n.crypto.ECDSA=r(10),n.crypto.Hash=r(5),n.crypto.Random=r(55),n.crypto.Point=r(38),n.crypto.Signature=r(11),n.encoding={},n.encoding.Base58=r(65),n.encoding.Base58Check=r(52),n.encoding.BufferReader=r(30),n.encoding.BufferWriter=r(8),n.encoding.Varint=r(270),n.util={},n.util.buffer=r(9),n.util.js=r(15),n.util.preconditions=r(2),n.util.util=r(12),n.util.BetItem=r(136),n.util.VoteFund=r(137),n.util.WriterHelper=r(24),n.errors=r(13),n.Address=r(16),n.Block=r(271),n.MerkleBlock=r(141),n.BlockHeader=r(67),n.HDPrivateKey=r(88),n.HDPublicKey=r(142),n.Networks=r(36),n.Opcode=r(83),n.PrivateKey=r(64),n.PublicKey=r(29),n.Script=r(22),n.Transaction=r(66),n.URI=r(273),n.Unit=r(87),n.deps={},n.deps.bnjs=r(23),n.deps.bs58=r(132),n.deps.Buffer=i,n.deps.elliptic=r(20),n.deps._=r(1),n.Transaction.sighash=r(33),n.Mnemonic=r(92)}).call(this,r(19),r(0).Buffer)},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT"}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(155);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},__npminstall_done:"Wed Oct 23 2019 20:43:02 GMT+0800 (GMT+08:00)",_from:"elliptic@6.4.0",_resolved:"https://registry.npm.taobao.org/elliptic/download/elliptic-6.4.0.tgz?cache=0&sync_timestamp=1567592249994&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felliptic%2Fdownload%2Felliptic-6.4.0.tgz"}},function(e,t,r){"use strict";var i=t,n=r(23),o=r(34),a=r(93);i.assert=o,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){for(var r=[],i=1<=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(58),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(58),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(69),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(95),t.sha384=r(168),t.sha512=r(96)},function(e,t,r){"use strict";var i=r(27),n=r(45),o=r(94),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(69),n=r(93),o=r(34);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(69),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(103),o=r(41),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(41),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(32),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(115),n=r(4).Buffer,o=r(80),a=r(116),s=r(32),f=r(60),u=r(61);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(117),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(14),n=new(r(118)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(117),h=r(40);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(14),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(62),n=r(14),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(62),n=r(18),o=r(14),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(82),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(122),t.sha384=r(230),t.sha512=r(123)},function(e,t,r){"use strict";var i=r(28),n=r(49),o=r(121),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(82),n=r(120),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(14),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(82),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(63),n=r(129),o=r(130),a=r(14),s=r(81),f=r(46),u=r(131),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(40),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(26))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(42),o=r(9),a=r(14),s=r(8),f=r(24),u=r(17);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);for(let t of e.entries())this.writeString(t[0]),this.writeVarInt(8,t[1])}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1,//!< add operate +MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r"},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(71).Transform,o=r(75).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(12),o=r(22),a=r(31),s=r(30),f=r(9),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(84),m=r(85),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(26),n=r(34);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(42),a=r(8),s=r(15),f=r(29),u=r(11),c=r(12);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(39).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(25),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(160),i.short=r(161),i.mont=r(162),i.edwards=r(163)},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(70);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(79),s=r(109),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(17),o=r(52),a=r(7),s=r(15),f=r(36),u=r(38),c=r(29),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(133),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(84),e.exports.Input=r(85),e.exports.Output=r(31),e.exports.UnspentOutput=r(135),e.exports.Signature=r(54),e.exports.Sighash=r(33),e.exports.SighashWitness=r(86),e.exports.RegisterAccountTx=r(136),e.exports.CommonTx=r(139),e.exports.ContractTx=r(140),e.exports.DelegateTx=r(141)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(8),a=r(30),s=r(9),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(72).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(73),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(99)).Stream=t,t.Readable=t,t.Writable=r(74),t.Duplex=r(35),t.Transform=r(103),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(59);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(100),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(101);function m(){}function g(e,t){s=s||r(35),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(35),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(25),r(102).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(98),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(104),t.sha384=r(192),t.sha512=r(105)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(115);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(113),GCM:r(113)},n=r(115);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(13),n=r(40);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(27),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(15);function s(e){if(!(this instanceof s))return new s(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+typeof e+'" for Opcode');t=s.map[e]}return a.defineImmutable(this,{num:t}),this}for(var f in s.fromBuffer=function(e){return n.checkArgument(o.isBuffer(e)),new s(Number("0x"+e.toString("hex")))},s.fromNumber=function(e){return n.checkArgument(i.isNumber(e)),new s(e)},s.fromString=function(e){n.checkArgument(i.isString(e));var t=s.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new s(t)},s.prototype.toHex=function(){return this.num.toString(16)},s.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},s.prototype.toNumber=function(){return this.num},s.prototype.toString=function(){var e=s.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},s.smallInt=function(e){return n.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),n.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?s("OP_0"):new s(s.map.OP_1+e-1)},s.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},s.reverseMap=[],s.map)s.reverseMap[s.map[f]]=f;i.extend(s,s.map),s.isSmallIntOp=function(e){return e instanceof s&&(e=e.toNumber()),e===s.map.OP_0||e>=s.map.OP_1&&e<=s.map.OP_16},s.prototype.inspect=function(){return""},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(11),f=r(8),u=r(15),c=r(30),h=r(9),d=r(5),l=r(12),p=r(33),b=r(86),m=r(17),g=r(135),v=r(85),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(31),x=r(22),k=r(64),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(12),n=(r(22),r(31),r(30)),o=r(9),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(24),n=r(0),o=r(1),a=r(2),s=r(7),f=r(65),u=r(52),c=r(5),h=r(36),d=r(38),l=r(64),p=r(55),b=r(11),m=b.HDPrivateKey,g=r(8),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(143);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");s=s||d._mnemonic(n,r),Object.defineProperty(this,"wordlist",{configurable:!1,value:r}),Object.defineProperty(this,"phrase",{configurable:!1,value:s})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(26).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(95),a=r(34),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(59);e.exports=y;var o,a=r(91);y.ReadableState=v;r(72).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(100),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(101);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(35));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(75).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(35),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(35),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(32),a=r(4).Buffer,s=r(107),f=r(76),u=r(77),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(25))},function(e,t,r){var i=r(107),n=r(76),o=r(77),a=r(110),s=r(111),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(13),n=r(120);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(122),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==s.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+s(r).toString():n=n+" "+s(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},g.prototype.toASM=function(){for(var e="",t=0;t"},g.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==s.OP_DUP||this.chunks[1].opcodenum!==s.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==s.OP_EQUALVERIFY||this.chunks[4].opcodenum!==s.OP_CHECKSIG)},g.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},g.prototype.getPublicKey=function(){return h.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},g.prototype.getPublicKeyHash=function(){return h.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},g.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===s.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},g.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},g.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===s.OP_HASH160&&20===e[1]&&e[e.length-1]===s.OP_EQUAL},g.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},g.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},g.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===s.OP_0||t[0]>=s.OP_1&&t[0]<=s.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},g.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=g.fromBuffer(t)}catch(e){if(e instanceof l.Script.InvalidBuffer)return!1;throw e}return e.classify()!==g.types.UNKNOWN},g.prototype.isMultisigOut=function(){return this.chunks.length>3&&s.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&b.isBuffer(e.buf)})&&s.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===s.OP_CHECKMULTISIG},g.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&b.isBuffer(e.buf)&&u.isTxDER(e.buf)})},g.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===s.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=g.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},g.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return d.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},g.prototype.isPushOnly=function(){return d.every(this.chunks,function(e){return e.opcodenum<=s.OP_16})},(g.types={}).UNKNOWN="Unknown",g.types.PUBKEY_OUT="Pay to public key",g.types.PUBKEY_IN="Spend from public key",g.types.PUBKEYHASH_OUT="Pay to public key hash",g.types.PUBKEYHASH_IN="Spend from public key hash",g.types.SCRIPTHASH_OUT="Pay to script hash",g.types.SCRIPTHASH_IN="Spend from script hash",g.types.MULTISIG_OUT="Pay to multisig",g.types.MULTISIG_IN="Spend from multisig",g.types.DATA_OUT="Data push",g.OP_RETURN_STANDARD_SIZE=80,g.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=g.types.UNKNOWN?e:this.classifyInput()},(g.outputIdentifiers={}).PUBKEY_OUT=g.prototype.isPublicKeyOut,g.outputIdentifiers.PUBKEYHASH_OUT=g.prototype.isPublicKeyHashOut,g.outputIdentifiers.MULTISIG_OUT=g.prototype.isMultisigOut,g.outputIdentifiers.SCRIPTHASH_OUT=g.prototype.isScriptHashOut,g.outputIdentifiers.DATA_OUT=g.prototype.isDataOut,g.prototype.classifyOutput=function(){for(var e in g.outputIdentifiers)if(g.outputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},(g.inputIdentifiers={}).PUBKEY_IN=g.prototype.isPublicKeyIn,g.inputIdentifiers.PUBKEYHASH_IN=g.prototype.isPublicKeyHashIn,g.inputIdentifiers.MULTISIG_IN=g.prototype.isMultisigIn,g.inputIdentifiers.SCRIPTHASH_IN=g.prototype.isScriptHashIn,g.prototype.classifyInput=function(){for(var e in g.inputIdentifiers)if(g.inputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},g.prototype.isStandard=function(){return this.classify()!==g.types.UNKNOWN},g.prototype.prepend=function(e){return this._addByType(e,!0),this},g.prototype.equals=function(e){if(h.checkState(e instanceof g,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===s.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===s.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===s.OP_PUSHDATA1:!(r.length<=65535)||i===s.OP_PUSHDATA2)},g.prototype._decodeOP_N=function(e){if(e===s.OP_0)return 0;if(e>=s.OP_1&&e<=s.OP_16)return e-(s.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},g.prototype.getSignatureOperationsCount=function(e){e=!!d.isUndefined(e)||e;var t=this,r=0,i=s.OP_INVALIDOPCODE;return d.each(t.chunks,function(n){var o=n.opcodenum;o==s.OP_CHECKSIG||o==s.OP_CHECKSIGVERIFY?r++:o!=s.OP_CHECKMULTISIG&&o!=s.OP_CHECKMULTISIGVERIFY||(e&&i>=s.OP_1&&i<=s.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=g}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(17),f=r(87);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=r(17),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=r(11),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=y.Hardened||t)throw new b.InvalidIndexCantDeriveHardened;if(e<0)throw new b.InvalidPath(e);var r,i=v.integerAsBuffer(e),n=v.concat([this.publicKey.toBuffer(),i]),a=f.sha512hmac(n,this._buffers.chainCode),s=o.fromBuffer(a.slice(0,32),{size:32}),u=a.slice(32,64);try{r=d.fromPoint(h.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new y({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},y.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new b.InvalidIndexCantDeriveHardened;if(!y.isValidPath(e))throw new b.InvalidPath(e);return u._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},y.isValidSerialized=function(e,t){return i.isNull(y.getSerializedError(e,t))},y.getSerializedError=function(e,t){if(!i.isString(e)&&!v.isBuffer(e))return new b.UnrecognizedArgument("expected buffer or string");if(!a.validCharacters(e))return new p.InvalidB58Char("(unknown)",e);try{e=s.decode(e)}catch(t){return new p.InvalidB58Checksum(e)}if(e.length!==y.DataSize)return new b.InvalidLength(e);if(!i.isUndefined(t)){var r=y._validateNetwork(e,t);if(r)return r}var n=v.integerFromBuffer(e.slice(0,4));return n===c.livenet.xprivkey||n===c.testnet.xprivkey?new b.ArgumentIsPrivateExtended:null},y._validateNetwork=function(e,t){var r=c.get(t);if(!r)return new p.InvalidNetworkArgument(t);var i=e.slice(y.VersionStart,y.VersionEnd);return v.integerFromBuffer(i)!==r.xpubkey?new p.InvalidNetwork(i):null},y.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=h.getG().mul(o.fromBuffer(t.privateKey));return t.publicKey=h.pointToCompressed(r),t.version=v.integerAsBuffer(c.get(v.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},y.prototype._buildFromObject=function(e){var t={version:e.network?v.integerAsBuffer(c.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?v.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?v.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?v.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?v.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?v.hexToBuffer(e.publicKey):v.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?v.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},y.prototype._buildFromSerialized=function(e){var t=s.decode(e),r={version:t.slice(y.VersionStart,y.VersionEnd),depth:t.slice(y.DepthStart,y.DepthEnd),parentFingerPrint:t.slice(y.ParentFingerPrintStart,y.ParentFingerPrintEnd),childIndex:t.slice(y.ChildIndexStart,y.ChildIndexEnd),chainCode:t.slice(y.ChainCodeStart,y.ChainCodeEnd),publicKey:t.slice(y.PublicKeyStart,y.PublicKeyEnd),checksum:t.slice(y.ChecksumStart,y.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),g.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=v.concat(r),n=s.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new p.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=c.get(v.integerFromBuffer(e.version));o=s.encode(v.concat(r)),e.xpubkey=t.from(o);var u=new d(e.publicKey,{network:a}),h=y.ParentFingerPrintSize,l=f.sha256ripemd160(u.toBuffer()).slice(0,h);return g.defineImmutable(this,{xpubkey:o,network:a,depth:v.integerFromSingleByteBuffer(e.depth),publicKey:u,fingerPrint:l}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(v.isBuffer(i),t+" argument is not a buffer, it's "+typeof i),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("publicKey",y.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.fromString=function(e){return n.checkArgument(i.isString(e),"No valid string was provided"),new y(e)},y.fromObject=function(e){return n.checkArgument(i.isObject(e),"No valid argument was provided"),new y(e)},y.prototype.toString=function(){return this.xpubkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:c.get(v.integerFromBuffer(this._buffers.version)).name,depth:v.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:v.integerFromBuffer(this.fingerPrint),parentFingerPrint:v.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:v.integerFromBuffer(this._buffers.childIndex),chainCode:v.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:v.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},y.fromBuffer=function(e){return new y(e)},y.prototype.toBuffer=function(){return v.copy(this._buffers.xpubkey)},y.Hardened=2147483648,y.RootElementAlias=["m","M"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PublicKeySize=33,y.CheckSumSize=4,y.DataSize=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PublicKeyStart=y.ChainCodeEnd,y.PublicKeyEnd=y.PublicKeyStart+y.PublicKeySize,y.ChecksumStart=y.PublicKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,m(y.PublicKeyEnd===y.DataSize),m(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(39),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(149),n=r(93);i=Object.assign(i,n),e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(92),a=r(17),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(145),l=r(88),p=r(8),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(136)},3:{txName:"COMMON_TX",txAction:r(139)},4:{txName:"CONTRACT_TX",txAction:r(140)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(141)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},21:{txName:"CDP_STAKE_TX",txAction:r(322)},22:{txName:"CDP_REDEEMP_TX",txAction:r(323)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(324)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(325)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(326)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(327)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(328)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(329)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT"}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(155);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},__npminstall_done:"Wed Oct 23 2019 20:43:02 GMT+0800 (GMT+08:00)",_from:"elliptic@6.4.0",_resolved:"https://registry.npm.taobao.org/elliptic/download/elliptic-6.4.0.tgz?cache=0&sync_timestamp=1567592249994&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felliptic%2Fdownload%2Felliptic-6.4.0.tgz"}},function(e,t,r){"use strict";var i=t,n=r(23),o=r(34),a=r(94);i.assert=o,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){for(var r=[],i=1<=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(58),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(58),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(69),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(96),t.sha384=r(168),t.sha512=r(97)},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(95),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(69),n=r(94),o=r(34);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(69),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(41),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(105),o=r(41),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(32),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(116),n=r(4).Buffer,o=r(80),a=r(117),s=r(32),f=r(60),u=r(61);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(118),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(13),n=new(r(119)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(118),h=r(40);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(62),n=r(13),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(62),n=r(18),o=r(13),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(82),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(123),t.sha384=r(230),t.sha512=r(124)},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(122),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(82),n=r(121),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(82),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(63),n=r(130),o=r(131),a=r(13),s=r(81),f=r(46),u=r(132),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(40),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(25))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(274),o=r(16),a=r(87),s=function(e,t){if(!(this instanceof s))return new s(e,t);if(this.extras={},this.knownParams=t||[],this.address=this.network=this.amount=this.message=null,"string"==typeof e){var r=s.parse(e);r.amount&&(r.amount=this._parseAmount(r.amount)),this._fromObject(r)}else{if("object"!=typeof e)throw new TypeError("Unrecognized data format.");this._fromObject(e)}};s.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new s(e)},s.fromObject=function(e){return new s(e)},s.isValid=function(e,t){try{new s(e,t)}catch(e){return!1}return!0},s.parse=function(e){var t=n.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},s.Members=["address","amount","message","label","r"],s.prototype._fromObject=function(e){if(!o.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new o(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(s.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},s.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return a.fromBTC(e).toSatoshis()},s.prototype.toObject=s.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=s},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(145),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(68),r(146),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), +!function(){for(var t=function(e){return this.constructor!=t?new t(e):e instanceof t?e:(this.internal=String(e),this.as_int=r(this.internal),this.add=function(e){var r=[this,new t(e)];r.sort(function(e,t){return e.as_int.exp-t.as_int.exp});var i=r[0].as_int.exp,n=r[1].as_int.exp,a=Number(o(r[1].as_int.value,n-i)),s=Number(r[0].as_int.value),f=String(a+s);return t(o(f,i))},this.sub=function(e){return t(this.add(-1*e))},this.mul=function(e){e=new t(e);var r=String(this.as_int.value*e.as_int.value),i=this.as_int.exp+e.as_int.exp;return t(o(r,i))},this.div=function(e){e=new t(e);var r=Math.min(this.as_int.exp,e.as_int.exp),i=t.mul(Math.pow(10,Math.abs(r)),this),n=t.mul(Math.pow(10,Math.abs(r)),e);return t(i/n)},this.toString=function(){return this.internal},void(this.toNumber=function(){return Number(this.internal)}))},r=function(e){var t,r,i=(e=String(e)).split("."),n=i[0],o=i[1];if(o)t=parseInt(e.split(".").join(""),10),r=-1*o.length;else{var a=n.match(/0+$/);if(a){var s=a[0].length;t=n.substr(0,n.length-s),r=s}else t=n,r=0}return{value:t,exp:r}},i=function(e,t){var r=(t=Math.abs(t))-e.length,i=".";r>=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(274),o=r(17),a=r(87),s=function(e,t){if(!(this instanceof s))return new s(e,t);if(this.extras={},this.knownParams=t||[],this.address=this.network=this.amount=this.message=null,"string"==typeof e){var r=s.parse(e);r.amount&&(r.amount=this._parseAmount(r.amount)),this._fromObject(r)}else{if("object"!=typeof e)throw new TypeError("Unrecognized data format.");this._fromObject(e)}};s.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new s(e)},s.fromObject=function(e){return new s(e)},s.isValid=function(e,t){try{new s(e,t)}catch(e){return!1}return!0},s.parse=function(e){var t=n.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},s.Members=["address","amount","message","label","r"],s.prototype._fromObject=function(e){if(!o.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new o(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(s.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},s.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return a.fromBTC(e).toSatoshis()},s.prototype.toObject=s.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=s},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(146),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(68),r(147),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -37,10 +37,10 @@ function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=n.create([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]),f=n.create([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=n.create([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]),c=n.create([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]),h=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(89),r(90),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(89),r(90),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(17),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(17),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(17),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(12),r(5)),a=r(10),s=r(24),f=(r(13),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=(r(16),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=(r(12),r(5)),a=r(10),s=r(24),f=(r(13),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(12),a=r(5),s=r(10),f=r(8),u=r(9),c=r(24),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(25),r(2)),o=r(12),a=r(5),s=r(10),f=r(24),u=r(13),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(12),a=(r(7),r(5)),s=r(10),f=(r(11),r(8)),u=r(24),c=(r(16),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.feedPriceData=r.feedPriceData,this.network=r.network,this});c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new errors.InvalidArgument("srcRegId","Invalid reg id");return c._checkFeedPriceData(e.feedPriceData),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,feedPriceData:e.feedPriceData}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var t=o.writeVarInt(4,this.nValidHeight);e.write(t);var r=o.splitRegID(this.srcRegId);if(i.isNull(r.height)||i.isUndefined(r.height))return!1;var n=new f,s=o.writeVarInt(4,r.height);n.write(s);var c=o.writeVarInt(2,r.index);n.write(c);var h=n.toBuffer();e.writeUInt8(h.length),e.write(h),e.writeFeedPriceData(this.feedPriceData);var d=e.toBuffer();return a.sha256sha256(d)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c._checkFeedPriceData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new errors.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;t>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(16),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(8),c=r(28),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);e.write(m);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);r.write(m);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);e.write(m),e.writeCdpAsset(this.assetMap);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);r.write(m),r.writeCdpAsset(this.assetMap);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)}])}); \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..b3f7c6a --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +var WiccApi = require('./src/lib/wiccapi') +var bitcore = require('./src') +WiccApi = Object.assign(WiccApi, bitcore) + +module.exports = WiccApi \ No newline at end of file diff --git a/main.js b/main.js deleted file mode 100644 index 2244fd8..0000000 --- a/main.js +++ /dev/null @@ -1,2 +0,0 @@ -var WiccApi = require('./src/lib/wiccapi') -module.exports = WiccApi \ No newline at end of file diff --git a/package.json b/package.json index 593ecf6..3ac5854 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "author": "coredev@waykichainhk.com", "main": "src/index.js", "scripts": { - "build": "webpack" + "build": "webpack", + "test": "node demo/index.js" }, "keywords": [ "bitcoin", diff --git a/src/lib/transaction/cpricefeedtx.js b/src/lib/transaction/cpricefeedtx.js deleted file mode 100644 index 605f9c4..0000000 --- a/src/lib/transaction/cpricefeedtx.js +++ /dev/null @@ -1,153 +0,0 @@ -'use strict'; -//cdp创建 -var _ = require('lodash'); -var $ = require('../util/preconditions'); -var Util = require('../util/util') -var BN = require('../crypto/bn'); -var Hash = require('../crypto/hash'); -var ECDSA = require('../crypto/ecdsa'); -var Signature = require('../crypto/signature'); -var BufferWriter = require('../encoding/bufferwriter'); -var WriterHelper = require('../util/writerhelper'); -var Address = require('../address') - -var CpriceFeedTx = function CpriceFeedTx(arg) { - if (!(this instanceof CpriceFeedTx)) { - return new CpriceFeedTx(arg); - } - var info = CpriceFeedTx._from(arg); - this.nTxType = info.nTxType; - this.nVersion = info.nVersion; - this.nValidHeight = info.nValidHeight; - this.srcRegId = info.srcRegId; - this.feedPriceData = info.feedPriceData; - this.network = info.network; - - return this; - }; - - CpriceFeedTx._from = function _from(arg) { - var info = {}; - if (_.isObject(arg)) { - info = CpriceFeedTx._fromObject(arg); - } else { - throw new TypeError('Unrecognized argument for CommonTx'); - } - return info; - }; - - CpriceFeedTx._fromObject = function _fromObject(data) { - $.checkArgument(data, 'data is required'); - if (!Util.checkRegId(data.srcRegId)) { - throw new errors.InvalidArgument("srcRegId", "Invalid reg id"); - } - CpriceFeedTx._checkFeedPriceData(data.feedPriceData) - - var info = { - nTxType: data.nTxType, - nVersion: data.nVersion, - nValidHeight: data.nValidHeight, - srcRegId: data.srcRegId, - feedPriceData: data.feedPriceData - }; - return info; - }; - - CpriceFeedTx.prototype._SignatureHash = function() { - var writer = new WriterHelper(); - writer.writeVarintNum(this.nVersion) - writer.writeVarintNum(this.nTxType) - var heightBuf = Util.writeVarInt(4, this.nValidHeight) - writer.write(heightBuf) - - var REGID = Util.splitRegID(this.srcRegId) - if(_.isNull(REGID.height) || _.isUndefined(REGID.height)) - return false - - var regWriter = new BufferWriter() - var regHeightBuf = Util.writeVarInt(4, REGID.height) - regWriter.write(regHeightBuf) - var regIndexBuf = Util.writeVarInt(2, REGID.index) - regWriter.write(regIndexBuf) - - var regBuf = regWriter.toBuffer() - writer.writeUInt8(regBuf.length) - writer.write(regBuf) - - writer.writeFeedPriceData(this.feedPriceData) - - var serialBuf = writer.toBuffer() - //console.log(serialBuf.toString('hex')) - return Hash.sha256sha256(serialBuf); - } - - CpriceFeedTx.prototype._Signtx = function(privateKey) { - var hashbuf = this._SignatureHash() - var sig = ECDSA.sign(hashbuf, privateKey, 'endian') - var sigBuf = sig.toBuffer() - - return sigBuf; - } - - CpriceFeedTx._checkFeedPriceData = function _checkFeedPriceData(feedPriceData) { - if(!_.isArray(feedPriceData) || _.isEmpty(feedPriceData)) { - throw new errors.InvalidArgument("delegateData", "delegateData must be array and not empty."); - } - - for(var i = 0; i < feedPriceData.length; i++) { - var coinPriceType = feedPriceData[i].coinPriceType; - var coinType = coinPriceType.coinType; - var priceType = coinPriceType.priceType; - - var price=feedPriceData[i].price - - if(!_.isNumber(coinType)) { - throw new errors.InvalidArgument("feedPriceData", "feedPriceData[" + i + "].coinPriceType.coinType must be number."); - } - if(!_.isNumber(priceType)) { - throw new errors.InvalidArgument("feedPriceData", "feedPriceData[" + i + "].coinPriceType.priceType. must be number."); - } - if(!_.isNumber(price)) { - throw new errors.InvalidArgument("feedPriceData", "feedPriceData[" + i + "].price must be number."); - } - } - } - - CpriceFeedTx.prototype.SerializeTx = function(privateKey) { - var writer = new WriterHelper(); - writer.writeVarintNum(this.nTxType) - writer.writeVarintNum(this.nVersion) - var heightBuf = Util.writeVarInt(4, this.nValidHeight) - writer.write(heightBuf) - - - var REGID = Util.splitRegID(this.srcRegId) - if(_.isNull(REGID.height) || _.isUndefined(REGID.height)) - return false - - var regWriter = new BufferWriter() - var regHeightBuf = Util.writeVarInt(4, REGID.height) - regWriter.write(regHeightBuf) - var regIndexBuf = Util.writeVarInt(2, REGID.index) - regWriter.write(regIndexBuf) - - var regBuf = regWriter.toBuffer() - writer.writeUInt8(regBuf.length) - writer.write(regBuf) - - writer.writeFeedPriceData(this.feedPriceData) - - var sigBuf = this._Signtx(privateKey) - - var len = sigBuf.length - writer.writeVarintNum(len) - writer.write(sigBuf) - - var hexBuf = writer.toBuffer() - var hex = hexBuf.toString('hex') - - return hex - } - - - module.exports = CpriceFeedTx; \ No newline at end of file diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 4cb288c..581fde6 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -55,10 +55,6 @@ var txMap = { txName: 'UCOIN_CONTRACT_INVOKE_TX', txAction: require('./transaction/ucontractinvoketx') }, - 16: { - txName: 'PRICE_FEED_TX', - txAction: require('./transaction/cpricefeedtx') - }, 21: { txName: 'CDP_STAKE_TX', txAction: require('./transaction/cdpstaketx') diff --git a/webpack.config.js b/webpack.config.js index 105736a..fb73d06 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const path = require('path'); module.exports = { mode: 'production', - entry: './main.js', + entry: './index.js', output: { path: path.resolve(__dirname, './dist'), filename: 'wicc-wallet-lib.js', From 0871623eb77bcfb3fdce74a143d3f324a07f11a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 4 Dec 2019 19:31:14 +0800 Subject: [PATCH 04/33] update --- .babelrc | 5 + demo/test-commontx.js | 2 +- dist/wicc-wallet-lib.js | 17 +- package-lock.json | 1548 +++++++++++++++++++++++++++++++++++++++ package.json | 102 +-- webpack.config.js | 11 +- 6 files changed, 1626 insertions(+), 59 deletions(-) create mode 100644 .babelrc create mode 100644 package-lock.json diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..0639bf7 --- /dev/null +++ b/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": [ + "@babel/preset-env" + ] +} \ No newline at end of file diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 775d445..a0758f5 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -1,7 +1,7 @@ 'use strict' console.error('\n=====RUN-TEST-COMMONTX-START=====\n') // const express = require("express"); -var WiccApi = require('../index'); +var WiccApi = require('../dist/wicc-wallet-lib.js'); var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js index 7a7f5ef..fc427db 100644 --- a/dist/wicc-wallet-lib.js +++ b/dist/wicc-wallet-lib.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=148)}([function(e,t,r){"use strict";(function(e){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=147)}([function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var i=r(150),n=r(151),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; +var i=r(149),n=r(150),o=r(90);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; /** * @license * Lodash @@ -13,20 +13,21 @@ var i=r(150),n=r(151),o=r(91);function a(){return f.TYPED_ARRAY_SUPPORT?21474836 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,S=32,I=64,x=128,k=256,A=512,E=30,M="...",B=800,T=16,R=1,P=2,O=1/0,C=9007199254740991,N=1.7976931348623157e308,z=NaN,U=4294967295,j=U-1,D=U>>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";var i=r(11),n=r(1);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,o){if(o=o||"(unknown name)",n.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,o)}else if(typeof e!==t)throw new i.InvalidArgumentType(e,t,o)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,o)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(39),n=r(8),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(38),o=r(12),a=r(29),s=r(55),f=r(5),u=r(8),c=r(1),h=r(2),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=n.getN();do{e=i.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(i.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?u.reverse(this.hashbuf):this.hashbuf;o=f.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=f.sha256hmac(r,o),o=f.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=f.sha256hmac(r,o),r=f.sha256hmac(r,o);for(var h=i.fromBuffer(r),d=n.getN(),l=0;l>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(8),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(214).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(24),a=r(269),s=(r(15),r(2)),f=r(7),u=r(11),c=r(137),h=r(138),d=r(9);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var i;e.exports=(i=r(6),r(37),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(11),a=r(52),s=r(36),f=r(5),u=r(15),c=r(29);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(120),i.curve=r(62),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(156).version,i.utils=r(157),i.rand=r(158),i.curve=r(57),i.curves=r(164),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(134),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(153).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){ + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,S=32,I=64,x=128,k=256,A=512,E=30,M="...",B=800,T=16,R=1,P=2,O=1/0,C=9007199254740991,N=1.7976931348623157e308,z=NaN,U=4294967295,j=U-1,D=U>>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";function i(e){return(i="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})(e)}var n=r(11),o=r(1);e.exports={checkState:function(e,t){if(!e)throw new n.InvalidState(t)},checkArgument:function(e,t,r,i){if(!e)throw new n.InvalidArgument(t,r,i)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new n.InvalidArgumentType(e,t,a)}else if(i(e)!==t)throw new n.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new n.InvalidArgumentType(e,t.name,a)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(40),n=r(8),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(39),o=r(12),a=r(30),s=r(55),f=r(5),u=r(8),c=r(1),h=r(2),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=n.getN();do{e=i.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(i.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?u.reverse(this.hashbuf):this.hashbuf;o=f.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=f.sha256hmac(r,o),o=f.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=f.sha256hmac(r,o),r=f.sha256hmac(r,o);for(var h=i.fromBuffer(r),d=n.getN(),l=0;l>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(8),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(214).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(24),a=r(269),s=(r(15),r(2)),f=r(7),u=r(11),c=r(136),h=r(137),d=r(9);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var i;e.exports=(i=r(6),r(38),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(11),a=r(52),s=r(37),f=r(5),u=r(15),c=r(30);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(119),i.curve=r(61),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(155).version,i.utils=r(156),i.rand=r(157),i.curve=r(57),i.curves=r(163),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(133),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(152).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(42),o=r(9),a=r(14),s=r(8),f=r(24),u=r(17);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);for(let t of e.entries())this.writeString(t[0]),this.writeVarInt(8,t[1])}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1,//!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r"},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(71).Transform,o=r(75).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(12),o=r(22),a=r(31),s=r(30),f=r(9),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(84),m=r(85),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(26),n=r(34);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(42),a=r(8),s=r(15),f=r(29),u=r(11),c=r(12);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(39).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(25),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(160),i.short=r(161),i.mont=r(162),i.edwards=r(163)},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(70);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(79),s=r(109),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(17),o=r(52),a=r(7),s=r(15),f=r(36),u=r(38),c=r(29),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(133),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(84),e.exports.Input=r(85),e.exports.Output=r(31),e.exports.UnspentOutput=r(135),e.exports.Signature=r(54),e.exports.Sighash=r(33),e.exports.SighashWitness=r(86),e.exports.RegisterAccountTx=r(136),e.exports.CommonTx=r(139),e.exports.ContractTx=r(140),e.exports.DelegateTx=r(141)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(8),a=r(30),s=r(9),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(72).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(73),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(99)).Stream=t,t.Readable=t,t.Writable=r(74),t.Duplex=r(35),t.Transform=r(103),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(59);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(100),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(101);function m(){}function g(e,t){s=s||r(35),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(35),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(25),r(102).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(98),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(104),t.sha384=r(192),t.sha512=r(105)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(115);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(113),GCM:r(113)},n=r(115);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(13),n=r(40);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(27),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(15);function s(e){if(!(this instanceof s))return new s(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+typeof e+'" for Opcode');t=s.map[e]}return a.defineImmutable(this,{num:t}),this}for(var f in s.fromBuffer=function(e){return n.checkArgument(o.isBuffer(e)),new s(Number("0x"+e.toString("hex")))},s.fromNumber=function(e){return n.checkArgument(i.isNumber(e)),new s(e)},s.fromString=function(e){n.checkArgument(i.isString(e));var t=s.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new s(t)},s.prototype.toHex=function(){return this.num.toString(16)},s.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},s.prototype.toNumber=function(){return this.num},s.prototype.toString=function(){var e=s.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},s.smallInt=function(e){return n.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),n.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?s("OP_0"):new s(s.map.OP_1+e-1)},s.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},s.reverseMap=[],s.map)s.reverseMap[s.map[f]]=f;i.extend(s,s.map),s.isSmallIntOp=function(e){return e instanceof s&&(e=e.toNumber()),e===s.map.OP_0||e>=s.map.OP_1&&e<=s.map.OP_16},s.prototype.inspect=function(){return""},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(11),f=r(8),u=r(15),c=r(30),h=r(9),d=r(5),l=r(12),p=r(33),b=r(86),m=r(17),g=r(135),v=r(85),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(31),x=r(22),k=r(64),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(12),n=(r(22),r(31),r(30)),o=r(9),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(24),n=r(0),o=r(1),a=r(2),s=r(7),f=r(65),u=r(52),c=r(5),h=r(36),d=r(38),l=r(64),p=r(55),b=r(11),m=b.HDPrivateKey,g=r(8),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(143);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");s=s||d._mnemonic(n,r),Object.defineProperty(this,"wordlist",{configurable:!1,value:r}),Object.defineProperty(this,"phrase",{configurable:!1,value:s})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(26).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(95),a=r(34),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(59);e.exports=y;var o,a=r(91);y.ReadableState=v;r(72).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(100),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(101);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(35));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(75).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(35),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(35),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(32),a=r(4).Buffer,s=r(107),f=r(76),u=r(77),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(25))},function(e,t,r){var i=r(107),n=r(76),o=r(77),a=r(110),s=r(111),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(13),n=r(120);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(122),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==s.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+s(r).toString():n=n+" "+s(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},g.prototype.toASM=function(){for(var e="",t=0;t"},g.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==s.OP_DUP||this.chunks[1].opcodenum!==s.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==s.OP_EQUALVERIFY||this.chunks[4].opcodenum!==s.OP_CHECKSIG)},g.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},g.prototype.getPublicKey=function(){return h.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},g.prototype.getPublicKeyHash=function(){return h.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},g.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===s.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},g.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},g.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===s.OP_HASH160&&20===e[1]&&e[e.length-1]===s.OP_EQUAL},g.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},g.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},g.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===s.OP_0||t[0]>=s.OP_1&&t[0]<=s.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},g.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=g.fromBuffer(t)}catch(e){if(e instanceof l.Script.InvalidBuffer)return!1;throw e}return e.classify()!==g.types.UNKNOWN},g.prototype.isMultisigOut=function(){return this.chunks.length>3&&s.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&b.isBuffer(e.buf)})&&s.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===s.OP_CHECKMULTISIG},g.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&b.isBuffer(e.buf)&&u.isTxDER(e.buf)})},g.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===s.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=g.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},g.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return d.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},g.prototype.isPushOnly=function(){return d.every(this.chunks,function(e){return e.opcodenum<=s.OP_16})},(g.types={}).UNKNOWN="Unknown",g.types.PUBKEY_OUT="Pay to public key",g.types.PUBKEY_IN="Spend from public key",g.types.PUBKEYHASH_OUT="Pay to public key hash",g.types.PUBKEYHASH_IN="Spend from public key hash",g.types.SCRIPTHASH_OUT="Pay to script hash",g.types.SCRIPTHASH_IN="Spend from script hash",g.types.MULTISIG_OUT="Pay to multisig",g.types.MULTISIG_IN="Spend from multisig",g.types.DATA_OUT="Data push",g.OP_RETURN_STANDARD_SIZE=80,g.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=g.types.UNKNOWN?e:this.classifyInput()},(g.outputIdentifiers={}).PUBKEY_OUT=g.prototype.isPublicKeyOut,g.outputIdentifiers.PUBKEYHASH_OUT=g.prototype.isPublicKeyHashOut,g.outputIdentifiers.MULTISIG_OUT=g.prototype.isMultisigOut,g.outputIdentifiers.SCRIPTHASH_OUT=g.prototype.isScriptHashOut,g.outputIdentifiers.DATA_OUT=g.prototype.isDataOut,g.prototype.classifyOutput=function(){for(var e in g.outputIdentifiers)if(g.outputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},(g.inputIdentifiers={}).PUBKEY_IN=g.prototype.isPublicKeyIn,g.inputIdentifiers.PUBKEYHASH_IN=g.prototype.isPublicKeyHashIn,g.inputIdentifiers.MULTISIG_IN=g.prototype.isMultisigIn,g.inputIdentifiers.SCRIPTHASH_IN=g.prototype.isScriptHashIn,g.prototype.classifyInput=function(){for(var e in g.inputIdentifiers)if(g.inputIdentifiers[e].bind(this)())return g.types[e];return g.types.UNKNOWN},g.prototype.isStandard=function(){return this.classify()!==g.types.UNKNOWN},g.prototype.prepend=function(e){return this._addByType(e,!0),this},g.prototype.equals=function(e){if(h.checkState(e instanceof g,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===s.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===s.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===s.OP_PUSHDATA1:!(r.length<=65535)||i===s.OP_PUSHDATA2)},g.prototype._decodeOP_N=function(e){if(e===s.OP_0)return 0;if(e>=s.OP_1&&e<=s.OP_16)return e-(s.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},g.prototype.getSignatureOperationsCount=function(e){e=!!d.isUndefined(e)||e;var t=this,r=0,i=s.OP_INVALIDOPCODE;return d.each(t.chunks,function(n){var o=n.opcodenum;o==s.OP_CHECKSIG||o==s.OP_CHECKSIGVERIFY?r++:o!=s.OP_CHECKMULTISIG&&o!=s.OP_CHECKMULTISIGVERIFY||(e&&i>=s.OP_1&&i<=s.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=g}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(17),f=r(87);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=r(17),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=r(11),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=y.Hardened||t)throw new b.InvalidIndexCantDeriveHardened;if(e<0)throw new b.InvalidPath(e);var r,i=v.integerAsBuffer(e),n=v.concat([this.publicKey.toBuffer(),i]),a=f.sha512hmac(n,this._buffers.chainCode),s=o.fromBuffer(a.slice(0,32),{size:32}),u=a.slice(32,64);try{r=d.fromPoint(h.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new y({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},y.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new b.InvalidIndexCantDeriveHardened;if(!y.isValidPath(e))throw new b.InvalidPath(e);return u._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},y.isValidSerialized=function(e,t){return i.isNull(y.getSerializedError(e,t))},y.getSerializedError=function(e,t){if(!i.isString(e)&&!v.isBuffer(e))return new b.UnrecognizedArgument("expected buffer or string");if(!a.validCharacters(e))return new p.InvalidB58Char("(unknown)",e);try{e=s.decode(e)}catch(t){return new p.InvalidB58Checksum(e)}if(e.length!==y.DataSize)return new b.InvalidLength(e);if(!i.isUndefined(t)){var r=y._validateNetwork(e,t);if(r)return r}var n=v.integerFromBuffer(e.slice(0,4));return n===c.livenet.xprivkey||n===c.testnet.xprivkey?new b.ArgumentIsPrivateExtended:null},y._validateNetwork=function(e,t){var r=c.get(t);if(!r)return new p.InvalidNetworkArgument(t);var i=e.slice(y.VersionStart,y.VersionEnd);return v.integerFromBuffer(i)!==r.xpubkey?new p.InvalidNetwork(i):null},y.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=h.getG().mul(o.fromBuffer(t.privateKey));return t.publicKey=h.pointToCompressed(r),t.version=v.integerAsBuffer(c.get(v.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},y.prototype._buildFromObject=function(e){var t={version:e.network?v.integerAsBuffer(c.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?v.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?v.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?v.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?v.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?v.hexToBuffer(e.publicKey):v.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?v.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},y.prototype._buildFromSerialized=function(e){var t=s.decode(e),r={version:t.slice(y.VersionStart,y.VersionEnd),depth:t.slice(y.DepthStart,y.DepthEnd),parentFingerPrint:t.slice(y.ParentFingerPrintStart,y.ParentFingerPrintEnd),childIndex:t.slice(y.ChildIndexStart,y.ChildIndexEnd),chainCode:t.slice(y.ChainCodeStart,y.ChainCodeEnd),publicKey:t.slice(y.PublicKeyStart,y.PublicKeyEnd),checksum:t.slice(y.ChecksumStart,y.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),g.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=v.concat(r),n=s.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new p.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=c.get(v.integerFromBuffer(e.version));o=s.encode(v.concat(r)),e.xpubkey=t.from(o);var u=new d(e.publicKey,{network:a}),h=y.ParentFingerPrintSize,l=f.sha256ripemd160(u.toBuffer()).slice(0,h);return g.defineImmutable(this,{xpubkey:o,network:a,depth:v.integerFromSingleByteBuffer(e.depth),publicKey:u,fingerPrint:l}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(v.isBuffer(i),t+" argument is not a buffer, it's "+typeof i),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("publicKey",y.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.fromString=function(e){return n.checkArgument(i.isString(e),"No valid string was provided"),new y(e)},y.fromObject=function(e){return n.checkArgument(i.isObject(e),"No valid argument was provided"),new y(e)},y.prototype.toString=function(){return this.xpubkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:c.get(v.integerFromBuffer(this._buffers.version)).name,depth:v.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:v.integerFromBuffer(this.fingerPrint),parentFingerPrint:v.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:v.integerFromBuffer(this._buffers.childIndex),chainCode:v.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:v.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},y.fromBuffer=function(e){return new y(e)},y.prototype.toBuffer=function(){return v.copy(this._buffers.xpubkey)},y.Hardened=2147483648,y.RootElementAlias=["m","M"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PublicKeySize=33,y.CheckSumSize=4,y.DataSize=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PublicKeyStart=y.ChainCodeEnd,y.PublicKeyEnd=y.PublicKeyStart+y.PublicKeySize,y.ChecksumStart=y.PublicKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,m(y.PublicKeyEnd===y.DataSize),m(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(39),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(149),n=r(93);i=Object.assign(i,n),e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(92),a=r(17),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(145),l=r(88),p=r(8),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(136)},3:{txName:"COMMON_TX",txAction:r(139)},4:{txName:"CONTRACT_TX",txAction:r(140)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(141)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},21:{txName:"CDP_STAKE_TX",txAction:r(322)},22:{txName:"CDP_REDEEMP_TX",txAction:r(323)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(324)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(325)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(326)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(327)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(328)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(329)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT"}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(155);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},__npminstall_done:"Wed Oct 23 2019 20:43:02 GMT+0800 (GMT+08:00)",_from:"elliptic@6.4.0",_resolved:"https://registry.npm.taobao.org/elliptic/download/elliptic-6.4.0.tgz?cache=0&sync_timestamp=1567592249994&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felliptic%2Fdownload%2Felliptic-6.4.0.tgz"}},function(e,t,r){"use strict";var i=t,n=r(23),o=r(34),a=r(94);i.assert=o,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){for(var r=[],i=1<=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(58),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(58),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(69),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(96),t.sha384=r(168),t.sha512=r(97)},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(95),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(69),n=r(94),o=r(34);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(69),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(41),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(41),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(105),o=r(41),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(32),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(116),n=r(4).Buffer,o=r(80),a=r(117),s=r(32),f=r(60),u=r(61);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(118),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(13),n=new(r(119)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(118),h=r(40);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(62),n=r(13),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(62),n=r(18),o=r(13),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(82),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(123),t.sha384=r(230),t.sha512=r(124)},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(122),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(82),n=r(121),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(82),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(63),n=r(130),o=r(131),a=r(13),s=r(81),f=r(46),u=r(132),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(40),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(25))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(29),o=r(9),a=r(14),s=r(8),f=r(24),u=r(17);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,i=void 0;try{for(var n,o=e.entries()[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, +//!< add operate +MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r"},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(70).Transform,o=r(74).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(12),o=r(22),a=r(32),s=r(31),f=r(9),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(83),m=r(84),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(26),n=r(35);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(29),a=r(8),s=r(15),f=r(30),u=r(11),c=r(12);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(40).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(25),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(159),i.short=r(160),i.mont=r(161),i.edwards=r(162)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(69);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(78),s=r(108),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(17),o=r(52),a=r(7),s=r(15),f=r(37),u=r(39),c=r(30),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(132),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(83),e.exports.Input=r(84),e.exports.Output=r(32),e.exports.UnspentOutput=r(134),e.exports.Signature=r(54),e.exports.Sighash=r(34),e.exports.SighashWitness=r(85),e.exports.RegisterAccountTx=r(135),e.exports.CommonTx=r(138),e.exports.ContractTx=r(139),e.exports.DelegateTx=r(140)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(8),a=r(31),s=r(9),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(71).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(72),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(98)).Stream=t,t.Readable=t,t.Writable=r(73),t.Duplex=r(36),t.Transform=r(102),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(58);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(99),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(100);function m(){}function g(e,t){s=s||r(36),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(36),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(25),r(101).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(97),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(103),t.sha384=r(192),t.sha512=r(104)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(114);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(112),GCM:r(112)},n=r(114);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(13),n=r(41);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(27),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function i(e){return(i="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})(e)}var n=r(1),o=r(2),a=r(8),s=r(15);function f(e){if(!(this instanceof f))return new f(e);var t;if(n.isNumber(e))t=e;else{if(!n.isString(e))throw new TypeError('Unrecognized num type: "'+i(e)+'" for Opcode');t=f.map[e]}return s.defineImmutable(this,{num:t}),this}for(var u in f.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new f(Number("0x"+e.toString("hex")))},f.fromNumber=function(e){return o.checkArgument(n.isNumber(e)),new f(e)},f.fromString=function(e){o.checkArgument(n.isString(e));var t=f.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new f(t)},f.prototype.toHex=function(){return this.num.toString(16)},f.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},f.prototype.toNumber=function(){return this.num},f.prototype.toString=function(){var e=f.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},f.smallInt=function(e){return o.checkArgument(n.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?f("OP_0"):new f(f.map.OP_1+e-1)},f.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},f.reverseMap=[],f.map)f.reverseMap[f.map[u]]=u;n.extend(f,f.map),f.isSmallIntOp=function(e){return e instanceof f&&(e=e.toNumber()),e===f.map.OP_0||e>=f.map.OP_1&&e<=f.map.OP_16},f.prototype.inspect=function(){return""},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(11),f=r(8),u=r(15),c=r(31),h=r(9),d=r(5),l=r(12),p=r(34),b=r(85),m=r(17),g=r(134),v=r(84),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(32),x=r(22),k=r(63),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(12),n=(r(22),r(32),r(31)),o=r(9),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(24),n=r(0),o=r(1),a=r(2),s=r(7),f=r(64),u=r(52),c=r(5),h=r(37),d=r(39),l=r(63),p=r(55),b=r(11),m=b.HDPrivateKey,g=r(8),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(142);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");u=u||e._mnemonic(s,n),Object.defineProperty(this,"wordlist",{configurable:!1,value:n}),Object.defineProperty(this,"phrase",{configurable:!1,value:u})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(26).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(94),a=r(35),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(58);e.exports=y;var o,a=r(90);y.ReadableState=v;r(71).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(99),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(100);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(36));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(74).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(36),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(36),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(42),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(33),a=r(4).Buffer,s=r(106),f=r(75),u=r(76),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(25))},function(e,t,r){var i=r(106),n=r(75),o=r(76),a=r(109),s=r(110),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(13),n=r(119);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(121),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==f.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+f(r).toString():n=n+" "+f(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==f.OP_DUP||this.chunks[1].opcodenum!==f.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==f.OP_EQUALVERIFY||this.chunks[4].opcodenum!==f.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===f.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return u.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===f.OP_HASH160&&20===e[1]&&e[e.length-1]===f.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===f.OP_0||t[0]>=f.OP_1&&t[0]<=f.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&f.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&m.isBuffer(e.buf)})&&f.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===f.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&m.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===f.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=f.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===f.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===f.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===f.OP_PUSHDATA1:!(r.length<=65535)||i===f.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===f.OP_0)return 0;if(e>=f.OP_1&&e<=f.OP_16)return e-(f.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,i=f.OP_INVALIDOPCODE;return l.each(t.chunks,function(n){var o=n.opcodenum;o==f.OP_CHECKSIG||o==f.OP_CHECKSIGVERIFY?r++:o!=f.OP_CHECKMULTISIG&&o!=f.OP_CHECKMULTISIGVERIFY||(e&&i>=f.OP_1&&i<=f.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=v}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(17),f=r(86);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=r(17),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=r(11),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=w.Hardened||t)throw new m.InvalidIndexCantDeriveHardened;if(e<0)throw new m.InvalidPath(e);var r,i=y.integerAsBuffer(e),n=y.concat([this.publicKey.toBuffer(),i]),o=u.sha512hmac(n,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),f=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:f,publicKey:r})},w.prototype._deriveFromString=function(e){if(n.includes(e,"'"))throw new m.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new m.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return n.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!n.isString(e)&&!y.isBuffer(e))return new m.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=f.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new m.InvalidLength(e);if(!n.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var i=y.integerFromBuffer(e.slice(0,4));return i===h.livenet.xprivkey||i===h.testnet.xprivkey?new m.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var i=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(i)!==r.xpubkey?new b.InvalidNetwork(i):null},w.prototype._buildFromPrivate=function(e){var t=n.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:n.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:n.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:n.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:n.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:n.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:n.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=f.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=y.concat(r),n=f.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new b.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=h.get(y.integerFromBuffer(e.version));o=f.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=u.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];g(y.isBuffer(n),t+" argument is not a buffer, it's "+i(n)),g(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(n.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(n.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,g(w.PublicKeyEnd===w.DataSize),g(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(40),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(67),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(148),n=r(92);i=Object.assign(i,n),e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(91),a=r(17),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(144),l=r(87),p=r(8),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(135)},3:{txName:"COMMON_TX",txAction:r(138)},4:{txName:"CONTRACT_TX",txAction:r(139)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(140)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},21:{txName:"CDP_STAKE_TX",txAction:r(322)},22:{txName:"CDP_REDEEMP_TX",txAction:r(323)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(324)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(325)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(326)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(327)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(328)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(329)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(154);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(29),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(29),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(68),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(95),t.sha384=r(168),t.sha512=r(96)},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(94),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(68),n=r(93),o=r(35);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(68),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(42),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(103),o=r(42),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(42),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(33),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(115),n=r(4).Buffer,o=r(79),a=r(116),s=r(33),f=r(59),u=r(60);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(117),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(13),n=new(r(118)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(117),h=r(41);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(61),n=r(13),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(61),n=r(18),o=r(13),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(81),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(122),t.sha384=r(230),t.sha512=r(123)},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(121),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(81),n=r(120),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(81),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(62),n=r(129),o=r(130),a=r(13),s=r(80),f=r(46),u=r(131),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(41),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(25))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(274),o=r(17),a=r(87),s=function(e,t){if(!(this instanceof s))return new s(e,t);if(this.extras={},this.knownParams=t||[],this.address=this.network=this.amount=this.message=null,"string"==typeof e){var r=s.parse(e);r.amount&&(r.amount=this._parseAmount(r.amount)),this._fromObject(r)}else{if("object"!=typeof e)throw new TypeError("Unrecognized data format.");this._fromObject(e)}};s.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new s(e)},s.fromObject=function(e){return new s(e)},s.isValid=function(e,t){try{new s(e,t)}catch(e){return!1}return!0},s.parse=function(e){var t=n.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},s.Members=["address","amount","message","label","r"],s.prototype._fromObject=function(e){if(!o.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new o(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(s.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},s.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return a.fromBTC(e).toSatoshis()},s.prototype.toObject=s.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=s},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(146),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(68),r(147),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(68),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), +!function(){for(var t=function(e){return this.constructor!=t?new t(e):e instanceof t?e:(this.internal=String(e),this.as_int=r(this.internal),this.add=function(e){var r=[this,new t(e)];r.sort(function(e,t){return e.as_int.exp-t.as_int.exp});var i=r[0].as_int.exp,n=r[1].as_int.exp,a=Number(o(r[1].as_int.value,n-i)),s=Number(r[0].as_int.value),f=String(a+s);return t(o(f,i))},this.sub=function(e){return t(this.add(-1*e))},this.mul=function(e){e=new t(e);var r=String(this.as_int.value*e.as_int.value),i=this.as_int.exp+e.as_int.exp;return t(o(r,i))},this.div=function(e){e=new t(e);var r=Math.min(this.as_int.exp,e.as_int.exp),i=t.mul(Math.pow(10,Math.abs(r)),this),n=t.mul(Math.pow(10,Math.abs(r)),e);return t(i/n)},this.toString=function(){return this.internal},void(this.toNumber=function(){return Number(this.internal)}))},r=function(e){var t,r,i=(e=String(e)).split("."),n=i[0],o=i[1];if(o)t=parseInt(e.split(".").join(""),10),r=-1*o.length;else{var a=n.match(/0+$/);if(a){var s=a[0].length;t=n.substr(0,n.length-s),r=s}else t=n,r=0}return{value:t,exp:r}},i=function(e,t){var r=(t=Math.abs(t))-e.length,i=".";r>=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function i(e){return(i="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})(e)}var n=r(1),o=r(274),a=r(17),s=r(86),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var n=e.parse(t);n.amount&&(n.amount=this._parseAmount(n.amount)),this._fromObject(n)}else{if("object"!==i(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};f.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new f(e)},f.fromObject=function(e){return new f(e)},f.isValid=function(e,t){try{new f(e,t)}catch(e){return!1}return!0},f.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},f.Members=["address","amount","message","label","r"],f.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(f.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},f.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},f.prototype.toObject=f.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=f},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(145),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(67),r(146),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(67),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -37,10 +38,10 @@ MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.le THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=n.create([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]),f=n.create([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=n.create([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]),c=n.create([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]),h=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(89),r(90),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(88),r(89),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(16),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(37),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(8),c=r(28),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);e.write(m);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);r.write(m);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);e.write(m),e.writeCdpAsset(this.assetMap);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);r.write(m),r.writeCdpAsset(this.assetMap);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)}])}); \ No newline at end of file +i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(16),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(8),c=r(28),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);e.write(m);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);r.write(m);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);e.write(m),e.writeCdpAsset(this.assetMap);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);r.write(m),r.writeCdpAsset(this.assetMap);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)}])}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..736760a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1548 @@ +{ + "name": "wicc-wallet-lib", + "version": "1.0.5", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/core": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.4.tgz", + "integrity": "sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.4", + "@babel/helpers": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "json5": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.1.tgz", + "integrity": "sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz", + "integrity": "sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.4.tgz", + "integrity": "sha512-Biq/d/WtvfftWZ9Uf39hbPBYDUo986m5Bb4zhkeYDGUllF43D+nUe5M6Vuo6/8JDK/0YX/uBdeoQpyaNhNugZQ==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-call-delegate": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.7.4.tgz", + "integrity": "sha512-8JH9/B7J7tCYJ2PpWVpw9JhPuEVHztagNVuQAFBVFYluRMlpG7F1CgKEgGeL6KFqcsIa92ZYVj6DSc0XwmN1ZA==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.4.tgz", + "integrity": "sha512-Mt+jBKaxL0zfOIWrfQpnfYCN7/rS6GKx6CCCfuoqVVd+17R8zNDlzVYmIi9qyb2wOk002NsmSTDymkIygDUH7A==", + "dev": true, + "requires": { + "@babel/helper-regex": "^7.4.4", + "regexpu-core": "^4.6.0" + } + }, + "@babel/helper-define-map": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.4.tgz", + "integrity": "sha512-v5LorqOa0nVQUvAUTUF3KPastvUt/HzByXNamKQ6RdJRTV7j8rLL+WB5C/MzzWAwOomxDhYFb1wLLxHqox86lg==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.7.4", + "@babel/types": "^7.7.4", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.4.tgz", + "integrity": "sha512-2/SicuFrNSXsZNBxe5UGdLr+HZg+raWBLE9vC98bdYOKX/U6PY0mdGlYUJdtTDPSU0Lw0PNbKKDpwYHJLn2jLg==", + "dev": true, + "requires": { + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-function-name": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.4.tgz", + "integrity": "sha512-wQC4xyvc1Jo/FnLirL6CEgPgPCa8M74tOdjWpRhQYapz5JC7u3NYU1zCVoVAGCE3EaIP9T1A3iW0WLJ+reZlpQ==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz", + "integrity": "sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-module-imports": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz", + "integrity": "sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-module-transforms": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.4.tgz", + "integrity": "sha512-ehGBu4mXrhs0FxAqN8tWkzF8GSIGAiEumu4ONZ/hD9M88uHcD+Yu2ttKfOCgwzoesJOJrtQh7trI5YPbRtMmnA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.7.4", + "@babel/helper-simple-access": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz", + "integrity": "sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", + "dev": true + }, + "@babel/helper-regex": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.5.5.tgz", + "integrity": "sha512-CkCYQLkfkiugbRDO8eZn6lRuR8kzZoGXCg3149iTk5se7g6qykSpy3+hELSwquhu+TgHn8nkLiBwHvNX8Hofcw==", + "dev": true, + "requires": { + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.4.tgz", + "integrity": "sha512-Sk4xmtVdM9sA/jCI80f+KS+Md+ZHIpjuqmYPk1M7F/upHou5e4ReYmExAiu6PVe65BhJPZA2CY9x9k4BqE5klw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.7.4", + "@babel/helper-wrap-function": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-replace-supers": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz", + "integrity": "sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.7.4", + "@babel/helper-optimise-call-expression": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-simple-access": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.4.tgz", + "integrity": "sha512-zK7THeEXfan7UlWsG2A6CI/L9jVnI5+xxKZOdej39Y0YtDYKx9raHk5F2EtK9K8DHRTihYwg20ADt9S36GR78A==", + "dev": true, + "requires": { + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/helper-wrap-function": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.7.4.tgz", + "integrity": "sha512-VsfzZt6wmsocOaVU0OokwrIytHND55yvyT4BPB9AIIgwr8+x7617hetdJTsuGwygN5RC6mxA9EJztTjuwm2ofg==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/helpers": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.4.tgz", + "integrity": "sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==", + "dev": true, + "requires": { + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "dev": true + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz", + "integrity": "sha512-1ypyZvGRXriY/QP668+s8sFr2mqinhkRDMPSQLNghCQE+GAkFtp+wkHVvg2+Hdki8gwP+NFzJBJ/N1BfzCCDEw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.7.4", + "@babel/plugin-syntax-async-generators": "^7.7.4" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.4.tgz", + "integrity": "sha512-StH+nGAdO6qDB1l8sZ5UBV8AC3F2VW2I8Vfld73TMKyptMU9DY5YsJAS8U81+vEtxcH3Y/La0wG0btDrhpnhjQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-dynamic-import": "^7.7.4" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.7.4.tgz", + "integrity": "sha512-wQvt3akcBTfLU/wYoqm/ws7YOAQKu8EVJEvHip/mzkNtjaclQoCCIqKXFP5/eyfnfbQCDV3OLRIK3mIVyXuZlw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-json-strings": "^7.7.4" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz", + "integrity": "sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.7.4" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.7.4.tgz", + "integrity": "sha512-DyM7U2bnsQerCQ+sejcTNZh8KQEUuC3ufzdnVnSiUv/qoGJp2Z3hanKL18KDhsBT5Wj6a7CMT5mdyCNJsEaA9w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.7.4" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz", + "integrity": "sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.7.4.tgz", + "integrity": "sha512-Li4+EjSpBgxcsmeEF8IFcfV/+yJGxHXDirDkEoyFjumuwbmfCVHUt0HuowD/iGM7OhIRyXJH9YXxqiH6N815+g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.7.4.tgz", + "integrity": "sha512-jHQW0vbRGvwQNgyVxwDh4yuXu4bH1f5/EICJLAhl1SblLs2CDhrsmCk+v5XLdE9wxtAFRyxx+P//Iw+a5L/tTg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.7.4.tgz", + "integrity": "sha512-QpGupahTQW1mHRXddMG5srgpHWqRLwJnJZKXTigB9RPFCCGbDGCgBeM/iC82ICXp414WeYx/tD54w7M2qRqTMg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz", + "integrity": "sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.7.4.tgz", + "integrity": "sha512-4ZSuzWgFxqHRE31Glu+fEr/MirNZOMYmD/0BhBWyLyOOQz/gTAl7QmWm2hX1QxEIXsr2vkdlwxIzTyiYRC4xcQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz", + "integrity": "sha512-wdsOw0MvkL1UIgiQ/IFr3ETcfv1xb8RMM0H9wbiDyLaJFyiDg5oZvDLCXosIXmFeIlweML5iOBXAkqddkYNizg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.7.4.tgz", + "integrity": "sha512-zUXy3e8jBNPiffmqkHRNDdZM2r8DWhCB7HhcoyZjiK1TxYEluLHAvQuYnTT+ARqRpabWqy/NHkO6e3MsYB5YfA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.4.tgz", + "integrity": "sha512-zpUTZphp5nHokuy8yLlyafxCJ0rSlFoSHypTUWgpdwoDXWQcseaect7cJ8Ppk6nunOM6+5rPMkod4OYKPR5MUg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.7.4" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.7.4.tgz", + "integrity": "sha512-kqtQzwtKcpPclHYjLK//3lH8OFsCDuDJBaFhVwf8kqdnF6MN4l618UDlcA7TfRs3FayrHj+svYnSX8MC9zmUyQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.7.4.tgz", + "integrity": "sha512-2VBe9u0G+fDt9B5OV5DQH4KBf5DoiNkwFKOz0TCvBWvdAN2rOykCTkrL+jTLxfCAm76l9Qo5OqL7HBOx2dWggg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/plugin-transform-classes": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.4.tgz", + "integrity": "sha512-sK1mjWat7K+buWRuImEzjNf68qrKcrddtpQo3swi9j7dUcG6y6R6+Di039QN2bD1dykeswlagupEmpOatFHHUg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.7.4", + "@babel/helper-define-map": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-optimise-call-expression": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.7.4.tgz", + "integrity": "sha512-bSNsOsZnlpLLyQew35rl4Fma3yKWqK3ImWMSC/Nc+6nGjC9s5NFWAer1YQ899/6s9HxO2zQC1WoFNfkOqRkqRQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.7.4.tgz", + "integrity": "sha512-4jFMXI1Cu2aXbcXXl8Lr6YubCn6Oc7k9lLsu8v61TZh+1jny2BWmdtvY9zSUlLdGUvcy9DMAWyZEOqjsbeg/wA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz", + "integrity": "sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.7.4.tgz", + "integrity": "sha512-g1y4/G6xGWMD85Tlft5XedGaZBCIVN+/P0bs6eabmcPP9egFleMAo65OOjlhcz1njpwagyY3t0nsQC9oTFegJA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.7.4.tgz", + "integrity": "sha512-MCqiLfCKm6KEA1dglf6Uqq1ElDIZwFuzz1WH5mTf8k2uQSxEJMbOIEh7IZv7uichr7PMfi5YVSrr1vz+ipp7AQ==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.7.4.tgz", + "integrity": "sha512-zZ1fD1B8keYtEcKF+M1TROfeHTKnijcVQm0yO/Yu1f7qoDoxEIc/+GX6Go430Bg84eM/xwPFp0+h4EbZg7epAA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.4.tgz", + "integrity": "sha512-E/x09TvjHNhsULs2IusN+aJNRV5zKwxu1cpirZyRPw+FyyIKEHPXTsadj48bVpc1R5Qq1B5ZkzumuFLytnbT6g==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.7.4.tgz", + "integrity": "sha512-X2MSV7LfJFm4aZfxd0yLVFrEXAgPqYoDG53Br/tCKiKYfX0MjVjQeWPIhPHHsCqzwQANq+FLN786fF5rgLS+gw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.7.4.tgz", + "integrity": "sha512-9VMwMO7i69LHTesL0RdGy93JU6a+qOPuvB4F4d0kR0zyVjJRVJRaoaGjhtki6SzQUu8yen/vxPKN6CWnCUw6bA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz", + "integrity": "sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "babel-plugin-dynamic-import-node": "^2.3.0" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz", + "integrity": "sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-simple-access": "^7.7.4", + "babel-plugin-dynamic-import-node": "^2.3.0" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.4.tgz", + "integrity": "sha512-y2c96hmcsUi6LrMqvmNDPBBiGCiQu0aYqpHatVVu6kD4mFEXKjyNxd/drc18XXAf9dv7UXjrZwBVmTTGaGP8iw==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "babel-plugin-dynamic-import-node": "^2.3.0" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.4.tgz", + "integrity": "sha512-u2B8TIi0qZI4j8q4C51ktfO7E3cQ0qnaXFI1/OXITordD40tt17g/sXqgNNCcMTcBFKrUPcGDx+TBJuZxLx7tw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.4.tgz", + "integrity": "sha512-jBUkiqLKvUWpv9GLSuHUFYdmHg0ujC1JEYoZUfeOOfNydZXp1sXObgyPatpcwjWgsdBGsagWW0cdJpX/DO2jMw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.7.4" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.7.4.tgz", + "integrity": "sha512-CnPRiNtOG1vRodnsyGX37bHQleHE14B9dnnlgSeEs3ek3fHN1A1SScglTCg1sfbe7sRQ2BUcpgpTpWSfMKz3gg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.7.4.tgz", + "integrity": "sha512-ho+dAEhC2aRnff2JCA0SAK7V2R62zJd/7dmtoe7MHcso4C2mS+vZjn1Pb1pCVZvJs1mgsvv5+7sT+m3Bysb6eg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.7.4" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz", + "integrity": "sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw==", + "dev": true, + "requires": { + "@babel/helper-call-delegate": "^7.7.4", + "@babel/helper-get-function-arity": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.7.4.tgz", + "integrity": "sha512-MatJhlC4iHsIskWYyawl53KuHrt+kALSADLQQ/HkhTjX954fkxIEh4q5slL4oRAnsm/eDoZ4q0CIZpcqBuxhJQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz", + "integrity": "sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw==", + "dev": true, + "requires": { + "regenerator-transform": "^0.14.0" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.7.4.tgz", + "integrity": "sha512-OrPiUB5s5XvkCO1lS7D8ZtHcswIC57j62acAnJZKqGGnHP+TIc/ljQSrgdX/QyOTdEK5COAhuc820Hi1q2UgLQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.7.4.tgz", + "integrity": "sha512-q+suddWRfIcnyG5YiDP58sT65AJDZSUhXQDZE3r04AuqD6d/XLaQPPXSBzP2zGerkgBivqtQm9XKGLuHqBID6Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.7.4.tgz", + "integrity": "sha512-8OSs0FLe5/80cndziPlg4R0K6HcWSM0zyNhHhLsmw/Nc5MaA49cAsnoJ/t/YZf8qkG7fD+UjTRaApVDB526d7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.7.4.tgz", + "integrity": "sha512-Ls2NASyL6qtVe1H1hXts9yuEeONV2TJZmplLONkMPUG158CtmnrzW5Q5teibM5UVOFjG0D3IC5mzXR6pPpUY7A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.7.4.tgz", + "integrity": "sha512-sA+KxLwF3QwGj5abMHkHgshp9+rRz+oY9uoRil4CyLtgEuE/88dpkeWgNk5qKVsJE9iSfly3nvHapdRiIS2wnQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.7.4.tgz", + "integrity": "sha512-KQPUQ/7mqe2m0B8VecdyaW5XcQYaePyl9R7IsKd+irzj6jvbhoGnRE+M0aNkyAzI07VfUQ9266L5xMARitV3wg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.4.tgz", + "integrity": "sha512-N77UUIV+WCvE+5yHw+oks3m18/umd7y392Zv7mYTpFqHtkpcc+QUz+gLJNTWVlWROIWeLqY0f3OjZxV5TcXnRw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/preset-env": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.4.tgz", + "integrity": "sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.7.4", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-async-generator-functions": "^7.7.4", + "@babel/plugin-proposal-dynamic-import": "^7.7.4", + "@babel/plugin-proposal-json-strings": "^7.7.4", + "@babel/plugin-proposal-object-rest-spread": "^7.7.4", + "@babel/plugin-proposal-optional-catch-binding": "^7.7.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.7.4", + "@babel/plugin-syntax-async-generators": "^7.7.4", + "@babel/plugin-syntax-dynamic-import": "^7.7.4", + "@babel/plugin-syntax-json-strings": "^7.7.4", + "@babel/plugin-syntax-object-rest-spread": "^7.7.4", + "@babel/plugin-syntax-optional-catch-binding": "^7.7.4", + "@babel/plugin-syntax-top-level-await": "^7.7.4", + "@babel/plugin-transform-arrow-functions": "^7.7.4", + "@babel/plugin-transform-async-to-generator": "^7.7.4", + "@babel/plugin-transform-block-scoped-functions": "^7.7.4", + "@babel/plugin-transform-block-scoping": "^7.7.4", + "@babel/plugin-transform-classes": "^7.7.4", + "@babel/plugin-transform-computed-properties": "^7.7.4", + "@babel/plugin-transform-destructuring": "^7.7.4", + "@babel/plugin-transform-dotall-regex": "^7.7.4", + "@babel/plugin-transform-duplicate-keys": "^7.7.4", + "@babel/plugin-transform-exponentiation-operator": "^7.7.4", + "@babel/plugin-transform-for-of": "^7.7.4", + "@babel/plugin-transform-function-name": "^7.7.4", + "@babel/plugin-transform-literals": "^7.7.4", + "@babel/plugin-transform-member-expression-literals": "^7.7.4", + "@babel/plugin-transform-modules-amd": "^7.7.4", + "@babel/plugin-transform-modules-commonjs": "^7.7.4", + "@babel/plugin-transform-modules-systemjs": "^7.7.4", + "@babel/plugin-transform-modules-umd": "^7.7.4", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4", + "@babel/plugin-transform-new-target": "^7.7.4", + "@babel/plugin-transform-object-super": "^7.7.4", + "@babel/plugin-transform-parameters": "^7.7.4", + "@babel/plugin-transform-property-literals": "^7.7.4", + "@babel/plugin-transform-regenerator": "^7.7.4", + "@babel/plugin-transform-reserved-words": "^7.7.4", + "@babel/plugin-transform-shorthand-properties": "^7.7.4", + "@babel/plugin-transform-spread": "^7.7.4", + "@babel/plugin-transform-sticky-regex": "^7.7.4", + "@babel/plugin-transform-template-literals": "^7.7.4", + "@babel/plugin-transform-typeof-symbol": "^7.7.4", + "@babel/plugin-transform-unicode-regex": "^7.7.4", + "@babel/types": "^7.7.4", + "browserslist": "^4.6.0", + "core-js-compat": "^3.1.1", + "invariant": "^2.2.2", + "js-levenshtein": "^1.1.3", + "semver": "^5.5.0" + } + }, + "@babel/template": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" + } + }, + "@babel/traverse": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + } + } + }, + "aes-js": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", + "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" + }, + "babel-loader": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.6.tgz", + "integrity": "sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw==", + "dev": true, + "requires": { + "find-cache-dir": "^2.0.0", + "loader-utils": "^1.0.2", + "mkdirp": "^0.5.1", + "pify": "^4.0.1" + } + }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz", + "integrity": "sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, + "base-x": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.7.tgz", + "integrity": "sha512-zAKJGuQPihXW22fkrfOclUUZXM2g92z5GzlSMHxhO6r6Qj+Nm0ccaGNBzDZojzwOMkpjAv4J0fOv1U4go+a4iw==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "bn.js": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" + }, + "browserslist": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.8.0.tgz", + "integrity": "sha512-HYnxc/oLRWvJ3TsGegR0SRL/UDnknGq2s/a8dYYEO+kOQ9m9apKoS5oiathLKZdh/e9uE+/J3j92qPlGD/vTqA==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001012", + "electron-to-chromium": "^1.3.317", + "node-releases": "^1.1.41" + } + }, + "bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", + "requires": { + "base-x": "^3.0.2" + } + }, + "buffer-compare": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-compare/-/buffer-compare-1.1.1.tgz", + "integrity": "sha1-W+e+hTr4kZjR9N3AkNHWakiu9ZY=" + }, + "caniuse-lite": { + "version": "1.0.30001015", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz", + "integrity": "sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ==", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "core-js-compat": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.7.tgz", + "integrity": "sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw==", + "dev": true, + "requires": { + "browserslist": "^4.8.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "crypto-js": { + "version": "3.1.9-1", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz", + "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg=" + }, + "decimal": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/decimal/-/decimal-0.0.2.tgz", + "integrity": "sha1-GUPsUjaKD996NywsEM8fy8kbk+M=" + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "electron-to-chromium": { + "version": "1.3.322", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz", + "integrity": "sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA==", + "dev": true + }, + "elliptic": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", + "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", + "requires": { + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" + } + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + } + } + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "js-levenshtein": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "loader-utils": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", + "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^2.0.0", + "json5": "^1.0.1" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "node-releases": { + "version": "1.1.42", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.42.tgz", + "integrity": "sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA==", + "dev": true, + "requires": { + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "p-limit": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", + "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + } + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz", + "integrity": "sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA==", + "dev": true, + "requires": { + "regenerate": "^1.4.0" + } + }, + "regenerator-transform": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.1.tgz", + "integrity": "sha512-flVuee02C3FKRISbxhXl9mGzdbWUVHubl1SMaknjxkFB1/iqpJhArQUvRxOOPEc/9tAiX0BaQ28FJH10E4isSQ==", + "dev": true, + "requires": { + "private": "^0.1.6" + } + }, + "regexpu-core": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.6.0.tgz", + "integrity": "sha512-YlVaefl8P5BnFYOITTNzDvan1ulLOiXJzCNZxduTIosN17b87h3bvG9yHMoHaRuo88H4mQ06Aodj5VtYGGGiTg==", + "dev": true, + "requires": { + "regenerate": "^1.4.0", + "regenerate-unicode-properties": "^8.1.0", + "regjsgen": "^0.5.0", + "regjsparser": "^0.6.0", + "unicode-match-property-ecmascript": "^1.0.4", + "unicode-match-property-value-ecmascript": "^1.1.0" + } + }, + "regjsgen": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", + "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", + "dev": true + }, + "regjsparser": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz", + "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "resolve": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz", + "integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "scrypt-js": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", + "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==" + }, + "scryptsy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/scryptsy/-/scryptsy-2.1.0.tgz", + "integrity": "sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "unicode-canonical-property-names-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-property-aliases-ecmascript": "^1.0.4" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz", + "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz", + "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==", + "dev": true + }, + "unorm": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.6.0.tgz", + "integrity": "sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==" + } + } +} diff --git a/package.json b/package.json index 3ac5854..f3b1720 100644 --- a/package.json +++ b/package.json @@ -1,51 +1,55 @@ { - "name": "wicc-wallet-lib", - "version": "1.0.5", - "description": "A pure and powerful JavaScript Wicc Wallet library.", - "author": "coredev@waykichainhk.com", - "main": "src/index.js", - "scripts": { - "build": "webpack", - "test": "node demo/index.js" - }, - "keywords": [ - "bitcoin", - "transaction", - "address", - "p2p", - "ecies", - "cryptocurrency", - "blockchain", - "payment", - "bip21", - "bip32", - "bip37", - "bip69", - "bip70", - "multisig", - "wicc", - "wusd", - "wgrt", - "dex", - "cdp" - ], - "browser": { - "request": "browser-request" - }, - "dependencies": { - "aes-js": "^3.1.1", - "bn.js": "=4.11.8", - "bs58": "=4.0.1", - "buffer-compare": "=1.1.1", - "crypto-js": "^3.1.9-1", - "decimal": "0.0.2", - "elliptic": "=6.4.0", - "inherits": "=2.0.1", - "lodash": "=4.17.5", - "scrypt-js": "^2.0.3", - "scryptsy": "^2.0.0", - "unorm": "^1.4.1" - }, - "license": "MIT" + "name": "wicc-wallet-lib", + "version": "1.0.5", + "description": "A pure and powerful JavaScript Wicc Wallet library.", + "author": "coredev@waykichainhk.com", + "main": "src/index.js", + "scripts": { + "build": "webpack --mode production --progress --display-modules --colors --display-reasons", + "test": "node demo/index.js" + }, + "keywords": [ + "bitcoin", + "transaction", + "address", + "p2p", + "ecies", + "cryptocurrency", + "blockchain", + "payment", + "bip21", + "bip32", + "bip37", + "bip69", + "bip70", + "multisig", + "wicc", + "wusd", + "wgrt", + "dex", + "cdp" + ], + "browser": { + "request": "browser-request" + }, + "dependencies": { + "aes-js": "^3.1.1", + "bn.js": "=4.11.8", + "bs58": "=4.0.1", + "buffer-compare": "=1.1.1", + "crypto-js": "^3.1.9-1", + "decimal": "0.0.2", + "elliptic": "=6.4.0", + "inherits": "=2.0.1", + "lodash": "=4.17.5", + "scrypt-js": "^2.0.3", + "scryptsy": "^2.0.0", + "unorm": "^1.4.1" + }, + "license": "MIT", + "devDependencies": { + "@babel/core": "^7.7.4", + "@babel/preset-env": "^7.7.4", + "babel-loader": "^8.0.6" } - \ No newline at end of file +} diff --git a/webpack.config.js b/webpack.config.js index fb73d06..21890e0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,5 +9,14 @@ module.exports = { library: 'WiccWalletApi', libraryTarget: 'umd', globalObject: 'this' - } + }, + module:{ + rules:[ + { + test: /\.js$/, + exclude: /node_modules/, + loader: "babel-loader" + } + ] + } } From fbf51d7e70936794b7ec25d7726cc4415a788230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 5 Dec 2019 09:57:20 +0800 Subject: [PATCH 05/33] update --- dist/wicc-wallet-lib.js | 16 ++++++++-------- package-lock.json | 36 ++++++++++++++++++++++++++++++++++++ package.json | 1 + webpack.config.js | 20 ++++++++++---------- 4 files changed, 55 insertions(+), 18 deletions(-) diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js index fc427db..d3184e4 100644 --- a/dist/wicc-wallet-lib.js +++ b/dist/wicc-wallet-lib.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=147)}([function(e,t,r){"use strict";(function(e){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=276)}([function(e,t,r){var n=r(7),i=r(41),o=r(31),a=r(32),s=r(42),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var i=r(149),n=r(150),o=r(90);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;dn&&(i=n):i=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,i,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(i,n),c=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,i,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function O(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function N(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,o){return o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(19))},function(e,t,r){(function(e,i){var n; +var n=r(481),i=r(482),o=r(219);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(28))},function(e,t,r){(function(e,n){var i; /** * @license * Lodash @@ -13,21 +13,21 @@ var i=r(149),n=r(150),o=r(90);function a(){return f.TYPED_ARRAY_SUPPORT?21474836 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,S=32,I=64,x=128,k=256,A=512,E=30,M="...",B=800,T=16,R=1,P=2,O=1/0,C=9007199254740991,N=1.7976931348623157e308,z=NaN,U=4294967295,j=U-1,D=U>>>1,V=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",I],["rearg",k]],H="[object Arguments]",L="[object Array]",K="[object AsyncFunction]",q="[object Boolean]",F="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ie="[object String]",ne="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",fe="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,xe=RegExp(Se.source),ke=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ce=/^\s+|\s+$/g,Ne=/^\s+/,ze=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",it="\\d+",nt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ft,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),mt="(?:"+[nt,ut,ct].join("|")+")"+bt,gt="(?:"+[ft+rt+"?",rt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[me]=At[ge]=At[ve]=!0,At[H]=At[L]=At[fe]=At[q]=At[ue]=At[F]=At[Y]=At[G]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ie]=At[ae]=!1;var Et={};Et[H]=Et[L]=Et[fe]=Et[ue]=Et[q]=Et[F]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ie]=Et[ne]=Et[be]=Et[me]=Et[ge]=Et[ve]=!0,Et[Y]=Et[G]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Rt||Pt||Function("return this")(),Ct=t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof i&&i&&!i.nodeType&&i,zt=Nt&&Nt.exports===Ct,Ut=zt&&Rt.process,jt=function(){try{return Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Dt=jt&&jt.isArrayBuffer,Vt=jt&&jt.isDate,Ht=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Kt=jt&&jt.isSet,qt=jt&&jt.isTypedArray;function Ft(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function $t(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ir(e){return"\\"+Mt[e]}function xr(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var Cr=function e(t){var r,i=(t=null==t?Ot:Cr.defaults(Ot.Object(),t,Cr.pick(Ot,xt))).Array,n=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,it=t.String,nt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,ft=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ut.call(tt),bt=Ot._,mt=rt("^"+ut.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=zt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=gt?gt.allocUnsafe:o,Rt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Ct=st.propertyIsEnumerable,Nt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,jt=wt?wt.iterator:o,nr=wt?wt.toStringTag:o,dr=function(){try{var e=Vo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,zr=n&&n.now!==Ot.Date.now&&n.now,Ur=t.setTimeout!==Ot.setTimeout&&t.setTimeout,jr=et.ceil,Dr=et.floor,Vr=tt.getOwnPropertySymbols,Hr=gt?gt.isBuffer:o,Lr=t.isFinite,Kr=ot.join,qr=Ar(tt.keys,tt),Fr=et.max,Wr=et.min,Yr=n.now,Gr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Vo(t,"DataView"),$r=Vo(t,"Map"),Qr=Vo(t,"Promise"),ei=Vo(t,"Set"),ti=Vo(t,"WeakMap"),ri=Vo(tt,"create"),ii=ti&&new ti,ni={},oi=ha(Jr),ai=ha($r),si=ha(Qr),fi=ha(ei),ui=ha(ti),ci=wt?wt.prototype:o,hi=ci?ci.valueOf:o,di=ci?ci.toString:o;function li(e){if(Ms(e)&&!gs(e)&&!(e instanceof gi)){if(e instanceof mi)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mi(e)}var pi=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function bi(){}function mi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function vi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ni(e,t,r,i,n,a){var s,f=t&d,u=t&l,c=t&p;if(r&&(s=n?r(e,i,n,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=gs(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!f)return io(e,s)}else{var b=Ko(e),m=b==G||b==X;if(_s(e))return Jn(e,f);if(b==Q||b==H||m&&!n){if(s=u||m?{}:Fo(e),!f)return u?function(e,t){return no(e,Lo(e),t)}(e,function(e,t){return e&&no(t,af(t),e)}(s,e)):function(e,t){return no(e,Ho(e),t)}(e,Ri(s,e))}else{if(!Et[b])return n?e:{};s=function(e,t,r){var i,n,o,a=e.constructor;switch(t){case fe:return $n(e);case q:case F:return new a(+e);case ue:return function(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case me:case ge:case ve:return Qn(e,r);case Z:return new a;case J:case ie:return new a(e);case te:return(o=new(n=e).constructor(n.source,Ke.exec(n))).lastIndex=n.lastIndex,o;case re:return new a;case ne:return i=e,hi?tt(hi.call(i)):{}}}(e,b,f)}}a||(a=new Si);var g=a.get(e);if(g)return g;if(a.set(e,s),Os(e))return e.forEach(function(i){s.add(Ni(i,t,r,i,e,a))}),s;if(Bs(e))return e.forEach(function(i,n){s.set(n,Ni(i,t,r,n,e,a))}),s;var v=h?o:(c?u?Oo:Po:u?af:of)(e);return Yt(v||e,function(i,n){v&&(i=e[n=i]),Mi(s,n,Ni(i,t,r,n,e,a))}),s}function zi(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var n=r[i],a=t[n],s=e[n];if(s===o&&!(n in e)||!a(s))return!1}return!0}function Ui(e,t,r){if("function"!=typeof e)throw new nt(f);return na(function(){e.apply(o,r)},t)}function ji(e,t,r,i){var n=-1,o=Jt,s=!0,f=e.length,u=[],c=t.length;if(!f)return u;r&&(t=Qt(t,mr(r))),i?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new _i(t));e:for(;++n-1},yi.prototype.set=function(e,t){var r=this.__data__,i=Bi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new($r||yi),string:new vi}},wi.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return jo(this,e).get(e)},wi.prototype.has=function(e){return jo(this,e).has(e)},wi.prototype.set=function(e,t){var r=jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,u),this},_i.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.clear=function(){this.__data__=new yi,this.size=0},Si.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Si.prototype.get=function(e){return this.__data__.get(e)},Si.prototype.has=function(e){return this.__data__.has(e)},Si.prototype.set=function(e,t){var r=this.__data__;if(r instanceof yi){var i=r.__data__;if(!$r||i.length0&&r(s)?t>1?qi(s,t-1,r,i,n):er(n,s):i||(n[n.length]=s)}return n}var Fi=fo(),Wi=fo(!0);function Yi(e,t){return e&&Fi(e,t,of)}function Gi(e,t){return e&&Wi(e,t,of)}function Xi(e,t){return Zt(t,function(t){return xs(e[t])})}function Zi(e,t){for(var r=0,i=(t=Yn(t,e)).length;null!=e&&rt}function en(e,t){return null!=e&&ct.call(e,t)}function tn(e,t){return null!=e&&t in tt(e)}function rn(e,t,r){for(var n=r?$t:Jt,a=e[0].length,s=e.length,f=s,u=i(s),c=1/0,h=[];f--;){var d=e[f];f&&t&&(d=Qt(d,mr(t))),c=Wr(d.length,c),u[f]=!r&&(t||a>=120&&d.length>=120)?new _i(f&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function yn(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&Nt.call(s,f,1),Nt.call(e,f,1);return e}function _n(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;Yo(n)?Nt.call(e,n,1):Dn(e,n)}}return e}function Sn(e,t){return e+Dr(Xr()*(t-e+1))}function In(e,t){var r="";if(!e||t<1||t>C)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function xn(e,t){return oa(ta(e,t,Rf),e+"")}function kn(e){return xi(pf(e))}function An(e,t){var r=pf(e);return fa(r,Ci(t,0,r.length))}function En(e,t,r,i){if(!Es(e))return e;for(var n=-1,a=(t=Yn(t,e)).length,s=a-1,f=e;null!=f&&++no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=i(o);++n>>1,a=e[o];null!==a&&!Ns(a)&&(r?a<=t:a=a){var c=t?null:xo(e);if(c)return Br(c);s=!1,n=vr,u=new _i}else u=t?[]:f;e:for(;++i=i?e:Rn(e,t,r)}var Zn=Nr||function(e){return Ot.clearTimeout(e)};function Jn(e,t){if(t)return e.slice();var r=e.length,i=Mt?Mt(r):new e.constructor(r);return e.copy(i),i}function $n(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qn(e,t){var r=t?$n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,i=null===e,n=e==e,a=Ns(e),s=t!==o,f=null===t,u=t==t,c=Ns(t);if(!f&&!c&&!a&&e>t||a&&s&&u&&!f&&!c||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e1?r[n-1]:o,s=n>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(n--,a):o,s&&Go(r[0],r[1],s)&&(a=n<3?o:a,n=1),t=tt(t);++i-1?n[a?t[s]:s]:o}}function po(e){return Ro(function(t){var r=t.length,i=r,n=mi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new nt(f);if(n&&!s&&"wrapper"==No(a))var s=new mi([],!0)}for(i=s?i:r;++i1&&w.reverse(),d&&cf))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&m?new _i:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Yt(V,function(r){var i="_."+r[0];t&r[1]&&!Jt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(je);return t?t[1].split(De):[]}(i),r)))}function sa(e){var t=0,r=0;return function(){var i=Yr(),n=T-(i-r);if(r=i,n>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function fa(e,t){var r=-1,i=e.length,n=i-1;for(t=t===o?i:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=li(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Ha=Ro(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof gi&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Va,args:[n],thisArg:o}),new mi(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(n)});var La=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pi(e,r,1)});var Ka=lo(ma),qa=lo(ga);function Fa(e,t){return(gs(e)?Yt:Di)(e,Uo(t,3))}function Wa(e,t){return(gs(e)?Gt:Vi)(e,Uo(t,3))}var Ya=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pi(e,r,[t])});var Ga=xn(function(e,t,r){var n=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Di(e,function(e){a[++n]=o?Ft(t,e,r):nn(e,t,r)}),a}),Xa=oo(function(e,t,r){Pi(e,r,t)});function Za(e,t){return(gs(e)?Qt:ln)(e,Uo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),vn(e,qi(t,1),[])}),Qa=zr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,x,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=xn(function(e,t,r){var i=g;if(r.length){var n=Er(r,zo(rs));i|=S}return Ao(e,i,t,r,n)}),is=xn(function(e,t,r){var i=g|v;if(r.length){var n=Er(r,zo(is));i|=S}return Ao(t,i,e,r,n)});function ns(e,t,r){var i,n,a,s,u,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new nt(f);function b(t){var r=i,a=n;return i=n=o,h=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function g(){var e=Qa();if(m(e))return v(e);u=na(g,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return u=o,p&&i?b(e):(i=n=o,s)}function y(){var e=Qa(),r=m(e);if(i=arguments,n=this,c=e,r){if(u===o)return function(e){return h=e,u=na(g,t),d?b(e):s}(c);if(l)return u=na(g,t),b(c)}return u===o&&(u=na(g,t)),s}return t=Ks(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?Fr(Ks(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){u!==o&&Zn(u),h=0,i=c=n=u=o},y.flush=function(){return u===o?s:v(Qa())},y}var os=xn(function(e,t){return Ui(e,1,t)}),as=xn(function(e,t,r){return Ui(e,Ks(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(f);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(ss.Cache||wi),r}function fs(e){if("function"!=typeof e)throw new nt(f);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)}}ss.Cache=wi;var us=Gn(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Uo())):Qt(qi(t,1),mr(Uo()))).length;return xn(function(i){for(var n=-1,o=Wr(i.length,r);++n=t}),ms=on(function(){return arguments}())?on:function(e){return Ms(e)&&ct.call(e,"callee")&&!Ct.call(e,"callee")},gs=i.isArray,vs=Dt?mr(Dt):function(e){return Ms(e)&&$i(e)==fe};function ys(e){return null!=e&&As(e.length)&&!xs(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Hr||qf,Ss=Vt?mr(Vt):function(e){return Ms(e)&&$i(e)==F};function Is(e){if(!Ms(e))return!1;var t=$i(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Rs(e)}function xs(e){if(!Es(e))return!1;var t=$i(e);return t==G||t==X||t==K||t==ee}function ks(e){return"number"==typeof e&&e==Hs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=C}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Bs=Ht?mr(Ht):function(e){return Ms(e)&&Ko(e)==Z};function Ts(e){return"number"==typeof e||Ms(e)&&$i(e)==J}function Rs(e){if(!Ms(e)||$i(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==pt}var Ps=Lt?mr(Lt):function(e){return Ms(e)&&$i(e)==te};var Os=Kt?mr(Kt):function(e){return Ms(e)&&Ko(e)==re};function Cs(e){return"string"==typeof e||!gs(e)&&Ms(e)&&$i(e)==ie}function Ns(e){return"symbol"==typeof e||Ms(e)&&$i(e)==ne}var zs=qt?mr(qt):function(e){return Ms(e)&&As(e.length)&&!!At[$i(e)]};var Us=_o(dn),js=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Cs(e)?Pr(e):io(e);if(jt&&e[jt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[jt]());var t=Ko(e);return(t==Z?kr:t==re?Br:pf)(e)}function Vs(e){return e?(e=Ks(e))===O||e===-O?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Hs(e){var t=Vs(e),r=t%1;return t==t?r?t-r:t:0}function Ls(e){return e?Ci(Hs(e),0,U):0}function Ks(e){if("number"==typeof e)return e;if(Ns(e))return z;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var r=Fe.test(e);return r||Ye.test(e)?Tt(e.slice(2),r?2:8):qe.test(e)?z:+e}function qs(e){return no(e,af(e))}function Fs(e){return null==e?"":Un(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))no(t,of(t),e);else for(var r in t)ct.call(t,r)&&Mi(e,r,t[r])}),Ys=ao(function(e,t){no(t,af(t),e)}),Gs=ao(function(e,t,r,i){no(t,af(t),e,i)}),Xs=ao(function(e,t,r,i){no(t,of(t),e,i)}),Zs=Ro(Oi);var Js=xn(function(e,t){e=tt(e);var r=-1,i=t.length,n=i>2?t[2]:o;for(n&&Go(t[0],t[1],n)&&(i=1);++r1),t}),no(e,Oo(e),r),i&&(r=Ni(r,d|l|p,Bo));for(var n=t.length;n--;)Dn(r,t[n]);return r});var cf=Ro(function(e,t){return null==e?{}:function(e,t){return yn(e,t,function(t,r){return ef(e,r)})}(e,t)});function hf(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=Uo(t),yn(e,r,function(e,r){return t(e,r[0])})}var df=ko(of),lf=ko(af);function pf(e){return null==e?[]:gr(e,of(e))}var bf=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mf(t):t)});function mf(e){return xf(Fs(e).toLowerCase())}function gf(e){return(e=Fs(e))&&e.replace(Xe,_r).replace(yt,"")}var vf=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yf=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),wf=uo("toLowerCase");var _f=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Sf=co(function(e,t,r){return e+(r?" ":"")+xf(t)});var If=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xf=uo("toUpperCase");function kf(e,t,r){return e=Fs(e),(t=r?o:t)===o?function(e){return It.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Ve)||[]}(e):e.match(t)||[]}var Af=xn(function(e,t){try{return Ft(e,o,t)}catch(e){return Is(e)?e:new $e(e)}}),Ef=Ro(function(e,t){return Yt(t,function(t){t=ca(t),Pi(e,t,rs(e[t],e))}),e});function Mf(e){return function(){return e}}var Bf=po(),Tf=po(!0);function Rf(e){return e}function Pf(e){return un("function"==typeof e?e:Ni(e,d))}var Of=xn(function(e,t){return function(r){return nn(r,e,t)}}),Cf=xn(function(e,t){return function(r){return nn(e,r,t)}});function Nf(e,t,r){var i=of(t),n=Xi(t,i);null!=r||Es(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Xi(t,of(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=xs(e);return Yt(n,function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=io(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,er([this.value()],arguments))})}),e}function zf(){}var Uf=vo(Qt),jf=vo(Xt),Df=vo(ir);function Vf(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Hf=wo(),Lf=wo(!0);function Kf(){return[]}function qf(){return!1}var Ff=go(function(e,t){return e+t},0),Wf=Io("ceil"),Yf=go(function(e,t){return e/t},1),Gf=Io("floor");var Xf,Zf=go(function(e,t){return e*t},1),Jf=Io("round"),$f=go(function(e,t){return e-t},0);return li.after=function(e,t){if("function"!=typeof t)throw new nt(f);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},li.ary=es,li.assign=Ws,li.assignIn=Ys,li.assignInWith=Gs,li.assignWith=Xs,li.at=Zs,li.before=ts,li.bind=rs,li.bindAll=Ef,li.bindKey=is,li.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},li.chain=Da,li.chunk=function(e,t,r){t=(r?Go(e,t,r):t===o)?1:Fr(Hs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,f=i(jr(n/t));an?0:n+r),(i=i===o||i>n?n:Hs(i))<0&&(i+=n),i=r>i?0:Ls(i);r>>0)?(e=Fs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&xr(e)?Xn(Pr(e),0,r):e.split(t,r):[]},li.spread=function(e,t){if("function"!=typeof e)throw new nt(f);return t=null==t?0:Fr(Hs(t),0),xn(function(r){var i=r[t],n=Xn(r,0,t);return i&&er(n,i),Ft(e,this,n)})},li.tail=function(e){var t=null==e?0:e.length;return t?Rn(e,1,t):[]},li.take=function(e,t,r){return e&&e.length?Rn(e,0,(t=r||t===o?1:Hs(t))<0?0:t):[]},li.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Rn(e,(t=i-(t=r||t===o?1:Hs(t)))<0?0:t,i):[]},li.takeRightWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3),!1,!0):[]},li.takeWhile=function(e,t){return e&&e.length?Hn(e,Uo(t,3)):[]},li.tap=function(e,t){return t(e),e},li.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new nt(f);return Es(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),ns(e,t,{leading:i,maxWait:t,trailing:n})},li.thru=Va,li.toArray=Ds,li.toPairs=df,li.toPairsIn=lf,li.toPath=function(e){return gs(e)?Qt(e,ca):Ns(e)?[e]:io(ua(Fs(e)))},li.toPlainObject=qs,li.transform=function(e,t,r){var i=gs(e),n=i||_s(e)||zs(e);if(t=Uo(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Es(e)&&xs(o)?pi(Rt(e)):{}}return(n?Yt:Yi)(e,function(e,i,n){return t(r,e,i,n)}),r},li.unary=function(e){return es(e,1)},li.union=Ma,li.unionBy=Ba,li.unionWith=Ta,li.uniq=function(e){return e&&e.length?jn(e):[]},li.uniqBy=function(e,t){return e&&e.length?jn(e,Uo(t,2)):[]},li.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?jn(e,o,t):[]},li.unset=function(e,t){return null==e||Dn(e,t)},li.unzip=Ra,li.unzipWith=Pa,li.update=function(e,t,r){return null==e?e:Vn(e,t,Wn(r))},li.updateWith=function(e,t,r,i){return i="function"==typeof i?i:o,null==e?e:Vn(e,t,Wn(r),i)},li.values=pf,li.valuesIn=function(e){return null==e?[]:gr(e,af(e))},li.without=Oa,li.words=kf,li.wrap=function(e,t){return cs(Wn(t),e)},li.xor=Ca,li.xorBy=Na,li.xorWith=za,li.zip=Ua,li.zipObject=function(e,t){return qn(e||[],t||[],Mi)},li.zipObjectDeep=function(e,t){return qn(e||[],t||[],En)},li.zipWith=ja,li.entries=df,li.entriesIn=lf,li.extend=Ys,li.extendWith=Gs,Nf(li,li),li.add=Ff,li.attempt=Af,li.camelCase=bf,li.capitalize=mf,li.ceil=Wf,li.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ks(r))==r?r:0),t!==o&&(t=(t=Ks(t))==t?t:0),Ci(Ks(e),t,r)},li.clone=function(e){return Ni(e,p)},li.cloneDeep=function(e){return Ni(e,d|p)},li.cloneDeepWith=function(e,t){return Ni(e,d|p,t="function"==typeof t?t:o)},li.cloneWith=function(e,t){return Ni(e,p,t="function"==typeof t?t:o)},li.conformsTo=function(e,t){return null==t||zi(e,t,of(t))},li.deburr=gf,li.defaultTo=function(e,t){return null==e||e!=e?t:e},li.divide=Yf,li.endsWith=function(e,t,r){e=Fs(e),t=Un(t);var i=e.length,n=r=r===o?i:Ci(Hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},li.eq=ls,li.escape=function(e){return(e=Fs(e))&&ke.test(e)?e.replace(Ie,Sr):e},li.escapeRegExp=function(e){return(e=Fs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},li.every=function(e,t,r){var i=gs(e)?Xt:Hi;return r&&Go(e,t,r)&&(t=o),i(e,Uo(t,3))},li.find=Ka,li.findIndex=ma,li.findKey=function(e,t){return or(e,Uo(t,3),Yi)},li.findLast=qa,li.findLastIndex=ga,li.findLastKey=function(e,t){return or(e,Uo(t,3),Gi)},li.floor=Gf,li.forEach=Fa,li.forEachRight=Wa,li.forIn=function(e,t){return null==e?e:Fi(e,Uo(t,3),af)},li.forInRight=function(e,t){return null==e?e:Wi(e,Uo(t,3),af)},li.forOwn=function(e,t){return e&&Yi(e,Uo(t,3))},li.forOwnRight=function(e,t){return e&&Gi(e,Uo(t,3))},li.get=Qs,li.gt=ps,li.gte=bs,li.has=function(e,t){return null!=e&&qo(e,t,en)},li.hasIn=ef,li.head=ya,li.identity=Rf,li.includes=function(e,t,r,i){e=ys(e)?e:pf(e),r=r&&!i?Hs(r):0;var n=e.length;return r<0&&(r=Fr(n+r,0)),Cs(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&sr(e,t,r)>-1},li.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:Hs(r);return n<0&&(n=Fr(i+n,0)),sr(e,t,n)},li.inRange=function(e,t,r){return t=Vs(t),r===o?(r=t,t=0):r=Vs(r),function(e,t,r){return e>=Wr(t,r)&&e=-C&&e<=C},li.isSet=Os,li.isString=Cs,li.isSymbol=Ns,li.isTypedArray=zs,li.isUndefined=function(e){return e===o},li.isWeakMap=function(e){return Ms(e)&&Ko(e)==ae},li.isWeakSet=function(e){return Ms(e)&&$i(e)==se},li.join=function(e,t){return null==e?"":Kr.call(e,t)},li.kebabCase=vf,li.last=Ia,li.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==o&&(n=(n=Hs(r))<0?Fr(i+n,0):Wr(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):ar(e,ur,n,!0)},li.lowerCase=yf,li.lowerFirst=wf,li.lt=Us,li.lte=js,li.max=function(e){return e&&e.length?Li(e,Rf,Qi):o},li.maxBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),Qi):o},li.mean=function(e){return cr(e,Rf)},li.meanBy=function(e,t){return cr(e,Uo(t,2))},li.min=function(e){return e&&e.length?Li(e,Rf,dn):o},li.minBy=function(e,t){return e&&e.length?Li(e,Uo(t,2),dn):o},li.stubArray=Kf,li.stubFalse=qf,li.stubObject=function(){return{}},li.stubString=function(){return""},li.stubTrue=function(){return!0},li.multiply=Zf,li.nth=function(e,t){return e&&e.length?gn(e,Hs(t)):o},li.noConflict=function(){return Ot._===this&&(Ot._=bt),this},li.noop=zf,li.now=Qa,li.pad=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return yo(Dr(n),r)+e+yo(jr(n),r)},li.padEnd=function(e,t,r){e=Fs(e);var i=(t=Hs(t))?Rr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=Xr();return Wr(e+n*(t-e+Bt("1e-"+((n+"").length-1))),t)}return Sn(e,t)},li.reduce=function(e,t,r){var i=gs(e)?tr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Di)},li.reduceRight=function(e,t,r){var i=gs(e)?rr:lr,n=arguments.length<3;return i(e,Uo(t,4),r,n,Vi)},li.repeat=function(e,t,r){return t=(r?Go(e,t,r):t===o)?1:Hs(t),In(Fs(e),t)},li.replace=function(){var e=arguments,t=Fs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},li.result=function(e,t,r){var i=-1,n=(t=Yn(t,e)).length;for(n||(n=1,e=o);++iC)return[];var r=U,i=Wr(e,U);t=Uo(t),e-=U;for(var n=br(i,t);++r=a)return e;var f=r-Rr(i);if(f<1)return i;var u=s?Xn(s,0,f).join(""):e.slice(0,f);if(n===o)return u+i;if(s&&(f+=u.length-f),Ps(n)){if(e.slice(f).search(n)){var c,h=u;for(n.global||(n=rt(n.source,Fs(Ke.exec(n))+"g")),n.lastIndex=0;c=n.exec(h);)var d=c.index;u=u.slice(0,d===o?f:d)}}else if(e.indexOf(Un(n),f)!=f){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},li.unescape=function(e){return(e=Fs(e))&&xe.test(e)?e.replace(Se,Or):e},li.uniqueId=function(e){var t=++ht;return Fs(e)+t},li.upperCase=If,li.upperFirst=xf,li.each=Fa,li.eachRight=Wa,li.first=ya,Nf(li,(Xf={},Yi(li,function(e,t){ct.call(li.prototype,t)||(Xf[t]=e)}),Xf),{chain:!1}),li.VERSION="4.17.5",Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){li[e].placeholder=li}),Yt(["drop","take"],function(e,t){gi.prototype[e]=function(r){r=r===o?1:Fr(Hs(r),0);var i=this.__filtered__&&!t?new gi(this):this.clone();return i.__filtered__?i.__takeCount__=Wr(r,i.__takeCount__):i.__views__.push({size:Wr(r,U),type:e+(i.__dir__<0?"Right":"")}),i},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Yt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||3==r;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Uo(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),Yt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gi.prototype[e]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[r](1)}}),gi.prototype.compact=function(){return this.filter(Rf)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=xn(function(e,t){return"function"==typeof e?new gi(this):this.map(function(r){return nn(r,e,t)})}),gi.prototype.reject=function(e){return this.filter(fs(Uo(e)))},gi.prototype.slice=function(e,t){e=Hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gi(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(U)},Yi(gi.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=li[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(li.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,f=t instanceof gi,u=s[0],c=f||gs(t),h=function(e){var t=n.apply(li,er([e],s));return i&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(f=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=f&&!l;if(!a&&c){t=b?t:new gi(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[h],thisArg:o}),new mi(m,d)}return p&&b?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);li.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(gs(n)?n:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Yi(gi.prototype,function(e,t){var r=li[t];if(r){var i=r.name+"";(ni[i]||(ni[i]=[])).push({name:t,func:r})}}),ni[bo(o,v).name]=[{name:"wrapper",func:o}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),i=t<0,n=r?e.length:0,o=function(e,t,r){for(var i=-1,n=r.length;++i=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},li.prototype.plant=function(e){for(var t,r=this;r instanceof bi;){var i=da(r);i.__index__=0,i.__values__=o,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},li.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Ea],thisArg:o}),new mi(t,this.__chain__)}return this.thru(Ea)},li.prototype.toJSON=li.prototype.valueOf=li.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},li.prototype.first=li.prototype.head,jt&&(li.prototype[jt]=function(){return this}),li}();Ot._=Cr,(n=function(){return Cr}.call(t,r,t,i))===o||(i.exports=n)}).call(this)}).call(this,r(19),r(56)(e))},function(e,t,r){"use strict";function i(e){return(i="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})(e)}var n=r(11),o=r(1);e.exports={checkState:function(e,t){if(!e)throw new n.InvalidState(t)},checkArgument:function(e,t,r,i){if(!e)throw new n.InvalidArgument(t,r,i)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(0).Buffer.isBuffer(e))throw new n.InvalidArgumentType(e,t,a)}else if(i(e)!==t)throw new n.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new n.InvalidArgumentType(e,t.name,a)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var i=r(0),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var i=r(40),n=r(8),o=r(2),a=e.exports;a.sha1=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(n.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(n.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(n.isBuffer(e)),i.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,i){o.checkArgument(n.isBuffer(r)),o.checkArgument(n.isBuffer(i)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(i.length>a)i=e(i);else if(i>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){var t=t,r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=4*o,f=n/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*o,c=e.min(4*u,n);if(u){for(var h=0;he.size?r=i.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return i.fromSM(e,{endian:"little"})},i.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},i.prototype.gt=function(e){return this.cmp(e)>0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.lt=function(e){return this.cmp(e)<0},i.trim=function(e,t){return e.slice(t-e.length,e.length)},i.pad=function(e,r,i){for(var n=t.alloc(i),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new i.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,i=e.toNumber();if(i<253)(r=t.alloc(1)).writeUInt8(i,0);else if(i<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(i,1);else if(i<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(i,1);else{var n=new o;n.writeUInt8(255),n.writeUInt64LEBN(e);r=n.concat()}return r},e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(39),o=r(12),a=r(30),s=r(55),f=r(5),u=r(8),c=r(1),h=r(2),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=n.getN();do{e=i.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(i.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?u.reverse(this.hashbuf):this.hashbuf;o=f.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=f.sha256hmac(r,o),o=f.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=f.sha256hmac(r,o),r=f.sha256hmac(r,o);for(var h=i.fromBuffer(r),d=n.getN(),l=0;l>1,u=n.getN(),c=n.getG(),d=f?r.add(u):r,l=n.fromX(s,d);if(!l.mul(u).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(u),b=r.invm(u),m=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(m,this.sig.compressed)},d.prototype.sigError=function(){if(!u.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(i.Zero)&&e.lt(n.getN())&&t.gt(i.Zero)&&t.lt(n.getN())))return"r and s not in range";var r=i.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=n.getN(),a=t.invm(o),s=a.mul(r).umod(o),f=a.mul(e).umod(o),c=n.getG().mulAdd(s,this.pubkey.point,f);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(i.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=n.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=n.getN(),f=n.getG(),u=0;do{(!this.k||u>0)&&this.deterministicK(u),u++,r=this.k,o=f.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(i.Zero)<=0||a.cmp(i.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(u.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var n=i.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,n);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,i){return d().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var i=r(7),n=r(1),o=r(2),a=r(8),s=r(15),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof i)this.set({r:t,s:r});else if(t){var n=t;this.set(n)}};f.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},f.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new f,r=!0,n=e.slice(0,1)[0]-27-4;n<0&&(r=!1,n+=4);var s=e.slice(1,33),u=e.slice(33,65);return o.checkArgument(0===n||1===n||2===n||3===n,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===u.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=n,t.r=i.fromBuffer(s),t.s=i.fromBuffer(u),t},f.fromDER=f.fromBuffer=function(e,t){var r=f.parseDER(e,t),i=new f;return i.r=r.r,i.s=r.s,i},f.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=new f.fromDER(r,!1);return i.nhashtype=t,i},f.fromString=function(e){var r=t.from(e,"hex");return f.fromDER(r)},f.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),n.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],f=e.slice(2).length;o.checkArgument(!t||s===f,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(t>1&&0===i[0]&&!(128&i[1]))return!1;var n=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&n[0])&&!(r>1&&0===n[0]&&!(128&n[1]))))},f.prototype.hasLowS=function(){return!this.s.lt(new i(1))&&!this.s.gt(new i("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},f.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~f.SIGHASH_ANYONECANPAY;return!(ef.SIGHASH_SINGLE)},f.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(214).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(0),o=r(24),a=r(269),s=(r(15),r(2)),f=r(7),u=r(11),c=r(136),h=r(137),d=r(9);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var i=parseInt((8*e+6)/7),n=0,o=t.alloc(i);o[n]=127&r|(n?128:0),!(r<=127);)r=parseInt(r/128)-1,n++;var a=t.alloc(n+1),f=0;do{a[f]=o[n],f++}while(n--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var i=t[1];return!(i.length>10||0==i.length)&&(!!this.checkNumber(i)&&{height:parseInt(r),index:parseInt(i)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var i=new n.Buffer(e,"utf8");r.write(i);var o=f.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,i){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(i,"object","betList"),!i instanceof Array)throw new u.InvalidArgumentType(i,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new n.Buffer(e,"utf8");o.write(a);var h=new n.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=i.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var i;e.exports=(i=r(6),r(38),void(i.lib.Cipher||function(e){var t=i,r=t.lib,n=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,h=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?I:w}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,i){var n=this._iv;if(n){var o=n;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=o.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:i})}},w=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,i){i||(i=o.random(8));var n=c.create({keySize:t+r}).compute(e,i),a=o.create(n.words.slice(t),4*r);return n.sigBytes=4*t,g.create({key:n,iv:a,salt:i})}},I=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var o=w.decrypt.call(this,e,t,n.key,i);return o}})}()))},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(11),a=r(52),s=r(37),f=r(5),u=r(15),c=r(30);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(i.isArray(e)&&i.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,u.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,n){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,n);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,n);if(i.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),i=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):i&&(t.network=i,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,i){var n={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||i&&i!==a.type)throw new TypeError("Address has mismatched type.");return n.hashBuffer=e.slice(1),n.network=a.network,n.type=a.type,n},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=f.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,i){r=r||e[0].network||s.defaultNetwork;var n=d.buildMultisigOut(e,t);return i?h.payingTo(d.buildWitnessMultisigOutFromScript(n),r):h.payingTo(n,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var i=a.decode(e);return h._transformBuffer(i,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){n.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return n.checkArgument(e,"script is required"),n.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(f.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){n.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var i=h._transformBuffer(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromString=function(e,t,r){var i=h._transformString(e,t,r);return new h(i.hashBuffer,i.network,i.type)},h.fromObject=function(e){return n.checkState(u.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var i;try{new h(e,t,r)}catch(e){i=e}return i},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(22)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=t;i.version=r(220).version,i.utils=r(221),i.rand=r(119),i.curve=r(61),i.curves=r(226),i.ec=r(234),i.eddsa=r(238)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var i=t;i.version=r(155).version,i.utils=r(156),i.rand=r(157),i.curve=r(57),i.curves=r(163),i.ec=r(172),i.eddsa=r(176)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(133),e.exports.Interpreter=r(263)},function(e,t,r){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(152).Buffer}catch(e){}function s(e,t,r){for(var i=0,n=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function f(e,t,r,i){for(var n=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=s(e,r,r+6),this.words[i]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);r+6!==t&&(n=s(e,t,r+6),this.words[i]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,a=o%i,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&f,d=Math.min(u,t.length-1),l=Math.max(0,u-e.length+1);l<=d;l++){var p=u-l|0;c+=(a=(n=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,u=new e(o),c=this.clone();if(f){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],I=8191&S,x=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],B=8191&M,T=M>>>13,R=0|a[7],P=8191&R,O=R>>>13,C=0|a[8],N=8191&C,z=C>>>13,U=0|a[9],j=8191&U,D=U>>>13,V=0|s[0],H=8191&V,L=V>>>13,K=0|s[1],q=8191&K,F=K>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(i=Math.imul(h,H))|0)+((8191&(n=(n=Math.imul(h,L))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,L))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(p,H),n=(n=Math.imul(p,L))+Math.imul(b,H)|0,o=Math.imul(b,L);var ge=(u+(i=i+Math.imul(h,q)|0)|0)+((8191&(n=(n=n+Math.imul(h,F)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,F)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(g,H),n=(n=Math.imul(g,L))+Math.imul(v,H)|0,o=Math.imul(v,L),i=i+Math.imul(p,q)|0,n=(n=n+Math.imul(p,F)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,F)|0;var ve=(u+(i=i+Math.imul(h,Y)|0)|0)+((8191&(n=(n=n+Math.imul(h,G)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(w,H),n=(n=Math.imul(w,L))+Math.imul(_,H)|0,o=Math.imul(_,L),i=i+Math.imul(g,q)|0,n=(n=n+Math.imul(g,F)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,F)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,G)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,G)|0;var ye=(u+(i=i+Math.imul(h,Z)|0)|0)+((8191&(n=(n=n+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(I,H),n=(n=Math.imul(I,L))+Math.imul(x,H)|0,o=Math.imul(x,L),i=i+Math.imul(w,q)|0,n=(n=n+Math.imul(w,F)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,F)|0,i=i+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,G)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(i=i+Math.imul(h,Q)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,H),n=(n=Math.imul(A,L))+Math.imul(E,H)|0,o=Math.imul(E,L),i=i+Math.imul(I,q)|0,n=(n=n+Math.imul(I,F)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,F)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,i=i+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(B,H),n=(n=Math.imul(B,L))+Math.imul(T,H)|0,o=Math.imul(T,L),i=i+Math.imul(A,q)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,F)|0,i=i+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ie)|0;var Se=(u+(i=i+Math.imul(h,oe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(P,H),n=(n=Math.imul(P,L))+Math.imul(O,H)|0,o=Math.imul(O,L),i=i+Math.imul(B,q)|0,n=(n=n+Math.imul(B,F)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,F)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,G)|0,i=i+Math.imul(I,Z)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(g,re)|0,n=(n=n+Math.imul(g,ie)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ie)|0,i=i+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ie=(u+(i=i+Math.imul(h,fe)|0)|0)+((8191&(n=(n=n+Math.imul(h,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(N,H),n=(n=Math.imul(N,L))+Math.imul(z,H)|0,o=Math.imul(z,L),i=i+Math.imul(P,q)|0,n=(n=n+Math.imul(P,F)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,F)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,G)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(w,re)|0,n=(n=n+Math.imul(w,ie)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ie)|0,i=i+Math.imul(g,oe)|0,n=(n=n+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,i=i+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ue)|0;var xe=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(j,H),n=(n=Math.imul(j,L))+Math.imul(D,H)|0,o=Math.imul(D,L),i=i+Math.imul(N,q)|0,n=(n=n+Math.imul(N,F)|0)+Math.imul(z,q)|0,o=o+Math.imul(z,F)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(B,Z)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,i=i+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,ue)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,ue)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(u+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,be)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,F))+Math.imul(D,q)|0,o=Math.imul(D,F),i=i+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(z,Y)|0,o=o+Math.imul(z,G)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,Q)|0,n=(n=n+Math.imul(B,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(A,re)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ie)|0,i=i+Math.imul(I,oe)|0,n=(n=n+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ue)|0,i=i+Math.imul(g,he)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(u+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(j,Y),n=(n=Math.imul(j,G))+Math.imul(D,Y)|0,o=Math.imul(D,G),i=i+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(z,Z)|0,o=o+Math.imul(z,J)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(B,re)|0,n=(n=n+Math.imul(B,ie)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(A,oe)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,i=i+Math.imul(I,fe)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(w,he)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(u+(i=i+Math.imul(g,pe)|0)|0)+((8191&(n=(n=n+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;u=((o=o+Math.imul(v,be)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(j,Z),n=(n=Math.imul(j,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),i=i+Math.imul(N,Q)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(z,Q)|0,o=o+Math.imul(z,ee)|0,i=i+Math.imul(P,re)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(B,oe)|0,n=(n=n+Math.imul(B,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(A,fe)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,ue)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Me=(u+(i=i+Math.imul(w,pe)|0)|0)+((8191&(n=(n=n+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(j,Q),n=(n=Math.imul(j,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),i=i+Math.imul(N,re)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(z,re)|0,o=o+Math.imul(z,ie)|0,i=i+Math.imul(P,oe)|0,n=(n=n+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(B,fe)|0,n=(n=n+Math.imul(B,ue)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(A,he)|0,n=(n=n+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Be=(u+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,be)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(j,re),n=(n=Math.imul(j,ie))+Math.imul(D,re)|0,o=Math.imul(D,ie),i=i+Math.imul(N,oe)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(z,oe)|0,o=o+Math.imul(z,ae)|0,i=i+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(B,he)|0,n=(n=n+Math.imul(B,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(u+(i=i+Math.imul(A,pe)|0)|0)+((8191&(n=(n=n+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(j,oe),n=(n=Math.imul(j,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),i=i+Math.imul(N,fe)|0,n=(n=n+Math.imul(N,ue)|0)+Math.imul(z,fe)|0,o=o+Math.imul(z,ue)|0,i=i+Math.imul(P,he)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(u+(i=i+Math.imul(B,pe)|0)|0)+((8191&(n=(n=n+Math.imul(B,be)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,be)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(j,fe),n=(n=Math.imul(j,ue))+Math.imul(D,fe)|0,o=Math.imul(D,ue),i=i+Math.imul(N,he)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(z,he)|0,o=o+Math.imul(z,de)|0;var Pe=(u+(i=i+Math.imul(P,pe)|0)|0)+((8191&(n=(n=n+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,be)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(j,he),n=(n=Math.imul(j,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(u+(i=i+Math.imul(N,pe)|0)|0)+((8191&(n=(n=n+Math.imul(N,be)|0)+Math.imul(z,pe)|0))<<13)|0;u=((o=o+Math.imul(z,be)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ce=(u+(i=Math.imul(j,pe))|0)+((8191&(n=(n=Math.imul(j,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=ge,f[2]=ve,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=Ie,f[8]=xe,f[9]=ke,f[10]=Ae,f[11]=Ee,f[12]=Me,f[13]=Be,f[14]=Te,f[15]=Re,f[16]=Pe,f[17]=Oe,f[18]=Ce,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,i=a,a=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,i=0;i>=1;return i},b.prototype.permute=function(e,t,r,i,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new o(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=n);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=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},o.prototype.isubn=function(e){if(i("number"==typeof e),i(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)-(f/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var s,f=i.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(h)),n.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),a.isub(f)):(r.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(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 g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=o}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);i(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=a;0!==l.cmp(s);){for(var b=l,m=0;0!==b.cmp(s);m++)b=b.redSqr();i(m=0;i--){for(var u=t.words[i],c=f-1;c>=0;c--){var h=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===i&&0===c)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}f=26}return n},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},o.mont=function(e){return new I(e)},n(I,S),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(56)(e))},function(e,t,r){"use strict";(function(t){ + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,B=16,P=1,O=2,R=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Oe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Bt=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Ot="object"==typeof self&&self&&self.Object===Object&&self,Rt=Pt||Ot||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Pt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Rt:Nr.defaults(Rt.Object(),t,Nr.pick(Rt,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Rt._,gt=rt("^"+ft.call(ct).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Pt=Ar(tt.getPrototypeOf,tt),Ot=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Rt.Date.now&&i.now,zr=t.setTimeout!==Rt.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Ot)return Ot(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,On(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Rs(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Ro:Oo:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Bn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Bu),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Pi(e,t,r)}var Zi=Cr||function(e){return Rt.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Po(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=B-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Oa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Po(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:Rn(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Rn(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){Rn(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Rt.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Bs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Ps(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Pt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Os=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Rs=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Or(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===R||e===-R?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Bt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Po(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Ro(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Po(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Ro(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Po(function(e,t){return Gt(t,function(t){t=ca(t),Rn(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Bu(e){return e}function Pu(e){return fi("function"==typeof e?e:jn(e,d))}var Ou=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ru=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Os(t))&&!(t=zi(t))&&Ir(e)?Xi(Or(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Pi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Pi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Pi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Pt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ba,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Pa,pn.unzipWith=Oa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Ra,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Re.test(e)?e.replace(Oe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Bu,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Rs,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Bu,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Bu)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Bu,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Rt._===this&&(Rt._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Pr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Pr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Pr(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Os(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Rr):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==P||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Bu)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Rt._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(28),r(122)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(87),i=r(13),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;he.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(92)("wks"),i=r(68),o=r(7).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},function(e,t,r){var n=r(44),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(183),o=r(47),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(86),o=r(22),a=r(59),s=r(107),u=r(8),f=r(13),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(48);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(2),o=r(3),a=r(13),s=r(25),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(546).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,B=M>>>13,P=0|a[7],O=8191&P,R=P>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(B,V)|0,o=Math.imul(B,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Be=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(O,he)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Pe=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(B,pe)|0))<<13)|0;f=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Oe=(f+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Re=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Be,u[15]=Pe,u[16]=Oe,u[17]=Re,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(122)(e))},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(51),a=r(601),s=(r(25),r(3)),u=r(12),f=r(21),c=r(265),h=r(266),d=r(14);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var n;e.exports=(n=r(9),r(81),void(n.lib.Cipher||function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,u=(s.Utf8,s.Base64),f=t.algo,c=f.EvpKDF,h=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:w}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,n){var i=this._iv;if(i){var o=i;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(104),s=r(80),u=r(8),f=r(25),c=r(59);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(40)}).call(this,r(1).Buffer)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=t;n.version=r(552).version,n.utils=r(553),n.rand=r(248),n.curve=r(127),n.curves=r(558),n.ec=r(566),n.eddsa=r(570)},function(e,t,r){var n=r(18),i=r(67);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(35),a=r(68)("src"),s=r(280),u=(""+s).split("toString");r(41).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(48),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(487).version,n.utils=r(488),n.rand=r(489),n.curve=r(123),n.curves=r(495),n.ec=r(504),n.eddsa=r(508)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(93),i=r(48);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(94),i=r(67),o=r(36),a=r(47),s=r(35),u=r(183),f=Object.getOwnPropertyDescriptor;t.f=r(17)?f:function(e,t){if(e=o(e),t=a(t,!0),u)try{return f(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(35),i=r(20),o=r(136)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(262),e.exports.Interpreter=r(595)},function(e,t){var r=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(29);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(484).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,B=M>>>13,P=0|a[7],O=8191&P,R=P>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(B,V)|0,o=Math.imul(B,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Be=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(O,he)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Pe=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(B,pe)|0))<<13)|0;f=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Oe=(f+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Re=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Be,u[15]=Pe,u[16]=Oe,u[17]=Re,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(122)(e))},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(41),o=r(10);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(42),i=r(93),o=r(20),a=r(16),s=r(152);e.exports=function(e,t){var r=1==e,u=2==e,f=3==e,c=4==e,h=6==e,d=5==e||h,l=t||s;return function(t,s,p){for(var b,g,m=o(t),v=i(m),y=n(s,p,3),w=a(v.length),_=0,S=r?l(t,w):u?l(t,0):void 0;w>_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function i(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(f=c[u],!v(e[f],t[f],r,i))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,i){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&m(n,r,"Missing expected exception"+i);var a="string"==typeof i,s=!e&&n&&!r;if((!e&&o.isError(n)&&a&&w(n,r)||s)&&m(n,r,"Got unwanted exception"+i),e&&n&&r&&!w(n,r)||!e&&n)throw n}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var n=i.stack,o=l(r),a=n.indexOf("\n"+o);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=g,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,i){v(t,r,!0)&&m(t,r,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(19))},function(e,t){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var f,u=[],c=!1,h=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):h=-1,u.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var i=r(21),n=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 f(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=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,r[i++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),r[i++]=a>>18|240,r[i++]=a>>12&63|128,r[i++]=a>>6&63|128,r[i++]=63&a|128):(r[i++]=a>>12|224,r[i++]=a>>6&63|128,r[i++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,o,a,s){var f=0,u=t;return f+=(u=u+i>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,i,n,o,a,s){return t+i+o+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,o,a,s,f,u){var c=0,h=t;return c+=(h=h+i>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,i,n,o,a,s,f,u){return t+i+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(29),o=r(9),a=r(14),s=r(8),f=r(24),u=r(17);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}n(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){f(null==e||i.isString(e)||s.isBuffer(e));var r=0,n=e;i.isEmpty(e)||(s.isBuffer(n)||(n=t.from(n)),r=n.length),this.writeVarintNum(r),r>0&&this.write(n)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,i=void 0;try{for(var n,o=e.entries()[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},c.prototype.writeBuf=function(e){var t=0;i.isEmpty(e)||(f(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, +function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(28))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(39),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(58),o=r(14),a=r(24),s=r(13),u=r(51),f=r(27);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, //!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r"},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(8),a=r(7),s=function e(r){if(!(this instanceof e))return new e(r);if(!i.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(i.isString(r))this.set({buf:t.from(r,"hex")});else{if(!i.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var n=r;this.set(n)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){n.checkArgument(!i.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var i=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(i,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return n.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=u.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof u)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(i.isString(e))this._script=u.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new f),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t,r){var i=r(4).Buffer,n=r(70).Transform,o=r(74).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,r){"use strict";(function(t){var i=r(0),n=r(12),o=r(22),a=r(32),s=r(31),f=r(9),u=r(7),c=r(5),h=r(10),d=r(2),l=r(1),p=function(e,h,d,l){var p,b=r(83),m=r(84),g=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=g.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(g.outputs.length=d+1,p=0;po)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>n)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){var i,n,o;e.exports=(i=r(6),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;i[n>>>2]|=(s|f)<<24-n%4*8,n++}return o.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var i;e.exports=(i=r(6),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],f=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],I=e[t+12],x=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],B=o[2],T=o[3];E=u(E,M,B,T,a,7,s[0]),T=u(T,E,M,B,f,12,s[1]),B=u(B,T,E,M,l,17,s[2]),M=u(M,B,T,E,p,22,s[3]),E=u(E,M,B,T,b,7,s[4]),T=u(T,E,M,B,m,12,s[5]),B=u(B,T,E,M,g,17,s[6]),M=u(M,B,T,E,v,22,s[7]),E=u(E,M,B,T,y,7,s[8]),T=u(T,E,M,B,w,12,s[9]),B=u(B,T,E,M,_,17,s[10]),M=u(M,B,T,E,S,22,s[11]),E=u(E,M,B,T,I,7,s[12]),T=u(T,E,M,B,x,12,s[13]),B=u(B,T,E,M,k,17,s[14]),E=c(E,M=u(M,B,T,E,A,22,s[15]),B,T,f,5,s[16]),T=c(T,E,M,B,g,9,s[17]),B=c(B,T,E,M,S,14,s[18]),M=c(M,B,T,E,a,20,s[19]),E=c(E,M,B,T,m,5,s[20]),T=c(T,E,M,B,_,9,s[21]),B=c(B,T,E,M,A,14,s[22]),M=c(M,B,T,E,b,20,s[23]),E=c(E,M,B,T,w,5,s[24]),T=c(T,E,M,B,k,9,s[25]),B=c(B,T,E,M,p,14,s[26]),M=c(M,B,T,E,y,20,s[27]),E=c(E,M,B,T,x,5,s[28]),T=c(T,E,M,B,l,9,s[29]),B=c(B,T,E,M,v,14,s[30]),E=h(E,M=c(M,B,T,E,I,20,s[31]),B,T,m,4,s[32]),T=h(T,E,M,B,y,11,s[33]),B=h(B,T,E,M,S,16,s[34]),M=h(M,B,T,E,k,23,s[35]),E=h(E,M,B,T,f,4,s[36]),T=h(T,E,M,B,b,11,s[37]),B=h(B,T,E,M,v,16,s[38]),M=h(M,B,T,E,_,23,s[39]),E=h(E,M,B,T,x,4,s[40]),T=h(T,E,M,B,a,11,s[41]),B=h(B,T,E,M,p,16,s[42]),M=h(M,B,T,E,g,23,s[43]),E=h(E,M,B,T,w,4,s[44]),T=h(T,E,M,B,I,11,s[45]),B=h(B,T,E,M,A,16,s[46]),E=d(E,M=h(M,B,T,E,l,23,s[47]),B,T,a,6,s[48]),T=d(T,E,M,B,v,10,s[49]),B=d(B,T,E,M,k,15,s[50]),M=d(M,B,T,E,m,21,s[51]),E=d(E,M,B,T,I,6,s[52]),T=d(T,E,M,B,p,10,s[53]),B=d(B,T,E,M,_,15,s[54]),M=d(M,B,T,E,f,21,s[55]),E=d(E,M,B,T,y,6,s[56]),T=d(T,E,M,B,A,10,s[57]),B=d(B,T,E,M,g,15,s[58]),M=d(M,B,T,E,x,21,s[59]),E=d(E,M,B,T,b,6,s[60]),T=d(T,E,M,B,S,10,s[61]),B=d(B,T,E,M,l,15,s[62]),M=d(M,B,T,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+B|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<>>32-o)+t}function c(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<>>32-o)+t}t.MD5=o._createHelper(f),t.HmacMD5=o._createHmacHelper(f)}(Math),i.MD5)},function(e,t,r){"use strict";var i=r(26),n=r(35);function o(){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=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(29),a=r(8),s=r(15),f=r(30),u=r(11),c=r(12);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(i.isObject(e))return this._fromObject(e);throw new u.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new f(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){n.checkArgument(f(e.publicKey),"publicKey"),n.checkArgument(!i.isUndefined(e.inputIndex),"inputIndex"),n.checkArgument(!i.isUndefined(e.outputIndex),"outputIndex"),n.checkState(i.isNumber(e.inputIndex),"inputIndex must be a number"),n.checkState(i.isNumber(e.outputIndex),"outputIndex must be a number"),n.checkArgument(e.signature,"signature"),n.checkArgument(e.prevTxId,"prevTxId"),n.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),n.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),n.checkArgument(e.sigtype,"sigtype"),n.checkState(i.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return n.checkArgument(e),new h(e)},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,i){function n(){}n.getRandomBuffer=function(e){return t.browser?n.getRandomBufferBrowser(e):n.getRandomBufferNode(e)},n.getRandomBufferNode=function(e){return r(40).randomBytes(e)},n.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),i.from(r)},n.getPseudoRandomBuffer=function(e){for(var t,r=i.alloc(e),n=0;n<=e;n++){0===n-4*Math.floor(n/4)?(t=4294967296*Math.random(),r[n]=255&t):r[n]=255&(t>>>=8)}return r},e.exports=n}).call(this,r(25),r(0).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var i=t;i.base=r(159),i.short=r(160),i.mont=r(161),i.edwards=r(162)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,i)});case 4:return t.nextTick(function(){e.call(null,r,i,n)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&m]^t[g++],a=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^d[255&l]^t[g++],s=u[b>>>24]^c[m>>>16&255]^h[l>>>8&255]^d[255&p]^t[g++],f=u[m>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[g++],l=o,p=a,b=s,m=f;return o=(i[l>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],a=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[g++],s=(i[b>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&p])^t[g++],f=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,i[u]=a;var c=e[a],h=e[c],d=e[h],l=257*e[u]^16843008*u;n[0][a]=l<<24|l>>>8,n[1][a]=l<<16|l>>>16,n[2][a]=l<<8|l>>>24,n[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][u]=l<<24|l>>>8,o[1][u]=l<<16|l>>>16,o[2][u]=l<<8|l>>>24,o[3][u]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(e){this._key=n(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,r=t+6,i=4*(r+1),n=[],o=0;o>>24,a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),n[o]=n[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var i=r(4).Buffer,n=r(69);e.exports=function(e,t,r,o){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),f=i.alloc(o||0),u=i.alloc(0);a>0||o>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,u.length),u.copy(s,d,0,h),a-=h}if(h0){var l=f.length-o,p=Math.min(o,u.length-h);u.copy(f,l,h,h+p),o-=p}}return u.fill(0),{key:s,iv:f}}},function(e,t,r){"use strict";var i=t;i.base=r(222),i.short=r(223),i.mont=r(224),i.edwards=r(225)},function(e,t,r){var i=r(241),n=r(253),o=r(254),a=r(78),s=r(108),f=r(4).Buffer;function u(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var r,u,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.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=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,i,h,"sha1"),l=a.createDecipheriv(o,d,u),p=[];return p.push(l.update(c)),p.push(l.final()),f.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(17),o=r(52),a=r(7),s=r(15),f=r(37),u=r(39),c=r(30),h=r(55),d=r(2);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var n={compressed:!0,network:r?f.get(r):f.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))n.bn=l._getRandomBN();else if(e instanceof a)n.bn=e;else if(e instanceof t||e instanceof Uint8Array)n=l._transformBuffer(e,r);else if(e.bn&&e.network)n=l._transformObject(e);else if(!r&&f.get(e))n.bn=l._getRandomBN(),n.network=f.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?n.bn=new a(t.from(e,"hex")):n=l._transformWIF(e,r)}return n},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(u.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=f.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==f.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=f.get(t)||f.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:f.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(i.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(i.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return n.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(132),o=r(0),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var i=r;this.fromBuffer(i)}else if("string"==typeof r){var n=r;this.fromString(n)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),i.every(i.map(e,function(e){return i.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return n.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(n.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(83),e.exports.Input=r(84),e.exports.Output=r(32),e.exports.UnspentOutput=r(134),e.exports.Signature=r(54),e.exports.Sighash=r(34),e.exports.SighashWitness=r(85),e.exports.RegisterAccountTx=r(135),e.exports.CommonTx=r(138),e.exports.ContractTx=r(139),e.exports.DelegateTx=r(140)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(7),o=r(8),a=r(31),s=r(9),f=r(5),u=(r(15),r(2)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&u.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){u.checkArgument(e,"data is required");var r=e.prevHash,n=e.merkleRoot;return i.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(n=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:n,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var i=c._fromBufferReader(r);return new c(i)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new n(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),i=r.length-8;return r=r.slice(0,i)+"."+r.slice(i),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return f.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=o.WordArray,(f=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),f.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i>>32-t}function u(e,t,r,i,n,o,a){return f(e+(t&r|~t&i)+n+o|0,a)+t|0}function c(e,t,r,i,n,o,a){return f(e+(t&i|r&~i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return f(e+(t^r^i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return f(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,e[0],3614090360,7),o=u(o,r,i,n,e[1],3905402710,12),n=u(n,o,r,i,e[2],606105819,17),i=u(i,n,o,r,e[3],3250441966,22),r=u(r,i,n,o,e[4],4118548399,7),o=u(o,r,i,n,e[5],1200080426,12),n=u(n,o,r,i,e[6],2821735955,17),i=u(i,n,o,r,e[7],4249261313,22),r=u(r,i,n,o,e[8],1770035416,7),o=u(o,r,i,n,e[9],2336552879,12),n=u(n,o,r,i,e[10],4294925233,17),i=u(i,n,o,r,e[11],2304563134,22),r=u(r,i,n,o,e[12],1804603682,7),o=u(o,r,i,n,e[13],4254626195,12),n=u(n,o,r,i,e[14],2792965006,17),r=c(r,i=u(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=c(o,r,i,n,e[6],3225465664,9),n=c(n,o,r,i,e[11],643717713,14),i=c(i,n,o,r,e[0],3921069994,20),r=c(r,i,n,o,e[5],3593408605,5),o=c(o,r,i,n,e[10],38016083,9),n=c(n,o,r,i,e[15],3634488961,14),i=c(i,n,o,r,e[4],3889429448,20),r=c(r,i,n,o,e[9],568446438,5),o=c(o,r,i,n,e[14],3275163606,9),n=c(n,o,r,i,e[3],4107603335,14),i=c(i,n,o,r,e[8],1163531501,20),r=c(r,i,n,o,e[13],2850285829,5),o=c(o,r,i,n,e[2],4243563512,9),n=c(n,o,r,i,e[7],1735328473,14),r=h(r,i=c(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=h(o,r,i,n,e[8],2272392833,11),n=h(n,o,r,i,e[11],1839030562,16),i=h(i,n,o,r,e[14],4259657740,23),r=h(r,i,n,o,e[1],2763975236,4),o=h(o,r,i,n,e[4],1272893353,11),n=h(n,o,r,i,e[7],4139469664,16),i=h(i,n,o,r,e[10],3200236656,23),r=h(r,i,n,o,e[13],681279174,4),o=h(o,r,i,n,e[0],3936430074,11),n=h(n,o,r,i,e[3],3572445317,16),i=h(i,n,o,r,e[6],76029189,23),r=h(r,i,n,o,e[9],3654602809,4),o=h(o,r,i,n,e[12],3873151461,11),n=h(n,o,r,i,e[15],530742520,16),r=d(r,i=h(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=d(o,r,i,n,e[7],1126891415,10),n=d(n,o,r,i,e[14],2878612391,15),i=d(i,n,o,r,e[5],4237533241,21),r=d(r,i,n,o,e[12],1700485571,6),o=d(o,r,i,n,e[3],2399980690,10),n=d(n,o,r,i,e[10],4293915773,15),i=d(i,n,o,r,e[1],2240044497,21),r=d(r,i,n,o,e[8],1873313359,6),o=d(o,r,i,n,e[15],4264355552,10),n=d(n,o,r,i,e[6],2734768916,15),i=d(i,n,o,r,e[13],1309151649,21),r=d(r,i,n,o,e[4],4149444226,6),o=d(o,r,i,n,e[11],3174756917,10),n=d(n,o,r,i,e[2],718787259,15),i=d(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=n;var i=r(71).EventEmitter;function n(){i.call(this)}r(3)(n,i),n.Readable=r(72),n.Writable=r(185),n.Duplex=r(186),n.Transform=r(187),n.PassThrough=r(188),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var i,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var f=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var u=f.length,c=p(f,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){(t=e.exports=r(98)).Stream=t,t.Readable=t,t.Writable=r(73),t.Duplex=r(36),t.Transform=r(102),t.PassThrough=r(184)},function(e,t,r){"use strict";(function(t,i,n){var o=r(58);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;e.entry=null;for(;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=g;var u=r(47);u.inherits=r(3);var c={deprecate:r(183)},h=r(99),d=r(4).Buffer,l=n.Uint8Array||function(){};var p,b=r(100);function m(){}function g(e,t){s=s||r(36),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,n);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),i?f(w,e,r,a,n):w(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(36),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function w(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)n[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;n.allBuffers=f,y(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(I,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var i,n=this._writableState,a=!1,s=!n.objectMode&&(i=e,d.isBuffer(i)||i instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=m),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var n=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),n=!1),n}(this,n,e,r))&&(n.pendingcb++,a=function(e,t,r,i,n,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(25),r(101).setImmediate,r(19))},function(e,t,r){"use strict";var i=r(4).Buffer,n=i.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 o(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&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}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 r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return n>0&&(e.lastNeed=n-1),n;if(--i=0)return n>0&&(e.lastNeed=n-2),n;if(--i=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.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}},function(e,t,r){"use strict";var i=r(0).Buffer,n=r(3),o=r(97),a=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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,i,n,o,a,s){return p(e+(t^r^i)+o+a|0,s)+n|0}function m(e,t,r,i,n,o,a,s){return p(e+(t&r|~t&i)+o+a|0,s)+n|0}function g(e,t,r,i,n,o,a,s){return p(e+((t|~r)^i)+o+a|0,s)+n|0}function v(e,t,r,i,n,o,a,s){return p(e+(t&i|r&~i)+o+a|0,s)+n|0}function y(e,t,r,i,n,o,a,s){return p(e+(t^(r|~i))+o+a|0,s)+n|0}n(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,I=0|this._d,x=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,i,n,o,l,e[s[k]],h[0],u[k]),E=y(w,_,S,I,x,e[f[k]],d[0],c[k])):k<32?(A=m(r,i,n,o,l,e[s[k]],h[1],u[k]),E=v(w,_,S,I,x,e[f[k]],d[1],c[k])):k<48?(A=g(r,i,n,o,l,e[s[k]],h[2],u[k]),E=g(w,_,S,I,x,e[f[k]],d[2],c[k])):k<64?(A=v(r,i,n,o,l,e[s[k]],h[3],u[k]),E=m(w,_,S,I,x,e[f[k]],d[3],c[k])):(A=y(r,i,n,o,l,e[s[k]],h[4],u[k]),E=b(w,_,S,I,x,e[f[k]],d[4],c[k])),r=l,l=o,o=p(n,10),n=i,i=A,w=x,x=I,I=p(S,10),S=_,_=E}var M=this._b+n+I|0;this._b=this._c+o+x|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+i+S|0,this._a=M},l.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.alloc?i.alloc(20):new i(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(189),t.sha1=r(190),t.sha224=r(191),t.sha256=r(103),t.sha384=r(192),t.sha512=r(104)},function(e,t,r){"use strict";t.utils=r(198),t.Cipher=r(199),t.DES=r(200),t.CBC=r(201),t.EDE=r(202)},function(e,t,r){var i=r(203),n=r(211),o=r(114);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var i={ECB:r(204),CBC:r(205),CFB:r(206),CFB8:r(207),CFB1:r(208),OFB:r(209),CTR:r(112),GCM:r(112)},n=r(114);for(var o in n)n[o].module=i[n[o].mode];e.exports=n},function(e,t,r){(function(t){var i=r(13),n=r(41);function o(e,r){var n=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(i.mont(r.modulus),new i(e).mul(n.blinder).umod(r.modulus)),f=s.toRed(i.mont(r.prime1)),u=s.toRed(i.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=f.redPow(r.exponent1),p=u.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(n.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new i(n(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(n(t));return r}e.exports=o,o.getr=a}).call(this,r(0).Buffer)},function(e,t,r){var i=t;i.utils=r(27),i.common=r(49),i.sha=r(227),i.ripemd=r(231),i.hmac=r(232),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function i(e){return(i="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})(e)}var n=r(1),o=r(2),a=r(8),s=r(15);function f(e){if(!(this instanceof f))return new f(e);var t;if(n.isNumber(e))t=e;else{if(!n.isString(e))throw new TypeError('Unrecognized num type: "'+i(e)+'" for Opcode');t=f.map[e]}return s.defineImmutable(this,{num:t}),this}for(var u in f.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new f(Number("0x"+e.toString("hex")))},f.fromNumber=function(e){return o.checkArgument(n.isNumber(e)),new f(e)},f.fromString=function(e){o.checkArgument(n.isString(e));var t=f.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new f(t)},f.prototype.toHex=function(){return this.num.toString(16)},f.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},f.prototype.toNumber=function(){return this.num},f.prototype.toString=function(){var e=f.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},f.smallInt=function(e){return o.checkArgument(n.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?f("OP_0"):new f(f.map.OP_1+e-1)},f.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},f.reverseMap=[],f.map)f.reverseMap[f.map[u]]=u;n.extend(f,f.map),f.isSmallIntOp=function(e){return e instanceof f&&(e=e.toNumber()),e===f.map.OP_0||e>=f.map.OP_1&&e<=f.map.OP_16},f.prototype.inspect=function(){return""},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(0),a=t.compare||r(264),s=r(11),f=r(8),u=r(15),c=r(31),h=r(9),d=r(5),l=r(12),p=r(34),b=r(85),m=r(17),g=r(134),v=r(84),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,I=r(32),x=r(22),k=r(63),A=r(7);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(u.isHexa(e))this.fromString(e);else if(f.isBuffer(e))this.fromBuffer(e);else{if(!i.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},B={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",B),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var T={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",T),T.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",T),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var n=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new I({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:i.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){i.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return i.each(this.inputs,function(t){e+=t._estimateSize()}),i.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=i.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(i.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==i.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!i.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=i.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&i.isNumber(e)?e:i.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var n=this.inputs[r];this.inputs=i.without(this.inputs,n),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){n.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return i.isArray(e)?(i.each(e,function(e){r.sign(e,t)}),this):(i.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,n=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return i.each(this.inputs,function(a,s){i.each(a.getSignatures(r,e,s,t,o),function(e){n.push(e)})}),n},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return i.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),i.every(i.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(i.isUndefined(a)&&(a=0),1===a){var f,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(n.checkState(u.isNaturalNumber(s)),f=(new h).writeUInt64LEBN(new A(s)).toBuffer()):f=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),f)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var n={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(53),e.exports.PublicKey=r(265),e.exports.PublicKeyHash=r(266),e.exports.MultiSig=r(267),e.exports.MultiSigScriptHash=r(268)},function(e,t,r){"use strict";(function(t){var i=r(12),n=(r(22),r(32),r(31)),o=r(9),a=(r(7),r(5)),s=r(10),f=r(2),u=r(1),c=function(e,r,s,f,u){var c,h,d;if(!(r&i.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var i=r(24),n=r(0),o=r(1),a=r(2),s=r(7),f=r(64),u=r(52),c=r(5),h=r(37),d=r(39),l=r(63),p=r(55),b=r(11),m=b.HDPrivateKey,g=r(8),v=r(15);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);var i=c.sha512hmac(e,new n.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:i.slice(0,32),chainCode:i.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(142);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],i=n.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==u.checksum(i).toString())throw new b.InvalidB58Checksum(i)}else e.checksum=u.checksum(i);var o,a=h.get(g.integerFromBuffer(e.version));o=u.encode(n.Buffer.concat(r)),e.xprivkey=t.from(o);var f=new l(s.fromBuffer(e.privateKey),a),d=f.toPublicKey(),p=y.ParentFingerPrintSize,m=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:f,publicKey:d,fingerPrint:m}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];i(g.isBuffer(n),t+" argument is not a buffer"),i(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,i(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(0).Buffer)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),o=(n=i).lib,a=o.WordArray,s=o.Hasher,f=n.algo,u=[],c=f.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|e[t+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var h=(i<<5|i>>>27)+s+u[f];h+=f<20?1518500249+(n&o|~n&a):f<40?1859775393+(n^o^a):f<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c),i.SHA1)},function(e,t,r){var i,n,o,a,s,f,u;e.exports=(i=r(6),o=(n=i).lib,a=o.Base,s=n.enc,f=s.Utf8,u=n.algo,void(u.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,s=o.words,u=0;u 128 and ENT % 32 == 0");u=u||e._mnemonic(s,n),Object.defineProperty(this,"wordlist",{configurable:!1,value:n}),Object.defineProperty(this,"phrase",{configurable:!1,value:u})};d.Words=r(282),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var i=e.split(" "),n="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",i=0;i>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(26).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(94),a=r(35),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,i){var n=r(58);e.exports=y;var o,a=r(90);y.ReadableState=v;r(71).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(99),u=r(4).Buffer,c=t.Uint8Array||function(){};var h=r(47);h.inherits=r(3);var d=r(179),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(180),m=r(100);h.inherits(y,f);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var i=t instanceof(o=o||r(36));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(74).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(36),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,i,n){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(n||(o=function(e,t){var r;i=t,u.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;eo.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t):function(e,t){var r=u.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,i=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(f):r.once("end",f),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){l("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",g),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(182),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(19))},function(e,t,r){"use strict";e.exports=a;var i=r(36),n=r(47);function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(f,n),f.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},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+l(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+d(f)+u(f,p,b)+a[v]+r[v]|0,w=h(i)+c(i,n,o)|0;m=b,b=p,p=f,f=s+y|0,s=o,o=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(42),o=r(4).Buffer,a=[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 f(){this.init(),this._w=s,n.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}i(f,n),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,I=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var B=t[M-30],T=t[M-30+1],R=l(B,T),P=p(T,B),O=b(B=t[M-4],T=t[M-4+1]),C=m(T,B),N=t[M-14],z=t[M-14+1],U=t[M-32],j=t[M-32+1],D=P+z|0,V=R+N+g(D,P)|0;V=(V=V+O+g(D=D+C|0,C)|0)+U+g(D=D+j|0,j)|0,t[M]=V,t[M+1]=D}for(var H=0;H<160;H+=2){V=t[H],D=t[H+1];var L=c(r,i,n),K=c(w,_,S),q=h(r,w),F=h(w,r),W=d(s,x),Y=d(x,s),G=a[H],X=a[H+1],Z=u(s,f,v),J=u(x,k,A),$=E+Y|0,Q=y+W+g($,E)|0;Q=(Q=(Q=Q+Z+g($=$+J|0,J)|0)+G+g($=$+X|0,X)|0)+V+g($=$+D|0,D)|0;var ee=F+K|0,te=q+L+g(ee,F)|0;y=v,E=A,v=f,A=k,f=s,k=x,s=o+Q+g(x=I+$|0,I)|0,o=n,I=S,n=i,S=_,i=r,_=w,r=Q+te+g(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+f+g(this._fl,k)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,E)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(193),o=r(33),a=r(4).Buffer,s=r(106),f=r(75),u=r(76),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(25))},function(e,t,r){var i=r(106),n=r(75),o=r(76),a=r(109),s=r(110),f=r(4).Buffer,u=f.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?i:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var i=r(13),n=r(119);function o(e){this.rand=e||new n.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o);t>0;t--){var h=this._randrange(new i(2),s);r&&r(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new i(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(n).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var l=1;l>8,a=255&n;o?r.push(o,a):r.push(a)}return r},i.zero2=n,i.toHex=o,i.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var i=r(27).rotr32;function n(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?a(t,r,i):2===e?o(t,r,i):void 0},t.ch32=n,t.maj32=o,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(121),a=r(21),s=i.sum32,f=i.sum32_4,u=i.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,m=n.BlockHash,g=[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];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>6],n=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var o=0;o=31)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var f=1,u=i.length;u>=256;u>>=8)f++;(o=new n(2+f))[0]=a,o[1]=128|f;u=1+f;for(var c=i.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(i=0;i=128;a>>=7)o++}var s=new n(o),f=s.length-1;for(i=e.length-1;i>=0;i--){a=e[i];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var o=new n(i);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(o=new Array(i)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i0&&a0&&a0&&(n=i?n+" "+e.buf.toString("hex"):n+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==f.reverseMap[r])i?0===r?n+=" 0":79===r?n+=" -1":n=n+" "+f(r).toString():n=n+" "+f(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),n=i?n+" "+o:n+" 0x"+o}return n},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==f.OP_DUP||this.chunks[1].opcodenum!==f.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==f.OP_EQUALVERIFY||this.chunks[4].opcodenum!==f.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===f.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return u.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===f.OP_HASH160&&20===e[1]&&e[e.length-1]===f.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===f.OP_0||t[0]>=f.OP_1&&t[0]<=f.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&f.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&m.isBuffer(e.buf)})&&f.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===f.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&m.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===f.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=f.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&i=1&&r[0]<=16?i===f.OP_1+(r[0]-1):1===r.length&&129===r[0]?i===f.OP_1NEGATE:r.length<=75?i===r.length:r.length<=255?i===f.OP_PUSHDATA1:!(r.length<=65535)||i===f.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===f.OP_0)return 0;if(e>=f.OP_1&&e<=f.OP_16)return e-(f.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,i=f.OP_INVALIDOPCODE;return l.each(t.chunks,function(n){var o=n.opcodenum;o==f.OP_CHECKSIG||o==f.OP_CHECKSIGVERIFY?r++:o!=f.OP_CHECKMULTISIG&&o!=f.OP_CHECKMULTISIGVERIFY||(e&&i>=f.OP_1&&i<=f.OP_16?r+=t._decodeOP_N(i):r+=20),i=o}),r},e.exports=v}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=r(15),a=r(22),s=r(17),f=r(86);function u(e){if(!(this instanceof u))return new u(e);n.checkArgument(i.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=i.isUndefined(e.vout)?e.outputIndex:e.vout;if(!i.isNumber(c))throw new Error("Invalid outputIndex, received "+c);n.checkArgument(!i.isUndefined(e.scriptPubKey)||!i.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);n.checkArgument(!i.isUndefined(e.amount)||!i.isUndefined(e.satoshis),"Must provide an amount for the output");var d=i.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();n.checkArgument(i.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}u.prototype.inspect=function(){return""},u.prototype.toString=function(){return this.txId+":"+this.outputIndex},u.fromObject=function(e){return new u(e)},u.prototype.toObject=u.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},e.exports=u},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var i=new t(this.pubkey,"hex"),n=i.length;e.writeVarintNum(n),e.write(i);var s=new t(this.minerPubkey,"hex");n=s.length,e.writeVarintNum(n),n>0&&e.write(s);var u=o.writeVarInt(8,this.fees);e.write(u);var c=e.toBuffer();return a.sha256sha256(c)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);r.write(i);var n=new t(this.pubkey,"hex"),a=n.length;r.writeVarintNum(a),r.write(n);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var u=o.writeVarInt(8,this.fees);r.write(u);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var i=r(1),n=r(2),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return n.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=r(17),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var m=o.writeVarInt(8,this.fees);e.write(m);var g=o.writeVarInt(8,this.value);e.write(g),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=u.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var m=o.writeVarInt(8,this.fees);if(r.write(m),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var g=o.writeVarInt(8,this.value);r.write(g),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=r(11),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return u._fromObject(e)},u._checkDelegateData=function(e){if(!i.isArray(e)||i.isEmpty(e))throw new f.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(7&i.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,i),s=a;return 2*r+1=this.hashes.length)return null;var u=this.hashes[i.hashesUsed++];return 0===e&&o&&i.txs.push(u),t.from(u,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof u&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var n=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:n}),-1!==n.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=n.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i=0&&e=w.Hardened||t)throw new m.InvalidIndexCantDeriveHardened;if(e<0)throw new m.InvalidPath(e);var r,i=y.integerAsBuffer(e),n=y.concat([this.publicKey.toBuffer(),i]),o=u.sha512hmac(n,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),f=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:f,publicKey:r})},w.prototype._deriveFromString=function(e){if(n.includes(e,"'"))throw new m.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new m.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return n.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!n.isString(e)&&!y.isBuffer(e))return new m.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=f.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new m.InvalidLength(e);if(!n.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var i=y.integerFromBuffer(e.slice(0,4));return i===h.livenet.xprivkey||i===h.testnet.xprivkey?new m.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var i=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(i)!==r.xpubkey?new b.InvalidNetwork(i):null},w.prototype._buildFromPrivate=function(e){var t=n.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:n.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:n.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:n.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:n.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:n.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:n.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=f.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],i=y.concat(r),n=f.checksum(i);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==n.toString("hex"))throw new b.InvalidB58Checksum(i,n)}else e.checksum=n;var o,a=h.get(y.integerFromBuffer(e.version));o=f.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=u.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var n=e[t];g(y.isBuffer(n),t+" argument is not a buffer, it's "+i(n)),g(n.length===r,t+" has not the expected size: found "+n.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(n.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(n.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,g(w.PublicKeyEnd===w.DataSize),g(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(0).Buffer)},function(e,t,r){(function(t,i){const n=r(40),o=2147483647,a=5e3;function s(e,t,r,i,n,o,a){let s;for(h(e,t+64*(2*i-1),n,0,64),s=0;s<2*i;s++)c(e,64*s,n,0,64),u(n,o,a),h(n,0,e,r+64*s,64);for(s=0;s>>32-t}function u(e,t,r){let i;for(i=0;i<16;i++)t[i]=(255&e[4*i+0])<<0,t[i]|=(255&e[4*i+1])<<8,t[i]|=(255&e[4*i+2])<<16,t[i]|=(255&e[4*i+3])<<24;for(h(t,0,r,0,16),i=8;i>0;i-=2)r[4]^=f(r[0]+r[12],7),r[8]^=f(r[4]+r[0],9),r[12]^=f(r[8]+r[4],13),r[0]^=f(r[12]+r[8],18),r[9]^=f(r[5]+r[1],7),r[13]^=f(r[9]+r[5],9),r[1]^=f(r[13]+r[9],13),r[5]^=f(r[1]+r[13],18),r[14]^=f(r[10]+r[6],7),r[2]^=f(r[14]+r[10],9),r[6]^=f(r[2]+r[14],13),r[10]^=f(r[6]+r[2],18),r[3]^=f(r[15]+r[11],7),r[7]^=f(r[3]+r[15],9),r[11]^=f(r[7]+r[3],13),r[15]^=f(r[11]+r[7],18),r[1]^=f(r[0]+r[3],7),r[2]^=f(r[1]+r[0],9),r[3]^=f(r[2]+r[1],13),r[0]^=f(r[3]+r[2],18),r[6]^=f(r[5]+r[4],7),r[7]^=f(r[6]+r[5],9),r[4]^=f(r[7]+r[6],13),r[5]^=f(r[4]+r[7],18),r[11]^=f(r[10]+r[9],7),r[8]^=f(r[11]+r[10],9),r[9]^=f(r[8]+r[11],13),r[10]^=f(r[9]+r[8],18),r[12]^=f(r[15]+r[14],7),r[13]^=f(r[12]+r[15],9),r[14]^=f(r[13]+r[12],13),r[15]^=f(r[14]+r[13],18);for(i=0;i<16;++i)t[i]=r[i]+t[i];for(i=0;i<16;i++){let r=4*i;e[r+0]=t[i]>>0&255,e[r+1]=t[i]>>8&255,e[r+2]=t[i]>>16&255,e[r+3]=t[i]>>24&255}}function c(e,t,r,i,n){for(let o=0;o 0 and a power of 2");if(i>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*i),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),m=n.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(u){let e=s*i*2,t=0;c=function(){++t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:m,tickCallback:c}},smix:async function(e,t,r,n,o,f,u,h,d,l,p){p=p||a;let b,m=128*r;for(e.copy(f,0,t,t+m),b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l();for(b=0;bi(e)),s(f,0,m,r,u,h,d),l&&l()}f.copy(e,t,0,0+m)},smixSync:function(e,t,r,i,n,o,a,f,u,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,m=u[l-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[l]=b+u[l-7]+g+u[l-16]}var v=i&n^i&o^n&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+f[l]+u[l];d=h,h=c,c=s,s=a+w|0,a=o,o=n,n=i,i=w+(y+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),i.SHA256)},function(e,t,r){var i;e.exports=(i=r(6),r(67),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,o=r.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=i.high,p=i.low,b=n.high,m=n.low,g=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,I=c.high,x=c.low,k=h.high,A=h.low,E=d.high,M=d.low,B=l,T=p,R=b,P=m,O=g,C=v,N=y,z=w,U=_,j=S,D=I,V=x,H=k,L=A,K=E,q=M,F=0;F<80;F++){var W=u[F];if(F<16)var Y=W.high=0|e[t+2*F],G=W.low=0|e[t+2*F+1];else{var X=u[F-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[F-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[F-7],ae=oe.high,se=oe.low,fe=u[F-16],ue=fe.high,ce=fe.low;Y=(Y=(Y=$+ae+((G=Q+se)>>>0>>0?1:0))+ie+((G+=ne)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=Y,W.low=G}var he,de=U&D^~U&H,le=j&V^~j&L,pe=B&R^B&O^R&O,be=T&P^T&C^P&C,me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ye=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),we=f[F],_e=we.high,Se=we.low,Ie=K+ve+((he=q+ye)>>>0>>0?1:0),xe=ge+be;K=H,q=L,H=D,L=V,D=U,V=j,U=N+(Ie=(Ie=(Ie=Ie+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+Y+((he+=G)>>>0>>0?1:0))+((j=z+he|0)>>>0>>0?1:0)|0,N=O,z=C,O=R,C=P,R=B,P=T,B=Ie+(me+pe+(xe>>>0>>0?1:0))+((T=he+xe|0)>>>0>>0?1:0)|0}p=i.low=p+T,i.high=l+B+(p>>>0>>0?1:0),m=n.low=m+P,n.high=b+R+(m>>>0

>>0?1:0),v=o.low=v+C,o.high=g+O+(v>>>0>>0?1:0),w=a.low=w+z,a.high=y+N+(w>>>0>>0?1:0),S=s.low=S+j,s.high=_+U+(S>>>0>>0?1:0),x=c.low=x+V,c.high=I+D+(x>>>0>>0?1:0),A=h.low=A+L,h.high=k+H+(A>>>0>>0?1:0),M=d.low=M+q,d.high=E+K+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},function(e,t,r){var i=r(148),n=r(92);i=Object.assign(i,n),e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(91),a=r(17),s=r(55),f=r(5),u=r(0),c=r(289),h=r(292),d=r(144),l=r(87),p=r(8),b={2:{txName:"REGISTER_ACCOUNT_TX",txAction:r(135)},3:{txName:"COMMON_TX",txAction:r(138)},4:{txName:"CONTRACT_TX",txAction:r(139)},5:{txName:"REG_APP_TX",txAction:r(316)},6:{txName:"DELEGATE_TX",txAction:r(140)},8:{txName:"FCOIN_STAKE_TX",txAction:r(317)},9:{txName:"ASSET_ISUUE",txAction:r(318)},10:{txName:"ASSET_UPDATE",txAction:r(319)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(320)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(321)},21:{txName:"CDP_STAKE_TX",txAction:r(322)},22:{txName:"CDP_REDEEMP_TX",txAction:r(323)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(324)},84:{txName:"DEX_BUY_LIMIT_ORDER_TX",txAction:r(325)},85:{txName:"DEX_SELL_LIMIT_ORDER_TX",txAction:r(326)},86:{txName:"DEX_BUY_MARKET_ORDER_TX",txAction:r(327)},87:{txName:"DEX_SELL_MARKET_ORDER_TX",txAction:r(328)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(329)}},m=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var g in m._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return m._fromObject(e)},m._fromObject=function(e){return n.checkArgument(e,"data is required"),{network:e.network}},m.prototype.createAllCoinMnemonicCode=function(){return new o(o.Words.ENGLISH).toString()},m.prototype.checkMnemonicCode=function(e){return o.isValid(e)},m.prototype.validateAddress=function(e){return a.isValid(e,this.network)},m.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress()},m.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),i=new u.Buffer(t,"utf8"),n=f.sha256(i),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toAddress().toString(),m=new Date,g=parseInt(m.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),I=w.toString("hex"),x=d.enc.Hex.parse(I),k=p.toString("hex"),A=h.encrypt(S,x,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,x,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:g,hashPwd:n,salt:r},symbol:"WICC",address:b}},m.prototype.getPriKeyFromSeed=function(e,r){var i=new u.Buffer(r,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(g,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild("m/44'/99999'/0'/0/0").privateKey.toWIF()},m.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new u.Buffer(t,"utf8"),i=f.sha256(r);if(!p.equal(i,e.hashPwd))return null;var n=e.salt,o=c(t,n,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),m=s.toString("hex"),g=d.enc.Hex.parse(m),v=e.encMneData.encryptedBytes;return h.decrypt(b,g,v)},m.prototype.changePassword=function(e,t,r){var i=new u.Buffer(t,"utf8"),n=f.sha256(i);if(!p.equal(n,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g),y=e.encSeedData.encryptedBytes,w=h.decrypt(m,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(m,v,_),I=new u.Buffer(r,"utf8"),x=f.sha256(I);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),m=d.enc.Hex.parse(b),g=l.toString("hex"),v=d.enc.Hex.parse(g);var k=h.encrypt(m,v,w);return{encMneData:{encryptedBytes:h.encrypt(m,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:x,salt:o}},m.prototype.createSignTransaction=function(e,t,r){return new(0,b[t].txAction)(r).SerializeTx(e)},m.PROTOCAL_VERSION=1,b)m[b[g].txName]=Number(g);e.exports=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){for(var t,r=u(e),i=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,a)),f=0,c=a>0?i-4:i,h=0;h>16&255,s[f++]=t>>8&255,s[f++]=255&t;2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,s[f++]=255&t);1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,s=r-n;as?s:a+16383));1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var n,o,a=[],s=t;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,f=(1<>1,c=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,i),o-=u}return(l?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var a,s,f,u=8*o-n-1,c=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:o-1,p=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*f-1)*Math.pow(2,n),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+l]=255&s,l+=p,s/=256,n-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,u-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),f=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(r)?i.showHidden=r:r&&t._extend(i,r),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=f),c(i,e,i.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,i){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,e);return g(n)||(n=c(e,n,i)),n}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(I(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var u,w="",x=!1,k=["{","}"];(l(r)&&(x=!0,k=["[","]"]),I(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||x&&0!=r.length?i<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,i,n){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function I(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var i=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(154);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(57),n=r(23),o=r(29),a=i.base,s=r(20).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(57),n=r(20),o=r(23),a=r(29),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(68),a=r(20),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(171)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(166),t.sha224=r(167),t.sha256=r(95),t.sha384=r(168),t.sha512=r(96)},function(e,t,r){"use strict";var i=r(26),n=r(45),o=r(94),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(68),n=r(93),o=r(35);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(23),n=r(20).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(68),n=r(20),o=n.utils,a=o.assert,s=o.parseBytes,f=r(177),u=r(178);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,n=s,t.copy(r,n),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,o,a,s,f=1,u={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=i)<<5|t>>>27)+c(l,n,o,s)+f+r[d]+a[l];f=s,s=o,o=u(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(42),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=u(i)+h(p,n,o,s)+f+r[l]+a[p]|0;f=s,s=o,o=c(n),n=i,i=b}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=o.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=f},function(e,t,r){var i=r(3),n=r(103),o=r(42),a=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}i(f,n),f.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},f.prototype._hash=function(){var e=a.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=f},function(e,t,r){var i=r(3),n=r(104),o=r(42),a=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}i(f,n),f.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},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+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=f},function(e,t,r){"use strict";var i=r(3),n=r(4).Buffer,o=r(33),a=n.alloc(128),s=64;function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[i+0]=n>>>0,r[i+1]=o>>>0},t.rip=function(e,t,r,i){for(var n=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+a&1,n<<=1,n|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.pc1=function(e,t,r,i){for(var n=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+a&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[i+0]=n>>>0,r[i+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var i=[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,n){for(var o=0,a=0,s=i.length>>>1,f=0;f>>i[f]&1;for(f=s;f>>i[f]&1;r[n+0]=o>>>0,r[n+1]=a>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[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 r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,o=d}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];a.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(u,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,i,n)}},function(e,t,r){"use strict";var i=r(21),n=r(3),o={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?i:n);return s}function o(e,t){var r=e.length,n=-1,o=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=i.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var i=r(115),n=r(4).Buffer,o=r(79),a=r(116),s=r(33),f=r(59),u=r(60);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var i=r(117),n=r(216),o=r(217);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,s,f){return e.isBuffer(n)||void 0===a[n]?t(r,"binary",n,s):(n=n||"binary",f=f||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,f)),"number"==typeof r?new o(i(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,n)),new o(r,s,!0)))}}).call(this,r(0).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var i=r(13),n=new(r(118)),o=new i(24),a=new i(11),s=new i(10),f=new i(3),u=new i(7),c=r(117),h=r(41);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new i(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new i(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function m(e,r){var i=new t(e.toArray());return r?i.toString(r):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[i]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(f)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),o=this.getPrime();if(n.length0&&r.ishrn(i),r}function h(e,r,n){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(n.isOdd()){var a=n.andln(i-1);o=a>(i>>1)-1?(i>>1)-a:a,n.isubn(o)}else o=0;r.push(o);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,f=1;f0||t.cmpn(-n)>0;){var o,a,s,f=e.andln(3)+i&3,u=t.andln(3)+n&3;3===f&&(f=-1),3===u&&(u=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[1].push(a),2*i===o+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.getNAF,a=n.getJSF,s=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);var r=this.n&&this.p.div(this.n);!r||r.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=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=o(t,1),n=(1<=f;t--)u=(u<<1)+i[t];a.push(u)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(f=0;f=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[l],r[p]);c=Math.max(g[0].length,c),u[l]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;h--){for(var I=0;h>=0;){var x=!0;for(v=0;v=0&&I++,_=_.dblp(I),h<0)break;for(v=0;v0?k=f[v][A-1>>1]:A<0&&(k=f[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=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 r=[this],i=this,n=0;n=0&&(a=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:n},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=n.mul(r.a),s=o.mul(i.a),f=n.mul(r.b),u=o.mul(i.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.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,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=i.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(i),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(n.redMul(u)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var i=r(61),n=r(13),o=r(3),a=i.base,s=r(18).utils;function f(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(u,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=n.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)0===n[o]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var i=r(61),n=r(18),o=r(13),a=r(3),s=i.base,f=n.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=i?new o(i,16):this.curve.one,this.t=n&&new o(n,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(r),s=i.redSub(t),f=n.redMul(a),u=o.redMul(s),c=n.redMul(s),h=a.redMul(o);return this.curve.point(f,u,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=i.redSub(n).redISub(o).redMul(f),t=a.redMul(u.redSub(o)),r=a.redMul(f)}}else{var u=n.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(n.redISub(o)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=n.redSub(i),s=n.redAdd(i),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=n.redSub(s),u=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var i,n=t,o=r(81),a=r(18),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,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:o.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:o.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:o.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:o.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:o.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:o.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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(233)}catch(e){i=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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,r){"use strict";t.sha1=r(228),t.sha224=r(229),t.sha256=r(122),t.sha384=r(230),t.sha512=r(123)},function(e,t,r){"use strict";var i=r(27),n=r(49),o=r(121),a=i.rotl32,s=i.sum32,f=i.sum32_5,u=o.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new n({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new f({r:m,s:g,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,n);var o=this.n,s=new i(e),u=t.r,c=t.s,h=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),h):this.curve.pointFromX(u,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new f(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch(e){continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var i=r(81),n=r(120),o=r(21);function a(e){if(!(this instanceof a))return new a(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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=a,a.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var i=r(13),n=r(18).utils,o=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=f(e,r);if(e.length!==u+r.place)return!1;var c=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new i(a),this.s=new i(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var o=i.concat(r),a=[48];return c(a,o.length),a=a.concat(o),n.encode(a,e)}},function(e,t,r){"use strict";var i=r(81),n=r(18),o=n.utils,a=o.assert,s=o.parseBytes,f=r(239),u=r(240);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[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=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=i.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,f,u,c){var h=o(f);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=a[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new n(i),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,f=r.data.g,u=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=i.mont(n),p=h.invm(a);return 0===f.toRed(l).redPow(new i(t).mul(p).mod(a)).fromRed().mul(u.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(d)}(e,r,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-i-d-2),p=r-c-1,b=n(c),m=s(h.concat([u,l,h.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,c));return new f(h.concat([h.alloc(1),g,m],r))}(p,t);else if(1===d)l=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");i=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,o=n(2*e),a=0;for(;i=0)throw new Error("data too long for modulus")}return r?c(l,p):u(l,p)}},function(e,t,r){var i=r(62),n=r(129),o=r(130),a=r(13),s=r(80),f=r(46),u=r(131),c=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=i(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),h=o(s,n(u,a)),d=o(u,n(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){o++;break}var a=t.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(n)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,i){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(41),s=o.Buffer,f=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>f)throw new RangeError("buffer too small")}function l(e,t,r,n){if(i.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),n?void i.nextTick(function(){n(null,e)}):e}if(!n)return a(r).copy(e,t),e;a(r,function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)})}u&&u.getRandomValues||!i.browser?(t.randomFill=function(t,r,i,n){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(i,r,t.length),l(t,r,i,n)},t.randomFillSync=function(t,r,i){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===i&&(i=t.length-r);return d(i,r,t.length),l(t,r,i)}):(t.randomFill=n,t.randomFillSync=n)}).call(this,r(19),r(25))},function(e,t,r){"use strict";var i=r(262).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(u);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=u-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=u-o;p!==u&&0===c[p];)p++;var b=i.allocUnsafe(n+(u-p));b.fill(0,0,n);for(var m=n;p!==u;)b[m++]=c[p++];return b}}}return{encode:function(t){if(!i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,f=t.length;o!==f&&0===t[o];)o++,r++;for(var c=(f-o)*u+1>>>0,h=new Uint8Array(c);o!==f;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=l,o++}for(var b=c-n;b!==c&&0===h[b];)b++;for(var m=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,m,g,v,y,w,_,S,I,x,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(i.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var B=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(B.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(B))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(I=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),I=c.castToBool(e),M===o.OP_NOTIF&&(I=!I)}this.vfExec.push(I);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(I=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var T=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(T);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(I=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=R,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=m.add(g);break;case o.OP_SUB:b=m.sub(g);break;case o.OP_BOOLAND:b=new a((0!==m.cmp(a.Zero)&&0!==g.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==m.cmp(a.Zero)||0!==g.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===m.cmp(g))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==m.cmp(g))+0);break;case o.OP_LESSTHAN:b=new a((m.cmp(g)<0)+0);break;case o.OP_GREATERTHAN:b=new a((m.cmp(g)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((m.cmp(g)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((m.cmp(g)>=0)+0);break;case o.OP_MIN:b=m.cmp(g)<0?m:g;break;case o.OP_MAX:b=m.cmp(g)>0?m:g}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;m=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);I=g.cmp(m)<=0&&m.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var C;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?C=s.ripemd160(e):M===o.OP_SHA1?C=s.sha1(e):M===o.OP_SHA256?C=s.sha256(e):M===o.OP_HASH160?C=s.sha256ripemd160(e):M===o.OP_HASH256&&(C=s.sha256sha256(e)),this.stack.pop(),this.stack.push(C);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new n).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var N=(new n).add(v);if(w.findAndDelete(N),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),x=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){x=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var z=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=U,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var j=++z;if(z+=U,this.stack.lengthU)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var V=++z;if(z+=D,this.stack.length0;){if(v=this.stack[this.stack.length-V],y=this.stack[this.stack.length-j],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var L;try{_=f.fromTxFormat(v),S=u.fromBuffer(y,!1),L=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){L=!1}L&&(V++,D--),j++,D>--U&&(x=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(x?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!x)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);nr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Be=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Pe=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Oe=!!q&&o(function(){le.call(new q(1))}),Re=function(){return le.apply(Oe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(O(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Be.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(13),a=r(12),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(68)("meta"),i=r(11),o=r(35),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(15)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(163).Transform,o=r(167).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(22),o=r(40),a=r(61),s=r(60),u=r(14),f=r(12),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(176),g=r(177),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(185),i=r(137).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(15)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(42),i=r(198),o=r(149),a=r(4),s=r(16),u=r(151),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(124),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(99);o.inherits=r(5);var a=r(227),s=r(166);o.inherits(h,a);for(var u=i(s.prototype),f=0;fo)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],B=o[3];E=f(E,M,T,B,a,7,s[0]),B=f(B,E,M,T,u,12,s[1]),T=f(T,B,E,M,l,17,s[2]),M=f(M,T,B,E,p,22,s[3]),E=f(E,M,T,B,b,7,s[4]),B=f(B,E,M,T,g,12,s[5]),T=f(T,B,E,M,m,17,s[6]),M=f(M,T,B,E,v,22,s[7]),E=f(E,M,T,B,y,7,s[8]),B=f(B,E,M,T,w,12,s[9]),T=f(T,B,E,M,_,17,s[10]),M=f(M,T,B,E,S,22,s[11]),E=f(E,M,T,B,x,7,s[12]),B=f(B,E,M,T,I,12,s[13]),T=f(T,B,E,M,k,17,s[14]),E=c(E,M=f(M,T,B,E,A,22,s[15]),T,B,u,5,s[16]),B=c(B,E,M,T,m,9,s[17]),T=c(T,B,E,M,S,14,s[18]),M=c(M,T,B,E,a,20,s[19]),E=c(E,M,T,B,g,5,s[20]),B=c(B,E,M,T,_,9,s[21]),T=c(T,B,E,M,A,14,s[22]),M=c(M,T,B,E,b,20,s[23]),E=c(E,M,T,B,w,5,s[24]),B=c(B,E,M,T,k,9,s[25]),T=c(T,B,E,M,p,14,s[26]),M=c(M,T,B,E,y,20,s[27]),E=c(E,M,T,B,I,5,s[28]),B=c(B,E,M,T,l,9,s[29]),T=c(T,B,E,M,v,14,s[30]),E=h(E,M=c(M,T,B,E,x,20,s[31]),T,B,g,4,s[32]),B=h(B,E,M,T,y,11,s[33]),T=h(T,B,E,M,S,16,s[34]),M=h(M,T,B,E,k,23,s[35]),E=h(E,M,T,B,u,4,s[36]),B=h(B,E,M,T,b,11,s[37]),T=h(T,B,E,M,v,16,s[38]),M=h(M,T,B,E,_,23,s[39]),E=h(E,M,T,B,I,4,s[40]),B=h(B,E,M,T,a,11,s[41]),T=h(T,B,E,M,p,16,s[42]),M=h(M,T,B,E,m,23,s[43]),E=h(E,M,T,B,w,4,s[44]),B=h(B,E,M,T,x,11,s[45]),T=h(T,B,E,M,A,16,s[46]),E=d(E,M=h(M,T,B,E,l,23,s[47]),T,B,a,6,s[48]),B=d(B,E,M,T,v,10,s[49]),T=d(T,B,E,M,k,15,s[50]),M=d(M,T,B,E,g,21,s[51]),E=d(E,M,T,B,x,6,s[52]),B=d(B,E,M,T,p,10,s[53]),T=d(T,B,E,M,_,15,s[54]),M=d(M,T,B,E,u,21,s[55]),E=d(E,M,T,B,y,6,s[56]),B=d(B,E,M,T,A,10,s[57]),T=d(T,B,E,M,m,15,s[58]),M=d(M,T,B,E,I,21,s[59]),E=d(E,M,T,B,b,6,s[60]),B=d(B,E,M,T,S,10,s[61]),T=d(T,B,E,M,l,15,s[62]),M=d(M,T,B,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+B|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(41),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(62)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(29),o=r(15)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(53),i=r(78);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(58),a=r(13),s=r(25),u=r(59),f=r(21),c=r(22);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(87).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(52),r(1).Buffer)},function(e,t,r){var n=r(36),i=r(16),o=r(70);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(43);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(44),i=r(48);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(43),o=r(15)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(15)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(83),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(202);var n=r(32),i=r(31),o=r(10),a=r(48),s=r(15),u=r(155),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(76),s=r(63),u=r(75),f=r(74),c=r(11),h=r(10),d=r(113),l=r(82),p=r(141);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(68),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(62)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(29),o=r(42),a=r(75);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(491),n.short=r(492),n.mont=r(493),n.edwards=r(494)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(162);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(554),n.short=r(555),n.mont=r(556),n.edwards=r(557)},function(e,t,r){var n=r(573),i=r(585),o=r(586),a=r(171),s=r(237),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(27),o=r(104),a=r(12),s=r(25),u=r(80),f=r(86),c=r(59),h=r(107),d=r(3);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(f.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var i={compressed:!0,network:r?u.get(r):u.defaultNetwork};if(n.isUndefined(e)||n.isNull(e))i.bn=l._getRandomBN();else if(e instanceof a)i.bn=e;else if(e instanceof t||e instanceof Uint8Array)i=l._transformBuffer(e,r);else if(e.bn&&e.network)i=l._transformObject(e);else if(!r&&u.get(e))i.bn=l._getRandomBN(),i.network=u.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?i.bn=new a(t.from(e,"hex")):i=l._transformWIF(e,r)}return i},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(f.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=u.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==u.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=u.get(t)||u.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:u.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(n.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(n.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return i.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(261),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(176),e.exports.Input=r(177),e.exports.Output=r(61),e.exports.UnspentOutput=r(263),e.exports.Signature=r(106),e.exports.Sighash=r(66),e.exports.SighashWitness=r(178),e.exports.RegisterAccountTx=r(264),e.exports.CommonTx=r(267),e.exports.ContractTx=r(268),e.exports.DelegateTx=r(269)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(12),o=r(13),a=r(60),s=r(14),u=r(8),f=(r(25),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(62),i=r(0),o=r(32),a=r(31),s=r(85),u=r(146),f=r(82),c=r(38),h=r(15)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(71),i=r(67),o=r(82),a={};r(31)(a,r(15)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(112),i=r(48);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(15)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(85),i=r(15)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(67);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(83),i=r(15)("iterator"),o=r(85);e.exports=r(41).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(369);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(64),i=r(201),o=r(85),a=r(36);e.exports=r(145)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(95),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(43)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(157).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(43)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(29);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(62),a=r(118),s=r(31),u=r(76),f=r(10),c=r(74),h=r(44),d=r(16),l=r(211),p=r(72).f,b=r(18).f,g=r(153),m=r(82),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,B=S.LN2,P=i?"_b":"buffer",O=i?"_l":"byteLength",R=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/B),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[O])throw x(y);var o=e[P]._b,a=i+e[R],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[O])throw x(y);for(var s=e[P]._b,u=a+e[R],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[O]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[O],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[P]=e,this[R]=i,this[O]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){var n=t;n.utils=r(53),n.common=r(97),n.sha=r(497),n.ripemd=r(501),n.hmac=r(502),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(226),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(164).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(165),i.Writable=r(517),i.Duplex=r(518),i.Transform=r(519),i.PassThrough=r(520),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(227)).Stream=t,t.Readable=t,t.Writable=r(166),t.Duplex=r(79),t.Transform=r(231),t.PassThrough=r(516)},function(e,t,r){"use strict";(function(t,n,i){var o=r(124);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(99);f.inherits=r(5);var c={deprecate:r(515)},h=r(228),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(229);function g(){}function m(e,t){s=s||r(79),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(79),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(52),r(230).setImmediate,r(28))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(226),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(521),t.sha1=r(522),t.sha224=r(523),t.sha256=r(232),t.sha384=r(524),t.sha512=r(233)},function(e,t,r){"use strict";t.utils=r(530),t.Cipher=r(531),t.DES=r(532),t.CBC=r(533),t.EDE=r(534)},function(e,t,r){var n=r(535),i=r(543),o=r(243);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(536),CBC:r(537),CFB:r(538),CFB8:r(539),CFB1:r(540),OFB:r(541),CTR:r(241),GCM:r(241)},i=r(243);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(23),i=r(88);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(101),n.sha=r(559),n.ripemd=r(563),n.hmac=r(564),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(13),s=r(25);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(596),s=r(21),u=r(13),f=r(25),c=r(60),h=r(14),d=r(8),l=r(22),p=r(66),b=r(178),g=r(27),m=r(263),v=r(177),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(61),I=r(40),k=r(129),A=r(12);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var B={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",B),B.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",B),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(105),e.exports.PublicKey=r(597),e.exports.PublicKeyHash=r(598),e.exports.MultiSig=r(599),e.exports.MultiSigScriptHash=r(600)},function(e,t,r){"use strict";(function(t){var n=r(22),i=(r(40),r(61),r(60)),o=r(14),a=(r(12),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(51),i=r(1),o=r(2),a=r(3),s=r(12),u=r(130),f=r(104),c=r(8),h=r(80),d=r(86),l=r(129),p=r(107),b=r(21),g=b.HDPrivateKey,m=r(13),v=r(25);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(271);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(69);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(36),i=r(72).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(69),o=r(109),a=r(94),s=r(20),u=r(93),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(29),i=r(11),o=r(191),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(84).trim;e.exports=1/n(r(140)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(43);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(143),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(29),i=r(20),o=r(93),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(155);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(95)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(159);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(207),i=r(77);e.exports=r(117)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(71),o=r(76),a=r(42),s=r(74),u=r(75),f=r(145),c=r(201),h=r(73),d=r(17),l=r(63).fastKey,p=r(77),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(207),i=r(77);e.exports=r(117)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(50)(0),a=r(32),s=r(63),u=r(188),f=r(210),c=r(11),h=r(77),d=r(77),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(117)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(76),i=r(63).getWeak,o=r(4),a=r(11),s=r(74),u=r(75),f=r(50),c=r(35),h=r(77),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(44),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(72),i=r(109),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(110),i=r(11),o=r(16),a=r(42),s=r(15)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(142),o=r(48);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(69),o=r(36),a=r(94).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(83),i=r(217);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(221),i=n.crypto.BN,o=r(612),a=n.deps._,s=r(613),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(614),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(53).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(53),i=r(97),o=r(223),a=r(78),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(124);e.exports=y;var o,a=r(219);y.ReadableState=v;r(164).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(228),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(99);h.inherits=r(5);var d=r(511),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(512),g=r(229);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(79));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(167).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(79),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),B(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,B(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(514),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(28))},function(e,t,r){"use strict";e.exports=a;var n=r(79),i=r(99);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(89),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],B=t[M-30+1],P=l(T,B),O=p(B,T),R=b(T=t[M-4],B=t[M-4+1]),N=g(B,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=O+j|0,L=P+C+m(D,O)|0;L=(L=L+R+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(525),o=r(65),a=r(6).Buffer,s=r(235),u=r(168),f=r(169),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(52))},function(e,t,r){var n=r(235),i=r(168),o=r(169),a=r(238),s=r(239),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(23),i=r(248);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(101),o=r(250),a=r(39),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(25),a=r(40),s=r(27),u=r(179);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=r(27),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(24),r(8)),a=r(19),s=r(55),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(87),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,B=p,P=b,O=g,R=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&P^T&R^P&R,be=B&O^B&N^O&N,ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=R,j=N,R=P,N=O,P=T,O=B,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((B=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+B,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+O,i.high=b+P+(g>>>0>>0?1:0),v=o.low=v+N,o.high=m+R+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){r(277),e.exports=r(479)},function(e,t,r){"use strict";(function(e){if(r(278),r(475),r(476),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(28))},function(e,t,r){r(279),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(359),r(360),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(154),r(383),r(202),r(384),r(203),r(385),r(386),r(387),r(388),r(389),r(206),r(208),r(209),r(390),r(391),r(392),r(393),r(394),r(395),r(396),r(397),r(398),r(399),r(400),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),e.exports=r(41)},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(17),a=r(0),s=r(32),u=r(63).KEY,f=r(10),c=r(92),h=r(82),d=r(68),l=r(15),p=r(184),b=r(135),g=r(281),m=r(110),v=r(4),y=r(11),w=r(20),_=r(36),S=r(47),x=r(67),I=r(71),k=r(187),A=r(37),E=r(109),M=r(18),T=r(69),B=A.f,P=M.f,O=k.f,R=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof R&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=B(H,t);n&&delete H[t],P(e,t,r),n&&e!==H&&P(H,t,n)}:P,G=function(e){var t=L[e]=I(R.prototype);return t._k=e,t},Y=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||P(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):P(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=B(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=O(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=O(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(72).f=k.f=Q,r(94).f=J,E.f=ee,o&&!r(62)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=R(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=R();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),R.prototype[z]||r(31)(R.prototype,z,R.prototype.valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(92)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(69),i=r(109),o=r(94);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(71)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(186)})},function(e,t,r){var n=r(36),i=r(37).f;r(49)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(38);r(49)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(69);r(49)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(49)("getOwnPropertyNames",function(){return r(187).f})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(49)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(188)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(189)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(139).set})},function(e,t,r){"use strict";var n=r(83),i={};i[r(15)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(190)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(38),o=r(15)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(192);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(193);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(43),a=r(141),s=r(47),u=r(10),f=r(72).f,c=r(37).f,h=r(18).f,d=r(84).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(71)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(44),o=r(194),a=r(142),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(194),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(195)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(195),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(193);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(192);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(196),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(143);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(197)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(196)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(143)})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(70),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(36),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(111)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".endsWith;n(n.P+n.F*r(148)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(147);n(n.P+n.F*r(148)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(142)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".startsWith;n(n.P+n.F*r(148)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(358);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(15)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(361))},function(e,t,r){"use strict";var n=r(4),i=r(47);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(110)})},function(e,t,r){"use strict";var n=r(42),i=r(0),o=r(20),a=r(198),s=r(149),u=r(16),f=r(150),c=r(151);i(i.S+i.F*!r(113)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(150);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(36),o=[].join;n(n.P+n.F*(r(93)!=Object||!r(45)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(138),o=r(43),a=r(70),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(200)}),r(64)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(153)}),r(64)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(50)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("find")},function(e,t,r){"use strict";var n=r(0),i=r(50)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)(o)},function(e,t,r){r(73)("Array")},function(e,t,r){var n=r(7),i=r(141),o=r(18).f,a=r(72).f,s=r(112),u=r(95),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(15)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(73)("RegExp")},function(e,t,r){"use strict";r(203);var n=r(4),i=r(95),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(156),a=r(114);r(115)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(44),s=r(156),u=r(114),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(115)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+B,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(189),o=r(114);r(115)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(112),i=r(4),o=r(96),a=r(156),s=r(16),u=r(114),f=r(155),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(115)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=O(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,R(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};P||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(76)(E.prototype,{then:function(e,t){var r=B(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=B=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!P,{Promise:E}),r(82)(E,"Promise"),r(73)("Promise"),a=r(41).Promise,h(h.S+h.F*!P,"Promise",{reject:function(e){var t=B(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(P&&r(113)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=B(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=B(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(210),i=r(77);r(117)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(118),o=r(160),a=r(4),s=r(70),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(96),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(37),i=r(38),o=r(35),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(37),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(38),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(212)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(37),o=r(38),a=r(35),s=r(0),u=r(67),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(139);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(108)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(213),o=r(20),a=r(16),s=r(29),u=r(152);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(64)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(213),o=r(20),a=r(16),s=r(44),u=r(152);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(64)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(111)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(116),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(116),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(84)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(84)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(48),o=r(16),a=r(112),s=r(95),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(146)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(135)("asyncIterator")},function(e,t,r){r(135)("observable")},function(e,t,r){var n=r(0),i=r(212),o=r(36),a=r(37),s=r(150);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(215)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(215)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(29),a=r(18);r(17)&&n(n.P+r(119),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(29),a=r(18);r(17)&&n(n.P+r(119),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(119),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(119),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(216)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(216)("Set")})},function(e,t,r){r(120)("Map")},function(e,t,r){r(120)("Set")},function(e,t,r){r(120)("WeakMap")},function(e,t,r){r(120)("WeakSet")},function(e,t,r){r(121)("Map")},function(e,t,r){r(121)("Set")},function(e,t,r){r(121)("WeakMap")},function(e,t,r){r(121)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(43);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(218),o=r(197);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(218)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(41),o=r(7),a=r(96),s=r(205);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(159),o=r(204);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(208),i=r(217),o=r(57),a=r(4),s=r(38),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(29),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(158)(),o=r(7).process,a="process"==r(43)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(41),a=r(158)(),s=r(15)("observable"),u=r(29),f=r(4),c=r(74),h=r(76),d=r(31),l=r(75),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(157);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(154),i=r(69),o=r(32),a=r(7),s=r(31),u=r(85),f=r(15),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new B(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(486);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(123),i=r(46),o=r(58),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(123),i=r(34),o=r(46),a=r(58),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(161),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(503)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(498),t.sha224=r(499),t.sha256=r(224),t.sha384=r(500),t.sha512=r(225)},function(e,t,r){"use strict";var n=r(53),i=r(97),o=r(223),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(161),i=r(222),o=r(78);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(46),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(161),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(509),f=r(510);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(89),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(232),o=r(89),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(233),o=r(89),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(65),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(39),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(244),i=r(6).Buffer,o=r(172),a=r(245),s=r(65),u=r(125),f=r(126);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(246),i=r(548),o=r(549);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(23),i=new(r(247)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(246),h=r(88);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(23),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(127),i=r(23),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(127),i=r(30),o=r(23),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(174),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(565)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(560),t.sha224=r(561),t.sha256=r(251),t.sha384=r(562),t.sha512=r(252)},function(e,t,r){"use strict";var n=r(54),i=r(101),o=r(250),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(174),i=r(249),o=r(39);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(23),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(174),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(571),f=r(572);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(128),i=r(258),o=r(259),a=r(23),s=r(173),u=r(98),f=r(260),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(88),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(28),r(52))},function(e,t,r){"use strict";var n=r(594).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(B);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var P=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=P,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var O=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(O?c.true:c.false),M===o.OP_EQUALVERIFY){if(!O)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var R=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(R)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0&&(e=a(r)+e,i="0.");var n=e.length;return e.substr(0,n-t)+i+e.substring(n-t,n)},n=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?n:i)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],f=0;f1;i=Math.floor((i+1)/2)){for(var n=0;n"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function i(e){return(i="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})(e)}var n=r(1),o=r(274),a=r(17),s=r(86),f=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var n=e.parse(t);n.amount&&(n.amount=this._parseAmount(n.amount)),this._fromObject(n)}else{if("object"!==i(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};f.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new f(e)},f.fromObject=function(e){return new f(e)},f.isValid=function(e,t){try{new f(e,t)}catch(e){return!1}return!0},f.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},f.Members=["address","amount","message","label","r"],f.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(f.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},f.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},f.prototype.toObject=f.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=f},function(e,t,r){"use strict";var i=r(275),n=r(276);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){n.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(277);function y(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[C];if(!O.match(l)){var z=T.slice(0,E),U=T.slice(E+1),j=P.match(p);j&&(z.push(j[1]),U.unshift(j[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,R=c.length;E0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=I.slice(-1)[0],A=(r.host||e.host||I.length>1)&&("."===k||".."===k)||""===k,E=0,M=I.length;M>=0;M--)"."===(k=I[M])?I.splice(M,1):".."===k?(I.splice(M,1),E++):E&&(I.splice(M,1),E--);if(!_&&!S)for(;E--;E)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),A&&"/"!==I.join("/").substr(-1)&&I.push("");var B,T=""===I[0]||I[0]&&"/"===I[0].charAt(0);x&&(r.hostname=r.host=T?"":I.length?I.shift():"",(B=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=B.shift(),r.host=r.hostname=B.shift()));return(_=_||r.host&&I.length)&&!T&&I.unshift(""),I.length?r.pathname=I.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,u=36,c=1,h=26,d=38,l=700,p=72,b=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,S=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function A(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var i=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;i+=u)e=S(e/_);return S(i+(_+1)*e/(e+d))}function R(e){var t,r,i,n,o,a,s,d,l,g,v,y=[],w=e.length,_=0,I=b,k=p;for((r=e.lastIndexOf(m))<0&&(r=0),i=0;i=128&&x("not-basic"),y.push(e.charCodeAt(i));for(n=r>0?r+1:0;n=w&&x("invalid-input"),((d=(v=e.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||d>S((f-_)/a))&&x("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=u)a>S(f/(g=u-l))&&x("overflow"),a*=g;k=T(_-o,t=y.length+1,0==o),S(_/t)>f-I&&x("overflow"),I+=S(_/t),_%=t,y.splice(_++,0,I)}return M(y)}function P(e){var t,r,i,n,o,a,s,d,l,g,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((f-r)/(w=i+1))&&x("overflow"),r+=(s-t)*w,t=s,a=0;af&&x("overflow"),v==t){for(d=r,l=u;!(d<(g=l<=o?c:l>=o+h?h:l-o));l+=u)k=d-g,_=u-g,A.push(I(B(g+k%_,0))),d=S(k/_);A.push(I(B(d,0))),o=T(r,w,i==n),r=0,++i}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()}).call(this,r(56)(e),r(19))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(278),t.encode=t.stringify=r(279)},function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;c=0?(h=b.substr(0,m),d=b.substr(m+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),i(a,l)?n(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var i=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(i(a))+r;return n(e[a])?o(e[a],function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i>8&255]>i&&(p[t]=n),n},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var i;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),f=new t(64),u=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(u,0,0,r.length);for(var d=1;d<=c;d++){u[r.length+0]=d>>24&255,u[r.length+1]=d>>16&255,u[r.length+2]=d>>8&255,u[r.length+3]=d>>0&255,(s=i.createHmac("sha512",e).update(u).digest()).copy(f,0,0,64);for(var l=1;l>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,r){var i;e.exports=(i=r(6),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},function(e,t,r){var i,n,o,a,s,f;e.exports=(i=r(6),r(145),o=(n=i).lib.WordArray,a=n.algo,s=a.SHA256,f=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(f),n.HmacSHA224=s._createHmacHelper(f),i.SHA224)},function(e,t,r){var i,n,o,a,s,f,u,c;e.exports=(i=r(6),r(67),r(146),o=(n=i).x64,a=o.Word,s=o.WordArray,f=n.algo,u=f.SHA512,c=f.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c),i.SHA384)},function(e,t,r){var i;e.exports=(i=r(6),r(67),function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,f=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){f[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&n){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[n]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var m=h[d];m.high=l,m.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=g.high^(y<<1|w>>>31),p=g.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,I=M.low,x=f[_];x<32?(l=S<>>32-x,p=I<>>32-x):(l=I<>>64-x,p=S<>>64-x);var k=h[u[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],B=h[_],T=h[(d+1)%5+5*b],R=h[(d+2)%5+5*b];M.high=B.high^~T.high&R.high,M.low=B.low^~T.low&R.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,f=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(d)}return new n.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),i.SHA3)},function(e,t,r){var i;e.exports=(i=r(6), +!function(){for(var t=function(e){return this.constructor!=t?new t(e):e instanceof t?e:(this.internal=String(e),this.as_int=r(this.internal),this.add=function(e){var r=[this,new t(e)];r.sort(function(e,t){return e.as_int.exp-t.as_int.exp});var n=r[0].as_int.exp,i=r[1].as_int.exp,a=Number(o(r[1].as_int.value,i-n)),s=Number(r[0].as_int.value),u=String(a+s);return t(o(u,n))},this.sub=function(e){return t(this.add(-1*e))},this.mul=function(e){e=new t(e);var r=String(this.as_int.value*e.as_int.value),n=this.as_int.exp+e.as_int.exp;return t(o(r,n))},this.div=function(e){e=new t(e);var r=Math.min(this.as_int.exp,e.as_int.exp),n=t.mul(Math.pow(10,Math.abs(r)),this),i=t.mul(Math.pow(10,Math.abs(r)),e);return t(n/i)},this.toString=function(){return this.internal},void(this.toNumber=function(){return Number(this.internal)}))},r=function(e){var t,r,n=(e=String(e)).split("."),i=n[0],o=n[1];if(o)t=parseInt(e.split(".").join(""),10),r=-1*o.length;else{var a=i.match(/0+$/);if(a){var s=a[0].length;t=i.substr(0,i.length-s),r=s}else t=i,r=0}return{value:t,exp:r}},n=function(e,t){var r=(t=Math.abs(t))-e.length,n=".";r>=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(606),a=r(27),s=r(179),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(607),i=r(608);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(609);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?R+="x":R+=O[N];if(!R.match(l)){var j=B.slice(0,E),z=B.slice(E+1),U=O.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,P=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,B=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=B?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!B&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=B(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function O(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=B(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:P,encode:O,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+O(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(122)(e),r(28))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(610),t.encode=t.stringify=r(611)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(274),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(133),r(275),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],B=h[(d+1)%5+5*b],P=h[(d+2)%5+5*b];M.high=T.high^~B.high&P.high,M.low=T.low^~B.low&P.low}M=r[0];var O=c[s];M.high^=O.high,M.low^=O.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -38,10 +38,10 @@ MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.le THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,a=t.algo,s=n.create([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]),f=n.create([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=n.create([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]),c=n.create([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]),h=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,a,l,w,_,S,I,x,k,A,E,M=this._hash.words,B=h.words,T=d.words,R=s.words,P=f.words,O=u.words,C=c.words;for(S=o=M[0],I=a=M[1],x=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+R[r]]|0,E+=r<16?p(a,l,w)+B[0]:r<32?b(a,l,w)+B[1]:r<48?m(a,l,w)+B[2]:r<64?g(a,l,w)+B[3]:v(a,l,w)+B[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(I,x,k)+T[0]:r<32?g(I,x,k)+T[1]:r<48?m(I,x,k)+T[2]:r<64?b(I,x,k)+T[3]:p(I,x,k)+T[4],E=(E=y(E|=0,C[r]))+A|0,S=A,A=k,k=y(x,10),x=I,I=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+I|0,M[4]=M[0]+a+x|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),i.RIPEMD160)},function(e,t,r){var i,n,o,a,s,f,u,c,h;e.exports=(i=r(6),r(88),r(89),o=(n=i).lib,a=o.Base,s=o.WordArray,f=n.algo,u=f.SHA1,c=f.HMAC,h=f.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=s.create(),o=s.create([1]),a=n.words,f=o.words,u=r.keySize,h=r.iterations;a.length>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,B=d.words,P=s.words,O=u.words,R=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+P[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,R[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+O[r]]|0,E+=r<16?v(x,I,k)+B[0]:r<32?m(x,I,k)+B[1]:r<48?g(x,I,k)+B[2]:r<64?b(x,I,k)+B[3]:p(x,I,k)+B[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(181),r(182),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var f=0;f>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},i.pad.ZeroPadding)},function(e,t,r){var i;e.exports=(i=r(6),r(16),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,r){var i,n,o,a;e.exports=(i=r(6),r(16),o=(n=i).lib.CipherParams,a=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},i.format.Hex)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],o=[],a=[],s=[],f=[],u=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,n[r]=p,o[p]=r;var b=e[r],m=e[b],g=e[m],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,f[r]=v<<8|v>>>24,u[r]=v,v=16843009*g^65537*m^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[g^b]]],i^=e[e[i]]):r=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var f=this._invKeySchedule=[],u=0;u>>24]]^h[n[s>>>16&255]]^d[n[s>>>8&255]]^l[n[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,f,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^n[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],m=i[c>>>24]^n[h>>>16&255]^o[d>>>8&255]^a[255&u]^r[l++],g=i[h>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&c]^r[l++],v=i[d>>>24]^n[u>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];u=b,c=m,h=g,d=v}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),i.AES)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var u=n[o]=[],c=f[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,f=0;f<8;f++)s|=u[f][((a^n[f])&c[f])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var f=i[n];i[n]=i[o],i[o]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[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],n=this._C=[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._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,r){var i;e.exports=(i=r(6),r(43),r(44),r(38),r(16),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],i=this._C=[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]];this._b=0;for(var n=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,s=i>>>16,f=((n*n>>>17)+n*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=f^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,r){"use strict";var i=r(1),n=r(2),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},f.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var i=this._Signtx(e);return t.writeBuf(i),t.toBuffer().toString("hex")},e.exports=f},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=(r(14),r(5)),a=r(10),s=r(28),f=(r(11),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});f._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return f._fromObject(e)},f._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},f.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new u.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var n=this._Signtx(e);return r.writeBuf(n),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(8),c=r(28),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),e.writeVarintNum(m),m>0&&e.write(g);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var h=new f,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||i.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var m=0,g=this.memo;i.isEmpty(this.memo)||(u.isBuffer(g)||(g=t.from(g)),m=g.length),r.writeVarintNum(m),m>0&&r.write(g);var v=this._Signtx(e);m=v.length;return r.writeVarintNum(m),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=(r(24),r(2)),o=r(14),a=r(5),s=r(10),f=r(28),u=r(11),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(n.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new u.InvalidArgument("destRegId","Invalid reg id");if(!i.isString(e.vContract)||i.isEmpty(e.vContract))throw new u.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new u.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new f;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var n=e.toBuffer();return a.sha256sha256(n)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");r.writeUInt8(n.length),r.write(n)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);e.write(m);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||i.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var m=o.writeVarInt(8,this.scoinsToMint);r.write(m);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=r(28),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);e.write(m),e.writeCdpAsset(this.assetMap);var g=e.toBuffer();return a.sha256sha256(g)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var c=new f,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var m=o.writeVarInt(8,this.scoins_to_repay);r.write(m),r.writeCdpAsset(this.assetMap);var g=this._Signtx(e),v=g.length;return r.writeVarintNum(v),r.write(g),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=r(5),s=r(10),f=r(9),u=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.txUid||i.isEmpty(this.txUid)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||i.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var m=e.toBuffer();return a.sha256sha256(m)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var m=this._Signtx(e),g=m.length;return r.writeVarintNum(g),r.write(m),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||i.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||i.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var i=r(1),n=r(2),o=r(14),a=(r(7),r(5)),s=r(10),f=(r(12),r(9)),u=(r(17),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});u._from=function(e){if(!i.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return u._fromObject(e)},u._fromObject=function(e){return n.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},u.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var n=t.from(this.publicKey,"hex");e.writeUInt8(n.length),e.write(n)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);if(r.write(n),null==this.srcRegId||i.isEmpty(this.srcRegId)){if(null==this.publicKey||i.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(i.isNull(s.height)||i.isUndefined(s.height))return!1;var u=new f,c=o.writeVarInt(4,s.height);u.write(c);var h=o.writeVarInt(2,s.index);u.write(h);var d=u.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||i.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),m=b.length;return r.writeVarintNum(m),r.write(b),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(0).Buffer)}])}); \ No newline at end of file +n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(24),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=(r(24),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(13),c=r(55),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)}])}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 736760a..b8051c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -974,6 +974,32 @@ "object.assign": "^4.1.0" } }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "requires": { + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "regenerator-runtime": "^0.10.5" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" + } + } + }, "base-x": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.7.tgz", @@ -1058,6 +1084,11 @@ "safe-buffer": "~5.1.1" } }, + "core-js": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", + "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==" + }, "core-js-compat": { "version": "3.4.7", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.7.tgz", @@ -1429,6 +1460,11 @@ "regenerate": "^1.4.0" } }, + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=" + }, "regenerator-transform": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.1.tgz", diff --git a/package.json b/package.json index f3b1720..6797203 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ }, "dependencies": { "aes-js": "^3.1.1", + "babel-polyfill": "^6.26.0", "bn.js": "=4.11.8", "bs58": "=4.0.1", "buffer-compare": "=1.1.1", diff --git a/webpack.config.js b/webpack.config.js index 21890e0..61a15ea 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const path = require('path'); module.exports = { mode: 'production', - entry: './index.js', + entry: ["babel-polyfill", "./index.js"], output: { path: path.resolve(__dirname, './dist'), filename: 'wicc-wallet-lib.js', @@ -10,13 +10,13 @@ module.exports = { libraryTarget: 'umd', globalObject: 'this' }, - module:{ - rules:[ - { - test: /\.js$/, - exclude: /node_modules/, - loader: "babel-loader" - } - ] - } + module: { + rules: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: "babel-loader" + } + ] + } } From dbf524738063219accb9ec89f1549654c5204049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 5 Dec 2019 18:20:48 +0800 Subject: [PATCH 06/33] update --- demo/test-commontx.js | 2 +- demo/test-fcoinstake.js | 50 ---------------------------------- demo/test-messagevertify.js | 12 ++++----- demo/test-wallet.js | 53 ------------------------------------- demo/test-walletmanager.js | 0 demo/test-wiccapi.js | 53 +++++++++++++++++++++++++++++++++++++ index.js | 5 ++++ src/BaasClient.js | 0 src/NodeClient.js | 0 src/Wallet.js | 30 +++++++++++++++++++++ src/WalletManager.js | 26 ++++++++++++++++++ src/WaykiTransaction.js | 5 ++++ src/lib/wiccapi.js | 4 +-- 13 files changed, 128 insertions(+), 112 deletions(-) delete mode 100644 demo/test-fcoinstake.js create mode 100644 demo/test-walletmanager.js create mode 100644 demo/test-wiccapi.js create mode 100644 src/BaasClient.js create mode 100644 src/NodeClient.js create mode 100644 src/Wallet.js create mode 100644 src/WalletManager.js create mode 100644 src/WaykiTransaction.js diff --git a/demo/test-commontx.js b/demo/test-commontx.js index a0758f5..775d445 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -1,7 +1,7 @@ 'use strict' console.error('\n=====RUN-TEST-COMMONTX-START=====\n') // const express = require("express"); -var WiccApi = require('../dist/wicc-wallet-lib.js'); +var WiccApi = require('../index'); var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') diff --git a/demo/test-fcoinstake.js b/demo/test-fcoinstake.js deleted file mode 100644 index 2da63b6..0000000 --- a/demo/test-fcoinstake.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict' -console.error('\n=====RUN-TEST-FCOINSTAKE-START=====\n') -// const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') - -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) - -/* -Build a transaction for fcoin stake transfer -note: -1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 10000 sawi (0.0001 wicc) -3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, txUid: operator's regid -5, fcoinsToStake: the number of coins stake -*/ -/* -构建权益币质押交易的交易单 -注意: -1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) -3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、txUid:操作者的regid -5、fcoinsToStake:质押数量 -*/ -var fcoinStakeTxinfo = { - nTxType: WiccApi.FCOIN_STAKE_TX, - nVersion: 1, - nValidHeight: 23594, - txUid:"", - fees: 100000, - feeSymbol:WriterHelper.prototype.CoinType.WICC, - stakeType:WriterHelper.prototype.BalanceOpType.ADD_FREE, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - fcoinsToStake: 2000000000000, - network: 'testnet' - }; - - - var cfcoinStakeTx = wiccApi.createSignTransaction(privateKey, WiccApi.FCOIN_STAKE_TX, fcoinStakeTxinfo) - console.log("----cointransferTx----", cfcoinStakeTx) - - console.error('\n=====RUN-TEST-FCOINSTAKE-END=====\n') diff --git a/demo/test-messagevertify.js b/demo/test-messagevertify.js index 9eb12b1..69c36ff 100644 --- a/demo/test-messagevertify.js +++ b/demo/test-messagevertify.js @@ -4,15 +4,15 @@ var WiccApi = require('../index'); var Hash = require('../src/lib/crypto/hash'); var ECDSA = require('../src/lib/crypto/ecdsa'); -var privateKey = WiccApi.PrivateKey.fromWIF("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") var msg = "WaykiChain" +var wallet = new WiccApi.Wallet("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") +var signMsg = wallet.signMessage(msg) +console.log("签名消息"+signMsg) +console.log(wallet) +//验证消息 var msgBuff = Buffer.from(msg) - var msgBuffHash = Hash.sha256(Hash.sha256ripemd160(msgBuff)); -var signMsg = ECDSA.sign(msgBuffHash, privateKey, 'endian') - console.log("签名消息"+signMsg) - //验证消息 -var pubKey=privateKey.toPublicKey(); +var pubKey= wallet.publicKeyAsHex(); console.log("公钥:"+pubKey) var vertifySuccess=ECDSA.verify(msgBuffHash, signMsg, pubKey, 'endian') diff --git a/demo/test-wallet.js b/demo/test-wallet.js index ec650f1..e69de29 100644 --- a/demo/test-wallet.js +++ b/demo/test-wallet.js @@ -1,53 +0,0 @@ -'use strict'; -console.error('\n=====RUN-TEST-WALLET-START=====\n') -var WiccApi = require('../index'); - -//environment init -//环境初始化 -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - -//Create Mnemonic Code -//创建助记词 -var strMne = wiccApi.createAllCoinMnemonicCode() -console.log('New MnemonicCode='+ strMne) - -//Check if the mnemonic is valid -//检查助记词是否有效 -var ret = wiccApi.checkMnemonicCode(strMne) -console.log('Check MnemonicCode Result=' + ret) - -//Get WIF privatekey from mnemoniccode -//根据助记词获取对应的WIF格式私钥 -var privateKey1 = wiccApi.getPriKeyFromMnemonicCode(strMne) -console.log('privateKey1='+privateKey1) - -//Create a wallet based on the mnemonic, '12345678' is the wallet password -//根据助记词创建钱包,'12345678'为钱包密码 -var walletInfo = wiccApi.createWallet(strMne, '12345678') -console.log('walletInfo=') -console.log(walletInfo) - -//Get WIF privatekey from wallet -//根据钱包种子获取对应的WIF格式私钥 -var privateKey2 = wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, '12345678') -console.log('privateKey2='+privateKey2) - -//Get mnemonics based on wallet seeds -//根据钱包种子获取助记词 -var Mne = wiccApi.getMnemonicCodeFromSeed(walletInfo.seedinfo, '12345678') -console.log("Get MnemonicCode from wallet seed="+Mne) - -//Get an address based on the WIF format private key. Note: privateKey2 and privateKey1 are equal. -//根据WIF格式私钥获取地址 ,注意:privateKey2 和 privateKey1 是一样的 -var privateKey = WiccApi.PrivateKey.fromWIF(privateKey2) -var pubKey=privateKey.toPublicKey(); -var address = privateKey.toAddress(); -console.log("New Create publicKey1="+pubKey,"New Create address="+address.toString()) - -//Check if the address is valid -//检查地址是否有效 -ret = wiccApi.validateAddress(address) -console.log("Check address Result="+ret) - -console.error('\n=====RUN-TEST-WALLET-END=====\n') diff --git a/demo/test-walletmanager.js b/demo/test-walletmanager.js new file mode 100644 index 0000000..e69de29 diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js new file mode 100644 index 0000000..ec650f1 --- /dev/null +++ b/demo/test-wiccapi.js @@ -0,0 +1,53 @@ +'use strict'; +console.error('\n=====RUN-TEST-WALLET-START=====\n') +var WiccApi = require('../index'); + +//environment init +//环境初始化 +var arg = {network: 'testnet'} +var wiccApi = new WiccApi(arg) + +//Create Mnemonic Code +//创建助记词 +var strMne = wiccApi.createAllCoinMnemonicCode() +console.log('New MnemonicCode='+ strMne) + +//Check if the mnemonic is valid +//检查助记词是否有效 +var ret = wiccApi.checkMnemonicCode(strMne) +console.log('Check MnemonicCode Result=' + ret) + +//Get WIF privatekey from mnemoniccode +//根据助记词获取对应的WIF格式私钥 +var privateKey1 = wiccApi.getPriKeyFromMnemonicCode(strMne) +console.log('privateKey1='+privateKey1) + +//Create a wallet based on the mnemonic, '12345678' is the wallet password +//根据助记词创建钱包,'12345678'为钱包密码 +var walletInfo = wiccApi.createWallet(strMne, '12345678') +console.log('walletInfo=') +console.log(walletInfo) + +//Get WIF privatekey from wallet +//根据钱包种子获取对应的WIF格式私钥 +var privateKey2 = wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, '12345678') +console.log('privateKey2='+privateKey2) + +//Get mnemonics based on wallet seeds +//根据钱包种子获取助记词 +var Mne = wiccApi.getMnemonicCodeFromSeed(walletInfo.seedinfo, '12345678') +console.log("Get MnemonicCode from wallet seed="+Mne) + +//Get an address based on the WIF format private key. Note: privateKey2 and privateKey1 are equal. +//根据WIF格式私钥获取地址 ,注意:privateKey2 和 privateKey1 是一样的 +var privateKey = WiccApi.PrivateKey.fromWIF(privateKey2) +var pubKey=privateKey.toPublicKey(); +var address = privateKey.toAddress(); +console.log("New Create publicKey1="+pubKey,"New Create address="+address.toString()) + +//Check if the address is valid +//检查地址是否有效 +ret = wiccApi.validateAddress(address) +console.log("Check address Result="+ret) + +console.error('\n=====RUN-TEST-WALLET-END=====\n') diff --git a/index.js b/index.js index b3f7c6a..dd03966 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,10 @@ var WiccApi = require('./src/lib/wiccapi') var bitcore = require('./src') +var Wallet = require("./src/Wallet") +var WalletManager = require("./src/WalletManager") + WiccApi = Object.assign(WiccApi, bitcore) +WiccApi.Wallet = Wallet +WiccApi.WalletManager = WalletManager module.exports = WiccApi \ No newline at end of file diff --git a/src/BaasClient.js b/src/BaasClient.js new file mode 100644 index 0000000..e69de29 diff --git a/src/NodeClient.js b/src/NodeClient.js new file mode 100644 index 0000000..e69de29 diff --git a/src/Wallet.js b/src/Wallet.js new file mode 100644 index 0000000..3847565 --- /dev/null +++ b/src/Wallet.js @@ -0,0 +1,30 @@ +var PrivateKey = require('../src/lib/privatekey'); +var Hash = require('./lib/crypto/hash'); +var ECDSA = require('./lib/crypto/ecdsa'); + +class Wallet { + constructor(privateKey = "") { + if (!privateKey.length) { + throw "private key is required" + } + this.privateKey = privateKey; + this._getAddress() + } + _getAddress() { + var priKey = PrivateKey.fromWIF(this.privateKey) + this.address = priKey.toAddress().toString() + } + signMessage(message) { + var privateKey = PrivateKey.fromWIF(this.privateKey) + var msgBuff = Buffer.from(message) + + var msgBuffHash = Hash.sha256(Hash.sha256ripemd160(msgBuff)); + return ECDSA.sign(msgBuffHash, privateKey, 'endian') + } + publicKeyAsHex() { + var privateKey = PrivateKey.fromWIF(this.privateKey) + return privateKey.toPublicKey(); + } +} + +module.exports = Wallet \ No newline at end of file diff --git a/src/WalletManager.js b/src/WalletManager.js new file mode 100644 index 0000000..972eb3e --- /dev/null +++ b/src/WalletManager.js @@ -0,0 +1,26 @@ +var Wallet = require('./Wallet') +var WiccApi = require("../src/lib/wiccapi") + +class WalletManager { + constructor(networkType = "testnet") { + this.networkType = networkType; + this.wiccApi = new WiccApi({ network: this.networkType }) + } + randomMnemonicCodes(language = "ENGLISH") { + return this.wiccApi.createAllCoinMnemonicCode(language) + } + createWallet(mnemonic) { + let walletInfo = this.wiccApi.createWallet(mnemonic, "") + let key = this.wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, "") + return new Wallet(key) + } + importWalletFromMnemonic(mnemonic) { + let privateKey = this.wiccApi.getPriKeyFromMnemonicCode(mnemonic) + return new Wallet(privateKey) + } + importWalletFromPrivateKey(privateKeyWIF) { + return new Wallet(privateKeyWIF) + } +} + +module.exports = WalletManager \ No newline at end of file diff --git a/src/WaykiTransaction.js b/src/WaykiTransaction.js new file mode 100644 index 0000000..be8f808 --- /dev/null +++ b/src/WaykiTransaction.js @@ -0,0 +1,5 @@ +class WaykiTransaction { + constructor(txParams, wallet) { + + } +} \ No newline at end of file diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 581fde6..63a34cd 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -117,8 +117,8 @@ WiccApi._fromObject = function _fromObject(data) { return info; }; -WiccApi.prototype.createAllCoinMnemonicCode = function () { - var code = new Mnemonic(Mnemonic.Words.ENGLISH) +WiccApi.prototype.createAllCoinMnemonicCode = function (language) { + var code = new Mnemonic(Mnemonic.Words[language]) var strCode = code.toString() return strCode From 0eec1476c2ce9ba49b102a69faff9e417f646d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 9 Dec 2019 11:58:08 +0800 Subject: [PATCH 07/33] update --- demo/test-registeraccounttx.js | 20 +++++++------------- src/Wallet.js | 7 ++++--- src/WaykiTransaction.js | 31 ++++++++++++++++++++++++++++--- src/lib/wiccapi.js | 2 +- 4 files changed, 40 insertions(+), 20 deletions(-) diff --git a/demo/test-registeraccounttx.js b/demo/test-registeraccounttx.js index 18fc221..41ad0b2 100644 --- a/demo/test-registeraccounttx.js +++ b/demo/test-registeraccounttx.js @@ -1,16 +1,10 @@ 'use strict' console.error('\n=====RUN-TEST-REGISTERACCOUNTTX-START=====\n') -var WiccApi = require('../index'); +var WaykiTransaction = require('../src/WaykiTransaction') +var Wallet = require('../src/Wallet'); +var wallet = new Wallet("Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb") -//environment init -//环境初始化 -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - -//import private key -//引入私钥 -var privateKey = WiccApi.PrivateKey.fromWIF('Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb') -var publicKey = privateKey.toPublicKey(); +var publicKey = wallet.publicKeyAsHex(); /* Build a transaction for register account @@ -27,15 +21,15 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var registeraccounttxInfo = { - nTxType: 2, //REGISTER_ACCOUNT_TX + nTxType: 2, //ACCOUNT_REGISTER_TX nVersion: 1, nValidHeight: 34632, fees: 10000, pubkey: publicKey.toString(), minerPubkey: '' }; - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.REGISTER_ACCOUNT_TX, registeraccounttxInfo) +var transaction = new WaykiTransaction(registeraccounttxInfo.nTxType, registeraccounttxInfo, wallet) +var rawtx = transaction.genRawTx() console.log("genregisteraccountraw rawtx=") console.log(rawtx) console.error('\n=====RUN-TEST-REGISTERACCOUNTTX-END=====\n') \ No newline at end of file diff --git a/src/Wallet.js b/src/Wallet.js index 3847565..0a3bab4 100644 --- a/src/Wallet.js +++ b/src/Wallet.js @@ -1,18 +1,19 @@ var PrivateKey = require('../src/lib/privatekey'); var Hash = require('./lib/crypto/hash'); var ECDSA = require('./lib/crypto/ecdsa'); +var _ = require('lodash'); class Wallet { constructor(privateKey = "") { - if (!privateKey.length) { + if (!_.trim(privateKey).length) { throw "private key is required" } this.privateKey = privateKey; this._getAddress() } _getAddress() { - var priKey = PrivateKey.fromWIF(this.privateKey) - this.address = priKey.toAddress().toString() + var privKey = PrivateKey.fromWIF(this.privateKey) + this.address = privKey.toAddress().toString() } signMessage(message) { var privateKey = PrivateKey.fromWIF(this.privateKey) diff --git a/src/WaykiTransaction.js b/src/WaykiTransaction.js index be8f808..7e57fe5 100644 --- a/src/WaykiTransaction.js +++ b/src/WaykiTransaction.js @@ -1,5 +1,30 @@ +var WiccApi = require("../src/lib/wiccapi") +var PrivateKey = require('../src/lib/privatekey'); + class WaykiTransaction { - constructor(txParams, wallet) { - + constructor(txType, txParams, wallet) { + this.txType = txType + this.txParams = txParams + this.wallet = wallet } -} \ No newline at end of file + + _getNetwork () { + let network + if (this.wallet.address[0] === 'w') { + network = 'testnet' + } else if (this.wallet.address[0] === 'W') { + network = 'mainnet' + } + return network + } + + genRawTx () { + var privKey = PrivateKey.fromWIF(this.wallet.privateKey) + let network = this._getNetwork() + let wiccApi = new WiccApi({network: network}) + return wiccApi.createSignTransaction(privKey, this.txType, this.txParams) + } + decodeTxRaw(rawTx) {} +} + +module.exports = WaykiTransaction \ No newline at end of file diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 63a34cd..8c8d90c 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -15,7 +15,7 @@ var CustomBuffer = require('./util/buffer') var txMap = { 2: { - txName: 'REGISTER_ACCOUNT_TX', + txName: 'ACCOUNT_REGISTER_TX', txAction: require('./transaction/registeraccounttx') }, 3: { From 505c12adb2854e4966cc54510899605628e572a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 9 Dec 2019 12:02:41 +0800 Subject: [PATCH 08/33] update --- src/lib/wiccapi.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 8c8d90c..eece2de 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -117,6 +117,10 @@ WiccApi._fromObject = function _fromObject(data) { return info; }; +WiccApi.prototype.getBIP44Path = function () { + return this.network === "testnet" ? "m/44'/999999'/0'/0/0" : "m/44'/99999'/0'/0/0" +} + WiccApi.prototype.createAllCoinMnemonicCode = function (language) { var code = new Mnemonic(Mnemonic.Words[language]) var strCode = code.toString() @@ -135,14 +139,14 @@ WiccApi.prototype.validateAddress = function (address) { WiccApi.prototype.getPriKeyFromMnemonicCode = function (mnemonic) { var code = new Mnemonic(mnemonic) var xpriv = code.toHDPrivateKey(null, this.network); - var p = xpriv.deriveChild("m/44'/99999'/0'/0/0"); + var p = xpriv.deriveChild(this.getBIP44Path()); return p.privateKey.toWIF() } WiccApi.prototype.getAddressFromMnemonicCode = function (mnemonic) { var code = new Mnemonic(mnemonic) var xpriv = code.toHDPrivateKey(null, this.network); - var p = xpriv.deriveChild("m/44'/99999'/0'/0/0"); + var p = xpriv.deriveChild(this.getBIP44Path()); return p.privateKey.toAddress() } @@ -158,7 +162,7 @@ WiccApi.prototype.createWallet = function (mnemonic, password) { var seed = code.toSeed() var xpriv = code.toHDPrivateKey(null, this.network); - var p = xpriv.deriveChild("m/44'/99999'/0'/0/0"); + var p = xpriv.deriveChild(this.getBIP44Path()); var address = p.privateKey.toAddress() var strAddress = address.toString() @@ -240,7 +244,7 @@ WiccApi.prototype.getPriKeyFromSeed = function (seedinfo, password) { */ var xpriv = HDPrivateKey.fromSeed(seed, this.network); - var p = xpriv.deriveChild("m/44'/99999'/0'/0/0"); + var p = xpriv.deriveChild(this.getBIP44Path()); return p.privateKey.toWIF() } From ba3eaf7350b7ca2e03bcb82be89a4707b7e6e3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 9 Dec 2019 14:47:10 +0800 Subject: [PATCH 09/33] update --- demo/test-commontx.js | 45 +++++--------- demo/test-registeraccounttx.js | 21 +++---- src/WaykiTransaction.js | 11 ++-- src/lib/wiccapi.js | 6 +- src/transactionParams.js | 103 +++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+), 49 deletions(-) create mode 100644 src/transactionParams.js diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 775d445..3cf0569 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -1,16 +1,9 @@ 'use strict' console.error('\n=====RUN-TEST-COMMONTX-START=====\n') // const express = require("express"); -var WiccApi = require('../index'); - -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') - -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) +var WaykiTransaction = require('../src/WaykiTransaction') +var Wallet = require('../src/Wallet'); +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for common transfer @@ -23,26 +16,20 @@ note: 构建普通转账交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +2、fees:发布合约时的手续费, >= 10000000 sawi(0.1 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var commonTxinfo = { - nTxType: 3, - nVersion: 1, - nValidHeight: 34550, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - fees: 10000, - srcRegId: '0-1', - destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', - value:1100000000000, - memo:"test transfer", - network: 'testnet' - }; - - var value = 10000000000 - var tmp = (value >>> 7) - + nTxType: 3, + nValidHeight: 34550, + fees: 10000000, + srcRegId: '0-1', + destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', + amount: 1100000000000, + memo: "test transfer" +}; - var commonTx = wiccApi.createSignTransaction(privateKey, WiccApi.COMMON_TX, commonTxinfo) - console.log("----commonTx----", commonTx) - console.error('\n=====RUN-TEST-COMMONTX-END=====\n') +var transaction = new WaykiTransaction(commonTxinfo, wallet) +var commonTx = transaction.genRawTx() +console.log("----commonTx----", commonTx) +console.error('\n=====RUN-TEST-COMMONTX-END=====\n') diff --git a/demo/test-registeraccounttx.js b/demo/test-registeraccounttx.js index 41ad0b2..841fcf3 100644 --- a/demo/test-registeraccounttx.js +++ b/demo/test-registeraccounttx.js @@ -4,31 +4,28 @@ var WaykiTransaction = require('../src/WaykiTransaction') var Wallet = require('../src/Wallet'); var wallet = new Wallet("Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb") -var publicKey = wallet.publicKeyAsHex(); - /* Build a transaction for register account note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when registering a account, >= 100000000 sawi (0.1 wicc) +2, fees: handling fee when registering a account, >= 10000000 sawi (0.1 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建注册地址的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:注册账户交易时的手续费, >= 10000 sawi(0.0001 wicc) +2、fees:注册账户交易时的手续费, >= 10000000 sawi(0.1 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ + var registeraccounttxInfo = { - nTxType: 2, //ACCOUNT_REGISTER_TX - nVersion: 1, - nValidHeight: 34632, - fees: 10000, - pubkey: publicKey.toString(), - minerPubkey: '' - }; -var transaction = new WaykiTransaction(registeraccounttxInfo.nTxType, registeraccounttxInfo, wallet) + nTxType: 2, + nValidHeight: 34632, + fees: 10000000 +}; + +var transaction = new WaykiTransaction(registeraccounttxInfo, wallet) var rawtx = transaction.genRawTx() console.log("genregisteraccountraw rawtx=") console.log(rawtx) diff --git a/src/WaykiTransaction.js b/src/WaykiTransaction.js index 7e57fe5..47d67b6 100644 --- a/src/WaykiTransaction.js +++ b/src/WaykiTransaction.js @@ -1,9 +1,9 @@ var WiccApi = require("../src/lib/wiccapi") var PrivateKey = require('../src/lib/privatekey'); +var transactionParams = require("./transactionParams") class WaykiTransaction { - constructor(txType, txParams, wallet) { - this.txType = txType + constructor(txParams, wallet) { this.txParams = txParams this.wallet = wallet } @@ -20,9 +20,10 @@ class WaykiTransaction { genRawTx () { var privKey = PrivateKey.fromWIF(this.wallet.privateKey) - let network = this._getNetwork() - let wiccApi = new WiccApi({network: network}) - return wiccApi.createSignTransaction(privKey, this.txType, this.txParams) + let params = transactionParams(this.txParams, this.wallet) + console.log(params) + let wiccApi = new WiccApi({network: this._getNetwork()}) + return wiccApi.createSignTransaction(privKey, params) } decodeTxRaw(rawTx) {} } diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index eece2de..2d9272d 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -19,7 +19,7 @@ var txMap = { txAction: require('./transaction/registeraccounttx') }, 3: { - txName: 'COMMON_TX', + txName: 'BCOIN_TRANSFER_TX', txAction: require('./transaction/commontx') }, 4: { @@ -338,8 +338,8 @@ WiccApi.prototype.changePassword = function (seedinfo, oldpassword, newpassword) return newseedinfo } -WiccApi.prototype.createSignTransaction = function (privkey, txType, txData) { - var txConstructor = txMap[txType].txAction +WiccApi.prototype.createSignTransaction = function (privkey, txData) { + var txConstructor = txMap[txData.nTxType].txAction var txBody = new txConstructor(txData) return txBody.SerializeTx(privkey) } diff --git a/src/transactionParams.js b/src/transactionParams.js new file mode 100644 index 0000000..ab3f627 --- /dev/null +++ b/src/transactionParams.js @@ -0,0 +1,103 @@ +var PrivateKey = require('../src/lib/privatekey'); + +var transactionParams = function (arg, wallet) { + let txParams = {} + txParams.nVersion = 1 + txParams.nTxType = arg.nTxType + + var txParamsHandlerMap = { + 2: { + name: 'ACCOUNT_REGISTER_TX', + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.pubkey = pubkey + txParams.minerPubkey = "" + txParams = Object.assign(txParams, arg) + } + }, + 3: { + name: 'BCOIN_TRANSFER_TX', + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.destAddr = arg.destAddr + txParams.value = arg.amount + txParams.memo = arg.memo + txParams.pubkey = pubkey + } + }, + 4: { + name: 'CONTRACT_TX', + handler: () => { } + }, + 5: { + name: 'REG_APP_TX', + handler: () => { } + }, + 6: { + name: 'DELEGATE_TX', + handler: () => { } + }, + 8: { + name: 'FCOIN_STAKE_TX', + handler: () => { } + }, + 9: { + name: 'ASSET_ISUUE', + handler: () => { } + }, + 10: { + name: 'ASSET_UPDATE', + handler: () => { } + }, + + 11: { + name: 'UCOIN_TRANSFER_TX', + handler: () => { } + }, + 15: { + name: 'UCOIN_CONTRACT_INVOKE_TX', + handler: () => { } + }, + 21: { + name: 'CDP_STAKE_TX', + handler: () => { } + }, + 22: { + name: 'CDP_REDEEMP_TX', + handler: () => { } + }, + 23: { + name: 'CDP_LIQUIDATE_TX', + handler: () => { } + }, + 84: { + name: 'DEX_BUY_LIMIT_ORDER_TX', + handler: () => { } + }, + 85: { + name: 'DEX_SELL_LIMIT_ORDER_TX', + handler: () => { } + }, + 86: { + name: 'DEX_BUY_MARKET_ORDER_TX', + handler: () => { } + }, + 87: { + name: 'DEX_SELL_MARKET_ORDER_TX', + handler: () => { } + }, + 88: { + name: 'DEX_CANCEL_ORDER_TX', + handler: () => { } + } + } + + txParamsHandlerMap[txParams.nTxType].handler() + + return txParams +} + +module.exports = transactionParams \ No newline at end of file From c90392c46fd7754a5bdd4a2919bb33098dd2d294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 9 Dec 2019 21:04:20 +0800 Subject: [PATCH 10/33] update --- demo/test-assetcreatetx.js | 30 +-- demo/test-assetupdatetx.js | 45 +--- demo/test-callcontracttx.js | 29 +-- demo/test-cdpliquidatetx.js | 23 +- demo/test-cdpredeemtx.js | 27 +-- demo/test-cdpstaketx.js | 48 ++--- demo/test-commontx.js | 3 +- demo/test-delegatetx.js | 43 +--- demo/test-dexbuylimitordertx.js | 24 +-- demo/test-dexbuymarketordertx.js | 23 +- ...celordertx.js => test-dexcancelordertx.js} | 20 +- demo/test-dexselllimitordertx.js | 25 +-- demo/test-dexsellmarketordertx.js | 24 +-- demo/test-messagevertify.js | 4 +- demo/test-registeraccounttx.js | 5 +- demo/test-registercontracttx.js | 36 +--- demo/test-ucointransfertx.js | 25 +-- demo/test-ucontractinvoketx.js | 32 +-- demo/test-wallet.js | 13 ++ demo/test-walletmanager.js | 19 ++ index.js | 11 +- src/WaykiTransaction.js | 1 - src/lib/transaction/cfcoinstaketx.js | 172 --------------- src/lib/util/writerhelper.js | 8 +- src/lib/wiccapi.js | 14 +- src/transactionParams.js | 200 +++++++++++++++--- webpack.config.js | 2 +- 27 files changed, 378 insertions(+), 528 deletions(-) rename demo/{test-cancelordertx.js => test-dexcancelordertx.js} (68%) delete mode 100644 src/lib/transaction/cfcoinstaketx.js diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index 47dfcdc..964e578 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -34,12 +34,8 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 9、feesCoinSymbol: 小费类型(WICC/WUSD) */ -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var arg = { - network: 'testnet' -} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") var assetData = { assetSymbol: "STOKENN", //asset Symbol Capital letter A-Z 6-7 digits [A_Z] @@ -49,30 +45,18 @@ var assetData = { minTable: false //Whether to increase the number } - //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result var assetCreateInfo = { - nTxType: WiccApi.ASSET_ISUUE, - nVersion: 1, + nTxType: 9, nValidHeight: 8720, // create height srcRegId: "8267-2", // sender's regId - assetData: assetData, - feesCoinSymbol: WriterHelper.prototype.CoinType.WICC, + asset: assetData, + feeSymbol: "WICC", fees: 10000000, // fees pay for miner min 0.01 wicc +550wicc }; -var wiccPrivateKey = 'Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.ASSET_ISUUE, assetCreateInfo) +var transaction = new WaykiTransaction(assetCreateInfo, wallet) +var rawtx = transaction.genRawTx() console.log("asset create tx raw: ") console.log(rawtx) console.error('\n=====RUN-TEST-ASSETCREATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-assetupdatetx.js b/demo/test-assetupdatetx.js index 01e80e8..89c53d9 100644 --- a/demo/test-assetupdatetx.js +++ b/demo/test-assetupdatetx.js @@ -29,57 +29,28 @@ note: 6、updateType:更新类型 1:资产拥有者 2:资产名称 3.资产数量 */ -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var arg = { - network: 'testnet' -} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H") //update asset owner regid var assetUpdateData = { - updateType: WriterHelper.prototype.UpdateAssetType.OWNER_UID, + updateType: 1, updateValue: "0-1", //owner address } -//update asset name -// var assetUpdateData = { -// updateType:WriterHelper.prototype.UpdateAssetType.NAME, -// updateValue:"TokenName", //asset name -// } - -//update asset token number -// var assetUpdateData = { -// updateType: WriterHelper.prototype.UpdateAssetType.MINT_AMOUNT, -// updateValue: 11000000000000000, //Increase the number of asset -// } - - //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result var assetUpdateInfo = { - nTxType: WiccApi.ASSET_UPDATE, - nVersion: 1, + nTxType: 10, nValidHeight: 28128, // create height srcRegId: "0-1", // sender's regId - assetUpdateData: assetUpdateData, - feesCoinSymbol: WriterHelper.prototype.CoinType.WICC, - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + updateData: assetUpdateData, + feeSymbol: WriterHelper.prototype.CoinType.WICC, assetSymbol: "LOLLLL", //Symbol Capital letter A-Z 6-7 digits [A_Z] fees: 11000000000, // fees pay for miner min 0.01 wicc +110wicc }; -var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.ASSET_UPDATE, assetUpdateInfo) +var transaction = new WaykiTransaction(assetUpdateInfo, wallet) +var rawtx = transaction.genRawTx() console.log("asset update tx raw: ") console.log(rawtx) console.error('\n=====RUN-TEST-ASSETUPDATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-callcontracttx.js b/demo/test-callcontracttx.js index b4bd739..da70f50 100644 --- a/demo/test-callcontracttx.js +++ b/demo/test-callcontracttx.js @@ -1,11 +1,8 @@ 'use strict'; console.error('\n=====RUN-TEST-CALLCONTACTTX-START=====\n') -// usage: node test-contracttx.js -var WiccApi = require('../index'); - -var arg = { network: 'testnet' } -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ") /* Build a transaction for calling smart contract @@ -22,29 +19,17 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var regAppInfo = { - nTxType: WiccApi.CONTRACT_TX, - nVersion: 1, + nTxType: 4, nValidHeight: 34400, // create height - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", srcRegId: '', // sender's regId - destRegId: "24555-1", // app regId + appId: "24555-1", // app regId fees: 1000000, // fees pay for miner - value: 8, // amount of WICC to be sent to the app account + amount: 8, // amount of WICC to be sent to the app account vContract: "f018" // contract method, hex format string }; -var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.CONTRACT_TX, regAppInfo) +var transaction = new WaykiTransaction(regAppInfo, wallet) +var rawtx = transaction.genRawTx() console.log("contract tx raw: ") console.log(rawtx) console.error('\n=====RUN-TEST-CALLCONTRACTTX-END=====\n') \ No newline at end of file diff --git a/demo/test-cdpliquidatetx.js b/demo/test-cdpliquidatetx.js index 299b947..19fffee 100644 --- a/demo/test-cdpliquidatetx.js +++ b/demo/test-cdpliquidatetx.js @@ -1,11 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-CDPLIQUIDATETX-START=====\n') // const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = { network: 'testnet' } -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for cdp liquidate transaction @@ -32,21 +29,19 @@ note: 8、assetSymbol:赎回币种类型 */ var cdpliquidateTxinfo = { - nTxType: WiccApi.CDP_LIQUIDATE_TX, - nVersion: 1, + nTxType: 23, nValidHeight: 501, - txUid: "", + srcRegId: "", fees: 100000, - fee_symbol: WriterHelper.prototype.CoinType.WICC, + feeSymbol: "WICC", cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - scoinsToLiquidate: 2000000000000, - assetSymbol: WriterHelper.prototype.CoinType.WICC, - network: 'testnet' + sCoinsToLiquidate: 2000000000000, + liquidateAssetSymbol: "WICC" }; -var cdpliquidateTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_LIQUIDATE_TX, cdpliquidateTxinfo) +var transaction = new WaykiTransaction(cdpliquidateTxinfo, wallet) +var cdpliquidateTx = transaction.genRawTx() console.log("-----cdpliquidateTx-----", cdpliquidateTx) console.error('\n=====RUN-TEST-CDPLIQUIDATETX-END=====\n') \ No newline at end of file diff --git a/demo/test-cdpredeemtx.js b/demo/test-cdpredeemtx.js index 2a449cd..d1ac932 100644 --- a/demo/test-cdpredeemtx.js +++ b/demo/test-cdpredeemtx.js @@ -1,12 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-CDPREDEEMTX-START=====\n') -// const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = { network: 'testnet' } -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for cdp redeem note: @@ -30,25 +26,22 @@ note: 7、assetSymbol: 赎回币种类型 8、fee_symbol:小费类型(WICC/WUSD) */ -var assetSymbol = WriterHelper.prototype.CoinType.WICC +var assetSymbol = "WICC" var assetAmount = 100000000 var map = new Map([[assetSymbol, assetAmount]]) var cdpRedeemTxinfo = { - nTxType: WiccApi.CDP_REDEEMP_TX, - nVersion: 1, + nTxType: 22, nValidHeight: 78, - txUid: "", + srcRegId: "", fees: 100000, cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", - publicKey: "03af0341d7470d6e02687bec8920dbfba83544571a71f1cd6ef487c7fd88768c01", - fee_symbol: WriterHelper.prototype.CoinType.WICC, - scoins_to_repay: 0, - assetMap: map, - network: 'testnet' + feeSymbol: "WICC", + sCoinsToRepay: 0, + assetMap: map }; - -var cdpRedeemTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_REDEEMP_TX, cdpRedeemTxinfo) +var transaction = new WaykiTransaction(cdpRedeemTxinfo, wallet) +var cdpRedeemTx = transaction.genRawTx() console.log('----cdpRedeemTx----', cdpRedeemTx) diff --git a/demo/test-cdpstaketx.js b/demo/test-cdpstaketx.js index faaec49..32a37fd 100644 --- a/demo/test-cdpstaketx.js +++ b/demo/test-cdpstaketx.js @@ -1,16 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-CDPSTAKETX-START=====\n') -// const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - -// 验证地址 -var ret = wiccApi.validateAddress('wPcHigM3Gbtbooxyd3YyBXiMintZnfD7cE') -console.log(ret) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for cdp stake transaction @@ -37,27 +29,25 @@ note: 8、assetAmount:抵押币种 9、coin_symbol:获得币种 */ -var assetSymbol=WriterHelper.prototype.CoinType.WICC -var assetAmount=100000000 -var map=new Map([[assetSymbol,assetAmount]]) +var assetSymbol = "WICC" +var assetAmount = 100000000 +var map = new Map([[assetSymbol, assetAmount]]) var cdpStakeTxinfo = { - nTxType: WiccApi.CDP_STAKE_TX, - nVersion: 1, - nValidHeight: 25, - txUid:"0-1", - fees: 100000, - fee_symbol:WriterHelper.prototype.CoinType.WICC, - cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - assetMap:map, - scoin_symbol:WriterHelper.prototype.CoinType.WUSD, - scoinsToMint: 0, - network: 'testnet' - }; + nTxType: 21, + nValidHeight: 25, + srcRegId: "0-1", + fees: 100000, + feeSymbol: "WICC", + cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", + assetMap: map, + sCoinSymbol: "WUSD", + sCoinToMint: 0 +}; - var cdpStakeTx = wiccApi.createSignTransaction(privateKey, WiccApi.CDP_STAKE_TX, cdpStakeTxinfo) +var transaction = new WaykiTransaction(cdpStakeTxinfo, wallet) +var cdpStakeTx = transaction.genRawTx() - console.log("----cdpStakeTx----", cdpStakeTx) +console.log("----cdpStakeTx----", cdpStakeTx) - console.error('\n=====RUN-TEST-CDPSTAKETX-END=====\n') \ No newline at end of file +console.error('\n=====RUN-TEST-CDPSTAKETX-END=====\n') \ No newline at end of file diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 3cf0569..1e12e84 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -1,8 +1,7 @@ 'use strict' console.error('\n=====RUN-TEST-COMMONTX-START=====\n') // const express = require("express"); -var WaykiTransaction = require('../src/WaykiTransaction') -var Wallet = require('../src/Wallet'); +var { WaykiTransaction, Wallet } = require("../index") var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* diff --git a/demo/test-delegatetx.js b/demo/test-delegatetx.js index e5649e9..d6efe0b 100644 --- a/demo/test-delegatetx.js +++ b/demo/test-delegatetx.js @@ -1,53 +1,32 @@ 'use strict'; console.error('\n=====RUN-TEST-DELEGATE-START=====\n') -// usage: node test-contracttx.js - -var WiccApi = require('../index'); - -var arg = { - network: 'testnet' -} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H") /* publicKey can get from "getaccountinfo" cmd if the account have registered */ var delegateData = [ // array, item is object data of delegate { - // address: 'waFdYrQfDSsh1jVsDzPiutAPUKCHZJ4Wyp' - // publicKey: Buffer.from("02e5ee9bd73c561fc9844fc3065c87d297f6ba52f64f409346a4bb5035f2de25ab", 'hex'), - publicKey: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", - votes: 201 + srcRegId: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", + voteValue: 201 },{ - // address: 'wQsRcb6VcSr9DnpaLiWwrSA6YPuaUMbbYw' - publicKey: "02dc40112e2e12106c749c5bee34b4037b2dff4cd300ee5a57948961a6c9441e27", - votes: 202 + srcRegId: "02dc40112e2e12106c749c5bee34b4037b2dff4cd300ee5a57948961a6c9441e27", + voteValue: 202 } ] //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result var delegateInfo = { - nTxType: WiccApi.DELEGATE_TX, - nVersion: 1, + nTxType: 6, nValidHeight: 28128, // create height - srcRegId: "", // sender's regId - delegateData: delegateData, - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + userId: "", // sender's regId + voteLists: delegateData, fees: 1001, // fees pay for miner }; -var wiccPrivateKey = 'YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H' -console.log("wicc private key:") -console.log(wiccPrivateKey) - -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.DELEGATE_TX, delegateInfo) +var transaction = new WaykiTransaction(delegateInfo, wallet) +var rawtx = transaction.genRawTx() console.log("contract tx raw: ") console.log(rawtx) diff --git a/demo/test-dexbuylimitordertx.js b/demo/test-dexbuylimitordertx.js index 607b63e..38085f9 100644 --- a/demo/test-dexbuylimitordertx.js +++ b/demo/test-dexbuylimitordertx.js @@ -1,12 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-DEXBUYLIMITORDERTX-START=====\n') -// const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for dex buy limit transfer note: @@ -30,21 +26,19 @@ note: 7、bidPrice:价格 */ var dexBuyLimitTxinfo = { - nTxType: WiccApi.DEX_BUY_LIMIT_ORDER_TX, - nVersion: 1, + nTxType: 84, nValidHeight: 5360, fees: 10000, srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, + feeSymbol: "WICC", + coinSymbol: "WUSD", + assetSymbol:"WICC", assetAmount:10, - bidPrice:200, - network: 'testnet' + price:200 }; - var dexBuyLimitOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_BUY_LIMIT_ORDER_TX, dexBuyLimitTxinfo) + var transaction = new WaykiTransaction(dexBuyLimitTxinfo, wallet) + var dexBuyLimitOrderTx = transaction.genRawTx() console.log("----dexBuyLimitOrderTx----", dexBuyLimitOrderTx) console.error('\n=====RUN-TEST-DEXBUYLIMITORDERTX-END=====\n') diff --git a/demo/test-dexbuymarketordertx.js b/demo/test-dexbuymarketordertx.js index 1165dd8..2bbf072 100644 --- a/demo/test-dexbuymarketordertx.js +++ b/demo/test-dexbuymarketordertx.js @@ -1,12 +1,9 @@ 'use strict' console.error('\n=====RUN-TEST-DEXBUYMARKETORDERTX-START=====\n') // const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for market buy transfer note: @@ -28,20 +25,18 @@ note: 6、coinAmount:资产金额 */ var dexBuyMarketTxinfo = { - nTxType: WiccApi.DEX_BUY_MARKET_ORDER_TX, - nVersion: 1, + nTxType: 86, nValidHeight: 5360, fees: 10000, srcRegId: '', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - coinAmount:200, - network: 'testnet' + feeSymbol: "WICC", + coinSymbol: "WUSD", + assetSymbol:"WICC", + assetAmount:200 }; - var dexBuyMarketOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_BUY_MARKET_ORDER_TX, dexBuyMarketTxinfo) + var transaction = new WaykiTransaction(dexBuyMarketTxinfo, wallet) + var dexBuyMarketOrderTx = transaction.genRawTx() console.log("----dexBuyMarketOrderTx----", dexBuyMarketOrderTx) console.error('\n=====RUN-TEST-DEXBUYMARKETORDERTX-END=====\n') diff --git a/demo/test-cancelordertx.js b/demo/test-dexcancelordertx.js similarity index 68% rename from demo/test-cancelordertx.js rename to demo/test-dexcancelordertx.js index 67be92f..2b6c4ae 100644 --- a/demo/test-cancelordertx.js +++ b/demo/test-dexcancelordertx.js @@ -1,10 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-CANCELORDER-START=====\n') -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = { network: 'testnet' } -var wiccApi = new WiccApi(arg) + +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for cancel order transfer note: @@ -24,18 +22,16 @@ note: 5, fee_symbol: 小费类型(WICC/WUSD) */ var dexCancelTxinfo = { - nTxType: WiccApi.DEX_CANCEL_ORDER_TX, - nVersion: 1, + nTxType: 88, nValidHeight: 5360, fees: 10000, - feeSymbol: WriterHelper.prototype.CoinType.WICC, + feeSymbol: "WICC", srcRegId: '', - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - orderId: '009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144', - network: 'testnet' + orderId: '009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144' }; -var dexCancelOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_CANCEL_ORDER_TX, dexCancelTxinfo); +var transaction = new WaykiTransaction(dexCancelTxinfo, wallet) +var dexCancelOrderTx = transaction.genRawTx() console.log("----dexCancelOrderTx----", dexCancelOrderTx) console.error('\n=====RUN-TEST-CANCELORDERTX-END=====\n') diff --git a/demo/test-dexselllimitordertx.js b/demo/test-dexselllimitordertx.js index 26366fd..53db7a2 100644 --- a/demo/test-dexselllimitordertx.js +++ b/demo/test-dexselllimitordertx.js @@ -1,10 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-DEXSELLLIMITORDERTX-START=====\n') -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) + +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for sell limit transfer @@ -21,21 +19,18 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var dexSellLimitTxinfo = { - nTxType: WiccApi.DEX_SELL_LIMIT_ORDER_TX, - nVersion: 1, + nTxType: 85, nValidHeight: 602371, fees: 10000, srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, + feeSymbol: "WICC", + coinSymbol: "WUSD", + assetSymbol:"WICC", assetAmount:30000000000, - askPrice:200000000, - network: 'testnet' + price:200000000 }; - - var dexSellLimitOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_SELL_LIMIT_ORDER_TX, dexSellLimitTxinfo) + var transaction = new WaykiTransaction(dexSellLimitTxinfo, wallet) + var dexSellLimitOrderTx = transaction.genRawTx() console.log("----dexSellLimitOrderTx----", dexSellLimitOrderTx) console.error('\n=====RUN-TEST-DEXSELLLIMITORDERTX-END=====\n') diff --git a/demo/test-dexsellmarketordertx.js b/demo/test-dexsellmarketordertx.js index 96eb622..04eb0d9 100644 --- a/demo/test-dexsellmarketordertx.js +++ b/demo/test-dexsellmarketordertx.js @@ -1,12 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-DEXSELLMARKETORDERTX-START=====\n') -// const express = require("express"); -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") /* Build a transaction for sell limit transfer note: @@ -22,19 +18,17 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var dexSellMarketTxinfo = { - nTxType: WiccApi.DEX_SELL_MARKET_ORDER_TX, - nVersion: 1, + nTxType: 87, nValidHeight: 602371, fees: 10000, srcRegId: '0-1', - publicKey:"03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", - feeSymbol: WriterHelper.prototype.CoinType.WICC, - coinSymbol: WriterHelper.prototype.CoinType.WUSD, - assetSymbol:WriterHelper.prototype.CoinType.WICC, - assetAmount:30000000000, - network: 'testnet' + feeSymbol: "WICC", + coinSymbol: "WUSD", + assetSymbol:"WICC", + assetAmount:30000000000 }; - var dexSellMarketOrderTx = wiccApi.createSignTransaction(privateKey, WiccApi.DEX_SELL_MARKET_ORDER_TX, dexSellMarketTxinfo) + var transaction = new WaykiTransaction(dexSellMarketTxinfo, wallet) + var dexSellMarketOrderTx = transaction.genRawTx() console.log("----dexSellMarketOrderTx----", dexSellMarketOrderTx) console.error('\n=====RUN-TEST-DEXSELLMARKETORDERTX-END=====\n') diff --git a/demo/test-messagevertify.js b/demo/test-messagevertify.js index 69c36ff..1c597c9 100644 --- a/demo/test-messagevertify.js +++ b/demo/test-messagevertify.js @@ -1,11 +1,11 @@ 'use strict'; console.error('\n=====RUN-TEST-MESSAGEVERTIFY-START=====\n') -var WiccApi = require('../index'); +var { Wallet } = require("../index") var Hash = require('../src/lib/crypto/hash'); var ECDSA = require('../src/lib/crypto/ecdsa'); var msg = "WaykiChain" -var wallet = new WiccApi.Wallet("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") +var wallet = new Wallet("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") var signMsg = wallet.signMessage(msg) console.log("签名消息"+signMsg) console.log(wallet) diff --git a/demo/test-registeraccounttx.js b/demo/test-registeraccounttx.js index 841fcf3..6ae5caf 100644 --- a/demo/test-registeraccounttx.js +++ b/demo/test-registeraccounttx.js @@ -1,7 +1,6 @@ 'use strict' console.error('\n=====RUN-TEST-REGISTERACCOUNTTX-START=====\n') -var WaykiTransaction = require('../src/WaykiTransaction') -var Wallet = require('../src/Wallet'); +var { WaykiTransaction, Wallet } = require("../index") var wallet = new Wallet("Y5Lrutj2nJmmCVJ9hmTmNyASJxUACu9b8djoobrHmoGye3uhXnrb") /* @@ -20,7 +19,7 @@ note: */ var registeraccounttxInfo = { - nTxType: 2, + nTxType: 2, nValidHeight: 34632, fees: 10000000 }; diff --git a/demo/test-registercontracttx.js b/demo/test-registercontracttx.js index 9d8d39f..d9bd197 100644 --- a/demo/test-registercontracttx.js +++ b/demo/test-registercontracttx.js @@ -1,15 +1,11 @@ 'use strict'; console.error('\n=====RUN-TEST-REGISTERCONTACTTX-START=====\n') -// usage: -// node test-registerapptx.js +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") var _ = require('lodash'); -var WiccApi = require('../index'); var fs = require("fs") -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) - var script = fs.readFileSync(__dirname + '/data/contract-hello.lua'); //console.log("load script file:") //console.log(script); @@ -34,27 +30,17 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var regAppInfo = { - nTxType: WiccApi.REG_APP_TX, - nVersion: 1, - nValidHeight: 110482, // create height - regAcctId: "0-1", // sender's regId - script: script, // contract scrypt content, string or buf - scriptDesc: "test contract", // contract scrypt description, string or buf - fees: 4200000000, // fees pay for miner - }; - -var wiccPrivateKey = 'Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13' -console.log("wicc private key:") -console.log(wiccPrivateKey) + nTxType: 5, + nValidHeight: 110482, // create height + srcRegId: "0-1", // sender's regId + vContract: script, // contract scrypt content, string or buf + description: "test contract", // contract scrypt description, string or buf + fees: 4200000000, // fees pay for miner +}; -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -//console.log("get private key:") -//console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.REG_APP_TX, regAppInfo) +var transaction = new WaykiTransaction(regAppInfo, wallet) +var rawtx = transaction.genRawTx() console.log("reg app tx raw: ") console.log(rawtx) console.error('\n=====RUN-TEST-REGISTERCONTACTTX-END=====\n') \ No newline at end of file diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js index 64dd98b..8cc8ac3 100644 --- a/demo/test-ucointransfertx.js +++ b/demo/test-ucointransfertx.js @@ -1,11 +1,8 @@ 'use strict' console.error('\n=====RUN-TEST-UCOINTRANSFERTX-START=====\n') -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var privateKey = WiccApi.PrivateKey.fromWIF('Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ') -var arg = {network: 'testnet'} -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ") /* Build a transaction for common transfer @@ -34,25 +31,23 @@ var coinType = WriterHelper.prototype.CoinType.WUSD var destAddr = 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65' var value = 32432 var destArr = [{ - "coinType":coinType, - "destAddr":destAddr, - "value":value + "coinSymbol":coinType, + "destAddress":destAddr, + "transferAmount":value } ] var cointransferTxinfo = { - nTxType: WiccApi.UCOIN_TRANSFER_TX, - nVersion: 1, + nTxType: 11, nValidHeight: 602371, fees: 10000, srcRegId: '', - destArr:destArr, - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", + dests: destArr, memo: "test transfer", - feesCoinType: WriterHelper.prototype.CoinType.WICC, - network: 'testnet' + feeSymbol: "WICC" }; -var cointransferTx = wiccApi.createSignTransaction(privateKey, WiccApi.UCOIN_TRANSFER_TX, cointransferTxinfo) +var transaction = new WaykiTransaction(cointransferTxinfo, wallet) +var cointransferTx = transaction.genRawTx() console.log("----cointransferTx----", cointransferTx) console.error('\n=====RUN-TEST-UCOINTRANSFERTX-END=====\n') diff --git a/demo/test-ucontractinvoketx.js b/demo/test-ucontractinvoketx.js index c60e4e5..c62b457 100644 --- a/demo/test-ucontractinvoketx.js +++ b/demo/test-ucontractinvoketx.js @@ -2,10 +2,8 @@ console.error('\n=====RUN-TEST-UCONTRACTINVOKETX-START=====\n') // usage: node test-contracttx.js -var WiccApi = require('../index'); -var WriterHelper = require('../src/lib/util/writerhelper') -var arg = { network: 'testnet' } -var wiccApi = new WiccApi(arg) +var { WaykiTransaction, Wallet } = require("../index") +var wallet = new Wallet("Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ") /* Build a transaction for calling smart contract @@ -22,31 +20,19 @@ note: 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var invokeAppInfo = { - nTxType: WiccApi.UCOIN_CONTRACT_INVOKE_TX, - nVersion: 1, + nTxType: 15, nValidHeight: 34400, // create height - publicKey: "03e93e7d870ce6f1c9997076c56fc24e6381c612662cd9a5a59294fac9ba7d21d7", srcRegId: '0-1', // sender's regId - destRegId: "24555-1", // app regId - feesCoinType: WriterHelper.prototype.CoinType.WICC, - coinType: WriterHelper.prototype.CoinType.WUSD, + appId: "24555-1", // app regId + feeSymbol: "WICC", + coinSymbol: "WUSD", fees: 1000000, // fees pay for miner - value: 8, // amount of WICC to be sent to the app account + amount: 8, // amount of WICC to be sent to the app account vContract: "f018" // contract method, hex format string }; -var wiccPrivateKey = 'Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ' -console.log("wicc wif private key:") -console.log(wiccPrivateKey) - -var privateKey = WiccApi.PrivateKey.fromWIF(wiccPrivateKey) -console.log("get private key:") -console.log(privateKey) -var address = privateKey.toAddress(); -console.log("get address:") -console.log(address.toString()) - -var rawtx = wiccApi.createSignTransaction(privateKey, WiccApi.UCOIN_CONTRACT_INVOKE_TX, invokeAppInfo) +var transaction = new WaykiTransaction(invokeAppInfo, wallet) +var rawtx = transaction.genRawTx() console.log("contract tx raw: ") console.log(rawtx) console.error('\n=====RUN-TEST-UCONTRACTINVOKETX-END=====\n') \ No newline at end of file diff --git a/demo/test-wallet.js b/demo/test-wallet.js index e69de29..b93f6c6 100644 --- a/demo/test-wallet.js +++ b/demo/test-wallet.js @@ -0,0 +1,13 @@ +var { Wallet } = require("../index") + +var privKey = "Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13" +var wallet = new Wallet(privKey) + +console.log(wallet) + +var msg = "WaykiChain" +var signMsg = wallet.signMessage(msg) +console.log("签名消息:"+signMsg) + +var pubKey = wallet.publicKeyAsHex() +console.log("公钥:"+pubKey) \ No newline at end of file diff --git a/demo/test-walletmanager.js b/demo/test-walletmanager.js index e69de29..24bc73e 100644 --- a/demo/test-walletmanager.js +++ b/demo/test-walletmanager.js @@ -0,0 +1,19 @@ +var { WalletManager } = require("../index") + +var walletManager = new WalletManager("testnet") + +//创建助记词 +var mnemonic = walletManager.randomMnemonicCodes("ENGLISH") +console.log("助记词:", mnemonic) + +//创建钱包 +var walletInfo = walletManager.createWallet(mnemonic) +console.log("助记词:", walletInfo) + +//导入助记词 +var wallet1 = walletManager.importWalletFromMnemonic('romance chunk tape soon bitter option wet space veteran matter embrace cactus') +console.log("wallet1:", wallet1) + +//导入私钥 +var wallet2 = walletManager.importWalletFromPrivateKey('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') +console.log("wallet2:", wallet2) \ No newline at end of file diff --git a/index.js b/index.js index dd03966..df849cb 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,15 @@ +var WiccWalletLib = Object.create(null) var WiccApi = require('./src/lib/wiccapi') var bitcore = require('./src') var Wallet = require("./src/Wallet") var WalletManager = require("./src/WalletManager") +var WaykiTransaction = require('./src/WaykiTransaction') WiccApi = Object.assign(WiccApi, bitcore) -WiccApi.Wallet = Wallet -WiccApi.WalletManager = WalletManager -module.exports = WiccApi \ No newline at end of file +WiccWalletLib.Wallet = Wallet +WiccWalletLib.WalletManager = WalletManager +WiccWalletLib.WaykiTransaction = WaykiTransaction +WiccWalletLib.WiccApi = WiccApi + +module.exports = WiccWalletLib \ No newline at end of file diff --git a/src/WaykiTransaction.js b/src/WaykiTransaction.js index 47d67b6..eb4a69d 100644 --- a/src/WaykiTransaction.js +++ b/src/WaykiTransaction.js @@ -21,7 +21,6 @@ class WaykiTransaction { genRawTx () { var privKey = PrivateKey.fromWIF(this.wallet.privateKey) let params = transactionParams(this.txParams, this.wallet) - console.log(params) let wiccApi = new WiccApi({network: this._getNetwork()}) return wiccApi.createSignTransaction(privKey, params) } diff --git a/src/lib/transaction/cfcoinstaketx.js b/src/lib/transaction/cfcoinstaketx.js deleted file mode 100644 index 922321d..0000000 --- a/src/lib/transaction/cfcoinstaketx.js +++ /dev/null @@ -1,172 +0,0 @@ -'use strict'; -//cdp创建 -var _ = require('lodash'); -var $ = require('../util/preconditions'); -var Util = require('../util/util') -var BN = require('../crypto/bn'); -var Hash = require('../crypto/hash'); -var ECDSA = require('../crypto/ecdsa'); -var Signature = require('../crypto/signature'); -var BufferWriter = require('../encoding/bufferwriter'); -var Address = require('../address') - -var CFcoinStakeTx = function CFcoinStakeTx(arg) { - if (!(this instanceof CFcoinStakeTx)) { - return new CFcoinStakeTx(arg); - } - var info = CFcoinStakeTx._from(arg); - this.nTxType = info.nTxType; - this.nVersion = info.nVersion; - this.nValidHeight = info.nValidHeight; - this.txUid = info.txUid; - this.fees = info.fees; - this.feeSymbol = info.feeSymbol; - this.stakeType = info.stakeType; - this.fcoinsToStake = info.fcoinsToStake; - this.publicKey=info.publicKey; - return this; - }; - - CFcoinStakeTx._from = function _from(arg) { - var info = {}; - if (_.isObject(arg)) { - info = CFcoinStakeTx._fromObject(arg); - } else { - throw new TypeError('Unrecognized argument for CommonTx'); - } - return info; - }; - - CFcoinStakeTx._fromObject = function _fromObject(data) { - $.checkArgument(data, 'data is required'); - - var info = { - nTxType: data.nTxType, - nVersion: data.nVersion, - nValidHeight: data.nValidHeight, - txUid: data.txUid, - feeSymbol:data.feeSymbol, - stakeType:data.stakeType, - fees: data.fees, - fcoinsToStake: data.fcoinsToStake, - publicKey:data.publicKey, - }; - return info; - }; - - CFcoinStakeTx.prototype._SignatureHash = function() { - var writer = new BufferWriter(); - writer.writeVarintNum(this.nVersion) - writer.writeVarintNum(this.nTxType) - var heightBuf = Util.writeVarInt(4, this.nValidHeight) - writer.write(heightBuf) - - if(this.txUid!=null&&!_.isEmpty(this.txUid)){ - var REGID = Util.splitRegID(this.txUid) - if(_.isNull(REGID.height) || _.isUndefined(REGID.height)) - return false - var regWriter = new BufferWriter() - var regHeightBuf = Util.writeVarInt(4, REGID.height) - regWriter.write(regHeightBuf) - var regIndexBuf = Util.writeVarInt(2, REGID.index) - regWriter.write(regIndexBuf) - - var regBuf = regWriter.toBuffer() - writer.writeUInt8(regBuf.length) - writer.write(regBuf) - }else if (this.publicKey!=null&&!_.isEmpty(this,this.publicKey)){ - var pubKey= Buffer.from(this.publicKey, 'hex') - writer.writeUInt8(pubKey.length) - writer.write(pubKey) - }else{ - return false; - } - - if(this.feeSymbol==null||_.isEmpty(this.feeSymbol)) return fasle; - writer.writeString(this.feeSymbol) - - var feesBuf = Util.writeVarInt(8, this.fees) - writer.write(feesBuf) - - var stakeTypeBuf = Util.writeVarInt(8, this.stakeType) - writer.write(stakeTypeBuf) - - if(! /^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake)) - return false; - var fcoinsToStake = Util.writeVarInt(8, this.fcoinsToStake) - writer.write(fcoinsToStake) - - var serialBuf = writer.toBuffer() - - //console.log(serialBuf.toString('hex')) - return Hash.sha256sha256(serialBuf); - } - - CFcoinStakeTx.prototype._Signtx = function(privateKey) { - var hashbuf = this._SignatureHash() - var sig = ECDSA.sign(hashbuf, privateKey, 'endian') - var sigBuf = sig.toBuffer() - - return sigBuf; - } - - CFcoinStakeTx.prototype.SerializeTx = function(privateKey) { - var writer = new BufferWriter(); - writer.writeVarintNum(this.nTxType) - writer.writeVarintNum(this.nVersion) - var heightBuf = Util.writeVarInt(4, this.nValidHeight) - writer.write(heightBuf) - - - if(this.txUid!=null&&!_.isEmpty(this.txUid)){ - var REGID = Util.splitRegID(this.txUid) - if(_.isNull(REGID.height) || _.isUndefined(REGID.height)) - return false - var regWriter = new BufferWriter() - var regHeightBuf = Util.writeVarInt(4, REGID.height) - regWriter.write(regHeightBuf) - var regIndexBuf = Util.writeVarInt(2, REGID.index) - regWriter.write(regIndexBuf) - - var regBuf = regWriter.toBuffer() - writer.writeUInt8(regBuf.length) - writer.write(regBuf) - }else if (this.publicKey!=null&&!_.isEmpty(this,this.publicKey)){ - var pubKey= Buffer.from(this.publicKey, 'hex') - writer.writeUInt8(pubKey.length) - writer.write(pubKey) - }else{ - return false; - } - - if(this.feeSymbol==null||_.isEmpty(this.feeSymbol)) return fasle; - writer.writeString(this.feeSymbol) - - if(! /^[1-9]*[1-9][0-9]*$/.test(this.fees)) - return false; - var feesBuf = Util.writeVarInt(8, this.fees) - writer.write(feesBuf) - - var stakeTypeBuf = Util.writeVarInt(8, this.stakeType) - writer.write(stakeTypeBuf) - - if(! /^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake)) - return false; - var fcoinsToStake = Util.writeVarInt(8, this.fcoinsToStake) - writer.write(fcoinsToStake) - - var sigBuf = this._Signtx(privateKey) - - var len = sigBuf.length - writer.writeVarintNum(len) - writer.write(sigBuf) - - - var hexBuf = writer.toBuffer() - var hex = hexBuf.toString('hex') - - return hex - } - - - module.exports = CFcoinStakeTx; \ No newline at end of file diff --git a/src/lib/util/writerhelper.js b/src/lib/util/writerhelper.js index 6ec59c0..00be203 100644 --- a/src/lib/util/writerhelper.js +++ b/src/lib/util/writerhelper.js @@ -103,12 +103,16 @@ WriterHelper.prototype.writeCdpAsset = function (map) { for (var i = 0; i < delegateData.length; i++) { var operType = this.VoteOperType.ADD_FUND; - if (delegateData.votes < 0) { + if (delegateData[0].votes < 0) { operType = this.VoteOperType.MINUS_FUND; } var votes_abs = Math.abs(delegateData[i].votes); this.writeUInt8(operType); - this.writeString(Buffer.from(delegateData[i].publicKey, 'hex')); + if (delegateData[i].publicKey.indexOf("-") > -1) { + this.writeRegId(delegateData[i].publicKey) + } else { + this.writeString(Buffer.from(delegateData[i].publicKey, 'hex')); + } this.writeVarInt(8, votes_abs) } } diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 2d9272d..2a83121 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -23,27 +23,23 @@ var txMap = { txAction: require('./transaction/commontx') }, 4: { - txName: 'CONTRACT_TX', + txName: 'LCONTRACT_INVOKE_TX', txAction: require('./transaction/contracttx') }, 5: { - txName: 'REG_APP_TX', + txName: 'LCONTRACT_DEPLOY_TX', txAction: require('./transaction/registerapptx') }, 6: { - txName: 'DELEGATE_TX', + txName: 'DELEGATE_VOTE_TX', txAction: require('./transaction/delegatetx') }, - 8: { - txName: 'FCOIN_STAKE_TX', - txAction: require('./transaction/cfcoinstaketx') - }, 9: { - txName: 'ASSET_ISUUE', + txName: 'ASSET_ISSUE_TX', txAction: require('./transaction/assetcreatetx') }, 10: { - txName: 'ASSET_UPDATE', + txName: 'ASSET_UPDATE_TX', txAction: require('./transaction/assetupdatetx') }, diff --git a/src/transactionParams.js b/src/transactionParams.js index ab3f627..05c7c90 100644 --- a/src/transactionParams.js +++ b/src/transactionParams.js @@ -17,7 +17,7 @@ var transactionParams = function (arg, wallet) { }, 3: { name: 'BCOIN_TRANSFER_TX', - handler: () => { + handler: () => { let pubkey = wallet.publicKeyAsHex().toString() txParams.nValidHeight = arg.nValidHeight txParams.fees = arg.fees @@ -29,69 +29,219 @@ var transactionParams = function (arg, wallet) { } }, 4: { - name: 'CONTRACT_TX', - handler: () => { } + name: 'LCONTRACT_INVOKE_TX', + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.nValidHeight = arg.nValidHeight + txParams.srcRegId = arg.srcRegId + txParams.destRegId = arg.appId + txParams.fees = arg.fees + txParams.value = arg.amount + txParams.vContract = arg.vContract + txParams.publicKey = pubkey + } }, 5: { - name: 'REG_APP_TX', - handler: () => { } + name: 'LCONTRACT_DEPLOY_TX', + handler: () => { + txParams.nValidHeight = arg.nValidHeight + txParams.regAcctId = arg.srcRegId + txParams.script = arg.vContract + txParams.scriptDesc = arg.description + txParams.fees = arg.fees + } }, 6: { - name: 'DELEGATE_TX', - handler: () => { } - }, - 8: { - name: 'FCOIN_STAKE_TX', - handler: () => { } + name: 'DELEGATE_VOTE_TX', + handler: () => { + let list = [] + let pubkey = wallet.publicKeyAsHex().toString() + txParams.nValidHeight = arg.nValidHeight + txParams.srcRegId = arg.userId + txParams.fees = arg.fees + txParams.publicKey = pubkey + arg.voteLists.map(item => { + list.push({ + publicKey: item.srcRegId, + votes: item.voteValue + }) + }) + txParams.delegateData = list.slice() + } }, 9: { - name: 'ASSET_ISUUE', - handler: () => { } + name: 'ASSET_ISSUE_TX', + handler: () => { + txParams.nValidHeight = arg.nValidHeight + txParams.srcRegId = arg.srcRegId + txParams.assetData = arg.asset + txParams.feesCoinSymbol = arg.feeSymbol + txParams.fees = arg.fees + } }, 10: { - name: 'ASSET_UPDATE', - handler: () => { } + name: 'ASSET_UPDATE_TX', + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.srcRegId = arg.srcRegId + txParams.assetUpdateData = arg.updateData + txParams.feesCoinSymbol = arg.feeSymbol + txParams.assetSymbol = arg.assetSymbol + txParams.fees = arg.fees + } }, 11: { name: 'UCOIN_TRANSFER_TX', - handler: () => { } + handler: () => { + let list = [] + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.memo = arg.memo + txParams.feesCoinType = arg.feeSymbol + arg.dests.map(item => { + list.push({ + coinType: item.coinSymbol, + destAddr: item.destAddress, + value: item.transferAmount + }) + }) + txParams.destArr = list.slice() + } }, 15: { name: 'UCOIN_CONTRACT_INVOKE_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.srcRegId = arg.srcRegId + txParams.destRegId = arg.appId + txParams.feesCoinType = arg.feeSymbol + txParams.coinType = arg.coinSymbol + txParams.fees = arg.fees + txParams.value = arg.amount + txParams.vContract = arg.vContract + } }, 21: { name: 'CDP_STAKE_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.txUid = arg.srcRegId + txParams.fees = arg.fees + txParams.fee_symbol = arg.feeSymbol + txParams.cdpTxId = arg.cdpTxId + txParams.assetMap = arg.assetMap + txParams.scoin_symbol = arg.sCoinSymbol + txParams.scoinsToMint = arg.sCoinToMint + } }, 22: { name: 'CDP_REDEEMP_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.txUid = arg.srcRegId + txParams.fees = arg.fees + txParams.cdpTxId = arg.cdpTxId + txParams.fee_symbol = arg.feeSymbol + txParams.scoins_to_repay = arg.sCoinsToRepay + txParams.assetMap = arg.assetMap + } }, 23: { name: 'CDP_LIQUIDATE_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.txUid = arg.srcRegId + txParams.fees = arg.fees + txParams.fee_symbol = arg.feeSymbol + txParams.cdpTxId = arg.cdpTxId + txParams.scoinsToLiquidate = arg.sCoinsToLiquidate + txParams.assetSymbol = arg.liquidateAssetSymbol + + } }, 84: { name: 'DEX_BUY_LIMIT_ORDER_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.feeSymbol = arg.feeSymbol + txParams.coinSymbol = arg.coinSymbol + txParams.assetSymbol = arg.assetSymbol + txParams.assetAmount = arg.assetAmount + txParams.bidPrice = arg.price + } }, 85: { name: 'DEX_SELL_LIMIT_ORDER_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.feeSymbol = arg.feeSymbol + txParams.coinSymbol = arg.coinSymbol + txParams.assetSymbol = arg.assetSymbol + txParams.assetAmount = arg.assetAmount + txParams.askPrice = arg.price + } }, 86: { name: 'DEX_BUY_MARKET_ORDER_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.feeSymbol = arg.feeSymbol + txParams.coinSymbol = arg.coinSymbol + txParams.assetSymbol = arg.assetSymbol + txParams.coinAmount = arg.assetAmount + } }, 87: { name: 'DEX_SELL_MARKET_ORDER_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.srcRegId = arg.srcRegId + txParams.feeSymbol = arg.feeSymbol + txParams.coinSymbol = arg.coinSymbol + txParams.assetSymbol = arg.assetSymbol + txParams.assetAmount = arg.assetAmount + } }, 88: { name: 'DEX_CANCEL_ORDER_TX', - handler: () => { } + handler: () => { + let pubkey = wallet.publicKeyAsHex().toString() + txParams.publicKey = pubkey + txParams.nValidHeight = arg.nValidHeight + txParams.fees = arg.fees + txParams.feeSymbol = arg.feeSymbol + txParams.srcRegId = arg.srcRegId + txParams.orderId = arg.orderId + } } } diff --git a/webpack.config.js b/webpack.config.js index 61a15ea..31a2eb2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,7 @@ module.exports = { output: { path: path.resolve(__dirname, './dist'), filename: 'wicc-wallet-lib.js', - library: 'WiccWalletApi', + library: 'WiccWalletLib', libraryTarget: 'umd', globalObject: 'this' }, From 0ff61893ace7b5f8a51d99b15379a0d55d9b474a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 9 Dec 2019 21:08:09 +0800 Subject: [PATCH 11/33] update --- src/lib/wiccapi.js | 8 ++++---- src/transactionParams.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 2a83121..39af84e 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -64,19 +64,19 @@ var txMap = { txAction: require('./transaction/cdpliquidatetx') }, 84: { - txName: 'DEX_BUY_LIMIT_ORDER_TX', + txName: 'DEX_LIMIT_BUY_ORDER_TX', txAction: require('./transaction/dexbuylimitordertx') }, 85: { - txName: 'DEX_SELL_LIMIT_ORDER_TX', + txName: ' DEX_LIMIT_SELL_ORDER_TX', txAction: require('./transaction/dexselllimitordertx') }, 86: { - txName: 'DEX_BUY_MARKET_ORDER_TX', + txName: 'DEX_MARKET_BUY_ORDER_TX', txAction: require('./transaction/dexbuymarketordertx') }, 87: { - txName: 'DEX_SELL_MARKET_ORDER_TX', + txName: 'DEX_MARKET_SELL_ORDER_TX', txAction: require('./transaction/dexsellmarketordertx') }, 88: { diff --git a/src/transactionParams.js b/src/transactionParams.js index 05c7c90..8704c9b 100644 --- a/src/transactionParams.js +++ b/src/transactionParams.js @@ -174,7 +174,7 @@ var transactionParams = function (arg, wallet) { } }, 84: { - name: 'DEX_BUY_LIMIT_ORDER_TX', + name: 'DEX_LIMIT_BUY_ORDER_TX', handler: () => { let pubkey = wallet.publicKeyAsHex().toString() txParams.publicKey = pubkey @@ -189,7 +189,7 @@ var transactionParams = function (arg, wallet) { } }, 85: { - name: 'DEX_SELL_LIMIT_ORDER_TX', + name: 'DEX_LIMIT_SELL_ORDER_TX', handler: () => { let pubkey = wallet.publicKeyAsHex().toString() txParams.publicKey = pubkey @@ -204,7 +204,7 @@ var transactionParams = function (arg, wallet) { } }, 86: { - name: 'DEX_BUY_MARKET_ORDER_TX', + name: 'DEX_MARKET_BUY_ORDER_TX', handler: () => { let pubkey = wallet.publicKeyAsHex().toString() txParams.publicKey = pubkey @@ -218,7 +218,7 @@ var transactionParams = function (arg, wallet) { } }, 87: { - name: 'DEX_SELL_MARKET_ORDER_TX', + name: 'DEX_MARKET_SELL_ORDER_TX', handler: () => { let pubkey = wallet.publicKeyAsHex().toString() txParams.publicKey = pubkey From 3e55310564537f8c568f4ba6a3388fea386a5b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Tue, 10 Dec 2019 15:03:58 +0800 Subject: [PATCH 12/33] update --- demo/test-ucointransfertx.js | 2 +- dist/wicc-wallet-lib.js | 16 +- src/lib/transaction/ucointransfertx.js | 342 +++++++++++------------ src/lib/transaction/ucontractinvoketx.js | 58 ++-- 4 files changed, 194 insertions(+), 224 deletions(-) diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js index 8cc8ac3..d58fd31 100644 --- a/demo/test-ucointransfertx.js +++ b/demo/test-ucointransfertx.js @@ -27,7 +27,7 @@ note: 7、feesCoinType:小费类型 */ -var coinType = WriterHelper.prototype.CoinType.WUSD +var coinType = "WUSD" var destAddr = 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65' var value = 32432 var destArr = [{ diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js index d3184e4..0baf97a 100644 --- a/dist/wicc-wallet-lib.js +++ b/dist/wicc-wallet-lib.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletApi=t():e.WiccWalletApi=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=276)}([function(e,t,r){var n=r(7),i=r(41),o=r(31),a=r(32),s=r(42),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletLib=t():e.WiccWalletLib=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=278)}([function(e,t,r){var n=r(7),i=r(41),o=r(31),a=r(32),s=r(42),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var n=r(481),i=r(482),o=r(219);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(28))},function(e,t,r){(function(e,n){var i; +var n=r(482),i=r(483),o=r(220);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(27))},function(e,t,r){(function(e,n){var i; /** * @license * Lodash @@ -13,21 +13,21 @@ var n=r(481),i=r(482),o=r(219);function a(){return u.TYPED_ARRAY_SUPPORT?2147483 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,B=16,P=1,O=2,R=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Oe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Bt=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Ot="object"==typeof self&&self&&self.Object===Object&&self,Rt=Pt||Ot||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Pt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Rt:Nr.defaults(Rt.Object(),t,Nr.pick(Rt,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Rt._,gt=rt("^"+ft.call(ct).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Pt=Ar(tt.getPrototypeOf,tt),Ot=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Rt.Date.now&&i.now,zr=t.setTimeout!==Rt.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Ot)return Ot(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,On(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Rs(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Ro:Oo:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Bn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Bu),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Pi(e,t,r)}var Zi=Cr||function(e){return Rt.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Po(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=B-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Oa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Po(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:Rn(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Rn(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){Rn(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Rt.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Bs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Ps(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Pt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Os=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Rs=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Or(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===R||e===-R?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Bt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Po(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Ro(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Po(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Ro(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Po(function(e,t){return Gt(t,function(t){t=ca(t),Rn(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Bu(e){return e}function Pu(e){return fi("function"==typeof e?e:jn(e,d))}var Ou=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ru=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Os(t))&&!(t=zi(t))&&Ir(e)?Xi(Or(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Pi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Pi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Pi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Pt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ba,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Pa,pn.unzipWith=Oa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Ra,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Re.test(e)?e.replace(Oe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Bu,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Rs,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Bu,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Bu)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Bu,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Rt._===this&&(Rt._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Pr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Pr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Pr(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Os(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Rr):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==P||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Bu)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Rt._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(28),r(122)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(87),i=r(13),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;he.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;r0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(92)("wks"),i=r(68),o=r(7).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},function(e,t,r){var n=r(44),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(183),o=r(47),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(86),o=r(22),a=r(59),s=r(107),u=r(8),f=r(13),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(48);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(2),o=r(3),a=r(13),s=r(25),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(546).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,B=M>>>13,P=0|a[7],O=8191&P,R=P>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(B,V)|0,o=Math.imul(B,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Be=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(O,he)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Pe=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(B,pe)|0))<<13)|0;f=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Oe=(f+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Re=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Be,u[15]=Pe,u[16]=Oe,u[17]=Re,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(122)(e))},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(51),a=r(601),s=(r(25),r(3)),u=r(12),f=r(21),c=r(265),h=r(266),d=r(14);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p=0}}},function(e,t,r){var n;e.exports=(n=r(9),r(81),void(n.lib.Cipher||function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,u=(s.Utf8,s.Base64),f=t.algo,c=f.EvpKDF,h=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:w}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),d=(r.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),l=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=l.extend();function r(t,r,n){var i=this._iv;if(i){var o=i;this._iv=e}else var o=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(104),s=r(80),u=r(8),f=r(25),c=r(59);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(40)}).call(this,r(1).Buffer)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=t;n.version=r(552).version,n.utils=r(553),n.rand=r(248),n.curve=r(127),n.curves=r(558),n.ec=r(566),n.eddsa=r(570)},function(e,t,r){var n=r(18),i=r(67);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(35),a=r(68)("src"),s=r(280),u=(""+s).split("toString");r(41).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(48),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(487).version,n.utils=r(488),n.rand=r(489),n.curve=r(123),n.curves=r(495),n.ec=r(504),n.eddsa=r(508)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(93),i=r(48);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(94),i=r(67),o=r(36),a=r(47),s=r(35),u=r(183),f=Object.getOwnPropertyDescriptor;t.f=r(17)?f:function(e,t){if(e=o(e),t=a(t,!0),u)try{return f(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(35),i=r(20),o=r(136)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(262),e.exports.Interpreter=r(595)},function(e,t){var r=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(29);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(484).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,B=M>>>13,P=0|a[7],O=8191&P,R=P>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(B,V)|0,o=Math.imul(B,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Be=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(O,he)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Pe=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(B,pe)|0))<<13)|0;f=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Oe=(f+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Re=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Be,u[15]=Pe,u[16]=Oe,u[17]=Re,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(122)(e))},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(41),o=r(10);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(42),i=r(93),o=r(20),a=r(16),s=r(152);e.exports=function(e,t){var r=1==e,u=2==e,f=3==e,c=4==e,h=6==e,d=5==e||h,l=t||s;return function(t,s,p){for(var b,g,m=o(t),v=i(m),y=n(s,p,3),w=a(v.length),_=0,S=r?l(t,w):u?l(t,0):void 0;w>_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,R=16,B=1,P=2,O=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Rt=parseInt,Bt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Bt||Pt||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Bt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Ot:Nr.defaults(Ot.Object(),t,Nr.pick(Ot,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Ot._,gt=rt("^"+ft.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Bt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Ot.Date.now&&i.now,zr=t.setTimeout!==Ot.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,Pn(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Os(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Oo:Po:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Ru),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Bi(e,t,r)}var Zi=Cr||function(e){return Ot.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Bo(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=R-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Bo(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:On(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):On(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){On(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Bs(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Rs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Bs(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Bt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Ps=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Os=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Pr(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===O||e===-O?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Rt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Bo(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Oo(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Bo(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Bo(function(e,t){return Gt(t,function(t){t=ca(t),On(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Ru(e){return e}function Bu(e){return fi("function"==typeof e?e:jn(e,d))}var Pu=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ou=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=zi(t))&&Ir(e)?Xi(Pr(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Bi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Bi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Bi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Bt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ra,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Ba,pn.unzipWith=Pa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Oa,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Ru,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Os,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Ru,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Ru)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Ru,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Ot._===this&&(Ot._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Br(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Ps(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Or):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==B||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Ru)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Ot._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(27),r(123)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(88),i=r(12),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;h>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;re.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(44),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(184),o=r(47),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(87),o=r(24),a=r(59),s=r(108),u=r(8),f=r(12),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(48);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(547).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(123)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"===n(t)},isHexa:o,isHexaString:o,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(2),o=r(3),a=r(12),s=r(23),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(51),a=r(602),s=(r(23),r(3)),u=r(14),f=r(21),c=r(266),h=r(267),d=r(15);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(105),s=r(80),u=r(8),f=r(23),c=r(59);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(40)}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(553).version,n.utils=r(554),n.rand=r(249),n.curve=r(128),n.curves=r(559),n.ec=r(567),n.eddsa=r(571)},function(e,t,r){var n=r(18),i=r(67);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(35),a=r(68)("src"),s=r(282),u=(""+s).split("toString");r(41).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(48),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(488).version,n.utils=r(489),n.rand=r(490),n.curve=r(124),n.curves=r(496),n.ec=r(505),n.eddsa=r(509)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(94),i=r(48);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(95),i=r(67),o=r(36),a=r(47),s=r(35),u=r(184),f=Object.getOwnPropertyDescriptor;t.f=r(17)?f:function(e,t){if(e=o(e),t=a(t,!0),u)try{return f(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(35),i=r(20),o=r(136)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(263),e.exports.Interpreter=r(596)},function(e,t){var r=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(28);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(485).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(123)(e))},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(41),o=r(10);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(42),i=r(94),o=r(20),a=r(16),s=r(152);e.exports=function(e,t){var r=1==e,u=2==e,f=3==e,c=4==e,h=6==e,d=5==e||h,l=t||s;return function(t,s,p){for(var b,g,m=o(t),v=i(m),y=n(s,p,3),w=a(v.length),_=0,S=r?l(t,w):u?l(t,0):void 0;w>_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(28))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(39),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(58),o=r(14),a=r(24),s=r(13),u=r(51),f=r(27);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, +function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(27))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(39),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(58),o=r(15),a=r(25),s=r(12),u=r(51),f=r(29);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, //!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;rr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Be=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Pe=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Oe=!!q&&o(function(){le.call(new q(1))}),Re=function(){return le.apply(Oe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(O(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Be.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(13),a=r(12),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(68)("meta"),i=r(11),o=r(35),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(15)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(163).Transform,o=r(167).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(22),o=r(40),a=r(61),s=r(60),u=r(14),f=r(12),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(176),g=r(177),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(185),i=r(137).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(15)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(42),i=r(198),o=r(149),a=r(4),s=r(16),u=r(151),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(124),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(99);o.inherits=r(5);var a=r(227),s=r(166);o.inherits(h,a);for(var u=i(s.prototype),f=0;fo)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],B=o[3];E=f(E,M,T,B,a,7,s[0]),B=f(B,E,M,T,u,12,s[1]),T=f(T,B,E,M,l,17,s[2]),M=f(M,T,B,E,p,22,s[3]),E=f(E,M,T,B,b,7,s[4]),B=f(B,E,M,T,g,12,s[5]),T=f(T,B,E,M,m,17,s[6]),M=f(M,T,B,E,v,22,s[7]),E=f(E,M,T,B,y,7,s[8]),B=f(B,E,M,T,w,12,s[9]),T=f(T,B,E,M,_,17,s[10]),M=f(M,T,B,E,S,22,s[11]),E=f(E,M,T,B,x,7,s[12]),B=f(B,E,M,T,I,12,s[13]),T=f(T,B,E,M,k,17,s[14]),E=c(E,M=f(M,T,B,E,A,22,s[15]),T,B,u,5,s[16]),B=c(B,E,M,T,m,9,s[17]),T=c(T,B,E,M,S,14,s[18]),M=c(M,T,B,E,a,20,s[19]),E=c(E,M,T,B,g,5,s[20]),B=c(B,E,M,T,_,9,s[21]),T=c(T,B,E,M,A,14,s[22]),M=c(M,T,B,E,b,20,s[23]),E=c(E,M,T,B,w,5,s[24]),B=c(B,E,M,T,k,9,s[25]),T=c(T,B,E,M,p,14,s[26]),M=c(M,T,B,E,y,20,s[27]),E=c(E,M,T,B,I,5,s[28]),B=c(B,E,M,T,l,9,s[29]),T=c(T,B,E,M,v,14,s[30]),E=h(E,M=c(M,T,B,E,x,20,s[31]),T,B,g,4,s[32]),B=h(B,E,M,T,y,11,s[33]),T=h(T,B,E,M,S,16,s[34]),M=h(M,T,B,E,k,23,s[35]),E=h(E,M,T,B,u,4,s[36]),B=h(B,E,M,T,b,11,s[37]),T=h(T,B,E,M,v,16,s[38]),M=h(M,T,B,E,_,23,s[39]),E=h(E,M,T,B,I,4,s[40]),B=h(B,E,M,T,a,11,s[41]),T=h(T,B,E,M,p,16,s[42]),M=h(M,T,B,E,m,23,s[43]),E=h(E,M,T,B,w,4,s[44]),B=h(B,E,M,T,x,11,s[45]),T=h(T,B,E,M,A,16,s[46]),E=d(E,M=h(M,T,B,E,l,23,s[47]),T,B,a,6,s[48]),B=d(B,E,M,T,v,10,s[49]),T=d(T,B,E,M,k,15,s[50]),M=d(M,T,B,E,g,21,s[51]),E=d(E,M,T,B,x,6,s[52]),B=d(B,E,M,T,p,10,s[53]),T=d(T,B,E,M,_,15,s[54]),M=d(M,T,B,E,u,21,s[55]),E=d(E,M,T,B,y,6,s[56]),B=d(B,E,M,T,A,10,s[57]),T=d(T,B,E,M,m,15,s[58]),M=d(M,T,B,E,I,21,s[59]),E=d(E,M,T,B,b,6,s[60]),B=d(B,E,M,T,S,10,s[61]),T=d(T,B,E,M,l,15,s[62]),M=d(M,T,B,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+B|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(41),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(62)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(29),o=r(15)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(53),i=r(78);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(58),a=r(13),s=r(25),u=r(59),f=r(21),c=r(22);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(87).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(52),r(1).Buffer)},function(e,t,r){var n=r(36),i=r(16),o=r(70);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(43);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(44),i=r(48);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(43),o=r(15)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(15)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(83),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(202);var n=r(32),i=r(31),o=r(10),a=r(48),s=r(15),u=r(155),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(76),s=r(63),u=r(75),f=r(74),c=r(11),h=r(10),d=r(113),l=r(82),p=r(141);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(68),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(62)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(29),o=r(42),a=r(75);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(491),n.short=r(492),n.mont=r(493),n.edwards=r(494)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(162);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(554),n.short=r(555),n.mont=r(556),n.edwards=r(557)},function(e,t,r){var n=r(573),i=r(585),o=r(586),a=r(171),s=r(237),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(27),o=r(104),a=r(12),s=r(25),u=r(80),f=r(86),c=r(59),h=r(107),d=r(3);function l(e,t){if(!(this instanceof l))return new l(e,t);if(e instanceof l)return e;var r=this._classifyArguments(e,t);if(!r.bn||0===r.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(f.getN()))throw new TypeError("Number must be less than N");if(void 0===r.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return s.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}l.prototype._classifyArguments=function(e,r){var i={compressed:!0,network:r?u.get(r):u.defaultNetwork};if(n.isUndefined(e)||n.isNull(e))i.bn=l._getRandomBN();else if(e instanceof a)i.bn=e;else if(e instanceof t||e instanceof Uint8Array)i=l._transformBuffer(e,r);else if(e.bn&&e.network)i=l._transformObject(e);else if(!r&&u.get(e))i.bn=l._getRandomBN(),i.network=u.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");s.isHexa(e)?i.bn=new a(t.from(e,"hex")):i=l._transformWIF(e,r)}return i},l._getRandomBN=function(){var e,t;do{var r=h.getRandomBuffer(32);e=(t=a.fromBuffer(r)).lt(f.getN())}while(!e);return t},l._transformBuffer=function(e,t){var r={};if(32===e.length)return l._transformBNBuffer(e,t);if(r.network=u.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==u.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},l._transformBNBuffer=function(e,t){var r={};return r.network=u.get(t)||u.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},l._transformWIF=function(e,t){return l._transformBuffer(o.decode(e),t)},l.fromBuffer=function(e,t){return new l(e,t)},l._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:u.get(e.network),compressed:e.compressed}},l.fromString=l.fromWIF=function(e){return d.checkArgument(n.isString(e),"First argument is expected to be a string."),new l(e)},l.fromObject=function(e){return d.checkArgument(n.isObject(e),"First argument is expected to be an object."),new l(e)},l.fromRandom=function(e){var t=l._getRandomBN();return new l(t,e)},l.getValidationError=function(e,t){var r;try{new l(e,t)}catch(e){r=e}return r},l.isValid=function(e,t){return!!e&&!l.getValidationError(e,t)},l.prototype.toString=function(){return this.toBuffer().toString("hex")},l.prototype.toWIF=function(){var e,r=this.network;return e=this.compressed?t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32}),t.from([1])]):t.concat([t.from([r.privatekey]),this.bn.toBuffer({size:32})]),o.encode(e)},l.prototype.toBigNumber=function(){return this.bn},l.prototype.toBuffer=function(){return this.bn.toBuffer()},l.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},l.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=c.fromPrivateKey(this)),this._pubkey},l.prototype.toAddress=function(e){var t=this.toPublicKey();return i.fromPublicKey(t,e||this.network)},l.prototype.toObject=l.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},l.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return""},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(261),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(176),e.exports.Input=r(177),e.exports.Output=r(61),e.exports.UnspentOutput=r(263),e.exports.Signature=r(106),e.exports.Sighash=r(66),e.exports.SighashWitness=r(178),e.exports.RegisterAccountTx=r(264),e.exports.CommonTx=r(267),e.exports.ContractTx=r(268),e.exports.DelegateTx=r(269)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(12),o=r(13),a=r(60),s=r(14),u=r(8),f=(r(25),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(62),i=r(0),o=r(32),a=r(31),s=r(85),u=r(146),f=r(82),c=r(38),h=r(15)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(71),i=r(67),o=r(82),a={};r(31)(a,r(15)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(112),i=r(48);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(15)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(85),i=r(15)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(67);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(83),i=r(15)("iterator"),o=r(85);e.exports=r(41).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(369);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(64),i=r(201),o=r(85),a=r(36);e.exports=r(145)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(95),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(43)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(157).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(43)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(29);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(62),a=r(118),s=r(31),u=r(76),f=r(10),c=r(74),h=r(44),d=r(16),l=r(211),p=r(72).f,b=r(18).f,g=r(153),m=r(82),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,B=S.LN2,P=i?"_b":"buffer",O=i?"_l":"byteLength",R=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/B),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[O])throw x(y);var o=e[P]._b,a=i+e[R],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[O])throw x(y);for(var s=e[P]._b,u=a+e[R],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[O]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[O],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[P]=e,this[R]=i,this[O]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){var n=t;n.utils=r(53),n.common=r(97),n.sha=r(497),n.ripemd=r(501),n.hmac=r(502),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(226),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(164).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(165),i.Writable=r(517),i.Duplex=r(518),i.Transform=r(519),i.PassThrough=r(520),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(227)).Stream=t,t.Readable=t,t.Writable=r(166),t.Duplex=r(79),t.Transform=r(231),t.PassThrough=r(516)},function(e,t,r){"use strict";(function(t,n,i){var o=r(124);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(99);f.inherits=r(5);var c={deprecate:r(515)},h=r(228),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(229);function g(){}function m(e,t){s=s||r(79),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(79),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(52),r(230).setImmediate,r(28))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(226),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(521),t.sha1=r(522),t.sha224=r(523),t.sha256=r(232),t.sha384=r(524),t.sha512=r(233)},function(e,t,r){"use strict";t.utils=r(530),t.Cipher=r(531),t.DES=r(532),t.CBC=r(533),t.EDE=r(534)},function(e,t,r){var n=r(535),i=r(543),o=r(243);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(536),CBC:r(537),CFB:r(538),CFB8:r(539),CFB1:r(540),OFB:r(541),CTR:r(241),GCM:r(241)},i=r(243);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(23),i=r(88);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(101),n.sha=r(559),n.ripemd=r(563),n.hmac=r(564),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(13),s=r(25);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(596),s=r(21),u=r(13),f=r(25),c=r(60),h=r(14),d=r(8),l=r(22),p=r(66),b=r(178),g=r(27),m=r(263),v=r(177),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(61),I=r(40),k=r(129),A=r(12);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var B={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",B),B.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",B),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(105),e.exports.PublicKey=r(597),e.exports.PublicKeyHash=r(598),e.exports.MultiSig=r(599),e.exports.MultiSigScriptHash=r(600)},function(e,t,r){"use strict";(function(t){var n=r(22),i=(r(40),r(61),r(60)),o=r(14),a=(r(12),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(51),i=r(1),o=r(2),a=r(3),s=r(12),u=r(130),f=r(104),c=r(8),h=r(80),d=r(86),l=r(129),p=r(107),b=r(21),g=b.HDPrivateKey,m=r(13),v=r(25);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(271);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(69);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(36),i=r(72).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(69),o=r(109),a=r(94),s=r(20),u=r(93),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(29),i=r(11),o=r(191),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(84).trim;e.exports=1/n(r(140)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(43);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(143),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(29),i=r(20),o=r(93),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(155);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(95)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(159);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(207),i=r(77);e.exports=r(117)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(71),o=r(76),a=r(42),s=r(74),u=r(75),f=r(145),c=r(201),h=r(73),d=r(17),l=r(63).fastKey,p=r(77),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(207),i=r(77);e.exports=r(117)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(50)(0),a=r(32),s=r(63),u=r(188),f=r(210),c=r(11),h=r(77),d=r(77),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(117)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(76),i=r(63).getWeak,o=r(4),a=r(11),s=r(74),u=r(75),f=r(50),c=r(35),h=r(77),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(44),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(72),i=r(109),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(110),i=r(11),o=r(16),a=r(42),s=r(15)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(142),o=r(48);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(69),o=r(36),a=r(94).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(83),i=r(217);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(221),i=n.crypto.BN,o=r(612),a=n.deps._,s=r(613),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(614),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(53).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(53),i=r(97),o=r(223),a=r(78),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(124);e.exports=y;var o,a=r(219);y.ReadableState=v;r(164).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(228),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(99);h.inherits=r(5);var d=r(511),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(512),g=r(229);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(79));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(167).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(79),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),B(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,B(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(514),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(28))},function(e,t,r){"use strict";e.exports=a;var n=r(79),i=r(99);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(89),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],B=t[M-30+1],P=l(T,B),O=p(B,T),R=b(T=t[M-4],B=t[M-4+1]),N=g(B,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=O+j|0,L=P+C+m(D,O)|0;L=(L=L+R+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(525),o=r(65),a=r(6).Buffer,s=r(235),u=r(168),f=r(169),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(52))},function(e,t,r){var n=r(235),i=r(168),o=r(169),a=r(238),s=r(239),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(23),i=r(248);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(101),o=r(250),a=r(39),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(25),a=r(40),s=r(27),u=r(179);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=r(27),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(24),r(8)),a=r(19),s=r(55),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(87),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,B=p,P=b,O=g,R=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&P^T&R^P&R,be=B&O^B&N^O&N,ge=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),me=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=R,j=N,R=P,N=O,P=T,O=B,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((B=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+B,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+O,i.high=b+P+(g>>>0>>0?1:0),v=o.low=v+N,o.high=m+R+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){r(277),e.exports=r(479)},function(e,t,r){"use strict";(function(e){if(r(278),r(475),r(476),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(28))},function(e,t,r){r(279),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(359),r(360),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(154),r(383),r(202),r(384),r(203),r(385),r(386),r(387),r(388),r(389),r(206),r(208),r(209),r(390),r(391),r(392),r(393),r(394),r(395),r(396),r(397),r(398),r(399),r(400),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),e.exports=r(41)},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(17),a=r(0),s=r(32),u=r(63).KEY,f=r(10),c=r(92),h=r(82),d=r(68),l=r(15),p=r(184),b=r(135),g=r(281),m=r(110),v=r(4),y=r(11),w=r(20),_=r(36),S=r(47),x=r(67),I=r(71),k=r(187),A=r(37),E=r(109),M=r(18),T=r(69),B=A.f,P=M.f,O=k.f,R=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof R&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=B(H,t);n&&delete H[t],P(e,t,r),n&&e!==H&&P(H,t,n)}:P,G=function(e){var t=L[e]=I(R.prototype);return t._k=e,t},Y=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||P(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):P(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=B(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=O(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=O(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(72).f=k.f=Q,r(94).f=J,E.f=ee,o&&!r(62)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=R(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=R();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),R.prototype[z]||r(31)(R.prototype,z,R.prototype.valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(92)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(69),i=r(109),o=r(94);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(71)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(186)})},function(e,t,r){var n=r(36),i=r(37).f;r(49)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(38);r(49)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(69);r(49)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(49)("getOwnPropertyNames",function(){return r(187).f})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(49)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(188)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(189)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(139).set})},function(e,t,r){"use strict";var n=r(83),i={};i[r(15)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(190)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(38),o=r(15)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(192);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(193);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(43),a=r(141),s=r(47),u=r(10),f=r(72).f,c=r(37).f,h=r(18).f,d=r(84).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(71)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(44),o=r(194),a=r(142),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(194),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(195)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(195),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(193);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(192);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(196),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(143);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(197)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(196)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(143)})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(70),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(36),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(111)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".endsWith;n(n.P+n.F*r(148)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(147);n(n.P+n.F*r(148)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(142)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".startsWith;n(n.P+n.F*r(148)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(358);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(15)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(361))},function(e,t,r){"use strict";var n=r(4),i=r(47);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(110)})},function(e,t,r){"use strict";var n=r(42),i=r(0),o=r(20),a=r(198),s=r(149),u=r(16),f=r(150),c=r(151);i(i.S+i.F*!r(113)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(150);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(36),o=[].join;n(n.P+n.F*(r(93)!=Object||!r(45)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(138),o=r(43),a=r(70),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(200)}),r(64)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(153)}),r(64)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(50)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("find")},function(e,t,r){"use strict";var n=r(0),i=r(50)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)(o)},function(e,t,r){r(73)("Array")},function(e,t,r){var n=r(7),i=r(141),o=r(18).f,a=r(72).f,s=r(112),u=r(95),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(15)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(73)("RegExp")},function(e,t,r){"use strict";r(203);var n=r(4),i=r(95),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(156),a=r(114);r(115)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(44),s=r(156),u=r(114),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(115)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+B,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(189),o=r(114);r(115)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(112),i=r(4),o=r(96),a=r(156),s=r(16),u=r(114),f=r(155),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(115)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=O(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,R(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};P||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(76)(E.prototype,{then:function(e,t){var r=B(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=B=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!P,{Promise:E}),r(82)(E,"Promise"),r(73)("Promise"),a=r(41).Promise,h(h.S+h.F*!P,"Promise",{reject:function(e){var t=B(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(P&&r(113)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=B(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=B(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(210),i=r(77);r(117)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(118),o=r(160),a=r(4),s=r(70),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(96),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(37),i=r(38),o=r(35),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(37),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(38),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(212)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(37),o=r(38),a=r(35),s=r(0),u=r(67),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(139);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(108)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(213),o=r(20),a=r(16),s=r(29),u=r(152);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(64)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(213),o=r(20),a=r(16),s=r(44),u=r(152);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(64)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(111)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(116),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(116),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(84)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(84)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(48),o=r(16),a=r(112),s=r(95),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(146)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(135)("asyncIterator")},function(e,t,r){r(135)("observable")},function(e,t,r){var n=r(0),i=r(212),o=r(36),a=r(37),s=r(150);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(215)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(215)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(29),a=r(18);r(17)&&n(n.P+r(119),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(29),a=r(18);r(17)&&n(n.P+r(119),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(119),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(119),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(216)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(216)("Set")})},function(e,t,r){r(120)("Map")},function(e,t,r){r(120)("Set")},function(e,t,r){r(120)("WeakMap")},function(e,t,r){r(120)("WeakSet")},function(e,t,r){r(121)("Map")},function(e,t,r){r(121)("Set")},function(e,t,r){r(121)("WeakMap")},function(e,t,r){r(121)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(43);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(218),o=r(197);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(218)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(41),o=r(7),a=r(96),s=r(205);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(159),o=r(204);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(208),i=r(217),o=r(57),a=r(4),s=r(38),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(29),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(158)(),o=r(7).process,a="process"==r(43)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(41),a=r(158)(),s=r(15)("observable"),u=r(29),f=r(4),c=r(74),h=r(76),d=r(31),l=r(75),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(157);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(154),i=r(69),o=r(32),a=r(7),s=r(31),u=r(85),f=r(15),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new B(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(486);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(123),i=r(46),o=r(58),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(123),i=r(34),o=r(46),a=r(58),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(161),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(503)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(498),t.sha224=r(499),t.sha256=r(224),t.sha384=r(500),t.sha512=r(225)},function(e,t,r){"use strict";var n=r(53),i=r(97),o=r(223),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(161),i=r(222),o=r(78);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(46),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(161),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(509),f=r(510);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(89),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(232),o=r(89),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(233),o=r(89),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(65),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(39),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(244),i=r(6).Buffer,o=r(172),a=r(245),s=r(65),u=r(125),f=r(126);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(246),i=r(548),o=r(549);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(23),i=new(r(247)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(246),h=r(88);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(23),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(127),i=r(23),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(127),i=r(30),o=r(23),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(174),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(565)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(560),t.sha224=r(561),t.sha256=r(251),t.sha384=r(562),t.sha512=r(252)},function(e,t,r){"use strict";var n=r(54),i=r(101),o=r(250),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(174),i=r(249),o=r(39);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(23),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(174),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(571),f=r(572);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(128),i=r(258),o=r(259),a=r(23),s=r(173),u=r(98),f=r(260),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(88),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(28),r(52))},function(e,t,r){"use strict";var n=r(594).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(B);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var P=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=P,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var O=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(O?c.true:c.false),M===o.OP_EQUALVERIFY){if(!O)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var R=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(R)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i-1?this.writeRegId(e[r].publicKey):this.writeString(t.from(e[r].publicKey,"hex")),this.writeVarInt(8,i)}},c.prototype.writeDestArrData=function(e,t){this.writeVarintNum(e.length);for(var r=0;rr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Re=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Be=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Pe=!!q&&o(function(){le.call(new q(1))}),Oe=function(){return le.apply(Pe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(P(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Re.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(12),a=r(14),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(68)("meta"),i=r(11),o=r(35),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(13)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(164).Transform,o=r(168).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(24),o=r(40),a=r(61),s=r(60),u=r(15),f=r(14),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(177),g=r(178),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(186),i=r(137).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(13)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(42),i=r(199),o=r(149),a=r(4),s=r(16),u=r(151),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(125),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(100);o.inherits=r(5);var a=r(228),s=r(167);o.inherits(h,a);for(var u=i(s.prototype),f=0;f"},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(182),r(183),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.MD5,c=u.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=s.create(),o=i.words,a=r.keySize,u=r.iterations;o.lengtho)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],R=o[3];E=f(E,M,T,R,a,7,s[0]),R=f(R,E,M,T,u,12,s[1]),T=f(T,R,E,M,l,17,s[2]),M=f(M,T,R,E,p,22,s[3]),E=f(E,M,T,R,b,7,s[4]),R=f(R,E,M,T,g,12,s[5]),T=f(T,R,E,M,m,17,s[6]),M=f(M,T,R,E,v,22,s[7]),E=f(E,M,T,R,y,7,s[8]),R=f(R,E,M,T,w,12,s[9]),T=f(T,R,E,M,_,17,s[10]),M=f(M,T,R,E,S,22,s[11]),E=f(E,M,T,R,x,7,s[12]),R=f(R,E,M,T,I,12,s[13]),T=f(T,R,E,M,k,17,s[14]),E=c(E,M=f(M,T,R,E,A,22,s[15]),T,R,u,5,s[16]),R=c(R,E,M,T,m,9,s[17]),T=c(T,R,E,M,S,14,s[18]),M=c(M,T,R,E,a,20,s[19]),E=c(E,M,T,R,g,5,s[20]),R=c(R,E,M,T,_,9,s[21]),T=c(T,R,E,M,A,14,s[22]),M=c(M,T,R,E,b,20,s[23]),E=c(E,M,T,R,w,5,s[24]),R=c(R,E,M,T,k,9,s[25]),T=c(T,R,E,M,p,14,s[26]),M=c(M,T,R,E,y,20,s[27]),E=c(E,M,T,R,I,5,s[28]),R=c(R,E,M,T,l,9,s[29]),T=c(T,R,E,M,v,14,s[30]),E=h(E,M=c(M,T,R,E,x,20,s[31]),T,R,g,4,s[32]),R=h(R,E,M,T,y,11,s[33]),T=h(T,R,E,M,S,16,s[34]),M=h(M,T,R,E,k,23,s[35]),E=h(E,M,T,R,u,4,s[36]),R=h(R,E,M,T,b,11,s[37]),T=h(T,R,E,M,v,16,s[38]),M=h(M,T,R,E,_,23,s[39]),E=h(E,M,T,R,I,4,s[40]),R=h(R,E,M,T,a,11,s[41]),T=h(T,R,E,M,p,16,s[42]),M=h(M,T,R,E,m,23,s[43]),E=h(E,M,T,R,w,4,s[44]),R=h(R,E,M,T,x,11,s[45]),T=h(T,R,E,M,A,16,s[46]),E=d(E,M=h(M,T,R,E,l,23,s[47]),T,R,a,6,s[48]),R=d(R,E,M,T,v,10,s[49]),T=d(T,R,E,M,k,15,s[50]),M=d(M,T,R,E,g,21,s[51]),E=d(E,M,T,R,x,6,s[52]),R=d(R,E,M,T,p,10,s[53]),T=d(T,R,E,M,_,15,s[54]),M=d(M,T,R,E,u,21,s[55]),E=d(E,M,T,R,y,6,s[56]),R=d(R,E,M,T,A,10,s[57]),T=d(T,R,E,M,m,15,s[58]),M=d(M,T,R,E,I,21,s[59]),E=d(E,M,T,R,b,6,s[60]),R=d(R,E,M,T,S,10,s[61]),T=d(T,R,E,M,l,15,s[62]),M=d(M,T,R,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+R|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(41),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(62)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(28),o=r(13)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(53),i=r(78);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(58),a=r(12),s=r(23),u=r(59),f=r(21),c=r(24);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(88).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(52),r(1).Buffer)},function(e,t,r){var n=r(36),i=r(16),o=r(70);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(43);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(44),i=r(48);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(43),o=r(13)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(84),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(203);var n=r(32),i=r(31),o=r(10),a=r(48),s=r(13),u=r(155),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(76),s=r(63),u=r(75),f=r(74),c=r(11),h=r(10),d=r(114),l=r(83),p=r(141);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(68),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(62)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(28),o=r(42),a=r(75);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(492),n.short=r(493),n.mont=r(494),n.edwards=r(495)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(163);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(555),n.short=r(556),n.mont=r(557),n.edwards=r(558)},function(e,t,r){var n=r(574),i=r(586),o=r(587),a=r(172),s=r(238),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(262),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(177),e.exports.Input=r(178),e.exports.Output=r(61),e.exports.UnspentOutput=r(264),e.exports.Signature=r(107),e.exports.Sighash=r(66),e.exports.SighashWitness=r(179),e.exports.RegisterAccountTx=r(265),e.exports.CommonTx=r(268),e.exports.ContractTx=r(269),e.exports.DelegateTx=r(270)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(14),o=r(12),a=r(60),s=r(15),u=r(8),f=(r(23),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(62),i=r(0),o=r(32),a=r(31),s=r(86),u=r(146),f=r(83),c=r(38),h=r(13)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(71),i=r(67),o=r(83),a={};r(31)(a,r(13)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(113),i=r(48);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(86),i=r(13)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(67);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(84),i=r(13)("iterator"),o=r(86);e.exports=r(41).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(371);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(64),i=r(202),o=r(86),a=r(36);e.exports=r(145)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(96),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(43)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(157).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(43)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(28);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(62),a=r(119),s=r(31),u=r(76),f=r(10),c=r(74),h=r(44),d=r(16),l=r(212),p=r(72).f,b=r(18).f,g=r(153),m=r(83),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,R=S.LN2,B=i?"_b":"buffer",P=i?"_l":"byteLength",O=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/R),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[P])throw x(y);var o=e[B]._b,a=i+e[O],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[P])throw x(y);for(var s=e[B]._b,u=a+e[O],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[P]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[P],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[B]=e,this[O]=i,this[P]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(221),a=r(29),s=r(108),u=r(8),f=r(1),c=r(622),h=r(625),d=r(274),l=r(181),p=r(12),b={2:{txName:"ACCOUNT_REGISTER_TX",txAction:r(265)},3:{txName:"BCOIN_TRANSFER_TX",txAction:r(268)},4:{txName:"LCONTRACT_INVOKE_TX",txAction:r(269)},5:{txName:"LCONTRACT_DEPLOY_TX",txAction:r(649)},6:{txName:"DELEGATE_VOTE_TX",txAction:r(270)},9:{txName:"ASSET_ISSUE_TX",txAction:r(650)},10:{txName:"ASSET_UPDATE_TX",txAction:r(651)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(652)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(653)},21:{txName:"CDP_STAKE_TX",txAction:r(654)},22:{txName:"CDP_REDEEMP_TX",txAction:r(655)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(656)},84:{txName:"DEX_LIMIT_BUY_ORDER_TX",txAction:r(657)},85:{txName:" DEX_LIMIT_SELL_ORDER_TX",txAction:r(658)},86:{txName:"DEX_MARKET_BUY_ORDER_TX",txAction:r(659)},87:{txName:"DEX_MARKET_SELL_ORDER_TX",txAction:r(660)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(661)}},g=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var m in g._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return g._fromObject(e)},g._fromObject=function(e){return i.checkArgument(e,"data is required"),{network:e.network}},g.prototype.getBIP44Path=function(){return"testnet"===this.network?"m/44'/999999'/0'/0/0":"m/44'/99999'/0'/0/0"},g.prototype.createAllCoinMnemonicCode=function(e){return new o(o.Words[e]).toString()},g.prototype.checkMnemonicCode=function(e){return o.isValid(e)},g.prototype.validateAddress=function(e){return a.isValid(e,this.network)},g.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress()},g.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),n=new f.Buffer(t,"utf8"),i=u.sha256(n),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress().toString(),g=new Date,m=parseInt(g.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),x=w.toString("hex"),I=d.enc.Hex.parse(x),k=p.toString("hex"),A=h.encrypt(S,I,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,I,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:m,hashPwd:i,salt:r},symbol:"WICC",address:b}},g.prototype.getPriKeyFromSeed=function(e,r){var n=new f.Buffer(r,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(m,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new f.Buffer(t,"utf8"),n=u.sha256(r);if(!p.equal(n,e.hashPwd))return null;var i=e.salt,o=c(t,i,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=e.encMneData.encryptedBytes;return h.decrypt(b,m,v)},g.prototype.changePassword=function(e,t,r){var n=new f.Buffer(t,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m),y=e.encSeedData.encryptedBytes,w=h.decrypt(g,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(g,v,_),x=new f.Buffer(r,"utf8"),I=u.sha256(x);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m);var k=h.encrypt(g,v,w);return{encMneData:{encryptedBytes:h.encrypt(g,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:I,salt:o}},g.prototype.createSignTransaction=function(e,t){return new(0,b[t.nTxType].txAction)(t).SerializeTx(e)},g.PROTOCAL_VERSION=1,b)g[b[m].txName]=Number(m);e.exports=g}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(53),n.common=r(98),n.sha=r(498),n.ripemd=r(502),n.hmac=r(503),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(227),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(165).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(166),i.Writable=r(518),i.Duplex=r(519),i.Transform=r(520),i.PassThrough=r(521),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(228)).Stream=t,t.Readable=t,t.Writable=r(167),t.Duplex=r(79),t.Transform=r(232),t.PassThrough=r(517)},function(e,t,r){"use strict";(function(t,n,i){var o=r(125);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(100);f.inherits=r(5);var c={deprecate:r(516)},h=r(229),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(230);function g(){}function m(e,t){s=s||r(79),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(79),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(52),r(231).setImmediate,r(27))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(227),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(522),t.sha1=r(523),t.sha224=r(524),t.sha256=r(233),t.sha384=r(525),t.sha512=r(234)},function(e,t,r){"use strict";t.utils=r(531),t.Cipher=r(532),t.DES=r(533),t.CBC=r(534),t.EDE=r(535)},function(e,t,r){var n=r(536),i=r(544),o=r(244);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(537),CBC:r(538),CFB:r(539),CFB8:r(540),CFB1:r(541),OFB:r(542),CTR:r(242),GCM:r(242)},i=r(244);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(22),i=r(89);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(102),n.sha=r(560),n.ripemd=r(564),n.hmac=r(565),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(12),s=r(23);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(597),s=r(21),u=r(12),f=r(23),c=r(60),h=r(15),d=r(8),l=r(24),p=r(66),b=r(179),g=r(29),m=r(264),v=r(178),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(61),I=r(40),k=r(81),A=r(14);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var R={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",R),R.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",R),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(106),e.exports.PublicKey=r(598),e.exports.PublicKeyHash=r(599),e.exports.MultiSig=r(600),e.exports.MultiSigScriptHash=r(601)},function(e,t,r){"use strict";(function(t){var n=r(24),i=(r(40),r(61),r(60)),o=r(15),a=(r(14),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(51),i=r(1),o=r(2),a=r(3),s=r(14),u=r(130),f=r(105),c=r(8),h=r(80),d=r(87),l=r(81),p=r(108),b=r(21),g=b.HDPrivateKey,m=r(12),v=r(23);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(272);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(69);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(36),i=r(72).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(69),o=r(110),a=r(95),s=r(20),u=r(94),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(28),i=r(11),o=r(192),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(85).trim;e.exports=1/n(r(140)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(43);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(143),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(28),i=r(20),o=r(94),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(155);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(96)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(159);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(208),i=r(77);e.exports=r(118)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(71),o=r(76),a=r(42),s=r(74),u=r(75),f=r(145),c=r(202),h=r(73),d=r(17),l=r(63).fastKey,p=r(77),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(208),i=r(77);e.exports=r(118)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(50)(0),a=r(32),s=r(63),u=r(189),f=r(211),c=r(11),h=r(77),d=r(77),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(118)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(76),i=r(63).getWeak,o=r(4),a=r(11),s=r(74),u=r(75),f=r(50),c=r(35),h=r(77),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(44),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(72),i=r(110),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(111),i=r(11),o=r(16),a=r(42),s=r(13)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(142),o=r(48);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(69),o=r(36),a=r(95).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(84),i=r(218);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(222),i=n.crypto.BN,o=r(613),a=n.deps._,s=r(614),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(615),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(53).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(53),i=r(98),o=r(224),a=r(78),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(125);e.exports=y;var o,a=r(220);y.ReadableState=v;r(165).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(229),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(100);h.inherits=r(5);var d=r(512),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(513),g=r(230);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(79));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(168).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(79),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(515),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(27))},function(e,t,r){"use strict";e.exports=a;var n=r(79),i=r(100);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(90),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],R=t[M-30+1],B=l(T,R),P=p(R,T),O=b(T=t[M-4],R=t[M-4+1]),N=g(R,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=P+j|0,L=B+C+m(D,P)|0;L=(L=L+O+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(526),o=r(65),a=r(6).Buffer,s=r(236),u=r(169),f=r(170),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(52))},function(e,t,r){var n=r(236),i=r(169),o=r(170),a=r(239),s=r(240),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(22),i=r(249);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(102),o=r(251),a=r(39),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(23),a=r(40),s=r(29),u=r(180);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=r(29),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(55),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(88),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,R=p,B=b,P=g,O=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&B^T&O^B&O,be=R&P^R&N^P&N,ge=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),me=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=O,j=N,O=B,N=P,B=T,P=R,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((R=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+R,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+P,i.high=b+B+(g>>>0

>>0?1:0),v=o.low=v+N,o.high=m+O+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){(function(t){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!s.trim(t).length)throw"private key is required";this.privateKey=t,this._getAddress()}var r,u,f;return r=e,(u=[{key:"_getAddress",value:function(){var e=i.fromWIF(this.privateKey);this.address=e.toAddress().toString()}},{key:"signMessage",value:function(e){var r=i.fromWIF(this.privateKey),n=t.from(e),s=o.sha256(o.sha256ripemd160(n));return a.sign(s,r,"endian")}},{key:"publicKeyAsHex",value:function(){return i.fromWIF(this.privateKey).toPublicKey()}}])&&n(r.prototype,u),f&&n(r,f),e}();e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){r(279),e.exports=r(481)},function(e,t,r){"use strict";(function(e){if(r(280),r(477),r(478),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(27))},function(e,t,r){r(281),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(361),r(362),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(383),r(384),r(154),r(385),r(203),r(386),r(204),r(387),r(388),r(389),r(390),r(391),r(207),r(209),r(210),r(392),r(393),r(394),r(395),r(396),r(397),r(398),r(399),r(400),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),r(475),r(476),e.exports=r(41)},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(17),a=r(0),s=r(32),u=r(63).KEY,f=r(10),c=r(93),h=r(83),d=r(68),l=r(13),p=r(185),b=r(135),g=r(283),m=r(111),v=r(4),y=r(11),w=r(20),_=r(36),S=r(47),x=r(67),I=r(71),k=r(188),A=r(37),E=r(110),M=r(18),T=r(69),R=A.f,B=M.f,P=k.f,O=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof O&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=R(H,t);n&&delete H[t],B(e,t,r),n&&e!==H&&B(H,t,n)}:B,G=function(e){var t=L[e]=I(O.prototype);return t._k=e,t},Y=F&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||B(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):B(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=R(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=P(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=P(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(72).f=k.f=Q,r(95).f=J,E.f=ee,o&&!r(62)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=O();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),O.prototype[z]||r(31)(O.prototype,z,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(93)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(69),i=r(110),o=r(95);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(71)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(187)})},function(e,t,r){var n=r(36),i=r(37).f;r(49)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(38);r(49)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(69);r(49)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(49)("getOwnPropertyNames",function(){return r(188).f})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(49)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(189)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(190)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(139).set})},function(e,t,r){"use strict";var n=r(84),i={};i[r(13)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(191)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(38),o=r(13)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(193);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(194);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(43),a=r(141),s=r(47),u=r(10),f=r(72).f,c=r(37).f,h=r(18).f,d=r(85).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(71)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(44),o=r(195),a=r(142),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(195),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(196)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(196),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(194);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(193);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(197),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(143);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(198)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(197)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(143)})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(70),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(36),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(112)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".endsWith;n(n.P+n.F*r(148)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(147);n(n.P+n.F*r(148)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(142)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".startsWith;n(n.P+n.F*r(148)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(360);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(13)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(363))},function(e,t,r){"use strict";var n=r(4),i=r(47);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(111)})},function(e,t,r){"use strict";var n=r(42),i=r(0),o=r(20),a=r(199),s=r(149),u=r(16),f=r(150),c=r(151);i(i.S+i.F*!r(114)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(150);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(36),o=[].join;n(n.P+n.F*(r(94)!=Object||!r(45)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(138),o=r(43),a=r(70),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(201)}),r(64)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(153)}),r(64)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(50)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("find")},function(e,t,r){"use strict";var n=r(0),i=r(50)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)(o)},function(e,t,r){r(73)("Array")},function(e,t,r){var n=r(7),i=r(141),o=r(18).f,a=r(72).f,s=r(113),u=r(96),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(13)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(73)("RegExp")},function(e,t,r){"use strict";r(204);var n=r(4),i=r(96),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(156),a=r(115);r(116)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(44),s=r(156),u=r(115),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(116)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+R,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(190),o=r(115);r(116)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(113),i=r(4),o=r(97),a=r(156),s=r(16),u=r(115),f=r(155),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(116)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=P(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};B||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(76)(E.prototype,{then:function(e,t){var r=R(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=R=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!B,{Promise:E}),r(83)(E,"Promise"),r(73)("Promise"),a=r(41).Promise,h(h.S+h.F*!B,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!B),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(B&&r(114)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=R(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=R(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(211),i=r(77);r(118)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(119),o=r(160),a=r(4),s=r(70),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(97),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(37),i=r(38),o=r(35),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(37),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(38),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(213)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(37),o=r(38),a=r(35),s=r(0),u=r(67),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(139);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(109)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(20),a=r(16),s=r(28),u=r(152);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(64)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(20),a=r(16),s=r(44),u=r(152);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(64)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(112)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(117),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(117),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(85)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(85)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(48),o=r(16),a=r(113),s=r(96),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(146)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(135)("asyncIterator")},function(e,t,r){r(135)("observable")},function(e,t,r){var n=r(0),i=r(213),o=r(36),a=r(37),s=r(150);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(216)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(216)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(120),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(120),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(120),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(120),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(217)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(217)("Set")})},function(e,t,r){r(121)("Map")},function(e,t,r){r(121)("Set")},function(e,t,r){r(121)("WeakMap")},function(e,t,r){r(121)("WeakSet")},function(e,t,r){r(122)("Map")},function(e,t,r){r(122)("Set")},function(e,t,r){r(122)("WeakMap")},function(e,t,r){r(122)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(43);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(219),o=r(198);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(219)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(41),o=r(7),a=r(97),s=r(206);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(159),o=r(205);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(209),i=r(218),o=r(57),a=r(4),s=r(38),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(28),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(158)(),o=r(7).process,a="process"==r(43)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(41),a=r(158)(),s=r(13)("observable"),u=r(28),f=r(4),c=r(74),h=r(76),d=r(31),l=r(75),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(157);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(154),i=r(69),o=r(32),a=r(7),s=r(31),u=r(86),f=r(13),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new R(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(487);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(124),i=r(46),o=r(58),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(124),i=r(34),o=r(46),a=r(58),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(162),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(504)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(499),t.sha224=r(500),t.sha256=r(225),t.sha384=r(501),t.sha512=r(226)},function(e,t,r){"use strict";var n=r(53),i=r(98),o=r(224),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(162),i=r(223),o=r(78);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(46),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(162),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(510),f=r(511);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(90),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(233),o=r(90),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(234),o=r(90),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(65),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(39),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(245),i=r(6).Buffer,o=r(173),a=r(246),s=r(65),u=r(126),f=r(127);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(247),i=r(549),o=r(550);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(22),i=new(r(248)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(247),h=r(89);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(128),i=r(22),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(128),i=r(30),o=r(22),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(175),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(566)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(561),t.sha224=r(562),t.sha256=r(252),t.sha384=r(563),t.sha512=r(253)},function(e,t,r){"use strict";var n=r(54),i=r(102),o=r(251),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(175),i=r(250),o=r(39);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(175),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(572),f=r(573);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(129),i=r(259),o=r(260),a=r(22),s=r(174),u=r(99),f=r(261),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(89),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(27),r(52))},function(e,t,r){"use strict";var n=r(595).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(R);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=B,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(606),a=r(27),s=r(179),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(607),i=r(608);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(609);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?R+="x":R+=O[N];if(!R.match(l)){var j=B.slice(0,E),z=B.slice(E+1),U=O.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,P=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,B=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=B?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!B&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=B(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function O(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=B(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:P,encode:O,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+O(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(122)(e),r(28))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(610),t.encode=t.stringify=r(611)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(274),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(133),r(275),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],B=h[(d+1)%5+5*b],P=h[(d+2)%5+5*b];M.high=T.high^~B.high&P.high,M.low=T.low^~B.low&P.low}M=r[0];var O=c[s];M.high^=O.high,M.low^=O.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), +!function(){for(var t=function(e){return this.constructor!=t?new t(e):e instanceof t?e:(this.internal=String(e),this.as_int=r(this.internal),this.add=function(e){var r=[this,new t(e)];r.sort(function(e,t){return e.as_int.exp-t.as_int.exp});var n=r[0].as_int.exp,i=r[1].as_int.exp,a=Number(o(r[1].as_int.value,i-n)),s=Number(r[0].as_int.value),u=String(a+s);return t(o(u,n))},this.sub=function(e){return t(this.add(-1*e))},this.mul=function(e){e=new t(e);var r=String(this.as_int.value*e.as_int.value),n=this.as_int.exp+e.as_int.exp;return t(o(r,n))},this.div=function(e){e=new t(e);var r=Math.min(this.as_int.exp,e.as_int.exp),n=t.mul(Math.pow(10,Math.abs(r)),this),i=t.mul(Math.pow(10,Math.abs(r)),e);return t(n/i)},this.toString=function(){return this.internal},void(this.toNumber=function(){return Number(this.internal)}))},r=function(e){var t,r,n=(e=String(e)).split("."),i=n[0],o=n[1];if(o)t=parseInt(e.split(".").join(""),10),r=-1*o.length;else{var a=i.match(/0+$/);if(a){var s=a[0].length;t=i.substr(0,i.length-s),r=s}else t=i,r=0}return{value:t,exp:r}},n=function(e,t){var r=(t=Math.abs(t))-e.length,n=".";r>=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(607),a=r(29),s=r(180),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(608),i=r(609);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(610);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[N];if(!O.match(l)){var j=R.slice(0,E),z=R.slice(E+1),U=P.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,B=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,R=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=R?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!R&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function B(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=R(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=R(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:B,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?B(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(123)(e),r(27))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(611),t.encode=t.stringify=r(612)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(275),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(133),r(276),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],R=h[(d+1)%5+5*b],B=h[(d+2)%5+5*b];M.high=T.high^~R.high&B.high,M.low=T.low^~R.low&B.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -38,10 +38,10 @@ MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.le THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([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]),u=i.create([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]),f=i.create([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]),c=i.create([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]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,B=d.words,P=s.words,O=u.words,R=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+P[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,R[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+O[r]]|0,E+=r<16?v(x,I,k)+B[0]:r<32?m(x,I,k)+B[1]:r<48?g(x,I,k)+B[2]:r<64?b(x,I,k)+B[3]:p(x,I,k)+B[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(181),r(182),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,R=d.words,B=s.words,P=u.words,O=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+B[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(x,I,k)+R[0]:r<32?m(x,I,k)+R[1]:r<48?g(x,I,k)+R[2]:r<64?b(x,I,k)+R[3]:p(x,I,k)+R[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(182),r(183),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(90),r(91),r(81),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(24),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.feeSymbol=r.feeSymbol,this.stakeType=r.stakeType,this.fcoinsToStake=r.fcoinsToStake,this.publicKey=r.publicKey,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,feeSymbol:e.feeSymbol,stakeType:e.stakeType,fees:e.fees,fcoinsToStake:e.fcoinsToStake,publicKey:e.publicKey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);e.write(l);var p=o.writeVarInt(8,this.stakeType);if(e.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);r.write(l);var p=o.writeVarInt(8,this.stakeType);if(r.write(p),!/^[0-9]*[0-9][0-9]*$/.test(this.fcoinsToStake))return!1;var b=o.writeVarInt(8,this.fcoinsToStake);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=(r(24),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(13),c=r(55),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(24),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=r(8),s=r(19),u=r(14),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(24),a=(r(12),r(8)),s=r(19),u=(r(22),r(14)),f=(r(27),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)}])}); \ No newline at end of file +n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=(r(25),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(12),c=r(55),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"testnet";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.networkType=t,this.wiccApi=new o({network:this.networkType})}var t,r,a;return t=e,(r=[{key:"randomMnemonicCodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ENGLISH";return this.wiccApi.createAllCoinMnemonicCode(e)}},{key:"createWallet",value:function(e){var t=this.wiccApi.createWallet(e,""),r=this.wiccApi.getPriKeyFromSeed(t.seedinfo,"");return new i(r)}},{key:"importWalletFromMnemonic",value:function(e){var t=this.wiccApi.getPriKeyFromMnemonicCode(e);return new i(t)}},{key:"importWalletFromPrivateKey",value:function(e){return new i(e)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},function(e,t,r){function n(e,t){for(var r=0;r 0) { - writer.write(buf) + if (this.feesCoinType == null || _.isEmpty(this.feesCoinType)) return fasle; + writer.writeString(this.feesCoinType) + + var feesBuf = Util.writeVarInt(8, this.fees) + writer.write(feesBuf) + writer.writeDestArrData(this.destArr) + var len = 0 + var buf = this.memo + if (!_.isEmpty(this.memo)) { + if (!bufferUtil.isBuffer(buf)) { + buf = Buffer.from(buf) } - - var serialBuf = writer.toBuffer() - - //console.log(serialBuf.toString('hex')) - - return Hash.sha256sha256(serialBuf); + len = buf.length + } + writer.writeVarintNum(len) + if (len > 0) { + writer.write(buf) } - UCoinTransferTx.prototype._Signtx = function(privateKey) { - var hashbuf = this._SignatureHash() - var sig = ECDSA.sign(hashbuf, privateKey, 'endian') - var sigBuf = sig.toBuffer() - - return sigBuf; + var serialBuf = writer.toBuffer() + + return Hash.sha256sha256(serialBuf); +} + +UCoinTransferTx.prototype._Signtx = function (privateKey) { + var hashbuf = this._SignatureHash() + var sig = ECDSA.sign(hashbuf, privateKey, 'endian') + var sigBuf = sig.toBuffer() + + return sigBuf; +} + +UCoinTransferTx.prototype.SerializeTx = function (privateKey) { + var writer = new WriterHelper(); + writer.writeVarintNum(this.nTxType) + writer.writeVarintNum(this.nVersion) + var heightBuf = Util.writeVarInt(4, this.nValidHeight) + writer.write(heightBuf) + + + if (this.srcRegId != null && !_.isEmpty(this.srcRegId)) { + var REGID = Util.splitRegID(this.srcRegId) + if (_.isNull(REGID.height) || _.isUndefined(REGID.height)) + return false + var regWriter = new BufferWriter() + var regHeightBuf = Util.writeVarInt(4, REGID.height) + regWriter.write(regHeightBuf) + var regIndexBuf = Util.writeVarInt(2, REGID.index) + regWriter.write(regIndexBuf) + + var regBuf = regWriter.toBuffer() + writer.writeUInt8(regBuf.length) + writer.write(regBuf) + } else if (this.publicKey != null && !_.isEmpty(this, this.publicKey)) { + var pubKey = Buffer.from(this.publicKey, 'hex') + writer.writeUInt8(pubKey.length) + writer.write(pubKey) + } else { + return false; } - UCoinTransferTx.prototype.SerializeTx = function(privateKey) { - var writer = new WriterHelper(); - writer.writeVarintNum(this.nTxType) - writer.writeVarintNum(this.nVersion) - var heightBuf = Util.writeVarInt(4, this.nValidHeight) - writer.write(heightBuf) - - - if(this.srcRegId!=null&&!_.isEmpty(this.srcRegId)){ - var REGID = Util.splitRegID(this.srcRegId) - if(_.isNull(REGID.height) || _.isUndefined(REGID.height)) - return false - var regWriter = new BufferWriter() - var regHeightBuf = Util.writeVarInt(4, REGID.height) - regWriter.write(regHeightBuf) - var regIndexBuf = Util.writeVarInt(2, REGID.index) - regWriter.write(regIndexBuf) - - var regBuf = regWriter.toBuffer() - writer.writeUInt8(regBuf.length) - writer.write(regBuf) - }else if (this.publicKey!=null&&!_.isEmpty(this,this.publicKey)){ - var pubKey= Buffer.from(this.publicKey, 'hex') - writer.writeUInt8(pubKey.length) - writer.write(pubKey) - }else{ - return false; - } - - // var addr = Address.fromString(this.destAddr, this.network, 'pubkeyhash') - // //console.log(addr.hashBuffer.toString('hex')) - - // var size = addr.hashBuffer.length - // writer.writeUInt8(size) - // writer.write(addr.hashBuffer) - - // if(this.coinType==null||_.isEmpty(this.coinType)) return fasle; - // writer.writeString(this.coinType) - - // if(! /^[1-9]*[1-9][0-9]*$/.test(this.value)) - // return false; - // var valueBuf = Util.writeVarInt(8, this.value) - // writer.write(valueBuf) - - if(this.feesCoinType==null||_.isEmpty(this.feesCoinType)) return fasle; - writer.writeString(this.feesCoinType) - - if(! /^[1-9]*[1-9][0-9]*$/.test(this.fees)) + if (this.feesCoinType == null || _.isEmpty(this.feesCoinType)) return fasle; + writer.writeString(this.feesCoinType) + + if (! /^[1-9]*[1-9][0-9]*$/.test(this.fees)) return false; - var feesBuf = Util.writeVarInt(8, this.fees) - writer.write(feesBuf) - writer.writeDestArrData(this.destArr) - var len = 0 - var buf = this.memo - if (!_.isEmpty(this.memo)) { - if (!bufferUtil.isBuffer(buf)) { - buf = Buffer.from(buf) - } - len = buf.length - } - writer.writeVarintNum(len) - if (len > 0) { - writer.write(buf) + var feesBuf = Util.writeVarInt(8, this.fees) + writer.write(feesBuf) + writer.writeDestArrData(this.destArr) + var len = 0 + var buf = this.memo + if (!_.isEmpty(this.memo)) { + if (!bufferUtil.isBuffer(buf)) { + buf = Buffer.from(buf) } - - + len = buf.length + } + writer.writeVarintNum(len) + if (len > 0) { + writer.write(buf) + } - var sigBuf = this._Signtx(privateKey) - var len = sigBuf.length - writer.writeVarintNum(len) - writer.write(sigBuf) + var sigBuf = this._Signtx(privateKey) - var hexBuf = writer.toBuffer() - var hex = hexBuf.toString('hex') + var len = sigBuf.length + writer.writeVarintNum(len) + writer.write(sigBuf) - return hex - } + + var hexBuf = writer.toBuffer() + var hex = hexBuf.toString('hex') + + return hex +} - module.exports = UCoinTransferTx; \ No newline at end of file +module.exports = UCoinTransferTx; \ No newline at end of file diff --git a/src/lib/transaction/ucontractinvoketx.js b/src/lib/transaction/ucontractinvoketx.js index 9f7adce..2ee9467 100644 --- a/src/lib/transaction/ucontractinvoketx.js +++ b/src/lib/transaction/ucontractinvoketx.js @@ -21,9 +21,9 @@ var UContractTx = function UContractTx(arg) { this.destRegId = info.destRegId; this.fees = info.fees; this.value = info.value; - this.feesCoinType=info.feesCoinType; - this.publicKey=info.publicKey; - this.coinType=info.coinType; + this.feesCoinType = info.feesCoinType; + this.publicKey = info.publicKey; + this.coinType = info.coinType; this.vContract = info.vContract; return this; @@ -64,28 +64,28 @@ UContractTx._fromObject = function _fromObject(data) { destRegId: data.destRegId, fees: data.fees, value: data.value, - publicKey:data.publicKey, - coinType:data.coinType, - feesCoinType:data.feesCoinType, + publicKey: data.publicKey, + coinType: data.coinType, + feesCoinType: data.feesCoinType, vContract: contract }; return info; }; -UContractTx.prototype._SignatureHash = function() { +UContractTx.prototype._SignatureHash = function () { var writer = new WriterHelper(); writer.writeVarInt(4, this.nVersion) writer.writeUInt8(this.nTxType) writer.writeVarInt(4, this.nValidHeight) - - if(this.srcRegId!=null&&!_.isEmpty(this.srcRegId)){ - writer.writeRegId(this.srcRegId) - }else if (this.publicKey!=null&&!_.isEmpty(this,this.publicKey)){ - var pubKey= Buffer.from(this.publicKey, 'hex') + + if (this.srcRegId != null && !_.isEmpty(this.srcRegId)) { + writer.writeRegId(this.srcRegId) + } else if (this.publicKey != null && !_.isEmpty(this, this.publicKey)) { + var pubKey = Buffer.from(this.publicKey, 'hex') writer.writeUInt8(pubKey.length) writer.write(pubKey) - }else{ - return false; + } else { + return false; } writer.writeRegId(this.destRegId) @@ -102,7 +102,7 @@ UContractTx.prototype._SignatureHash = function() { return Hash.sha256sha256(serialBuf); } -UContractTx.prototype._Signtx = function(privateKey) { +UContractTx.prototype._Signtx = function (privateKey) { var hashbuf = this._SignatureHash() var sig = ECDSA.sign(hashbuf, privateKey, 'endian') var sigBuf = sig.toBuffer() @@ -110,27 +110,27 @@ UContractTx.prototype._Signtx = function(privateKey) { return sigBuf; } -UContractTx.prototype.SerializeTx = function(privateKey) { +UContractTx.prototype.SerializeTx = function (privateKey) { var writer = new WriterHelper(); writer.writeUInt8(this.nTxType) writer.writeVarInt(4, this.nVersion) writer.writeVarInt(4, this.nValidHeight) - if(this.srcRegId!=null&&!_.isEmpty(this.srcRegId)){ + if (this.srcRegId != null && !_.isEmpty(this.srcRegId)) { writer.writeRegId(this.srcRegId) - }else if (this.publicKey!=null&&!_.isEmpty(this,this.publicKey)){ - var pubKey= Buffer.from(this.publicKey, 'hex') - writer.writeUInt8(pubKey.length) - writer.write(pubKey) - }else{ + } else if (this.publicKey != null && !_.isEmpty(this, this.publicKey)) { + var pubKey = Buffer.from(this.publicKey, 'hex') + writer.writeUInt8(pubKey.length) + writer.write(pubKey) + } else { return false; - } - writer.writeRegId(this.destRegId) - writer.writeString(Buffer.from(this.vContract)) - writer.writeVarInt(8, this.fees) - writer.writeString(Buffer.from(this.feesCoinType)) - writer.writeString(Buffer.from(this.coinType)) - writer.writeVarInt(8, this.value) + } + writer.writeRegId(this.destRegId) + writer.writeString(Buffer.from(this.vContract)) + writer.writeVarInt(8, this.fees) + writer.writeString(Buffer.from(this.feesCoinType)) + writer.writeString(Buffer.from(this.coinType)) + writer.writeVarInt(8, this.value) var sigBuf = this._Signtx(privateKey) writer.writeBuf(sigBuf) From c29b66c293b59e248442fc4581900ce649ab3dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 12:37:04 +0800 Subject: [PATCH 13/33] update --- demo/test-baasclient.js | 41 +++++++++ dist/wicc-wallet-lib.js | 23 +++-- index.js | 2 + package-lock.json | 188 +++++++++++++++++++++++++++++++++++++++- package.json | 6 +- src/BaasClient.js | 48 ++++++++++ src/NodeClient.js | 0 src/Wallet.js | 2 +- 8 files changed, 298 insertions(+), 12 deletions(-) create mode 100644 demo/test-baasclient.js delete mode 100644 src/NodeClient.js diff --git a/demo/test-baasclient.js b/demo/test-baasclient.js new file mode 100644 index 0000000..8dcb743 --- /dev/null +++ b/demo/test-baasclient.js @@ -0,0 +1,41 @@ +var { WaykiTransaction, WalletManager, BaasClient } = require("../index") + +var wallet = new WalletManager("testnet").importWalletFromPrivateKey("Y8AvAr4cajNnYfzVU9gAzNuQ8rYWJ5Dq5XyTkczeb9mNmGxEKWua") +console.log('wallet:') +console.log(wallet) + +var baasClinet = new BaasClient("https://baas-test.wiccdev.org/v2/api") + +// get account information +var response = baasClinet.getAccountInfo(wallet.address) //returns a Promise + +// get blcok count +var countResponse = baasClinet.getBlockCount() //returns a Promise + +Promise.all([response, countResponse]).then(res => { + console.log("account info:") + console.log(res[0].data) + console.log("block count:") + console.log(res[1].data) + + // broadcast transaction signature data to blockchain + var txParams = { + nTxType: 3, + nValidHeight: res[1].data, + fees: 10000000, + srcRegId: res[0].data.regid, + destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', + amount: 100000000, + memo: "test transfer" + }; + console.log(txParams) + var transaction = new WaykiTransaction(txParams, wallet) + var rawTx = transaction.genRawTx() + + console.log(rawTx) + + baasClinet.sendRawTx(rawTx).then(res => { + console.log("success-hash:") + console.log(res.data.hash) + }) +}) diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js index 0baf97a..3dd5a99 100644 --- a/dist/wicc-wallet-lib.js +++ b/dist/wicc-wallet-lib.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletLib=t():e.WiccWalletLib=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=278)}([function(e,t,r){var n=r(7),i=r(41),o=r(31),a=r(32),s=r(42),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletLib=t():e.WiccWalletLib=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=287)}([function(e,t,r){var n=r(7),i=r(42),o=r(31),a=r(32),s=r(43),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var n=r(482),i=r(483),o=r(220);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(27))},function(e,t,r){(function(e,n){var i; +var n=r(491),i=r(492),o=r(221);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(27))},function(e,t,r){(function(e,n){var i; /** * @license * Lodash @@ -13,21 +13,21 @@ var n=r(482),i=r(483),o=r(220);function a(){return u.TYPED_ARRAY_SUPPORT?2147483 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,R=16,B=1,P=2,O=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Rt=parseInt,Bt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Bt||Pt||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Bt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Ot:Nr.defaults(Ot.Object(),t,Nr.pick(Ot,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Ot._,gt=rt("^"+ft.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Bt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Ot.Date.now&&i.now,zr=t.setTimeout!==Ot.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,Pn(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Os(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Oo:Po:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Ru),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Bi(e,t,r)}var Zi=Cr||function(e){return Ot.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Bo(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=R-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Bo(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:On(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):On(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){On(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Bs(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Rs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Bs(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Bt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Ps=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Os=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Pr(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===O||e===-O?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Rt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Bo(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Oo(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Bo(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Bo(function(e,t){return Gt(t,function(t){t=ca(t),On(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Ru(e){return e}function Bu(e){return fi("function"==typeof e?e:jn(e,d))}var Pu=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ou=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=zi(t))&&Ir(e)?Xi(Pr(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Bi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Bi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Bi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Bt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ra,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Ba,pn.unzipWith=Pa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Oa,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Ru,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Os,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Ru,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Ru)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Ru,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Ot._===this&&(Ot._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Br(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Ps(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Or):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==B||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Ru)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Ot._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(27),r(123)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(88),i=r(12),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;h>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;re.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(44),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(184),o=r(47),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(87),o=r(24),a=r(59),s=r(108),u=r(8),f=r(12),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(48);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(547).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(123)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"===n(t)},isHexa:o,isHexaString:o,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(2),o=r(3),a=r(12),s=r(23),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(51),a=r(602),s=(r(23),r(3)),u=r(14),f=r(21),c=r(266),h=r(267),d=r(15);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(105),s=r(80),u=r(8),f=r(23),c=r(59);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(40)}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(553).version,n.utils=r(554),n.rand=r(249),n.curve=r(128),n.curves=r(559),n.ec=r(567),n.eddsa=r(571)},function(e,t,r){var n=r(18),i=r(67);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(35),a=r(68)("src"),s=r(282),u=(""+s).split("toString");r(41).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(48),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(488).version,n.utils=r(489),n.rand=r(490),n.curve=r(124),n.curves=r(496),n.ec=r(505),n.eddsa=r(509)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(94),i=r(48);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(95),i=r(67),o=r(36),a=r(47),s=r(35),u=r(184),f=Object.getOwnPropertyDescriptor;t.f=r(17)?f:function(e,t){if(e=o(e),t=a(t,!0),u)try{return f(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(35),i=r(20),o=r(136)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){e.exports=r(263),e.exports.Interpreter=r(596)},function(e,t){var r=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(28);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(485).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(123)(e))},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(41),o=r(10);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(42),i=r(94),o=r(20),a=r(16),s=r(152);e.exports=function(e,t){var r=1==e,u=2==e,f=3==e,c=4==e,h=6==e,d=5==e||h,l=t||s;return function(t,s,p){for(var b,g,m=o(t),v=i(m),y=n(s,p,3),w=a(v.length),_=0,S=r?l(t,w):u?l(t,0):void 0;w>_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,R=16,B=1,P=2,O=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Rt=parseInt,Bt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Bt||Pt||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Bt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Ot:Nr.defaults(Ot.Object(),t,Nr.pick(Ot,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Ot._,gt=rt("^"+ft.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Bt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Ot.Date.now&&i.now,zr=t.setTimeout!==Ot.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,Pn(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Os(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Oo:Po:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Ru),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Bi(e,t,r)}var Zi=Cr||function(e){return Ot.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Bo(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=R-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Bo(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:On(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):On(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){On(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Bs(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Rs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Bs(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Bt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Ps=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Os=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Pr(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===O||e===-O?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Rt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Bo(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Oo(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Bo(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Bo(function(e,t){return Gt(t,function(t){t=ca(t),On(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Ru(e){return e}function Bu(e){return fi("function"==typeof e?e:jn(e,d))}var Pu=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ou=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=zi(t))&&Ir(e)?Xi(Pr(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Bi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Bi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Bi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Bt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ra,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Ba,pn.unzipWith=Pa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Oa,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Ru,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Os,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Ru,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Ru)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Ru,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Ot._===this&&(Ot._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Br(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Ps(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Or):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==B||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Ru)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Ot._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(27),r(124)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(89),i=r(12),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;h>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;re.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(45),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(185),o=r(49),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(88),o=r(24),a=r(60),s=r(109),u=r(8),f=r(12),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(50);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(556).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(124)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"===n(t)},isHexa:o,isHexaString:o,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(2),o=r(3),a=r(12),s=r(23),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(53),a=r(611),s=(r(23),r(3)),u=r(14),f=r(21),c=r(267),h=r(268),d=r(15);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(106),s=r(81),u=r(8),f=r(23),c=r(60);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(41)}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(562).version,n.utils=r(563),n.rand=r(250),n.curve=r(129),n.curves=r(568),n.ec=r(576),n.eddsa=r(580)},function(e,t,r){var n=r(18),i=r(68);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(36),a=r(69)("src"),s=r(291),u=(""+s).split("toString");r(42).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(50),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(497).version,n.utils=r(498),n.rand=r(499),n.curve=r(125),n.curves=r(505),n.ec=r(514),n.eddsa=r(518)},function(e,t,r){"use strict";var n=r(279),i=r(677),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(494).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(124)(e))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(27))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(39),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(58),o=r(15),a=r(25),s=r(12),u=r(51),f=r(29);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, +function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(79),i=r(506);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(40),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(59),o=r(15),a=r(25),s=r(12),u=r(53),f=r(29);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, //!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r-1?this.writeRegId(e[r].publicKey):this.writeString(t.from(e[r].publicKey,"hex")),this.writeVarInt(8,i)}},c.prototype.writeDestArrData=function(e,t){this.writeVarintNum(e.length);for(var r=0;rr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Re=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Be=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Pe=!!q&&o(function(){le.call(new q(1))}),Oe=function(){return le.apply(Pe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(P(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Re.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(12),a=r(14),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(68)("meta"),i=r(11),o=r(35),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(13)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(164).Transform,o=r(168).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(24),o=r(40),a=r(61),s=r(60),u=r(15),f=r(14),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(177),g=r(178),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(186),i=r(137).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(13)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(42),i=r(199),o=r(149),a=r(4),s=r(16),u=r(151),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(125),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(100);o.inherits=r(5);var a=r(228),s=r(167);o.inherits(h,a);for(var u=i(s.prototype),f=0;f"},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(182),r(183),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.MD5,c=u.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=s.create(),o=i.words,a=r.keySize,u=r.iterations;o.lengtho)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],R=o[3];E=f(E,M,T,R,a,7,s[0]),R=f(R,E,M,T,u,12,s[1]),T=f(T,R,E,M,l,17,s[2]),M=f(M,T,R,E,p,22,s[3]),E=f(E,M,T,R,b,7,s[4]),R=f(R,E,M,T,g,12,s[5]),T=f(T,R,E,M,m,17,s[6]),M=f(M,T,R,E,v,22,s[7]),E=f(E,M,T,R,y,7,s[8]),R=f(R,E,M,T,w,12,s[9]),T=f(T,R,E,M,_,17,s[10]),M=f(M,T,R,E,S,22,s[11]),E=f(E,M,T,R,x,7,s[12]),R=f(R,E,M,T,I,12,s[13]),T=f(T,R,E,M,k,17,s[14]),E=c(E,M=f(M,T,R,E,A,22,s[15]),T,R,u,5,s[16]),R=c(R,E,M,T,m,9,s[17]),T=c(T,R,E,M,S,14,s[18]),M=c(M,T,R,E,a,20,s[19]),E=c(E,M,T,R,g,5,s[20]),R=c(R,E,M,T,_,9,s[21]),T=c(T,R,E,M,A,14,s[22]),M=c(M,T,R,E,b,20,s[23]),E=c(E,M,T,R,w,5,s[24]),R=c(R,E,M,T,k,9,s[25]),T=c(T,R,E,M,p,14,s[26]),M=c(M,T,R,E,y,20,s[27]),E=c(E,M,T,R,I,5,s[28]),R=c(R,E,M,T,l,9,s[29]),T=c(T,R,E,M,v,14,s[30]),E=h(E,M=c(M,T,R,E,x,20,s[31]),T,R,g,4,s[32]),R=h(R,E,M,T,y,11,s[33]),T=h(T,R,E,M,S,16,s[34]),M=h(M,T,R,E,k,23,s[35]),E=h(E,M,T,R,u,4,s[36]),R=h(R,E,M,T,b,11,s[37]),T=h(T,R,E,M,v,16,s[38]),M=h(M,T,R,E,_,23,s[39]),E=h(E,M,T,R,I,4,s[40]),R=h(R,E,M,T,a,11,s[41]),T=h(T,R,E,M,p,16,s[42]),M=h(M,T,R,E,m,23,s[43]),E=h(E,M,T,R,w,4,s[44]),R=h(R,E,M,T,x,11,s[45]),T=h(T,R,E,M,A,16,s[46]),E=d(E,M=h(M,T,R,E,l,23,s[47]),T,R,a,6,s[48]),R=d(R,E,M,T,v,10,s[49]),T=d(T,R,E,M,k,15,s[50]),M=d(M,T,R,E,g,21,s[51]),E=d(E,M,T,R,x,6,s[52]),R=d(R,E,M,T,p,10,s[53]),T=d(T,R,E,M,_,15,s[54]),M=d(M,T,R,E,u,21,s[55]),E=d(E,M,T,R,y,6,s[56]),R=d(R,E,M,T,A,10,s[57]),T=d(T,R,E,M,m,15,s[58]),M=d(M,T,R,E,I,21,s[59]),E=d(E,M,T,R,b,6,s[60]),R=d(R,E,M,T,S,10,s[61]),T=d(T,R,E,M,l,15,s[62]),M=d(M,T,R,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+R|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(41),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(62)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(28),o=r(13)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(53),i=r(78);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(58),a=r(12),s=r(23),u=r(59),f=r(21),c=r(24);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(88).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(52),r(1).Buffer)},function(e,t,r){var n=r(36),i=r(16),o=r(70);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(43);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(44),i=r(48);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(43),o=r(13)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(84),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(203);var n=r(32),i=r(31),o=r(10),a=r(48),s=r(13),u=r(155),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(76),s=r(63),u=r(75),f=r(74),c=r(11),h=r(10),d=r(114),l=r(83),p=r(141);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(68),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(62)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(28),o=r(42),a=r(75);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(492),n.short=r(493),n.mont=r(494),n.edwards=r(495)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(163);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(555),n.short=r(556),n.mont=r(557),n.edwards=r(558)},function(e,t,r){var n=r(574),i=r(586),o=r(587),a=r(172),s=r(238),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(262),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(177),e.exports.Input=r(178),e.exports.Output=r(61),e.exports.UnspentOutput=r(264),e.exports.Signature=r(107),e.exports.Sighash=r(66),e.exports.SighashWitness=r(179),e.exports.RegisterAccountTx=r(265),e.exports.CommonTx=r(268),e.exports.ContractTx=r(269),e.exports.DelegateTx=r(270)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(14),o=r(12),a=r(60),s=r(15),u=r(8),f=(r(23),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(62),i=r(0),o=r(32),a=r(31),s=r(86),u=r(146),f=r(83),c=r(38),h=r(13)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(71),i=r(67),o=r(83),a={};r(31)(a,r(13)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(113),i=r(48);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(86),i=r(13)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(67);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(84),i=r(13)("iterator"),o=r(86);e.exports=r(41).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(371);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(64),i=r(202),o=r(86),a=r(36);e.exports=r(145)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(96),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(43)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(157).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(43)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(28);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(62),a=r(119),s=r(31),u=r(76),f=r(10),c=r(74),h=r(44),d=r(16),l=r(212),p=r(72).f,b=r(18).f,g=r(153),m=r(83),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,R=S.LN2,B=i?"_b":"buffer",P=i?"_l":"byteLength",O=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/R),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[P])throw x(y);var o=e[B]._b,a=i+e[O],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[P])throw x(y);for(var s=e[B]._b,u=a+e[O],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[P]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[P],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[B]=e,this[O]=i,this[P]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(221),a=r(29),s=r(108),u=r(8),f=r(1),c=r(622),h=r(625),d=r(274),l=r(181),p=r(12),b={2:{txName:"ACCOUNT_REGISTER_TX",txAction:r(265)},3:{txName:"BCOIN_TRANSFER_TX",txAction:r(268)},4:{txName:"LCONTRACT_INVOKE_TX",txAction:r(269)},5:{txName:"LCONTRACT_DEPLOY_TX",txAction:r(649)},6:{txName:"DELEGATE_VOTE_TX",txAction:r(270)},9:{txName:"ASSET_ISSUE_TX",txAction:r(650)},10:{txName:"ASSET_UPDATE_TX",txAction:r(651)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(652)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(653)},21:{txName:"CDP_STAKE_TX",txAction:r(654)},22:{txName:"CDP_REDEEMP_TX",txAction:r(655)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(656)},84:{txName:"DEX_LIMIT_BUY_ORDER_TX",txAction:r(657)},85:{txName:" DEX_LIMIT_SELL_ORDER_TX",txAction:r(658)},86:{txName:"DEX_MARKET_BUY_ORDER_TX",txAction:r(659)},87:{txName:"DEX_MARKET_SELL_ORDER_TX",txAction:r(660)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(661)}},g=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var m in g._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return g._fromObject(e)},g._fromObject=function(e){return i.checkArgument(e,"data is required"),{network:e.network}},g.prototype.getBIP44Path=function(){return"testnet"===this.network?"m/44'/999999'/0'/0/0":"m/44'/99999'/0'/0/0"},g.prototype.createAllCoinMnemonicCode=function(e){return new o(o.Words[e]).toString()},g.prototype.checkMnemonicCode=function(e){return o.isValid(e)},g.prototype.validateAddress=function(e){return a.isValid(e,this.network)},g.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress()},g.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),n=new f.Buffer(t,"utf8"),i=u.sha256(n),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress().toString(),g=new Date,m=parseInt(g.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),x=w.toString("hex"),I=d.enc.Hex.parse(x),k=p.toString("hex"),A=h.encrypt(S,I,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,I,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:m,hashPwd:i,salt:r},symbol:"WICC",address:b}},g.prototype.getPriKeyFromSeed=function(e,r){var n=new f.Buffer(r,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(m,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new f.Buffer(t,"utf8"),n=u.sha256(r);if(!p.equal(n,e.hashPwd))return null;var i=e.salt,o=c(t,i,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=e.encMneData.encryptedBytes;return h.decrypt(b,m,v)},g.prototype.changePassword=function(e,t,r){var n=new f.Buffer(t,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m),y=e.encSeedData.encryptedBytes,w=h.decrypt(g,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(g,v,_),x=new f.Buffer(r,"utf8"),I=u.sha256(x);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m);var k=h.encrypt(g,v,w);return{encMneData:{encryptedBytes:h.encrypt(g,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:I,salt:o}},g.prototype.createSignTransaction=function(e,t){return new(0,b[t.nTxType].txAction)(t).SerializeTx(e)},g.PROTOCAL_VERSION=1,b)g[b[m].txName]=Number(m);e.exports=g}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(53),n.common=r(98),n.sha=r(498),n.ripemd=r(502),n.hmac=r(503),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(227),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(165).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(166),i.Writable=r(518),i.Duplex=r(519),i.Transform=r(520),i.PassThrough=r(521),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(228)).Stream=t,t.Readable=t,t.Writable=r(167),t.Duplex=r(79),t.Transform=r(232),t.PassThrough=r(517)},function(e,t,r){"use strict";(function(t,n,i){var o=r(125);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(100);f.inherits=r(5);var c={deprecate:r(516)},h=r(229),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(230);function g(){}function m(e,t){s=s||r(79),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(79),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(52),r(231).setImmediate,r(27))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(227),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(522),t.sha1=r(523),t.sha224=r(524),t.sha256=r(233),t.sha384=r(525),t.sha512=r(234)},function(e,t,r){"use strict";t.utils=r(531),t.Cipher=r(532),t.DES=r(533),t.CBC=r(534),t.EDE=r(535)},function(e,t,r){var n=r(536),i=r(544),o=r(244);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(537),CBC:r(538),CFB:r(539),CFB8:r(540),CFB1:r(541),OFB:r(542),CTR:r(242),GCM:r(242)},i=r(244);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(22),i=r(89);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(102),n.sha=r(560),n.ripemd=r(564),n.hmac=r(565),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(12),s=r(23);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(597),s=r(21),u=r(12),f=r(23),c=r(60),h=r(15),d=r(8),l=r(24),p=r(66),b=r(179),g=r(29),m=r(264),v=r(178),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(61),I=r(40),k=r(81),A=r(14);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var R={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",R),R.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",R),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(106),e.exports.PublicKey=r(598),e.exports.PublicKeyHash=r(599),e.exports.MultiSig=r(600),e.exports.MultiSigScriptHash=r(601)},function(e,t,r){"use strict";(function(t){var n=r(24),i=(r(40),r(61),r(60)),o=r(15),a=(r(14),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(51),i=r(1),o=r(2),a=r(3),s=r(14),u=r(130),f=r(105),c=r(8),h=r(80),d=r(87),l=r(81),p=r(108),b=r(21),g=b.HDPrivateKey,m=r(12),v=r(23);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(272);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(69);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(36),i=r(72).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(69),o=r(110),a=r(95),s=r(20),u=r(94),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(28),i=r(11),o=r(192),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(85).trim;e.exports=1/n(r(140)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(43);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(143),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(28),i=r(20),o=r(94),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(70),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(155);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(96)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(159);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(208),i=r(77);e.exports=r(118)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(71),o=r(76),a=r(42),s=r(74),u=r(75),f=r(145),c=r(202),h=r(73),d=r(17),l=r(63).fastKey,p=r(77),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(208),i=r(77);e.exports=r(118)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(50)(0),a=r(32),s=r(63),u=r(189),f=r(211),c=r(11),h=r(77),d=r(77),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(118)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(76),i=r(63).getWeak,o=r(4),a=r(11),s=r(74),u=r(75),f=r(50),c=r(35),h=r(77),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(44),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(72),i=r(110),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(111),i=r(11),o=r(16),a=r(42),s=r(13)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(142),o=r(48);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(69),o=r(36),a=r(95).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(84),i=r(218);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(222),i=n.crypto.BN,o=r(613),a=n.deps._,s=r(614),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(615),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(53).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(53),i=r(98),o=r(224),a=r(78),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(125);e.exports=y;var o,a=r(220);y.ReadableState=v;r(165).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(229),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(100);h.inherits=r(5);var d=r(512),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(513),g=r(230);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(79));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(168).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(79),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(515),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(27))},function(e,t,r){"use strict";e.exports=a;var n=r(79),i=r(100);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(90),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],R=t[M-30+1],B=l(T,R),P=p(R,T),O=b(T=t[M-4],R=t[M-4+1]),N=g(R,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=P+j|0,L=B+C+m(D,P)|0;L=(L=L+O+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(526),o=r(65),a=r(6).Buffer,s=r(236),u=r(169),f=r(170),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(52))},function(e,t,r){var n=r(236),i=r(169),o=r(170),a=r(239),s=r(240),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(22),i=r(249);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(102),o=r(251),a=r(39),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(23),a=r(40),s=r(29),u=r(180);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=r(29),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(55),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(88),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,R=p,B=b,P=g,O=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&B^T&O^B&O,be=R&P^R&N^P&N,ge=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),me=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=O,j=N,O=B,N=P,B=T,P=R,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((R=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+R,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+P,i.high=b+B+(g>>>0

>>0?1:0),v=o.low=v+N,o.high=m+O+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){(function(t){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!s.trim(t).length)throw"private key is required";this.privateKey=t,this._getAddress()}var r,u,f;return r=e,(u=[{key:"_getAddress",value:function(){var e=i.fromWIF(this.privateKey);this.address=e.toAddress().toString()}},{key:"signMessage",value:function(e){var r=i.fromWIF(this.privateKey),n=t.from(e),s=o.sha256(o.sha256ripemd160(n));return a.sign(s,r,"endian")}},{key:"publicKeyAsHex",value:function(){return i.fromWIF(this.privateKey).toPublicKey()}}])&&n(r.prototype,u),f&&n(r,f),e}();e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){r(279),e.exports=r(481)},function(e,t,r){"use strict";(function(e){if(r(280),r(477),r(478),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(27))},function(e,t,r){r(281),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(361),r(362),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(381),r(382),r(383),r(384),r(154),r(385),r(203),r(386),r(204),r(387),r(388),r(389),r(390),r(391),r(207),r(209),r(210),r(392),r(393),r(394),r(395),r(396),r(397),r(398),r(399),r(400),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),r(475),r(476),e.exports=r(41)},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(17),a=r(0),s=r(32),u=r(63).KEY,f=r(10),c=r(93),h=r(83),d=r(68),l=r(13),p=r(185),b=r(135),g=r(283),m=r(111),v=r(4),y=r(11),w=r(20),_=r(36),S=r(47),x=r(67),I=r(71),k=r(188),A=r(37),E=r(110),M=r(18),T=r(69),R=A.f,B=M.f,P=k.f,O=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof O&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=R(H,t);n&&delete H[t],B(e,t,r),n&&e!==H&&B(H,t,n)}:B,G=function(e){var t=L[e]=I(O.prototype);return t._k=e,t},Y=F&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||B(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):B(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=R(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=P(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=P(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(72).f=k.f=Q,r(95).f=J,E.f=ee,o&&!r(62)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=O();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),O.prototype[z]||r(31)(O.prototype,z,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(93)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(69),i=r(110),o=r(95);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(71)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(187)})},function(e,t,r){var n=r(36),i=r(37).f;r(49)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(38);r(49)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(69);r(49)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(49)("getOwnPropertyNames",function(){return r(188).f})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(63).onFreeze;r(49)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(49)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(49)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(189)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(190)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(139).set})},function(e,t,r){"use strict";var n=r(84),i={};i[r(13)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(191)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(38),o=r(13)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(193);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(194);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(35),o=r(43),a=r(141),s=r(47),u=r(10),f=r(72).f,c=r(37).f,h=r(18).f,d=r(85).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(71)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(44),o=r(195),a=r(142),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(195),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(196)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(196),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(194);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(193);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(197),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(143);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(198)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(197)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(143)})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(144),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(70),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(36),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(112)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".endsWith;n(n.P+n.F*r(148)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(147);n(n.P+n.F*r(148)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(142)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(147),a="".startsWith;n(n.P+n.F*r(148)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(360);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(13)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(363))},function(e,t,r){"use strict";var n=r(4),i=r(47);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(111)})},function(e,t,r){"use strict";var n=r(42),i=r(0),o=r(20),a=r(199),s=r(149),u=r(16),f=r(150),c=r(151);i(i.S+i.F*!r(114)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(150);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(36),o=[].join;n(n.P+n.F*(r(94)!=Object||!r(45)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(138),o=r(43),a=r(70),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(201)}),r(64)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(153)}),r(64)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(50)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("find")},function(e,t,r){"use strict";var n=r(0),i=r(50)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)(o)},function(e,t,r){r(73)("Array")},function(e,t,r){var n=r(7),i=r(141),o=r(18).f,a=r(72).f,s=r(113),u=r(96),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(13)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(73)("RegExp")},function(e,t,r){"use strict";r(204);var n=r(4),i=r(96),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(156),a=r(115);r(116)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(44),s=r(156),u=r(115),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(116)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+R,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(190),o=r(115);r(116)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(113),i=r(4),o=r(97),a=r(156),s=r(16),u=r(115),f=r(155),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(116)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=P(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};B||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(76)(E.prototype,{then:function(e,t){var r=R(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=R=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!B,{Promise:E}),r(83)(E,"Promise"),r(73)("Promise"),a=r(41).Promise,h(h.S+h.F*!B,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!B),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(B&&r(114)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=R(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=R(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(211),i=r(77);r(118)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(119),o=r(160),a=r(4),s=r(70),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(97),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(37),i=r(38),o=r(35),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(37),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(38),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(213)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(37),o=r(38),a=r(35),s=r(0),u=r(67),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(139);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(109)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(64)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(20),a=r(16),s=r(28),u=r(152);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(64)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(214),o=r(20),a=r(16),s=r(44),u=r(152);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(64)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(112)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(117),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(117),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(85)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(85)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(48),o=r(16),a=r(113),s=r(96),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(146)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(135)("asyncIterator")},function(e,t,r){r(135)("observable")},function(e,t,r){var n=r(0),i=r(213),o=r(36),a=r(37),s=r(150);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(216)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(216)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(120),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(120),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(120),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(47),a=r(38),s=r(37).f;r(17)&&n(n.P+r(120),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(217)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(217)("Set")})},function(e,t,r){r(121)("Map")},function(e,t,r){r(121)("Set")},function(e,t,r){r(121)("WeakMap")},function(e,t,r){r(121)("WeakSet")},function(e,t,r){r(122)("Map")},function(e,t,r){r(122)("Set")},function(e,t,r){r(122)("WeakMap")},function(e,t,r){r(122)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(43);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(219),o=r(198);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(219)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(41),o=r(7),a=r(97),s=r(206);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(159),o=r(205);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(57),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(209),i=r(218),o=r(57),a=r(4),s=r(38),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(38),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(57),i=r(4),o=r(28),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(158)(),o=r(7).process,a="process"==r(43)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(41),a=r(158)(),s=r(13)("observable"),u=r(28),f=r(4),c=r(74),h=r(76),d=r(31),l=r(75),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(157);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(154),i=r(69),o=r(32),a=r(7),s=r(31),u=r(86),f=r(13),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new R(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"1.0.5",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"src/index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(487);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(124),i=r(46),o=r(58),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(124),i=r(34),o=r(46),a=r(58),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(162),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(504)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(499),t.sha224=r(500),t.sha256=r(225),t.sha384=r(501),t.sha512=r(226)},function(e,t,r){"use strict";var n=r(53),i=r(98),o=r(224),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(162),i=r(223),o=r(78);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(46),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(162),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(510),f=r(511);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(90),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(233),o=r(90),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(234),o=r(90),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(65),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(39),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(245),i=r(6).Buffer,o=r(173),a=r(246),s=r(65),u=r(126),f=r(127);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(247),i=r(549),o=r(550);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(22),i=new(r(248)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(247),h=r(89);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(128),i=r(22),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(128),i=r(30),o=r(22),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(175),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(566)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(561),t.sha224=r(562),t.sha256=r(252),t.sha384=r(563),t.sha512=r(253)},function(e,t,r){"use strict";var n=r(54),i=r(102),o=r(251),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(175),i=r(250),o=r(39);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(175),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(572),f=r(573);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(129),i=r(259),o=r(260),a=r(22),s=r(174),u=r(99),f=r(261),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(89),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(27),r(52))},function(e,t,r){"use strict";var n=r(595).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(R);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=B,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i-1?this.writeRegId(e[r].publicKey):this.writeString(t.from(e[r].publicKey,"hex")),this.writeVarInt(8,i)}},c.prototype.writeDestArrData=function(e,t){this.writeVarintNum(e.length);for(var r=0;rr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Re=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Be=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Pe=!!q&&o(function(){le.call(new q(1))}),Oe=function(){return le.apply(Pe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(P(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Re.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(12),a=r(14),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(69)("meta"),i=r(11),o=r(36),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(13)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(165).Transform,o=r(169).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(24),o=r(41),a=r(62),s=r(61),u=r(15),f=r(14),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(178),g=r(179),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(187),i=r(138).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(13)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(43),i=r(200),o=r(150),a=r(4),s=r(16),u=r(152),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(126),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(101);o.inherits=r(5);var a=r(229),s=r(168);o.inherits(h,a);for(var u=i(s.prototype),f=0;f"},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(183),r(184),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.MD5,c=u.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=s.create(),o=i.words,a=r.keySize,u=r.iterations;o.lengtho)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],R=o[3];E=f(E,M,T,R,a,7,s[0]),R=f(R,E,M,T,u,12,s[1]),T=f(T,R,E,M,l,17,s[2]),M=f(M,T,R,E,p,22,s[3]),E=f(E,M,T,R,b,7,s[4]),R=f(R,E,M,T,g,12,s[5]),T=f(T,R,E,M,m,17,s[6]),M=f(M,T,R,E,v,22,s[7]),E=f(E,M,T,R,y,7,s[8]),R=f(R,E,M,T,w,12,s[9]),T=f(T,R,E,M,_,17,s[10]),M=f(M,T,R,E,S,22,s[11]),E=f(E,M,T,R,x,7,s[12]),R=f(R,E,M,T,I,12,s[13]),T=f(T,R,E,M,k,17,s[14]),E=c(E,M=f(M,T,R,E,A,22,s[15]),T,R,u,5,s[16]),R=c(R,E,M,T,m,9,s[17]),T=c(T,R,E,M,S,14,s[18]),M=c(M,T,R,E,a,20,s[19]),E=c(E,M,T,R,g,5,s[20]),R=c(R,E,M,T,_,9,s[21]),T=c(T,R,E,M,A,14,s[22]),M=c(M,T,R,E,b,20,s[23]),E=c(E,M,T,R,w,5,s[24]),R=c(R,E,M,T,k,9,s[25]),T=c(T,R,E,M,p,14,s[26]),M=c(M,T,R,E,y,20,s[27]),E=c(E,M,T,R,I,5,s[28]),R=c(R,E,M,T,l,9,s[29]),T=c(T,R,E,M,v,14,s[30]),E=h(E,M=c(M,T,R,E,x,20,s[31]),T,R,g,4,s[32]),R=h(R,E,M,T,y,11,s[33]),T=h(T,R,E,M,S,16,s[34]),M=h(M,T,R,E,k,23,s[35]),E=h(E,M,T,R,u,4,s[36]),R=h(R,E,M,T,b,11,s[37]),T=h(T,R,E,M,v,16,s[38]),M=h(M,T,R,E,_,23,s[39]),E=h(E,M,T,R,I,4,s[40]),R=h(R,E,M,T,a,11,s[41]),T=h(T,R,E,M,p,16,s[42]),M=h(M,T,R,E,m,23,s[43]),E=h(E,M,T,R,w,4,s[44]),R=h(R,E,M,T,x,11,s[45]),T=h(T,R,E,M,A,16,s[46]),E=d(E,M=h(M,T,R,E,l,23,s[47]),T,R,a,6,s[48]),R=d(R,E,M,T,v,10,s[49]),T=d(T,R,E,M,k,15,s[50]),M=d(M,T,R,E,g,21,s[51]),E=d(E,M,T,R,x,6,s[52]),R=d(R,E,M,T,p,10,s[53]),T=d(T,R,E,M,_,15,s[54]),M=d(M,T,R,E,u,21,s[55]),E=d(E,M,T,R,y,6,s[56]),R=d(R,E,M,T,A,10,s[57]),T=d(T,R,E,M,m,15,s[58]),M=d(M,T,R,E,I,21,s[59]),E=d(E,M,T,R,b,6,s[60]),R=d(R,E,M,T,S,10,s[61]),T=d(T,R,E,M,l,15,s[62]),M=d(M,T,R,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+R|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(42),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(63)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(28),o=r(13)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(54),i=r(79);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(59),a=r(12),s=r(23),u=r(60),f=r(21),c=r(24);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(89).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(48),r(1).Buffer)},function(e,t,r){var n=r(37),i=r(16),o=r(71);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(45),i=r(50);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(44),o=r(13)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(85),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(204);var n=r(32),i=r(31),o=r(10),a=r(50),s=r(13),u=r(156),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(77),s=r(64),u=r(76),f=r(75),c=r(11),h=r(10),d=r(115),l=r(84),p=r(142);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(69),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(63)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(28),o=r(43),a=r(76);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(501),n.short=r(502),n.mont=r(503),n.edwards=r(504)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(164);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(564),n.short=r(565),n.mont=r(566),n.edwards=r(567)},function(e,t,r){var n=r(583),i=r(595),o=r(596),a=r(173),s=r(239),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(263),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(178),e.exports.Input=r(179),e.exports.Output=r(62),e.exports.UnspentOutput=r(265),e.exports.Signature=r(108),e.exports.Sighash=r(67),e.exports.SighashWitness=r(180),e.exports.RegisterAccountTx=r(266),e.exports.CommonTx=r(269),e.exports.ContractTx=r(270),e.exports.DelegateTx=r(271)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(14),o=r(12),a=r(61),s=r(15),u=r(8),f=(r(23),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(63),i=r(0),o=r(32),a=r(31),s=r(87),u=r(147),f=r(84),c=r(39),h=r(13)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(72),i=r(68),o=r(84),a={};r(31)(a,r(13)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(114),i=r(50);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(87),i=r(13)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(68);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(85),i=r(13)("iterator"),o=r(87);e.exports=r(42).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(380);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(71),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(65),i=r(203),o=r(87),a=r(37);e.exports=r(146)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(97),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(44)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(158).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(44)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(28);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(63),a=r(120),s=r(31),u=r(77),f=r(10),c=r(75),h=r(45),d=r(16),l=r(213),p=r(73).f,b=r(18).f,g=r(154),m=r(84),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,R=S.LN2,B=i?"_b":"buffer",P=i?"_l":"byteLength",O=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/R),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[P])throw x(y);var o=e[B]._b,a=i+e[O],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[P])throw x(y);for(var s=e[B]._b,u=a+e[O],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[P]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[P],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[B]=e,this[O]=i,this[P]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(222),a=r(29),s=r(109),u=r(8),f=r(1),c=r(631),h=r(634),d=r(275),l=r(182),p=r(12),b={2:{txName:"ACCOUNT_REGISTER_TX",txAction:r(266)},3:{txName:"BCOIN_TRANSFER_TX",txAction:r(269)},4:{txName:"LCONTRACT_INVOKE_TX",txAction:r(270)},5:{txName:"LCONTRACT_DEPLOY_TX",txAction:r(658)},6:{txName:"DELEGATE_VOTE_TX",txAction:r(271)},9:{txName:"ASSET_ISSUE_TX",txAction:r(659)},10:{txName:"ASSET_UPDATE_TX",txAction:r(660)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(661)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(662)},21:{txName:"CDP_STAKE_TX",txAction:r(663)},22:{txName:"CDP_REDEEMP_TX",txAction:r(664)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(665)},84:{txName:"DEX_LIMIT_BUY_ORDER_TX",txAction:r(666)},85:{txName:" DEX_LIMIT_SELL_ORDER_TX",txAction:r(667)},86:{txName:"DEX_MARKET_BUY_ORDER_TX",txAction:r(668)},87:{txName:"DEX_MARKET_SELL_ORDER_TX",txAction:r(669)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(670)}},g=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var m in g._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return g._fromObject(e)},g._fromObject=function(e){return i.checkArgument(e,"data is required"),{network:e.network}},g.prototype.getBIP44Path=function(){return"testnet"===this.network?"m/44'/999999'/0'/0/0":"m/44'/99999'/0'/0/0"},g.prototype.createAllCoinMnemonicCode=function(e){return new o(o.Words[e]).toString()},g.prototype.checkMnemonicCode=function(e){return o.isValid(e)},g.prototype.validateAddress=function(e){return a.isValid(e,this.network)},g.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress()},g.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),n=new f.Buffer(t,"utf8"),i=u.sha256(n),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress().toString(),g=new Date,m=parseInt(g.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),x=w.toString("hex"),I=d.enc.Hex.parse(x),k=p.toString("hex"),A=h.encrypt(S,I,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,I,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:m,hashPwd:i,salt:r},symbol:"WICC",address:b}},g.prototype.getPriKeyFromSeed=function(e,r){var n=new f.Buffer(r,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(m,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new f.Buffer(t,"utf8"),n=u.sha256(r);if(!p.equal(n,e.hashPwd))return null;var i=e.salt,o=c(t,i,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=e.encMneData.encryptedBytes;return h.decrypt(b,m,v)},g.prototype.changePassword=function(e,t,r){var n=new f.Buffer(t,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m),y=e.encSeedData.encryptedBytes,w=h.decrypt(g,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(g,v,_),x=new f.Buffer(r,"utf8"),I=u.sha256(x);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m);var k=h.encrypt(g,v,w);return{encMneData:{encryptedBytes:h.encrypt(g,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:I,salt:o}},g.prototype.createSignTransaction=function(e,t){return new(0,b[t.nTxType].txAction)(t).SerializeTx(e)},g.PROTOCAL_VERSION=1,b)g[b[m].txName]=Number(m);e.exports=g}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(99),n.sha=r(507),n.ripemd=r(511),n.hmac=r(512),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(228),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(166).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(167),i.Writable=r(527),i.Duplex=r(528),i.Transform=r(529),i.PassThrough=r(530),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(229)).Stream=t,t.Readable=t,t.Writable=r(168),t.Duplex=r(80),t.Transform=r(233),t.PassThrough=r(526)},function(e,t,r){"use strict";(function(t,n,i){var o=r(126);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(101);f.inherits=r(5);var c={deprecate:r(525)},h=r(230),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(231);function g(){}function m(e,t){s=s||r(80),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(80),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(48),r(232).setImmediate,r(27))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(228),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(531),t.sha1=r(532),t.sha224=r(533),t.sha256=r(234),t.sha384=r(534),t.sha512=r(235)},function(e,t,r){"use strict";t.utils=r(540),t.Cipher=r(541),t.DES=r(542),t.CBC=r(543),t.EDE=r(544)},function(e,t,r){var n=r(545),i=r(553),o=r(245);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(546),CBC:r(547),CFB:r(548),CFB8:r(549),CFB1:r(550),OFB:r(551),CTR:r(243),GCM:r(243)},i=r(245);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(22),i=r(90);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(55),n.common=r(103),n.sha=r(569),n.ripemd=r(573),n.hmac=r(574),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(12),s=r(23);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(606),s=r(21),u=r(12),f=r(23),c=r(61),h=r(15),d=r(8),l=r(24),p=r(67),b=r(180),g=r(29),m=r(265),v=r(179),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(62),I=r(41),k=r(82),A=r(14);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var R={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",R),R.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",R),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(107),e.exports.PublicKey=r(607),e.exports.PublicKeyHash=r(608),e.exports.MultiSig=r(609),e.exports.MultiSigScriptHash=r(610)},function(e,t,r){"use strict";(function(t){var n=r(24),i=(r(41),r(62),r(61)),o=r(15),a=(r(14),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(53),i=r(1),o=r(2),a=r(3),s=r(14),u=r(131),f=r(106),c=r(8),h=r(81),d=r(88),l=r(82),p=r(109),b=r(21),g=b.HDPrivateKey,m=r(12),v=r(23);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(273);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(70);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(37),i=r(73).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(70),o=r(111),a=r(96),s=r(20),u=r(95),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(28),i=r(11),o=r(193),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(86).trim;e.exports=1/n(r(141)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(44);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(144),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(28),i=r(20),o=r(95),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(71),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(156);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(97)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(160);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(209),i=r(78);e.exports=r(119)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(72),o=r(77),a=r(43),s=r(75),u=r(76),f=r(146),c=r(203),h=r(74),d=r(17),l=r(64).fastKey,p=r(78),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(209),i=r(78);e.exports=r(119)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(52)(0),a=r(32),s=r(64),u=r(190),f=r(212),c=r(11),h=r(78),d=r(78),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(119)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(77),i=r(64).getWeak,o=r(4),a=r(11),s=r(75),u=r(76),f=r(52),c=r(36),h=r(78),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(45),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(73),i=r(111),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(112),i=r(11),o=r(16),a=r(43),s=r(13)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(143),o=r(50);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(70),o=r(37),a=r(96).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(85),i=r(219);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(76);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(223),i=n.crypto.BN,o=r(622),a=n.deps._,s=r(623),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(624),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(99),o=r(225),a=r(79),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(126);e.exports=y;var o,a=r(221);y.ReadableState=v;r(166).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(230),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(101);h.inherits=r(5);var d=r(521),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(522),g=r(231);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(80));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(169).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(80),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(524),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(27))},function(e,t,r){"use strict";e.exports=a;var n=r(80),i=r(101);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(91),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],R=t[M-30+1],B=l(T,R),P=p(R,T),O=b(T=t[M-4],R=t[M-4+1]),N=g(R,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=P+j|0,L=B+C+m(D,P)|0;L=(L=L+O+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(535),o=r(66),a=r(6).Buffer,s=r(237),u=r(170),f=r(171),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(48))},function(e,t,r){var n=r(237),i=r(170),o=r(171),a=r(240),s=r(241),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(22),i=r(250);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(55).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(55),i=r(103),o=r(252),a=r(40),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(23),a=r(41),s=r(29),u=r(181);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=r(29),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(56),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(89),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(134),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,R=p,B=b,P=g,O=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&B^T&O^B&O,be=R&P^R&N^P&N,ge=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),me=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=O,j=N,O=B,N=P,B=T,P=R,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((R=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+R,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+P,i.high=b+B+(g>>>0

>>0?1:0),v=o.low=v+N,o.high=m+O+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){(function(t){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||!s.trim(t).length)throw"private key is required";this.privateKey=t,this._getAddress()}var r,u,f;return r=e,(u=[{key:"_getAddress",value:function(){var e=i.fromWIF(this.privateKey);this.address=e.toAddress().toString()}},{key:"signMessage",value:function(e){var r=i.fromWIF(this.privateKey),n=t.from(e),s=o.sha256(o.sha256ripemd160(n));return a.sign(s,r,"endian")}},{key:"publicKeyAsHex",value:function(){return i.fromWIF(this.privateKey).toPublicKey()}}])&&n(r.prototype,u),f&&n(r,f),e}();e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(o)}),e.exports=u}).call(this,r(48))},function(e,t,r){"use strict";var n=r(35),i=r(683),o=r(280),a=r(685),s=r(686),u=r(284);e.exports=function(e){return new Promise(function(t,f){var c=e.data,h=e.headers;n.isFormData(c)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",p=e.auth.password||"";h.Authorization="Basic "+btoa(l+":"+p)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,f,n),d=null}},d.onabort=function(){d&&(f(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r(687),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;g&&(h[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(h,function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===c&&(c=null),d.send(c)})}},function(e,t,r){"use strict";var n=r(684);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(r[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(i){n.isObject(t[i])?r[i]=n.deepMerge(e[i],t[i]):void 0!==t[i]?r[i]=t[i]:n.isObject(e[i])?r[i]=n.deepMerge(e[i]):void 0!==e[i]&&(r[i]=e[i])}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){r(288),e.exports=r(490)},function(e,t,r){"use strict";(function(e){if(r(289),r(486),r(487),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(27))},function(e,t,r){r(290),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(370),r(371),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(381),r(382),r(383),r(384),r(385),r(386),r(387),r(388),r(389),r(390),r(391),r(392),r(393),r(155),r(394),r(204),r(395),r(205),r(396),r(397),r(398),r(399),r(400),r(208),r(210),r(211),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),r(475),r(476),r(477),r(478),r(479),r(480),r(481),r(482),r(483),r(484),r(485),e.exports=r(42)},function(e,t,r){"use strict";var n=r(7),i=r(36),o=r(17),a=r(0),s=r(32),u=r(64).KEY,f=r(10),c=r(94),h=r(84),d=r(69),l=r(13),p=r(186),b=r(136),g=r(292),m=r(112),v=r(4),y=r(11),w=r(20),_=r(37),S=r(49),x=r(68),I=r(72),k=r(189),A=r(38),E=r(111),M=r(18),T=r(70),R=A.f,B=M.f,P=k.f,O=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof O&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=R(H,t);n&&delete H[t],B(e,t,r),n&&e!==H&&B(H,t,n)}:B,G=function(e){var t=L[e]=I(O.prototype);return t._k=e,t},Y=F&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||B(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):B(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=R(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=P(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=P(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(73).f=k.f=Q,r(96).f=J,E.f=ee,o&&!r(63)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=O();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),O.prototype[z]||r(31)(O.prototype,z,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(94)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(70),i=r(111),o=r(96);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(72)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(188)})},function(e,t,r){var n=r(37),i=r(38).f;r(51)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(39);r(51)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(70);r(51)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(51)("getOwnPropertyNames",function(){return r(189).f})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(51)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(51)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(51)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(190)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(191)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(140).set})},function(e,t,r){"use strict";var n=r(85),i={};i[r(13)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(192)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(39),o=r(13)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(194);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(195);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(36),o=r(44),a=r(142),s=r(49),u=r(10),f=r(73).f,c=r(38).f,h=r(18).f,d=r(86).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(72)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(45),o=r(196),a=r(143),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(196),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(197)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(197),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(195);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(194);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(198),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(145);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(199)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(198)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(144)})},function(e,t,r){var n=r(0),i=r(145),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(145),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(71),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(37),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(113)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(148),a="".endsWith;n(n.P+n.F*r(149)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(148);n(n.P+n.F*r(149)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(143)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(148),a="".startsWith;n(n.P+n.F*r(149)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(369);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(13)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(372))},function(e,t,r){"use strict";var n=r(4),i=r(49);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(112)})},function(e,t,r){"use strict";var n=r(43),i=r(0),o=r(20),a=r(200),s=r(150),u=r(16),f=r(151),c=r(152);i(i.S+i.F*!r(115)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(151);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(37),o=[].join;n(n.P+n.F*(r(95)!=Object||!r(46)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(139),o=r(44),a=r(71),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(202)}),r(65)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(154)}),r(65)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(52)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)("find")},function(e,t,r){"use strict";var n=r(0),i=r(52)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)(o)},function(e,t,r){r(74)("Array")},function(e,t,r){var n=r(7),i=r(142),o=r(18).f,a=r(73).f,s=r(114),u=r(97),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(13)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(74)("RegExp")},function(e,t,r){"use strict";r(205);var n=r(4),i=r(97),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(157),a=r(116);r(117)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(45),s=r(157),u=r(116),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(117)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+R,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(191),o=r(116);r(117)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(114),i=r(4),o=r(98),a=r(157),s=r(16),u=r(116),f=r(156),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(117)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=P(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};B||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(77)(E.prototype,{then:function(e,t){var r=R(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=R=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!B,{Promise:E}),r(84)(E,"Promise"),r(74)("Promise"),a=r(42).Promise,h(h.S+h.F*!B,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!B),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(B&&r(115)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=R(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=R(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(212),i=r(78);r(119)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(120),o=r(161),a=r(4),s=r(71),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(98),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(38),i=r(39),o=r(36),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(38),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(39),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(214)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(38),o=r(39),a=r(36),s=r(0),u=r(68),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(140);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(110)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(20),a=r(16),s=r(28),u=r(153);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(65)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(20),a=r(16),s=r(45),u=r(153);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(65)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(113)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(216),o=r(118),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(216),o=r(118),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(86)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(86)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(50),o=r(16),a=r(114),s=r(97),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(147)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(136)("asyncIterator")},function(e,t,r){r(136)("observable")},function(e,t,r){var n=r(0),i=r(214),o=r(37),a=r(38),s=r(151);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(217)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(217)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(121),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(121),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49),a=r(39),s=r(38).f;r(17)&&n(n.P+r(121),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49),a=r(39),s=r(38).f;r(17)&&n(n.P+r(121),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(218)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(218)("Set")})},function(e,t,r){r(122)("Map")},function(e,t,r){r(122)("Set")},function(e,t,r){r(122)("WeakMap")},function(e,t,r){r(122)("WeakSet")},function(e,t,r){r(123)("Map")},function(e,t,r){r(123)("Set")},function(e,t,r){r(123)("WeakMap")},function(e,t,r){r(123)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(44);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(220),o=r(199);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(220)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(42),o=r(7),a=r(98),s=r(207);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(160),o=r(206);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(58),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(58),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(58),i=r(4),o=r(39),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(210),i=r(219),o=r(58),a=r(4),s=r(39),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(58),i=r(4),o=r(39),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=r(28),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(159)(),o=r(7).process,a="process"==r(44)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(42),a=r(159)(),s=r(13)("observable"),u=r(28),f=r(4),c=r(75),h=r(77),d=r(31),l=r(76),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(158);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(155),i=r(70),o=r(32),a=r(7),s=r(31),u=r(87),f=r(13),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new R(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"2.0.0",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"./index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1",axios:"^0.19.0","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",superagent:"^5.1.2",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(496);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(125),i=r(47),o=r(59),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(125),i=r(34),o=r(47),a=r(59),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(163),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(513)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(508),t.sha224=r(509),t.sha256=r(226),t.sha384=r(510),t.sha512=r(227)},function(e,t,r){"use strict";var n=r(54),i=r(99),o=r(225),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(163),i=r(224),o=r(79);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(47),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(163),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(519),f=r(520);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(91),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(234),o=r(91),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(235),o=r(91),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(66),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(40),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(246),i=r(6).Buffer,o=r(174),a=r(247),s=r(66),u=r(127),f=r(128);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(248),i=r(558),o=r(559);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(22),i=new(r(249)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(248),h=r(90);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(129),i=r(22),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(129),i=r(30),o=r(22),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(176),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(575)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(570),t.sha224=r(571),t.sha256=r(253),t.sha384=r(572),t.sha512=r(254)},function(e,t,r){"use strict";var n=r(55),i=r(103),o=r(252),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(176),i=r(251),o=r(40);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(176),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(581),f=r(582);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(130),i=r(260),o=r(261),a=r(22),s=r(175),u=r(100),f=r(262),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(90),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(27),r(48))},function(e,t,r){"use strict";var n=r(604).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(R);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=B,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(607),a=r(29),s=r(180),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(608),i=r(609);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(610);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[N];if(!O.match(l)){var j=R.slice(0,E),z=R.slice(E+1),U=P.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,B=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,R=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=R?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!R&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function B(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=R(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=R(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:B,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?B(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(123)(e),r(27))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(611),t.encode=t.stringify=r(612)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(275),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(133),r(276),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(133),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],R=h[(d+1)%5+5*b],B=h[(d+2)%5+5*b];M.high=T.high^~R.high&B.high,M.low=T.low^~R.low&B.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), +!function(){for(var t=function(e){return this.constructor!=t?new t(e):e instanceof t?e:(this.internal=String(e),this.as_int=r(this.internal),this.add=function(e){var r=[this,new t(e)];r.sort(function(e,t){return e.as_int.exp-t.as_int.exp});var n=r[0].as_int.exp,i=r[1].as_int.exp,a=Number(o(r[1].as_int.value,i-n)),s=Number(r[0].as_int.value),u=String(a+s);return t(o(u,n))},this.sub=function(e){return t(this.add(-1*e))},this.mul=function(e){e=new t(e);var r=String(this.as_int.value*e.as_int.value),n=this.as_int.exp+e.as_int.exp;return t(o(r,n))},this.div=function(e){e=new t(e);var r=Math.min(this.as_int.exp,e.as_int.exp),n=t.mul(Math.pow(10,Math.abs(r)),this),i=t.mul(Math.pow(10,Math.abs(r)),e);return t(n/i)},this.toString=function(){return this.internal},void(this.toNumber=function(){return Number(this.internal)}))},r=function(e){var t,r,n=(e=String(e)).split("."),i=n[0],o=n[1];if(o)t=parseInt(e.split(".").join(""),10),r=-1*o.length;else{var a=i.match(/0+$/);if(a){var s=a[0].length;t=i.substr(0,i.length-s),r=s}else t=i,r=0}return{value:t,exp:r}},n=function(e,t){var r=(t=Math.abs(t))-e.length,n=".";r>=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(616),a=r(29),s=r(181),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(617),i=r(618);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(619);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[N];if(!O.match(l)){var j=R.slice(0,E),z=R.slice(E+1),U=P.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,B=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,R=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=R?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!R&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function B(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=R(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=R(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:B,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?B(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(124)(e),r(27))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(620),t.encode=t.stringify=r(621)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(276),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(134),r(277),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(134),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],R=h[(d+1)%5+5*b],B=h[(d+2)%5+5*b];M.high=T.high^~R.high&B.high,M.low=T.low^~R.low&B.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -38,10 +38,17 @@ MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.le THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([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]),u=i.create([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]),f=i.create([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]),c=i.create([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]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,R=d.words,B=s.words,P=u.words,O=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+B[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(x,I,k)+R[0]:r<32?m(x,I,k)+R[1]:r<48?g(x,I,k)+R[2]:r<64?b(x,I,k)+R[3]:p(x,I,k)+R[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(182),r(183),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,R=d.words,B=s.words,P=u.words,O=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+B[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(x,I,k)+R[0]:r<32?m(x,I,k)+R[1]:r<48?g(x,I,k)+R[2]:r<64?b(x,I,k)+R[3]:p(x,I,k)+R[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(183),r(184),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(91),r(92),r(82),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=(r(25),r(8)),a=r(19),s=r(55),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(12),c=r(55),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(51),r(3)),o=r(25),a=r(8),s=r(19),u=r(55),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(55),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"testnet";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.networkType=t,this.wiccApi=new o({network:this.networkType})}var t,r,a;return t=e,(r=[{key:"randomMnemonicCodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ENGLISH";return this.wiccApi.createAllCoinMnemonicCode(e)}},{key:"createWallet",value:function(e){var t=this.wiccApi.createWallet(e,""),r=this.wiccApi.getPriKeyFromSeed(t.seedinfo,"");return new i(r)}},{key:"importWalletFromMnemonic",value:function(e){var t=this.wiccApi.getPriKeyFromMnemonicCode(e);return new i(t)}},{key:"importWalletFromPrivateKey",value:function(e){return new i(e)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},function(e,t,r){function n(e,t){for(var r=0;r>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(56),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=(r(25),r(8)),a=r(19),s=r(56),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(12),c=r(56),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(56),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(56),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"testnet";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.networkType=t,this.wiccApi=new o({network:this.networkType})}var t,r,a;return t=e,(r=[{key:"randomMnemonicCodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ENGLISH";return this.wiccApi.createAllCoinMnemonicCode(e)}},{key:"createWallet",value:function(e){var t=this.wiccApi.createWallet(e,""),r=this.wiccApi.getPriKeyFromSeed(t.seedinfo,"");return new i(r)}},{key:"importWalletFromMnemonic",value:function(e){var t=this.wiccApi.getPriKeyFromMnemonicCode(e);return new i(t)}},{key:"importWalletFromPrivateKey",value:function(e){return new i(e)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},function(e,t,r){function n(e,t){for(var r=0;r + * @license MIT + */ +e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";var n=r(35),i=r(280),o=r(679),a=r(680),s=r(285);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.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():"get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,r,i){return this.request(n.merge(i||{},{method:e,url:t,data:r}))}}),e.exports=u},function(e,t,r){"use strict";var n=r(35);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,r){"use strict";var n=r(35),i=r(681),o=r(281),a=r(282),s=r(688),u=r(689);function f(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return f(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return f(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(f(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(284);e.exports=function(e,t,r){var i=r.config.validateStatus;!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,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}},function(e,t,r){"use strict";var n=r(35),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(286);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); \ No newline at end of file diff --git a/index.js b/index.js index df849cb..ea75d94 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,7 @@ var bitcore = require('./src') var Wallet = require("./src/Wallet") var WalletManager = require("./src/WalletManager") var WaykiTransaction = require('./src/WaykiTransaction') +var BaasClient = require('./src/BaasClient') WiccApi = Object.assign(WiccApi, bitcore) @@ -11,5 +12,6 @@ WiccWalletLib.Wallet = Wallet WiccWalletLib.WalletManager = WalletManager WiccWalletLib.WaykiTransaction = WaykiTransaction WiccWalletLib.WiccApi = WiccApi +WiccWalletLib.BaasClient = BaasClient module.exports = WiccWalletLib \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b8051c6..85736fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wicc-wallet-lib", - "version": "1.0.5", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -953,6 +953,20 @@ "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "axios": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", + "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" + } + }, "babel-loader": { "version": "8.0.6", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.6.tgz", @@ -1069,12 +1083,25 @@ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + }, "convert-source-map": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", @@ -1084,6 +1111,11 @@ "safe-buffer": "~5.1.1" } }, + "cookiejar": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", + "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" + }, "core-js": { "version": "2.6.10", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", @@ -1112,6 +1144,14 @@ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz", "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg=" }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, "decimal": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/decimal/-/decimal-0.0.2.tgz", @@ -1126,6 +1166,11 @@ "object-keys": "^1.0.12" } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, "electron-to-chromium": { "version": "1.3.322", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz", @@ -1164,6 +1209,11 @@ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, + "fast-safe-stringify": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", + "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==" + }, "find-cache-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", @@ -1184,6 +1234,29 @@ "locate-path": "^3.0.0" } }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "form-data": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", + "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "formidable": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", + "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==" + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -1248,6 +1321,11 @@ "loose-envify": "^1.0.0" } }, + "is-buffer": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", + "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==" + }, "js-levenshtein": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", @@ -1320,6 +1398,29 @@ "semver": "^5.6.0" } }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "mime": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", + "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==" + }, + "mime-db": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz", + "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==" + }, + "mime-types": { + "version": "2.1.25", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.25.tgz", + "integrity": "sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==", + "requires": { + "mime-db": "1.42.0" + } + }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -1353,6 +1454,11 @@ } } }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, "node-releases": { "version": "1.1.42", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.42.tgz", @@ -1445,6 +1551,28 @@ "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", "dev": true }, + "qs": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.1.tgz", + "integrity": "sha512-Cxm7/SS/y/Z3MHWSxXb8lIFqgqBowP5JMlTUFyJN88y0SGQhVmZnqFK/PeuMX9LzUyWsqqhNxIyg0jlzq946yA==" + }, + "readable-stream": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", + "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + } + } + }, "regenerate": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", @@ -1547,6 +1675,59 @@ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" + } + } + }, + "superagent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.1.2.tgz", + "integrity": "sha512-VwPCbi9H02qDtTbdY+e3+cK5XR0YHsJy9hmeCOXLQ8ezjq8+S1Bs4MdNRmpmf2QjDBetD7drG7/nEta7E3E6Sg==", + "requires": { + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.2", + "debug": "^4.1.1", + "fast-safe-stringify": "^2.0.7", + "form-data": "^3.0.0", + "formidable": "^1.2.1", + "methods": "^1.1.2", + "mime": "^2.4.4", + "qs": "^6.9.1", + "readable-stream": "^3.4.0", + "semver": "^6.3.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", @@ -1579,6 +1760,11 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.6.0.tgz", "integrity": "sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==" + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" } } } diff --git a/package.json b/package.json index 6797203..c217742 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "wicc-wallet-lib", - "version": "1.0.5", + "version": "2.0.0", "description": "A pure and powerful JavaScript Wicc Wallet library.", "author": "coredev@waykichainhk.com", - "main": "src/index.js", + "main": "./index.js", "scripts": { "build": "webpack --mode production --progress --display-modules --colors --display-reasons", "test": "node demo/index.js" @@ -34,6 +34,7 @@ }, "dependencies": { "aes-js": "^3.1.1", + "axios": "^0.19.0", "babel-polyfill": "^6.26.0", "bn.js": "=4.11.8", "bs58": "=4.0.1", @@ -45,6 +46,7 @@ "lodash": "=4.17.5", "scrypt-js": "^2.0.3", "scryptsy": "^2.0.0", + "superagent": "^5.1.2", "unorm": "^1.4.1" }, "license": "MIT", diff --git a/src/BaasClient.js b/src/BaasClient.js index e69de29..c62899b 100644 --- a/src/BaasClient.js +++ b/src/BaasClient.js @@ -0,0 +1,48 @@ +const axios = require('axios'); +var _ = require('lodash'); + +class BaasClient { + constructor(BaaSUrl) { + this.BaaSUrl = BaaSUrl + if (!_.trim(this.BaaSUrl).length) { + throw ('BaaSUrl is required') + } + this.instance = axios.create({ + baseURL: BaaSUrl, + timeout: 15 * 1000 + }); + this.instance.interceptors.response.use(function (response) { + if (response.data.code === 0) { + return response.data + } else { + return Promise.reject(response.data.msg); + } + }, function (error) { + return Promise.reject(error); + }) + } + async getAccountInfo(address) { + let res = await this.instance.post("/account/getaccountinfo", { + address: address + }) + return res + } + async getBlockCount() { + let res = await this.instance.post("/block/getblockcount") + return res + } + async sendRawTx(rawtx) { + let res = this.instance.post("/transaction/sendrawtx", { + rawtx: rawtx + }) + return res + } + async decodeRawTx(rawtx) { + let res = this.instance.post("/transaction/decoderawtx", { + rawtx: rawtx + }) + return res + } +} + +module.exports = BaasClient \ No newline at end of file diff --git a/src/NodeClient.js b/src/NodeClient.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/Wallet.js b/src/Wallet.js index 0a3bab4..69269de 100644 --- a/src/Wallet.js +++ b/src/Wallet.js @@ -5,7 +5,7 @@ var _ = require('lodash'); class Wallet { constructor(privateKey = "") { - if (!_.trim(privateKey).length) { + if (!privateKey || !_.trim(privateKey).length) { throw "private key is required" } this.privateKey = privateKey; From b66dc4405297c8bc5f7644112ab20c15c8aff8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 14:32:52 +0800 Subject: [PATCH 14/33] update .gitignore --- .gitignore | 3 ++- README.md | 3 ++- dist/wicc-wallet-lib.js | 54 ----------------------------------------- 3 files changed, 4 insertions(+), 56 deletions(-) delete mode 100644 dist/wicc-wallet-lib.js diff --git a/.gitignore b/.gitignore index 42d53a2..a5ae423 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules/ .jsbeautifyrc .eslintrc.json -.history \ No newline at end of file +.history +/dist/ \ No newline at end of file diff --git a/README.md b/README.md index 139597f..45da203 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ - +# wicc-wallet-utils-js +Official JavaScript library that provides WICC Offline Wallet capabilities diff --git a/dist/wicc-wallet-lib.js b/dist/wicc-wallet-lib.js deleted file mode 100644 index 3dd5a99..0000000 --- a/dist/wicc-wallet-lib.js +++ /dev/null @@ -1,54 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WiccWalletLib=t():e.WiccWalletLib=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=287)}([function(e,t,r){var n=r(7),i=r(42),o=r(31),a=r(32),s=r(43),u=function(e,t,r){var f,c,h,d,l=e&u.F,p=e&u.G,b=e&u.S,g=e&u.P,m=e&u.B,v=p?n:b?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),w=y.prototype||(y.prototype={});for(f in p&&(r=t),r)h=((c=!l&&v&&void 0!==v[f])?v:r)[f],d=m&&c?s(h,n):g&&"function"==typeof h?s(Function.call,h):h,v&&a(v,f,h,e&u.U),y[f]!=h&&o(y,f,d),g&&w[f]!=h&&(w[f]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){"use strict";(function(e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var n=r(491),i=r(492),o=r(221);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((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),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(27))},function(e,t,r){(function(e,n){var i; -/** - * @license - * Lodash - * Copyright JS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,g=2,m=1,v=2,y=4,w=8,_=16,S=32,x=64,I=128,k=256,A=512,E=30,M="...",T=800,R=16,B=1,P=2,O=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,z=4294967295,U=z-1,D=z>>>1,L=[["ary",I],["bind",m],["bindKey",v],["curry",w],["curryRight",_],["flip",A],["partial",S],["partialRight",x],["rearg",k]],V="[object Arguments]",H="[object Array]",F="[object AsyncFunction]",K="[object Boolean]",q="[object Date]",W="[object DOMException]",G="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",fe="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ie=RegExp(Se.source),ke=RegExp(xe.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Pe.source),Ne=/^\s+|\s+$/g,Ce=/^\s+/,je=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\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",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",lt="(?:"+ht+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",bt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ft,ct].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ft,ct].join("|")+")"+bt,mt="(?:"+[ut+rt+"?",rt,ft,ct,et].join("|")+")",vt=RegExp("['’]","g"),yt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+bt,"g"),_t=RegExp([ht+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ht,"$"].join("|")+")",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ht+dt,"$"].join("|")+")",ht+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["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"],kt=-1,At={};At[ce]=At[he]=At[de]=At[le]=At[pe]=At[be]=At[ge]=At[me]=At[ve]=!0,At[V]=At[H]=At[ue]=At[K]=At[fe]=At[q]=At[G]=At[Y]=At[Z]=At[J]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Et={};Et[V]=Et[H]=Et[ue]=Et[fe]=Et[K]=Et[q]=Et[ce]=Et[he]=Et[de]=Et[le]=Et[pe]=Et[Z]=Et[J]=Et[Q]=Et[te]=Et[re]=Et[ne]=Et[ie]=Et[be]=Et[ge]=Et[me]=Et[ve]=!0,Et[G]=Et[Y]=Et[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Rt=parseInt,Bt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ot=Bt||Pt||Function("return this")(),Nt=t&&!t.nodeType&&t,Ct=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,jt=Ct&&Ct.exports===Nt,zt=jt&&Bt.process,Ut=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Dt=Ut&&Ut.isArrayBuffer,Lt=Ut&&Ut.isDate,Vt=Ut&&Ut.isMap,Ht=Ut&&Ut.isRegExp,Ft=Ut&&Ut.isSet,Kt=Ut&&Ut.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var _r=dr({"À":"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"}),Sr=dr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+Mt[e]}function Ir(e){return St.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Nr=function e(t){var r,n=(t=null==t?Ot:Nr.defaults(Ot.Object(),t,Nr.pick(Ot,It))).Array,i=t.Date,$e=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ct=st.hasOwnProperty,ht=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",lt=st.toString,pt=ft.call(tt),bt=Ot._,gt=rt("^"+ft.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=jt?t.Buffer:o,wt=t.Symbol,St=t.Uint8Array,Mt=mt?mt.allocUnsafe:o,Bt=Ar(tt.getPrototypeOf,tt),Pt=tt.create,Nt=st.propertyIsEnumerable,Ct=ot.splice,zt=wt?wt.isConcatSpreadable:o,Ut=wt?wt.iterator:o,ir=wt?wt.toStringTag:o,dr=function(){try{var e=Lo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cr=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,jr=i&&i.now!==Ot.Date.now&&i.now,zr=t.setTimeout!==Ot.setTimeout&&t.setTimeout,Ur=et.ceil,Dr=et.floor,Lr=tt.getOwnPropertySymbols,Vr=mt?mt.isBuffer:o,Hr=t.isFinite,Fr=ot.join,Kr=Ar(tt.keys,tt),qr=et.max,Wr=et.min,Gr=i.now,Yr=t.parseInt,Xr=et.random,Zr=ot.reverse,Jr=Lo(t,"DataView"),$r=Lo(t,"Map"),Qr=Lo(t,"Promise"),en=Lo(t,"Set"),tn=Lo(t,"WeakMap"),rn=Lo(tt,"create"),nn=tn&&new tn,on={},an=ha(Jr),sn=ha($r),un=ha(Qr),fn=ha(en),cn=ha(tn),hn=wt?wt.prototype:o,dn=hn?hn.valueOf:o,ln=hn?hn.toString:o;function pn(e){if(Ms(e)&&!ms(e)&&!(e instanceof vn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var bn=function(){function e(){}return function(t){if(!Es(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function gn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jn(e,t,r,n,i,a){var s,u=t&d,f=t&l,c=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Es(e))return e;var h=ms(e);if(h){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,s)}else{var b=Fo(e),g=b==Y||b==X;if(_s(e))return Ji(e,u);if(b==Q||b==V||g&&!i){if(s=f||g?{}:qo(e),!u)return f?function(e,t){return io(e,Ho(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,Vo(e),t)}(e,Pn(s,e))}else{if(!Et[b])return i?e:{};s=function(e,t,r){var n,i,o,a=e.constructor;switch(t){case ue:return $i(e);case K:case q:return new a(+e);case fe:return function(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case he:case de:case le:case pe:case be:case ge:case me:case ve:return Qi(e,r);case Z:return new a;case J:case ne:return new a(e);case te:return(o=new(i=e).constructor(i.source,Fe.exec(i))).lastIndex=i.lastIndex,o;case re:return new a;case ie:return n=e,dn?tt(dn.call(n)):{}}}(e,b,u)}}a||(a=new xn);var m=a.get(e);if(m)return m;if(a.set(e,s),Os(e))return e.forEach(function(n){s.add(jn(n,t,r,n,e,a))}),s;if(Ts(e))return e.forEach(function(n,i){s.set(i,jn(n,t,r,i,e,a))}),s;var v=h?o:(c?f?Oo:Po:f?ou:iu)(e);return Gt(v||e,function(n,i){v&&(n=e[i=n]),Tn(s,i,jn(n,t,r,i,e,a))}),s}function zn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Un(e,t,r){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,r)},t)}function Dn(e,t,r,n){var i=-1,o=Jt,s=!0,u=e.length,f=[],c=t.length;if(!u)return f;r&&(t=Qt(t,gr(r))),n?(o=$t,s=!1):t.length>=a&&(o=vr,s=!1,t=new Sn(t));e:for(;++i-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_n.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new($r||wn),string:new yn}},_n.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},_n.prototype.get=function(e){return Uo(this,e).get(e)},_n.prototype.has=function(e){return Uo(this,e).has(e)},_n.prototype.set=function(e,t){var r=Uo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Sn.prototype.add=Sn.prototype.push=function(e){return this.__data__.set(e,f),this},Sn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new wn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!$r||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Wn=uo(),Gn=uo(!0);function Yn(e,t){return e&&Wn(e,t,iu)}function Xn(e,t){return e&&Gn(e,t,iu)}function Zn(e,t){return Zt(t,function(t){return Is(e[t])})}function Jn(e,t){for(var r=0,n=(t=Gi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?$t:Jt,a=e[0].length,s=e.length,u=s,f=n(s),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Qt(d,gr(t))),c=Wr(d.length,c),f[u]=!r&&(t||a>=120&&d.length>=120)?new Sn(u&&d):o}d=e[0];var l=-1,p=f[0];e:for(;++l=s)return u;var f=r[n];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,r)})}function yi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ct.call(s,u,1),Ct.call(e,u,1);return e}function _i(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Go(i)?Ct.call(e,i,1):Di(e,i)}}return e}function Si(e,t){return e+Dr(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return oa(ta(e,t,Ru),e+"")}function ki(e){return kn(lu(e))}function Ai(e,t){var r=lu(e);return ua(r,Cn(t,0,r.length))}function Ei(e,t,r,n){if(!Es(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Cs(a)&&(r?a<=t:a=a){var c=t?null:Io(e);if(c)return Tr(c);s=!1,i=vr,f=new Sn}else f=t?[]:u;e:for(;++n=n?e:Bi(e,t,r)}var Zi=Cr||function(e){return Ot.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function $i(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Qi(e,t){var r=t?$i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Cs(e),s=t!==o,u=null===t,f=t==t,c=Cs(t);if(!u&&!c&&!a&&e>t||a&&s&&f&&!u&&!c||n&&s&&f||!r&&f||!i)return 1;if(!n&&!a&&!c&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function po(e){return Bo(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Co(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var h=-1,d=!0,l=r&g?new Sn:o;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Gt(L,function(r){var n="_."+r[0];t&r[1]&&!Jt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(De):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Gr(),i=R-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Pa(e,r)});function Da(e){var t=pn(e);return t.__chain__=!0,t}function La(e,t){return t(e)}var Va=Bo(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof vn&&Go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Ha=oo(function(e,t,r){ct.call(e,r)?++e[r]:On(e,r,1)});var Fa=lo(ga),Ka=lo(ma);function qa(e,t){return(ms(e)?Gt:Ln)(e,zo(t,3))}function Wa(e,t){return(ms(e)?Yt:Vn)(e,zo(t,3))}var Ga=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):On(e,r,[t])});var Ya=Ii(function(e,t,r){var i=-1,o="function"==typeof t,a=ys(e)?n(e.length):[];return Ln(e,function(e){a[++i]=o?qt(t,e,r):ii(e,t,r)}),a}),Xa=oo(function(e,t,r){On(e,r,t)});function Za(e,t){return(ms(e)?Qt:li)(e,zo(t,3))}var Ja=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $a=Ii(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Yo(e,t[0],t[1])?t=[]:r>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qn(t,1),[])}),Qa=jr||function(){return Ot.Date.now()};function es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ao(e,I,o,o,o,o,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var rs=Ii(function(e,t,r){var n=m;if(r.length){var i=Er(r,jo(rs));n|=S}return Ao(e,n,t,r,i)}),ns=Ii(function(e,t,r){var n=m|v;if(r.length){var i=Er(r,jo(ns));n|=S}return Ao(t,n,e,r,i)});function is(e,t,r){var n,i,a,s,f,c,h=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new it(u);function b(t){var r=n,a=i;return n=i=o,h=t,s=e.apply(a,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||l&&e-h>=a}function m(){var e=Qa();if(g(e))return v(e);f=ia(m,function(e){var r=t-(e-c);return l?Wr(r,a-(e-h)):r}(e))}function v(e){return f=o,p&&n?b(e):(n=i=o,s)}function y(){var e=Qa(),r=g(e);if(n=arguments,i=this,c=e,r){if(f===o)return function(e){return h=e,f=ia(m,t),d?b(e):s}(c);if(l)return f=ia(m,t),b(c)}return f===o&&(f=ia(m,t)),s}return t=Fs(t)||0,Es(r)&&(d=!!r.leading,a=(l="maxWait"in r)?qr(Fs(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){f!==o&&Zi(f),h=0,n=c=i=f=o},y.flush=function(){return f===o?s:v(Qa())},y}var os=Ii(function(e,t){return Un(e,1,t)}),as=Ii(function(e,t,r){return Un(e,Fs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ss.Cache||_n),r}function us(e){if("function"!=typeof e)throw new it(u);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)}}ss.Cache=_n;var fs=Yi(function(e,t){var r=(t=1==t.length&&ms(t[0])?Qt(t[0],gr(zo())):Qt(qn(t,1),gr(zo()))).length;return Ii(function(n){for(var i=-1,o=Wr(n.length,r);++i=t}),gs=oi(function(){return arguments}())?oi:function(e){return Ms(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},ms=n.isArray,vs=Dt?gr(Dt):function(e){return Ms(e)&&Qn(e)==ue};function ys(e){return null!=e&&As(e.length)&&!Is(e)}function ws(e){return Ms(e)&&ys(e)}var _s=Vr||Fu,Ss=Lt?gr(Lt):function(e){return Ms(e)&&Qn(e)==q};function xs(e){if(!Ms(e))return!1;var t=Qn(e);return t==G||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Bs(e)}function Is(e){if(!Es(e))return!1;var t=Qn(e);return t==Y||t==X||t==F||t==ee}function ks(e){return"number"==typeof e&&e==Vs(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ms(e){return null!=e&&"object"==typeof e}var Ts=Vt?gr(Vt):function(e){return Ms(e)&&Fo(e)==Z};function Rs(e){return"number"==typeof e||Ms(e)&&Qn(e)==J}function Bs(e){if(!Ms(e)||Qn(e)!=Q)return!1;var t=Bt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==pt}var Ps=Ht?gr(Ht):function(e){return Ms(e)&&Qn(e)==te};var Os=Ft?gr(Ft):function(e){return Ms(e)&&Fo(e)==re};function Ns(e){return"string"==typeof e||!ms(e)&&Ms(e)&&Qn(e)==ne}function Cs(e){return"symbol"==typeof e||Ms(e)&&Qn(e)==ie}var js=Kt?gr(Kt):function(e){return Ms(e)&&As(e.length)&&!!At[Qn(e)]};var zs=_o(di),Us=_o(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(ys(e))return Ns(e)?Pr(e):no(e);if(Ut&&e[Ut])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ut]());var t=Fo(e);return(t==Z?kr:t==re?Tr:lu)(e)}function Ls(e){return e?(e=Fs(e))===O||e===-O?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Vs(e){var t=Ls(e),r=t%1;return t==t?r?t-r:t:0}function Hs(e){return e?Cn(Vs(e),0,z):0}function Fs(e){if("number"==typeof e)return e;if(Cs(e))return j;if(Es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var r=qe.test(e);return r||Ge.test(e)?Rt(e.slice(2),r?2:8):Ke.test(e)?j:+e}function Ks(e){return io(e,ou(e))}function qs(e){return null==e?"":zi(e)}var Ws=ao(function(e,t){if($o(t)||ys(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&Tn(e,r,t[r])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Ys=ao(function(e,t,r,n){io(t,ou(t),e,n)}),Xs=ao(function(e,t,r,n){io(t,iu(t),e,n)}),Zs=Bo(Nn);var Js=Ii(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Yo(t[0],t[1],i)&&(n=1);++r1),t}),io(e,Oo(e),r),n&&(r=jn(r,d|l|p,To));for(var i=t.length;i--;)Di(r,t[i]);return r});var fu=Bo(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Oo(e),function(e){return[e]});return t=zo(t),yi(e,r,function(e,r){return t(e,r[0])})}var hu=ko(iu),du=ko(ou);function lu(e){return null==e?[]:mr(e,iu(e))}var pu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?bu(t):t)});function bu(e){return xu(qs(e).toLowerCase())}function gu(e){return(e=qs(e))&&e.replace(Xe,_r).replace(yt,"")}var mu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),yu=fo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=co(function(e,t,r){return e+(r?" ":"")+xu(t)});var Su=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),xu=fo("toUpperCase");function Iu(e,t,r){return e=qs(e),(t=r?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var ku=Ii(function(e,t){try{return qt(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),Au=Bo(function(e,t){return Gt(t,function(t){t=ca(t),On(e,t,rs(e[t],e))}),e});function Eu(e){return function(){return e}}var Mu=po(),Tu=po(!0);function Ru(e){return e}function Bu(e){return fi("function"==typeof e?e:jn(e,d))}var Pu=Ii(function(e,t){return function(r){return ii(r,e,t)}}),Ou=Ii(function(e,t){return function(r){return ii(e,r,t)}});function Nu(e,t,r){var n=iu(t),i=Zn(t,n);null!=r||Es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Zn(t,iu(t)));var o=!(Es(r)&&"chain"in r&&!r.chain),a=Is(e);return Gt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Cu(){}var ju=vo(Qt),zu=vo(Xt),Uu=vo(nr);function Du(e){return Xo(e)?hr(ca(e)):function(e){return function(t){return Jn(t,e)}}(e)}var Lu=wo(),Vu=wo(!0);function Hu(){return[]}function Fu(){return!1}var Ku=mo(function(e,t){return e+t},0),qu=xo("ceil"),Wu=mo(function(e,t){return e/t},1),Gu=xo("floor");var Yu,Xu=mo(function(e,t){return e*t},1),Zu=xo("round"),Ju=mo(function(e,t){return e-t},0);return pn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},pn.ary=es,pn.assign=Ws,pn.assignIn=Gs,pn.assignInWith=Ys,pn.assignWith=Xs,pn.at=Zs,pn.before=ts,pn.bind=rs,pn.bindAll=Au,pn.bindKey=ns,pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},pn.chain=Da,pn.chunk=function(e,t,r){t=(r?Yo(e,t,r):t===o)?1:qr(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Ur(i/t));ai?0:i+r),(n=n===o||n>i?i:Vs(n))<0&&(n+=i),n=r>n?0:Hs(n);r>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=zi(t))&&Ir(e)?Xi(Pr(e),0,r):e.split(t,r):[]},pn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Vs(t),0),Ii(function(r){var n=r[t],i=Xi(r,0,t);return n&&er(i,n),qt(e,this,i)})},pn.tail=function(e){var t=null==e?0:e.length;return t?Bi(e,1,t):[]},pn.take=function(e,t,r){return e&&e.length?Bi(e,0,(t=r||t===o?1:Vs(t))<0?0:t):[]},pn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Bi(e,(t=n-(t=r||t===o?1:Vs(t)))<0?0:t,n):[]},pn.takeRightWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3),!1,!0):[]},pn.takeWhile=function(e,t){return e&&e.length?Vi(e,zo(t,3)):[]},pn.tap=function(e,t){return t(e),e},pn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return Es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),is(e,t,{leading:n,maxWait:t,trailing:i})},pn.thru=La,pn.toArray=Ds,pn.toPairs=hu,pn.toPairsIn=du,pn.toPath=function(e){return ms(e)?Qt(e,ca):Cs(e)?[e]:no(fa(qs(e)))},pn.toPlainObject=Ks,pn.transform=function(e,t,r){var n=ms(e),i=n||_s(e)||js(e);if(t=zo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Es(e)&&Is(o)?bn(Bt(e)):{}}return(i?Gt:Yn)(e,function(e,n,i){return t(r,e,n,i)}),r},pn.unary=function(e){return es(e,1)},pn.union=Ma,pn.unionBy=Ta,pn.unionWith=Ra,pn.uniq=function(e){return e&&e.length?Ui(e):[]},pn.uniqBy=function(e,t){return e&&e.length?Ui(e,zo(t,2)):[]},pn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ui(e,o,t):[]},pn.unset=function(e,t){return null==e||Di(e,t)},pn.unzip=Ba,pn.unzipWith=Pa,pn.update=function(e,t,r){return null==e?e:Li(e,t,Wi(r))},pn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Li(e,t,Wi(r),n)},pn.values=lu,pn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},pn.without=Oa,pn.words=Iu,pn.wrap=function(e,t){return cs(Wi(t),e)},pn.xor=Na,pn.xorBy=Ca,pn.xorWith=ja,pn.zip=za,pn.zipObject=function(e,t){return Ki(e||[],t||[],Tn)},pn.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ei)},pn.zipWith=Ua,pn.entries=hu,pn.entriesIn=du,pn.extend=Gs,pn.extendWith=Ys,Nu(pn,pn),pn.add=Ku,pn.attempt=ku,pn.camelCase=pu,pn.capitalize=bu,pn.ceil=qu,pn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Fs(r))==r?r:0),t!==o&&(t=(t=Fs(t))==t?t:0),Cn(Fs(e),t,r)},pn.clone=function(e){return jn(e,p)},pn.cloneDeep=function(e){return jn(e,d|p)},pn.cloneDeepWith=function(e,t){return jn(e,d|p,t="function"==typeof t?t:o)},pn.cloneWith=function(e,t){return jn(e,p,t="function"==typeof t?t:o)},pn.conformsTo=function(e,t){return null==t||zn(e,t,iu(t))},pn.deburr=gu,pn.defaultTo=function(e,t){return null==e||e!=e?t:e},pn.divide=Wu,pn.endsWith=function(e,t,r){e=qs(e),t=zi(t);var n=e.length,i=r=r===o?n:Cn(Vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},pn.eq=ls,pn.escape=function(e){return(e=qs(e))&&ke.test(e)?e.replace(xe,Sr):e},pn.escapeRegExp=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(Pe,"\\$&"):e},pn.every=function(e,t,r){var n=ms(e)?Xt:Hn;return r&&Yo(e,t,r)&&(t=o),n(e,zo(t,3))},pn.find=Fa,pn.findIndex=ga,pn.findKey=function(e,t){return or(e,zo(t,3),Yn)},pn.findLast=Ka,pn.findLastIndex=ma,pn.findLastKey=function(e,t){return or(e,zo(t,3),Xn)},pn.floor=Gu,pn.forEach=qa,pn.forEachRight=Wa,pn.forIn=function(e,t){return null==e?e:Wn(e,zo(t,3),ou)},pn.forInRight=function(e,t){return null==e?e:Gn(e,zo(t,3),ou)},pn.forOwn=function(e,t){return e&&Yn(e,zo(t,3))},pn.forOwnRight=function(e,t){return e&&Xn(e,zo(t,3))},pn.get=Qs,pn.gt=ps,pn.gte=bs,pn.has=function(e,t){return null!=e&&Ko(e,t,ti)},pn.hasIn=eu,pn.head=ya,pn.identity=Ru,pn.includes=function(e,t,r,n){e=ys(e)?e:lu(e),r=r&&!n?Vs(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ns(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},pn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vs(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},pn.inRange=function(e,t,r){return t=Ls(t),r===o?(r=t,t=0):r=Ls(r),function(e,t,r){return e>=Wr(t,r)&&e=-N&&e<=N},pn.isSet=Os,pn.isString=Ns,pn.isSymbol=Cs,pn.isTypedArray=js,pn.isUndefined=function(e){return e===o},pn.isWeakMap=function(e){return Ms(e)&&Fo(e)==ae},pn.isWeakSet=function(e){return Ms(e)&&Qn(e)==se},pn.join=function(e,t){return null==e?"":Fr.call(e,t)},pn.kebabCase=mu,pn.last=xa,pn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Vs(r))<0?qr(n+i,0):Wr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,fr,i,!0)},pn.lowerCase=vu,pn.lowerFirst=yu,pn.lt=zs,pn.lte=Us,pn.max=function(e){return e&&e.length?Fn(e,Ru,ei):o},pn.maxBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),ei):o},pn.mean=function(e){return cr(e,Ru)},pn.meanBy=function(e,t){return cr(e,zo(t,2))},pn.min=function(e){return e&&e.length?Fn(e,Ru,di):o},pn.minBy=function(e,t){return e&&e.length?Fn(e,zo(t,2),di):o},pn.stubArray=Hu,pn.stubFalse=Fu,pn.stubObject=function(){return{}},pn.stubString=function(){return""},pn.stubTrue=function(){return!0},pn.multiply=Xu,pn.nth=function(e,t){return e&&e.length?mi(e,Vs(t)):o},pn.noConflict=function(){return Ot._===this&&(Ot._=bt),this},pn.noop=Cu,pn.now=Qa,pn.pad=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return yo(Dr(i),r)+e+yo(Ur(i),r)},pn.padEnd=function(e,t,r){e=qs(e);var n=(t=Vs(t))?Br(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Xr();return Wr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return Si(e,t)},pn.reduce=function(e,t,r){var n=ms(e)?tr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Ln)},pn.reduceRight=function(e,t,r){var n=ms(e)?rr:lr,i=arguments.length<3;return n(e,zo(t,4),r,i,Vn)},pn.repeat=function(e,t,r){return t=(r?Yo(e,t,r):t===o)?1:Vs(t),xi(qs(e),t)},pn.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pn.result=function(e,t,r){var n=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++nN)return[];var r=z,n=Wr(e,z);t=zo(t),e-=z;for(var i=br(n,t);++r=a)return e;var u=r-Br(n);if(u<1)return n;var f=s?Xi(s,0,u).join(""):e.slice(0,u);if(i===o)return f+n;if(s&&(u+=f.length-u),Ps(i)){if(e.slice(u).search(i)){var c,h=f;for(i.global||(i=rt(i.source,qs(Fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var d=c.index;f=f.slice(0,d===o?u:d)}}else if(e.indexOf(zi(i),u)!=u){var l=f.lastIndexOf(i);l>-1&&(f=f.slice(0,l))}return f+n},pn.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,Or):e},pn.uniqueId=function(e){var t=++ht;return qs(e)+t},pn.upperCase=Su,pn.upperFirst=xu,pn.each=qa,pn.eachRight=Wa,pn.first=ya,Nu(pn,(Yu={},Yn(pn,function(e,t){ct.call(pn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),pn.VERSION="4.17.5",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pn[e].placeholder=pn}),Gt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===o?1:qr(Vs(r),0);var n=this.__filtered__&&!t?new vn(this):this.clone();return n.__filtered__?n.__takeCount__=Wr(r,n.__takeCount__):n.__views__.push({size:Wr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==B||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Ru)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Ii(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(us(zo(e)))},vn.prototype.slice=function(e,t){e=Vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(z)},Yn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=pn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(pn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof vn,f=s[0],c=u||ms(t),h=function(e){var t=i.apply(pn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof f&&1!=f.length&&(u=c=!1);var d=this.__chain__,l=!!this.__actions__.length,p=a&&!d,b=u&&!l;if(!a&&c){t=b?t:new vn(this);var g=e.apply(t,s);return g.__actions__.push({func:La,args:[h],thisArg:o}),new mn(g,d)}return p&&b?e.apply(this,s):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);pn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[r](function(r){return t.apply(ms(r)?r:[],e)})}}),Yn(vn.prototype,function(e,t){var r=pn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[bo(o,v).name]=[{name:"wrapper",func:o}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ms(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var n=da(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Ea)},pn.prototype.toJSON=pn.prototype.valueOf=pn.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},pn.prototype.first=pn.prototype.head,Ut&&(pn.prototype[Ut]=function(){return this}),pn}();Ot._=Nr,(i=function(){return Nr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(27),r(124)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(21),o=r(2);e.exports={checkState:function(e,t){if(!e)throw new i.InvalidState(t)},checkArgument:function(e,t,r,n){if(!e)throw new i.InvalidArgument(t,r,n)},checkArgumentType:function(e,t,a){if(a=a||"(unknown name)",o.isString(t)){if("Buffer"===t){if(!r(1).Buffer.isBuffer(e))throw new i.InvalidArgumentType(e,t,a)}else if(n(e)!==t)throw new i.InvalidArgumentType(e,t,a)}else if(!(e instanceof t))throw new i.InvalidArgumentType(e,t.name,a)}}},function(e,t,r){var n=r(11);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";(function(t){var n=r(89),i=r(12),o=r(3),a=e.exports;a.sha1=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha1").update(e).digest()},a.sha1.blocksize=512,a.sha256=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha256").update(e).digest()},a.sha256.blocksize=512,a.sha256sha256=function(e){return o.checkArgument(i.isBuffer(e)),a.sha256(a.sha256(e))},a.ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("ripemd160").update(e).digest()},a.sha256ripemd160=function(e){return o.checkArgument(i.isBuffer(e)),a.ripemd160(a.sha256(e))},a.sha512=function(e){return o.checkArgument(i.isBuffer(e)),n.createHash("sha512").update(e).digest()},a.sha512.blocksize=1024,a.hmac=function(e,r,n){o.checkArgument(i.isBuffer(r)),o.checkArgument(i.isBuffer(n)),o.checkArgument(e.blocksize);var a=e.blocksize/8;if(n.length>a)n=e(n);else if(n>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,f=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,c=e.min(4*f,i);if(f){for(var h=0;h>24&255),r.push(e>>16&255),r.push(e>>8&255),r.push(255&e),t.from(r)},integerFromBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return a.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){for(var t=new n.Buffer.alloc(e.length),r=0;re.size?r=n.trim(r,o):o0&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return n.fromSM(e,{endian:"little"})},n.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},n.prototype.gt=function(e){return this.cmp(e)>0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.lt=function(e){return this.cmp(e)<0},n.trim=function(e,t){return e.slice(t-e.length,e.length)},n.pad=function(e,r,n){for(var i=t.alloc(n),o=0;o0&&this.write(r),this},o.prototype.writeUInt8=function(e){var r=t.alloc(1);return r.writeUInt8(e,0),this.write(r),this},o.prototype.writeUInt16BE=function(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),this.write(r),this},o.prototype.writeUInt16LE=function(e){var r=t.alloc(2);return r.writeUInt16LE(e,0),this.write(r),this},o.prototype.writeUInt32BE=function(e){var r=t.alloc(4);return r.writeUInt32BE(e,0),this.write(r),this},o.prototype.writeInt32LE=function(e){var r=t.alloc(4);return r.writeInt32LE(e,0),this.write(r),this},o.prototype.writeUInt32LE=function(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),this.write(r),this},o.prototype.writeUInt64BEBN=function(e){var t=e.toBuffer({size:8});return this.write(t),this},o.prototype.writeUInt64LEBN=function(e){var t=e.toBuffer({size:8});return this.writeReverse(t),this},o.prototype.writeVarintNum=function(e){var t=o.varintBufNum(e);return this.write(t),this},o.prototype.writeVarintBN=function(e){var t=o.varintBufBN(e);return this.write(t),this},o.varintBufNum=function(e){var r=void 0;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<65536?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967296?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeInt32LE(-1&e,1),r.writeUInt32LE(Math.floor(e/4294967296),5)),r},o.varintBufBN=function(e){var r=void 0,n=e.toNumber();if(n<253)(r=t.alloc(1)).writeUInt8(n,0);else if(n<65536)(r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(n,1);else if(n<4294967296)(r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(n,1);else{var i=new o;i.writeUInt8(255),i.writeUInt64LEBN(e);r=i.concat()}return r},e.exports=o}).call(this,r(1).Buffer)},function(e,t,r){var n=r(45),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(4),i=r(185),o=r(49),a=Object.defineProperty;t.f=r(17)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(88),o=r(24),a=r(60),s=r(109),u=r(8),f=r(12),c=r(2),h=r(3),d=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};d.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},d.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},d.prototype.calci=function(){for(var e=0;e<4;e++){var t;this.sig.i=e;try{t=this.toPublicKey()}catch(e){console.error(e);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},d.fromString=function(e){var t=JSON.parse(e);return new d(t)},d.prototype.randomK=function(){var e,t=i.getN();do{e=n.fromBuffer(s.getRandomBuffer(32))}while(!e.lt(t)||!e.gt(n.Zero));return this.k=e,this},d.prototype.deterministicK=function(e){c.isUndefined(e)&&(e=0);var r=t.alloc(32);r.fill(1);var o=t.alloc(32);o.fill(0);var a=this.privkey.bn.toBuffer({size:32}),s="little"===this.endian?f.reverse(this.hashbuf):this.hashbuf;o=u.sha256hmac(t.concat([r,t.from([0]),a,s]),o),r=u.sha256hmac(r,o),o=u.sha256hmac(t.concat([r,t.from([1]),a,s]),o),r=u.sha256hmac(r,o),r=u.sha256hmac(r,o);for(var h=n.fromBuffer(r),d=i.getN(),l=0;l>1,f=i.getN(),c=i.getG(),d=u?r.add(f):r,l=i.fromX(s,d);if(!l.mul(f).isInfinity())throw new Error("nR is not a valid curve point");var p=t.neg().umod(f),b=r.invm(f),g=l.mul(o).add(c.mul(p)).mul(b);return a.fromPoint(g,this.sig.compressed)},d.prototype.sigError=function(){if(!f.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(n.Zero)&&e.lt(i.getN())&&t.gt(n.Zero)&&t.lt(i.getN())))return"r and s not in range";var r=n.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),o=i.getN(),a=t.invm(o),s=a.mul(r).umod(o),u=a.mul(e).umod(o),c=i.getG().mulAdd(s,this.pubkey.point,u);return c.isInfinity()?"p is infinity":0!==c.getX().umod(o).cmp(e)&&"Invalid signature"},d.toLowS=function(e){return e.gt(n.fromBuffer(t.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=i.getN().sub(e)),e},d.prototype._findSignature=function(e,t){var r,o,a,s=i.getN(),u=i.getG(),f=0;do{(!this.k||f>0)&&this.deterministicK(f),f++,r=this.k,o=u.mul(r).x.umod(s),a=r.invm(s).mul(t.add(e.mul(o))).umod(s)}while(o.cmp(n.Zero)<=0||a.cmp(n.Zero)<=0);return{s:a=d.toLowS(a),r:o}},d.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;h.checkState(e&&t&&r,new Error("invalid parameters")),h.checkState(f.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));var i=n.fromBuffer(e,this.endian?{endian:this.endian}:void 0),a=this._findSignature(r,i);return a.compressed=this.pubkey.compressed,this.sig=new o(a),this},d.prototype.signRandomK=function(){return this.randomK(),this.sign()},d.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},d.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},d.sign=function(e,t,r){return d().set({hashbuf:e,endian:r,privkey:t}).sign().sig},d.verify=function(e,t,r,n){return d().set({hashbuf:e,endian:n,sig:t,pubkey:r}).verify().verified},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(50);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";e.exports={name:"Mnemonic",message:"Internal Error on bitcore-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(556).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(124)(e))},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};e.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"===n(t)},isHexa:o,isHexaString:o,cloneArray:function(e){return[].concat(e)},defineImmutable:function(e,t){return Object.keys(t).forEach(function(r){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,value:t[r]})}),e},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}}},function(e,t,r){"use strict";(function(t){var n=r(14),i=r(2),o=r(3),a=r(12),s=r(23),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof n)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};u.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=void 0!==e.i?e.i:this.i,this.compressed=void 0!==e.compressed?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},u.fromCompact=function(e){o.checkArgument(a.isBuffer(e),"Argument is expected to be a Buffer");var t=new u,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var s=e.slice(1,33),f=e.slice(33,65);return o.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),o.checkArgument(32===s.length,new Error("r must be 32 bytes")),o.checkArgument(32===f.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=n.fromBuffer(s),t.s=n.fromBuffer(f),t},u.fromDER=u.fromBuffer=function(e,t){var r=u.parseDER(e,t),n=new u;return n.r=r.r,n.s=r.s,n},u.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),n=new u.fromDER(r,!1);return n.nhashtype=t,n},u.fromString=function(e){var r=t.from(e,"hex");return u.fromDER(r)},u.parseDER=function(e,t){o.checkArgument(a.isBuffer(e),new Error("DER formatted signature should be a buffer")),i.isUndefined(t)&&(t=!0);var r=e[0];o.checkArgument(48===r,new Error("Header byte should be 0x30"));var s=e[1],u=e.slice(2).length;o.checkArgument(!t||s===u,new Error("Length byte should length of what follows")),s=s73)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var n=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&n[0])return!1;if(t>1&&0===n[0]&&!(128&n[1]))return!1;var i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(r>1&&0===i[0]&&!(128&i[1]))))},u.prototype.hasLowS=function(){return!this.s.lt(new n(1))&&!this.s.gt(new n("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},u.prototype.hasDefinedHashtype=function(){if(!s.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~u.SIGHASH_ANYONECANPAY;return!(eu.SIGHASH_SINGLE)},u.prototype.toTxFormat=function(){var e=this.toDER(),r=t.alloc(1);return r.writeUInt8(this.nhashtype,0),t.concat([e,r])},u.SIGHASH_ALL=1,u.SIGHASH_NONE=2,u.SIGHASH_SINGLE=3,u.SIGHASH_ANYONECANPAY=128,e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(1),o=r(53),a=r(611),s=(r(23),r(3)),u=r(14),f=r(21),c=r(267),h=r(268),d=r(15);e.exports={writeVarInt:function(e,r){s.checkArgumentType(e,"number","n"),s.checkArgumentType(r,"number","value");for(var n=parseInt((8*e+6)/7),i=0,o=t.alloc(n);o[i]=127&r|(i?128:0),!(r<=127);)r=parseInt(r/128)-1,i++;var a=t.alloc(i+1),u=0;do{a[u]=o[i],u++}while(i--);return a},checkNumber:function(e){return!!/^[0-9]*$/.test(e)},isSimpleRegIdStr:function(e){if(e.length<3)return!1;var t=e.split("-");if(2!=t.length)return!1;var r=t[0];if(r.length>10||0==r.length)return!1;if(!this.checkNumber(r))return!1;var n=t[1];return!(n.length>10||0==n.length)&&(!!this.checkNumber(n)&&{height:parseInt(r),index:parseInt(n)})},splitRegID:function(e){return this.isSimpleRegIdStr(e)},getSpcContractData:function(e,t){s.checkArgumentType(e,"string","address"),s.checkArgumentType(t,"number","spc");var r=new d;r.writeUInt8(240),r.writeUInt8(7);var n=new i.Buffer(e,"utf8");r.write(n);var o=u.fromNumber(t);return r.writeUInt64LEBN(o),r.toBuffer()},getBetContractData:function(e,t,r,n){if(s.checkArgumentType(e,"string","lid"),s.checkArgumentType(t,"string","address"),s.checkArgumentType(r,"number","ltype"),s.checkArgumentType(n,"object","betList"),!n instanceof Array)throw new f.InvalidArgumentType(n,"array","betList");var o=new d;o.writeUInt8(240),o.writeUInt8(2);var a=new i.Buffer(e,"utf8");o.write(a);var h=new i.Buffer(t,"utf8");o.write(h),o.writeUInt8(r);var l=n.length;o.writeUInt32LE(l);for(var p=0;p>>2];e.sigBytes-=t}},m=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=t.format={},y=v.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=c.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},x=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(21),a=r(106),s=r(81),u=r(8),f=r(23),c=r(60);function h(e,t,r){if(!(this instanceof h))return new h(e,t,r);if(n.isArray(e)&&n.isNumber(t))return h.createMultisig(e,t,r);if(e instanceof h)return e;if(i.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!s.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==h.PayToPublicKeyHash&&r!==h.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var o=this._classifyArguments(e,t,r);return o.network=o.network||s.get(t)||s.defaultNetwork,o.type=o.type||r||h.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:o.hashBuffer,network:o.network,type:o.type}),this}h.prototype._classifyArguments=function(e,r,i){if((e instanceof t||e instanceof Uint8Array)&&20===e.length)return h._transformHash(e);if((e instanceof t||e instanceof Uint8Array)&&21===e.length)return h._transformBuffer(e,r,i);if(e instanceof c)return h._transformPublicKey(e);if(e instanceof d)return h._transformScript(e,r);if("string"==typeof e)return h._transformString(e,r,i);if(n.isObject(e))return h._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")},h.PayToPublicKeyHash="pubkeyhash",h.PayToScriptHash="scripthash",h._transformHash=function(e){var r={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return r.hashBuffer=e,r},h._transformObject=function(e){return i.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),i.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?t.from(e.hash,"hex"):e.hashBuffer,network:s.get(e.network)||s.defaultNetwork,type:e.type}},h._classifyFromVersion=function(e){var t={},r=s.get(e[0],"pubkeyhash"),n=s.get(e[0],"scripthash");return r?(t.network=r,t.type=h.PayToPublicKeyHash):n&&(t.network=n,t.type=h.PayToScriptHash),t},h._transformBuffer=function(e,r,n){var i={};if(!(e instanceof t||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(21!==e.length)throw new TypeError("Address buffers must be exactly 21 bytes.");var o=s.get(r),a=h._classifyFromVersion(e);if(r&&!o)throw new TypeError("Unknown network");if(!a.network||o&&o!==a.network)throw new TypeError("Address has mismatched network type.");if(!a.type||n&&n!==a.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},h._transformPublicKey=function(e){var t={};if(!(e instanceof c))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=u.sha256ripemd160(e.toBuffer()),t.type=h.PayToPublicKeyHash,t},h._transformScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new o.Script.CantDeriveAddress(e);return r},h.createMultisig=function(e,t,r,n){r=r||e[0].network||s.defaultNetwork;var i=d.buildMultisigOut(e,t);return n?h.payingTo(d.buildWitnessMultisigOutFromScript(i),r):h.payingTo(i,r)},h._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");e=e.trim();var n=a.decode(e);return h._transformBuffer(n,t,r)},h.fromPublicKey=function(e,t){var r=h._transformPublicKey(e);return t=t||s.defaultNetwork,new h(r.hashBuffer,t,r.type)},h.fromPublicKeyHash=function(e,t){var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToPublicKeyHash)},h.fromScriptHash=function(e,t){i.checkArgument(e,"hash parameter is required");var r=h._transformHash(e);return new h(r.hashBuffer,t,h.PayToScriptHash)},h.payingTo=function(e,t){return i.checkArgument(e,"script is required"),i.checkArgument(e instanceof d,"script must be instance of Script"),h.fromScriptHash(u.sha256ripemd160(e.toBuffer()),t)},h.fromScript=function(e,t){i.checkArgument(e instanceof d,"script must be a Script instance");var r=h._transformScript(e,t);return new h(r.hashBuffer,t,r.type)},h.fromBuffer=function(e,t,r){var n=h._transformBuffer(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromString=function(e,t,r){var n=h._transformString(e,t,r);return new h(n.hashBuffer,n.network,n.type)},h.fromObject=function(e){return i.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new h(t.from(e.hash,"hex"),e.network,e.type)},h.getValidationError=function(e,t,r){var n;try{new h(e,t,r)}catch(e){n=e}return n},h.isValid=function(e,t,r){return!h.getValidationError(e,t,r)},h.prototype.isPayToPublicKeyHash=function(){return this.type===h.PayToPublicKeyHash},h.prototype.isPayToScriptHash=function(){return this.type===h.PayToScriptHash},h.prototype.toBuffer=function(){var e=t.from([this.network[this.type]]);return t.concat([e,this.hashBuffer])},h.prototype.toObject=h.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},h.prototype.toString=function(){return a.encode(this.toBuffer())},h.prototype.inspect=function(){return""},e.exports=h;var d=r(41)}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(562).version,n.utils=r(563),n.rand=r(250),n.curve=r(129),n.curves=r(568),n.ec=r(576),n.eddsa=r(580)},function(e,t,r){var n=r(18),i=r(68);e.exports=r(17)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(7),i=r(31),o=r(36),a=r(69)("src"),s=r(291),u=(""+s).split("toString");r(42).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(f&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),i=r(10),o=r(50),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";var n=t;n.version=r(497).version,n.utils=r(498),n.rand=r(499),n.curve=r(125),n.curves=r(505),n.ec=r(514),n.eddsa=r(518)},function(e,t,r){"use strict";var n=r(279),i=r(677),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r0?n:r)(e)}},function(e,t,r){"use strict";var n=r(10);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(494).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,f=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],c=[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],h=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,d=Math.min(f,t.length-1),l=Math.max(0,f-e.length+1);l<=d;l++){var p=f-l|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,f=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],m=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],x=8191&S,I=S>>>13,k=0|a[5],A=8191&k,E=k>>>13,M=0|a[6],T=8191&M,R=M>>>13,B=0|a[7],P=8191&B,O=B>>>13,N=0|a[8],C=8191&N,j=N>>>13,z=0|a[9],U=8191&z,D=z>>>13,L=0|s[0],V=8191&L,H=L>>>13,F=0|s[1],K=8191&F,q=F>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,fe=se>>>13,ce=0|s[8],he=8191&ce,de=ce>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(f+(n=Math.imul(h,V))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,V)|0))<<13)|0;f=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(b,V)|0,o=Math.imul(b,H);var me=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,K)|0))<<13)|0;f=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,H))+Math.imul(v,V)|0,o=Math.imul(v,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,q)|0;var ve=(f+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(_,V)|0,o=Math.imul(_,H),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ye=(f+(n=n+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;f=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,V),i=(i=Math.imul(x,H))+Math.imul(I,V)|0,o=Math.imul(I,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(R,V)|0,o=Math.imul(R,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,q)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(O,V)|0,o=Math.imul(O,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,q)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(d,ue)|0))<<13)|0;f=((o=o+Math.imul(d,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(j,V)|0,o=Math.imul(j,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0;var Ie=(f+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;f=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,V),i=(i=Math.imul(U,H))+Math.imul(D,V)|0,o=Math.imul(D,H),n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,fe)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var ke=(f+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;f=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,q))+Math.imul(D,K)|0,o=Math.imul(D,q),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ae=(f+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;f=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,Y))+Math.imul(D,G)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(f+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;f=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,J))+Math.imul(D,Z)|0,o=Math.imul(D,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Me=(f+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;f=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,fe)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,he)|0,o=o+Math.imul(E,de)|0;var Te=(f+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(I,pe)|0))<<13)|0;f=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(R,he)|0,o=o+Math.imul(R,de)|0;var Re=(f+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(E,pe)|0))<<13)|0;f=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,fe)|0,n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(f+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(R,pe)|0))<<13)|0;f=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,fe))+Math.imul(D,ue)|0,o=Math.imul(D,fe),n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Pe=(f+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(O,pe)|0))<<13)|0;f=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Oe=(f+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(j,pe)|0))<<13)|0;f=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ne=(f+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return f=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ge,u[1]=me,u[2]=ve,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=xe,u[8]=Ie,u[9]=ke,u[10]=Ae,u[11]=Ee,u[12]=Me,u[13]=Te,u[14]=Re,u[15]=Be,u[16]=Pe,u[17]=Oe,u[18]=Ne,0!==f&&(u[19]=f,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(l=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=i);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=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},o.prototype.isubn=function(e){if(n("number"==typeof e),n(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)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(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):e.umod(this.m)._forceRed(this)},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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(124)(e))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var e=s(d);c=!0;for(var t=f.length;t;){for(u=f,f=[];++h1)for(var r=1;r_;_++)if((d||_ in v)&&(g=y(b=v[_],_,m),e))if(r)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(c)return!1;return h?-1:f||c?c:S}}},function(e,t,r){"use strict";(function(t){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;f--)if(c[f]!==h[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=m,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(79),i=r(506);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(40),i=r(5);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(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 u(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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},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,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,f=t;return u+=(f=f+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,f){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,f){return t+n+o+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(59),o=r(15),a=r(25),s=r(12),u=r(53),f=r(29);function c(e){return this instanceof c?e instanceof c?e:void o.call(this):new c(e)}i(c,o),c.prototype.writeVarInt=function(e,t){var r=a.writeVarInt(e,t);this.write(r)},c.prototype.writeString=function(e){u(null==e||n.isString(e)||s.isBuffer(e));var r=0,i=e;n.isEmpty(e)||(s.isBuffer(i)||(i=t.from(i)),r=i.length),this.writeVarintNum(r),r>0&&this.write(i)},c.prototype.writeCdpAsset=function(e){if(null!=e||0!=e.size){this.writeVarintNum(e.size);var t=!0,r=!1,n=void 0;try{for(var i,o=e.entries()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.writeString(a[0]),this.writeVarInt(8,a[1])}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},c.prototype.writeBuf=function(e){var t=0;n.isEmpty(e)||(u(s.isBuffer(e)),t=e.length),this.writeVarintNum(t),t>0&&this.write(e)},c.prototype.writeRegId=function(e){var t=a.splitRegID(e),r=new c;r.writeVarInt(4,t.height),r.writeVarInt(2,t.index),this.writeBuf(r.toBuffer())},c.prototype.VoteOperType={ADD_FUND:1, -//!< add operate -MINUS_FUND:2},c.prototype.writeDelegateData=function(e){this.writeVarintNum(e.length);for(var r=0;r-1?this.writeRegId(e[r].publicKey):this.writeString(t.from(e[r].publicKey,"hex")),this.writeVarInt(8,i)}},c.prototype.writeDestArrData=function(e,t){this.writeVarintNum(e.length);for(var r=0;rr;)i[r]=t[r++];return i},Te=function(e,t,r){V(e,t,{get:function(){return this._d[r]}})},Re=function(e){var t,r,n,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=E(s);if(null!=d&&!x(d)){for(a=d.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(h&&u>2&&(c=f(c,arguments[2],2)),t=0,r=b(s.length),i=Ae(this,r);r>t;t++)i[t]=h?c(s[t],t):s[t];return i},Be=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Pe=!!q&&o(function(){le.call(new q(1))}),Oe=function(){return le.apply(Pe?he.call(ke(this)):ke(this),arguments)},Ne={copyWithin:function(e,t){return U.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(ke(this),arguments)},filter:function(e){return Ee(this,Z(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return _e(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ue.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return ce.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=m(e,n);return new(P(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,b((void 0===t?n:m(t,n))-i))}},Ce=function(e,t){return Ee(this,he.call(ke(this),e,t))},je=function(e){ke(this);var t=Ie(arguments[1],1),r=this.length,n=S(e),i=b(n.length),o=0;if(i+t>r)throw F("Wrong length!");for(;o255?255:255&n),i.v[l](r*t+i.o,n,Se)}(this,r,e)},enumerable:!0})};y?(p=r(function(e,r,n,i){c(e,p,f,"_d");var o,a,s,u,h=0,l=0;if(_(r)){if(!(r instanceof G||"ArrayBuffer"==(u=w(r))||"SharedArrayBuffer"==u))return ye in r?Me(p,r):Re.call(p,r);o=r,l=Ie(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw F("Wrong length!");if((a=m-l)<0)throw F("Wrong length!")}else if((a=b(i)*t)+l>m)throw F("Wrong length!");s=a/t}else s=g(r),o=new G(a=s*t);for(d(e,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h"},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(12),a=r(14),s=function e(r){if(!(this instanceof e))return new e(r);if(!n.isUndefined(r))if(t.isBuffer(r))this.set({buf:r});else if(n.isString(r))this.set({buf:t.from(r,"hex")});else{if(!n.isObject(r))throw new TypeError("Unrecognized argument for BufferReader");var i=r;this.set(i)}};s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},s.prototype.eof=function(){return this.pos>=this.buf.length},s.prototype.finished=s.prototype.eof,s.prototype.read=function(e){i.checkArgument(!n.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},s.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},s.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},s.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},s.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},s.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=a.fromBuffer(e);return this.pos=this.pos+8,t},s.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),r=4294967296*this.buf.readUInt32LE(this.pos+4)+t;if(r<=9007199254740991)e=new a(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);e=new a(n,10,"le")}return this.pos=this.pos+8,e},s.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},s.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},s.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},s.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},s.prototype.reverse=function(){for(var e=t.alloc(this.buf.length),r=0;r9007199254740991?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},d.prototype.toObject=d.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},d.fromObject=function(e){return new d(e)},d.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=f.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof h.Script.InvalidBuffer))throw e;this._script=null}},d.prototype.setScript=function(e){if(e instanceof f)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(n.isString(e))this._script=f.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},d.prototype.inspect=function(){var e;return e=this.script?this.script.inspect():this._scriptBuffer.toString("hex"),""},d.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):new o.Buffer([]),new d(t)},d.prototype.toBufferWriter=function(e){e||(e=new u),e.writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},e.exports=d},function(e,t){e.exports=!1},function(e,t,r){var n=r(69)("meta"),i=r(11),o=r(36),a=r(18).f,s=0,u=Object.isExtensible||function(){return!0},f=!r(10)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return f&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(13)("unscopables"),i=Array.prototype;null==i[n]&&r(31)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(6).Buffer,i=r(165).Transform,o=r(169).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(24),o=r(41),a=r(62),s=r(61),u=r(15),f=r(14),c=r(8),h=r(19),d=r(3),l=r(2),p=function(e,h,d,l){var p,b=r(178),g=r(179),m=b.shallowCopy(e);for((l=new o(l)).removeCodeseparators(),p=0;p=m.outputs.length)return t.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(m.outputs.length=d+1,p=0;pdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(187),i=r(138).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";var n=r(7),i=r(18),o=r(17),a=r(13)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(43),i=r(200),o=r(150),a=r(4),s=r(16),u=r(152),f={},c={};(t=e.exports=function(e,t,r,h,d){var l,p,b,g,m=d?function(){return e}:u(e),v=n(r,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(l=s(e.length);l>y;y++)if((g=t?v(a(p=e[y])[0],p[1]):v(e[y]))===f||g===c)return g}else for(b=m.call(e);!(p=b.next()).done;)if((g=i(b,v,p.value,t))===f||g===c)return g}).BREAK=f,t.RETURN=c},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(11);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(126),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(101);o.inherits=r(5);var a=r(229),s=r(168);o.inherits(h,a);for(var u=i(s.prototype),f=0;f"},e.exports=l}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(183),r(184),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.MD5,c=u.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=s.create(),o=i.words,a=r.keySize,u=r.iterations;o.lengtho)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n,i,o;e.exports=(n=r(9),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],l=e[t+2],p=e[t+3],b=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],I=e[t+13],k=e[t+14],A=e[t+15],E=o[0],M=o[1],T=o[2],R=o[3];E=f(E,M,T,R,a,7,s[0]),R=f(R,E,M,T,u,12,s[1]),T=f(T,R,E,M,l,17,s[2]),M=f(M,T,R,E,p,22,s[3]),E=f(E,M,T,R,b,7,s[4]),R=f(R,E,M,T,g,12,s[5]),T=f(T,R,E,M,m,17,s[6]),M=f(M,T,R,E,v,22,s[7]),E=f(E,M,T,R,y,7,s[8]),R=f(R,E,M,T,w,12,s[9]),T=f(T,R,E,M,_,17,s[10]),M=f(M,T,R,E,S,22,s[11]),E=f(E,M,T,R,x,7,s[12]),R=f(R,E,M,T,I,12,s[13]),T=f(T,R,E,M,k,17,s[14]),E=c(E,M=f(M,T,R,E,A,22,s[15]),T,R,u,5,s[16]),R=c(R,E,M,T,m,9,s[17]),T=c(T,R,E,M,S,14,s[18]),M=c(M,T,R,E,a,20,s[19]),E=c(E,M,T,R,g,5,s[20]),R=c(R,E,M,T,_,9,s[21]),T=c(T,R,E,M,A,14,s[22]),M=c(M,T,R,E,b,20,s[23]),E=c(E,M,T,R,w,5,s[24]),R=c(R,E,M,T,k,9,s[25]),T=c(T,R,E,M,p,14,s[26]),M=c(M,T,R,E,y,20,s[27]),E=c(E,M,T,R,I,5,s[28]),R=c(R,E,M,T,l,9,s[29]),T=c(T,R,E,M,v,14,s[30]),E=h(E,M=c(M,T,R,E,x,20,s[31]),T,R,g,4,s[32]),R=h(R,E,M,T,y,11,s[33]),T=h(T,R,E,M,S,16,s[34]),M=h(M,T,R,E,k,23,s[35]),E=h(E,M,T,R,u,4,s[36]),R=h(R,E,M,T,b,11,s[37]),T=h(T,R,E,M,v,16,s[38]),M=h(M,T,R,E,_,23,s[39]),E=h(E,M,T,R,I,4,s[40]),R=h(R,E,M,T,a,11,s[41]),T=h(T,R,E,M,p,16,s[42]),M=h(M,T,R,E,m,23,s[43]),E=h(E,M,T,R,w,4,s[44]),R=h(R,E,M,T,x,11,s[45]),T=h(T,R,E,M,A,16,s[46]),E=d(E,M=h(M,T,R,E,l,23,s[47]),T,R,a,6,s[48]),R=d(R,E,M,T,v,10,s[49]),T=d(T,R,E,M,k,15,s[50]),M=d(M,T,R,E,g,21,s[51]),E=d(E,M,T,R,x,6,s[52]),R=d(R,E,M,T,p,10,s[53]),T=d(T,R,E,M,_,15,s[54]),M=d(M,T,R,E,u,21,s[55]),E=d(E,M,T,R,y,6,s[56]),R=d(R,E,M,T,A,10,s[57]),T=d(T,R,E,M,m,15,s[58]),M=d(M,T,R,E,I,21,s[59]),E=d(E,M,T,R,b,6,s[60]),R=d(R,E,M,T,S,10,s[61]),T=d(T,R,E,M,l,15,s[62]),M=d(M,T,R,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+M|0,o[2]=o[2]+T|0,o[3]=o[3]+R|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(e,t,r){var n=r(42),i=r(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(63)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(4);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(4),i=r(28),o=r(13)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";var n=r(54),i=r(79);function o(){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=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0)},l.prototype.getWitnesses=function(){return this.witnesses},l.prototype.setWitnesses=function(e){this.witnesses=e},l.prototype.isValidSignature=function(e,t){return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script)},l.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},l.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},e.exports=l},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(59),a=r(12),s=r(23),u=r(60),f=r(21),c=r(24);function h(e){if(!(this instanceof h))return new h(e);if(e instanceof h)return e;if(n.isObject(e))return this._fromObject(e);throw new f.InvalidArgument("TransactionSignatures must be instantiated from an object")}o(h,c),h.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new u(e.publicKey),this.prevTxId=a.isBuffer(e.prevTxId)?e.prevTxId:t.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof c?e.signature:a.isBuffer(e.signature)?c.fromBuffer(e.signature):c.fromString(e.signature),this.sigtype=e.sigtype,this},h.prototype._checkObjectArgs=function(e){i.checkArgument(u(e.publicKey),"publicKey"),i.checkArgument(!n.isUndefined(e.inputIndex),"inputIndex"),i.checkArgument(!n.isUndefined(e.outputIndex),"outputIndex"),i.checkState(n.isNumber(e.inputIndex),"inputIndex must be a number"),i.checkState(n.isNumber(e.outputIndex),"outputIndex must be a number"),i.checkArgument(e.signature,"signature"),i.checkArgument(e.prevTxId,"prevTxId"),i.checkState(e.signature instanceof c||a.isBuffer(e.signature)||s.isHexa(e.signature),"signature must be a buffer or hexa value"),i.checkState(a.isBuffer(e.prevTxId)||s.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),i.checkArgument(e.sigtype,"sigtype"),i.checkState(n.isNumber(e.sigtype),"sigtype must be a number")},h.prototype.toObject=h.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},h.fromObject=function(e){return i.checkArgument(e),new h(e)},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t,n){function i(){}i.getRandomBuffer=function(e){return t.browser?i.getRandomBufferBrowser(e):i.getRandomBufferNode(e)},i.getRandomBufferNode=function(e){return r(89).randomBytes(e)},i.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}var r=new Uint8Array(e);return t.getRandomValues(r),n.from(r)},i.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++){0===i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8)}return r},e.exports=i}).call(this,r(48),r(1).Buffer)},function(e,t,r){var n=r(37),i=r(16),o=r(71);e.exports=function(e){return function(t,r,a){var s,u=n(t),f=i(u.length),c=o(a,f);if(e&&r!=r){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(45),i=r(50);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),f=s.length;return u<0||u>=f?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===f||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){var n=r(11),i=r(44),o=r(13)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(85),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";r(204);var n=r(32),i=r(31),o=r(10),a=r(50),s=r(13),u=r(156),f=s("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var d=s(e),l=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=l?!o(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[f]=function(){return r}),r[d](""),!t}):void 0;if(!l||!p||"replace"===e&&!c||"split"===e&&!h){var b=/./[d],g=r(a,d,""[e],function(e,t,r,n,i){return t.exec===u?l&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],v=g[1];n(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,r){var n=r(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(32),a=r(77),s=r(64),u=r(76),f=r(75),c=r(11),h=r(10),d=r(115),l=r(84),p=r(142);e.exports=function(e,t,r,b,g,m){var v=n[e],y=v,w=g?"set":"add",_=y&&y.prototype,S={},x=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof y&&(m||_.forEach&&!h(function(){(new y).entries().next()}))){var I=new y,k=I[w](m?{}:-0,1)!=I,A=h(function(){I.has(1)}),E=d(function(e){new y(e)}),M=!m&&h(function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)});E||((y=t(function(t,r){f(t,y,e);var n=p(new v,t,y);return null!=r&&u(r,g,n[w],n),n})).prototype=_,_.constructor=y),(A||M)&&(x("delete"),x("has"),g&&x("get")),(M||k)&&x(w),m&&_.clear&&delete _.clear}else y=b.getConstructor(t,e,g,w),a(y.prototype,r),s.NEED=!0;return l(y,e),S[e]=y,i(i.G+i.W+i.F*(y!=v),S),m||b.setStrong(y,e,g),y}},function(e,t,r){for(var n,i=r(7),o=r(31),a=r(69),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),c=f,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[d[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):c=!1;e.exports={ABV:f,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,r){"use strict";e.exports=r(63)||!r(10)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(7)[e]})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){"use strict";var n=r(0),i=r(28),o=r(43),a=r(76);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(r=[],t?(n=0,s=o(u,arguments[2],2),a(e,!1,function(e){r.push(s(e,n++))})):a(e,!1,r.push,r),new this(r))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=t;n.base=r(501),n.short=r(502),n.mont=r(503),n.edwards=r(504)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^h[b>>>8&255]^d[255&g]^t[m++],a=f[p>>>24]^c[b>>>16&255]^h[g>>>8&255]^d[255&l]^t[m++],s=f[b>>>24]^c[g>>>16&255]^h[l>>>8&255]^d[255&p]^t[m++],u=f[g>>>24]^c[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[m++],l=o,p=a,b=s,g=u;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&g])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[g>>>8&255]<<8|n[255&l])^t[m++],s=(n[b>>>24]<<24|n[g>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],u=(n[g>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=e[a],h=e[c],d=e[h],l=257*e[f]^16843008*f;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*c^16843008*a,o[0][f]=l<<24|l>>>8,o[1][f]=l<<16|l>>>16,o[2][f]=l<<8|l>>>24,o[3][f]=l,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(6).Buffer,i=r(164);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,f.length),f.copy(s,d,0,h),a-=h}if(h0){var l=u.length-o,p=Math.min(o,f.length-h);f.copy(u,l,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=t;n.base=r(564),n.short=r(565),n.mont=r(566),n.edwards=r(567)},function(e,t,r){var n=r(583),i=r(595),o=r(596),a=r(173),s=r(239),u=r(6).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":f=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,h,"sha1"),l=a.createDecipheriv(o,d,f),p=[];return p.push(l.update(c)),p.push(l.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(263),o=r(1),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),s=function e(r){if(!(this instanceof e))return new e(r);if(t.isBuffer(r)){var n=r;this.fromBuffer(n)}else if("string"==typeof r){var i=r;this.fromString(i)}else r&&this.set(r)};s.validCharacters=function(e){return o.Buffer.isBuffer(e)&&(e=e.toString()),n.every(n.map(e,function(e){return n.includes(a,e)}))},s.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},s.encode=function(e){if(!o.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},s.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return t.from(i.decode(e))},s.prototype.fromBuffer=function(e){return this.buf=e,this},s.prototype.fromString=function(e){var t=s.decode(e);return this.buf=t,this},s.prototype.toBuffer=function(){return this.buf},s.prototype.toString=function(){return s.encode(this.buf)},e.exports=s}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(178),e.exports.Input=r(179),e.exports.Output=r(62),e.exports.UnspentOutput=r(265),e.exports.Signature=r(108),e.exports.Sighash=r(67),e.exports.SighashWitness=r(180),e.exports.RegisterAccountTx=r(266),e.exports.CommonTx=r(269),e.exports.ContractTx=r(270),e.exports.DelegateTx=r(271)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(14),o=r(12),a=r(61),s=r(15),u=r(8),f=(r(23),r(3)),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&f.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};c._from=function(e){var t={};if(o.isBuffer(e))t=c._fromBufferReader(a(e));else{if(!n.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=c._fromObject(e)}return t},c._fromObject=function(e){f.checkArgument(e,"data is required");var r=e.prevHash,i=e.merkleRoot;return n.isString(e.prevHash)&&(r=o.reverse(t.from(e.prevHash,"hex"))),n.isString(e.merkleRoot)&&(i=o.reverse(t.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:r,merkleRoot:i,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},c.fromObject=function(e){var t=c._fromObject(e);return new c(t)},c.fromRawBlock=function(e){o.isBuffer(e)||(e=t.from(e,"binary"));var r=a(e);r.pos=c.Constants.START_OF_HEADER;var n=c._fromBufferReader(r);return new c(n)},c.fromBuffer=function(e){var t=c._fromBufferReader(a(e));return new c(t)},c.fromString=function(e){var r=t.from(e,"hex");return c.fromBuffer(r)},c._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},c.fromBufferReader=function(e){var t=c._fromBufferReader(e);return new c(t)},c.prototype.toObject=c.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:o.reverse(this.prevHash).toString("hex"),merkleRoot:o.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},c.prototype.toBuffer=function(){return this.toBufferWriter().concat()},c.prototype.toString=function(){return this.toBuffer().toString("hex")},c.prototype.toBufferWriter=function(e){return e||(e=new s),e.writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},c.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new i(16777215&e),r=8*((e>>>24)-3);r-- >0;)t=t.mul(new i(2));return t},c.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new i(Math.pow(10,8))),t=this.getTargetDifficulty(),r=e.div(t).toString(10),n=r.length-8;return r=r.slice(0,n)+"."+r.slice(n),parseFloat(r)},c.prototype._getHash=function(){var e=this.toBuffer();return u.sha256sha256(e)};var h={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=a(this._getHash()).readReverse().toString("hex")),this._id},set:n.noop};Object.defineProperty(c.prototype,"id",h),Object.defineProperty(c.prototype,"hash",h),c.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+c.Constants.MAX_TIME_OFFSET)},c.prototype.validProofOfWork=function(){var e=new i(this.id,"hex"),t=this.getTargetDifficulty();return!(e.cmp(t)>0)},c.prototype.inspect=function(){return""},c.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new i("10000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=o.WordArray,(u=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},function(e,t,r){"use strict";var n=r(63),i=r(0),o=r(32),a=r(31),s=r(87),u=r(147),f=r(84),c=r(39),h=r(13)("iterator"),d=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,g,m){u(r,t,p);var v,y,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==b,I=!1,k=e.prototype,A=k[h]||k["@@iterator"]||b&&k[b],E=A||_(b),M=b?x?_("entries"):E:void 0,T="Array"==t&&k.entries||A;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),n||"function"==typeof w[h]||a(w,h,l)),x&&A&&"values"!==A.name&&(I=!0,E=function(){return A.call(this)}),n&&!m||!d&&!I&&k[h]||a(k,h,E),s[t]=E,s[S]=l,b)if(v={values:x?E:_("values"),keys:g?E:_("keys"),entries:M},m)for(y in v)y in k||o(k,y,v[y]);else i(i.P+i.F*(d||I),t,v);return v}},function(e,t,r){"use strict";var n=r(72),i=r(68),o=r(84),a={};r(31)(a,r(13)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(114),i=r(50);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){var n=r(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(87),i=r(13)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(18),i=r(68);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(85),i=r(13)("iterator"),o=r(87);e.exports=r(42).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(380);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(20),i=r(71),o=r(16);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,f=void 0===u?r:i(u,r);f>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(65),i=r(203),o=r(87),a=r(37);e.exports=r(146)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n,i,o=r(97),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,f=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(f||c)&&(u=function(e){var t,r,n,i,u=this;return c&&(r=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),f&&(t=u.lastIndex),n=a.call(u,e),f&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],r,function(){for(i=1;ir;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},l=function(e){delete m[e]},"process"==r(44)(h)?n=function(e){h.nextTick(a(v,e,1))}:b&&b.now?n=function(e){b.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:l}},function(e,t,r){var n=r(7),i=r(158).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(44)(a);e.exports=function(){var e,t,r,f=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(f)}}else r=function(){i.call(n,f)};else{var h=!0,d=document.createTextNode("");new o(f).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var n=r(28);function i(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";var n=r(7),i=r(17),o=r(63),a=r(120),s=r(31),u=r(77),f=r(10),c=r(75),h=r(45),d=r(16),l=r(213),p=r(73).f,b=r(18).f,g=r(154),m=r(84),v="prototype",y="Wrong index!",w=n.ArrayBuffer,_=n.DataView,S=n.Math,x=n.RangeError,I=n.Infinity,k=w,A=S.abs,E=S.pow,M=S.floor,T=S.log,R=S.LN2,B=i?"_b":"buffer",P=i?"_l":"byteLength",O=i?"_o":"byteOffset";function N(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,u=(1<>1,c=23===t?E(2,-24)-E(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=u):(n=M(T(e)/R),e*(o=E(2,-n))<1&&(n--,o*=2),(e+=n+f>=1?c/o:c*E(2,1-f))*o>=2&&(n++,o/=2),n+f>=u?(i=0,n=u):n+f>=1?(i=(e*o-1)*E(2,t),n+=f):(i=e*E(2,f-1)*E(2,t),n=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*d,a}function C(e,t,r){var n,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,f=e[u--],c=127&f;for(f>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:f?-I:I;n+=E(2,t),c-=a}return(f?-1:1)*n*E(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function V(e){return N(e,23,4)}function H(e,t,r){b(e[v],t,{get:function(){return this[r]}})}function F(e,t,r,n){var i=l(+r);if(i+t>e[P])throw x(y);var o=e[B]._b,a=i+e[O],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=l(+r);if(a+t>e[P])throw x(y);for(var s=e[B]._b,u=a+e[O],f=n(+i),c=0;cY;)(q=G[Y++])in w||s(w,q,k[q]);o||(W.constructor=w)}var X=new _(new w(2)),Z=_[v].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_[v],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=l(e);this._b=g.call(new Array(t),0),this[P]=t},_=function(e,t,r){c(this,_,"DataView"),c(e,w,"DataView");var n=e[P],i=h(t);if(i<0||i>n)throw x("Wrong offset!");if(i+(r=void 0===r?n-i:d(r))>n)throw x("Wrong length!");this[B]=e,this[O]=i,this[P]=r},i&&(H(w,"byteLength","_l"),H(_,"buffer","_b"),H(_,"byteLength","_l"),H(_,"byteOffset","_o")),u(_[v],{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(F(this,4,e,arguments[1]))},getUint32:function(e){return j(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return C(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return C(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,z,t)},setUint8:function(e,t){K(this,1,e,z,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,D,t,arguments[2])},setUint32:function(e,t){K(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,L,t,arguments[2])}});m(w,"ArrayBuffer"),m(_,"DataView"),s(_[v],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=_},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(222),a=r(29),s=r(109),u=r(8),f=r(1),c=r(631),h=r(634),d=r(275),l=r(182),p=r(12),b={2:{txName:"ACCOUNT_REGISTER_TX",txAction:r(266)},3:{txName:"BCOIN_TRANSFER_TX",txAction:r(269)},4:{txName:"LCONTRACT_INVOKE_TX",txAction:r(270)},5:{txName:"LCONTRACT_DEPLOY_TX",txAction:r(658)},6:{txName:"DELEGATE_VOTE_TX",txAction:r(271)},9:{txName:"ASSET_ISSUE_TX",txAction:r(659)},10:{txName:"ASSET_UPDATE_TX",txAction:r(660)},11:{txName:"UCOIN_TRANSFER_TX",txAction:r(661)},15:{txName:"UCOIN_CONTRACT_INVOKE_TX",txAction:r(662)},21:{txName:"CDP_STAKE_TX",txAction:r(663)},22:{txName:"CDP_REDEEMP_TX",txAction:r(664)},23:{txName:"CDP_LIQUIDATE_TX",txAction:r(665)},84:{txName:"DEX_LIMIT_BUY_ORDER_TX",txAction:r(666)},85:{txName:" DEX_LIMIT_SELL_ORDER_TX",txAction:r(667)},86:{txName:"DEX_MARKET_BUY_ORDER_TX",txAction:r(668)},87:{txName:"DEX_MARKET_SELL_ORDER_TX",txAction:r(669)},88:{txName:"DEX_CANCEL_ORDER_TX",txAction:r(670)}},g=function e(t){if(!(this instanceof e))return new e(t);e._from(t);return this.network=t.network,this};for(var m in g._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for WiccApi");return g._fromObject(e)},g._fromObject=function(e){return i.checkArgument(e,"data is required"),{network:e.network}},g.prototype.getBIP44Path=function(){return"testnet"===this.network?"m/44'/999999'/0'/0/0":"m/44'/99999'/0'/0/0"},g.prototype.createAllCoinMnemonicCode=function(e){return new o(o.Words[e]).toString()},g.prototype.checkMnemonicCode=function(e){return o.isValid(e)},g.prototype.validateAddress=function(e){return a.isValid(e,this.network)},g.prototype.getPriKeyFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getAddressFromMnemonicCode=function(e){return new o(e).toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress()},g.prototype.createWallet=function(e,t){var r=s.getRandomBuffer(8),n=new f.Buffer(t,"utf8"),i=u.sha256(n),a=new o(e),l=a.toString(),p=a.toSeed(),b=a.toHDPrivateKey(null,this.network).deriveChild(this.getBIP44Path()).privateKey.toAddress().toString(),g=new Date,m=parseInt(g.getTime()/1e3),v=c(t,r,32768,8,1,64),y=v.slice(0,32),w=v.slice(32,48),_=y.toString("hex"),S=d.enc.Hex.parse(_),x=w.toString("hex"),I=d.enc.Hex.parse(x),k=p.toString("hex"),A=h.encrypt(S,I,k);return{seedinfo:{encMneData:{encryptedBytes:h.encrypt(S,I,l),iv:w},encSeedData:{encryptedBytes:A,iv:w},creationTimeSeconds:m,hashPwd:i,salt:r},symbol:"WICC",address:b}},g.prototype.getPriKeyFromSeed=function(e,r){var n=new f.Buffer(r,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(r,o,32768,8,1,64),s=a.slice(0,32),b=a.slice(32,48),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=b.toString("hex"),y=d.enc.Hex.parse(v),w=e.encSeedData.encryptedBytes,_=h.decrypt(m,y,w),S=new t(_,"hex");return l.fromSeed(S,this.network).deriveChild(this.getBIP44Path()).privateKey.toWIF()},g.prototype.getMnemonicCodeFromSeed=function(e,t){var r=new f.Buffer(t,"utf8"),n=u.sha256(r);if(!p.equal(n,e.hashPwd))return null;var i=e.salt,o=c(t,i,32768,8,1,64),a=o.slice(0,32),s=o.slice(32,48),l=a.toString("hex"),b=d.enc.Hex.parse(l),g=s.toString("hex"),m=d.enc.Hex.parse(g),v=e.encMneData.encryptedBytes;return h.decrypt(b,m,v)},g.prototype.changePassword=function(e,t,r){var n=new f.Buffer(t,"utf8"),i=u.sha256(n);if(!p.equal(i,e.hashPwd))return null;var o=e.salt,a=c(t,o,32768,8,1,64),s=a.slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m),y=e.encSeedData.encryptedBytes,w=h.decrypt(g,v,y),_=e.encMneData.encryptedBytes,S=h.decrypt(g,v,_),x=new f.Buffer(r,"utf8"),I=u.sha256(x);s=(a=c(r,o,32768,8,1,64)).slice(0,32),l=a.slice(32,48),b=s.toString("hex"),g=d.enc.Hex.parse(b),m=l.toString("hex"),v=d.enc.Hex.parse(m);var k=h.encrypt(g,v,w);return{encMneData:{encryptedBytes:h.encrypt(g,v,S),iv:l},encSeedData:{encryptedBytes:k,iv:l},creationTimeSeconds:e.creationTimeSeconds,hashPwd:I,salt:o}},g.prototype.createSignTransaction=function(e,t){return new(0,b[t.nTxType].txAction)(t).SerializeTx(e)},g.PROTOCAL_VERSION=1,b)g[b[m].txName]=Number(m);e.exports=g}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(54),n.common=r(99),n.sha=r(507),n.ripemd=r(511),n.hmac=r(512),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(5),i=r(228),o=r(6).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function f(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|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=o.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},function(e,t,r){e.exports=i;var n=r(166).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(167),i.Writable=r(527),i.Duplex=r(528),i.Transform=r(529),i.PassThrough=r(530),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=p(u,f);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},s.prototype.listenerCount=l,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(229)).Stream=t,t.Readable=t,t.Writable=r(168),t.Duplex=r(80),t.Transform=r(233),t.PassThrough=r(526)},function(e,t,r){"use strict";(function(t,n,i){var o=r(126);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=m;var f=r(101);f.inherits=r(5);var c={deprecate:r(525)},h=r(230),d=r(6).Buffer,l=i.Uint8Array||function(){};var p,b=r(231);function g(){}function m(e,t){s=s||r(80),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),I(e,t))}(e,r,n,t,i);else{var a=S(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(80),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}f.inherits(v,h),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof l);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(48),r(232).setImmediate,r(27))},function(e,t,r){"use strict";var n=r(6).Buffer,i=n.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 o(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&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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,r=function(e,t,r){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!==r?r: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 u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(5),o=r(228),a=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],u=[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],f=[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],c=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,l=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,x=0|this._d,I=0|this._e,k=0;k<80;k+=1){var A,E;k<16?(A=b(r,n,i,o,l,e[s[k]],h[0],f[k]),E=y(w,_,S,x,I,e[u[k]],d[0],c[k])):k<32?(A=g(r,n,i,o,l,e[s[k]],h[1],f[k]),E=v(w,_,S,x,I,e[u[k]],d[1],c[k])):k<48?(A=m(r,n,i,o,l,e[s[k]],h[2],f[k]),E=m(w,_,S,x,I,e[u[k]],d[2],c[k])):k<64?(A=v(r,n,i,o,l,e[s[k]],h[3],f[k]),E=g(w,_,S,x,I,e[u[k]],d[3],c[k])):(A=y(r,n,i,o,l,e[s[k]],h[4],f[k]),E=b(w,_,S,x,I,e[u[k]],d[4],c[k])),r=l,l=o,o=p(i,10),i=n,n=A,w=I,I=x,x=p(S,10),S=_,_=E}var M=this._b+i+x|0;this._b=this._c+o+I|0,this._c=this._d+l+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=M},l.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=n.alloc?n.alloc(20):new n(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=l},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(531),t.sha1=r(532),t.sha224=r(533),t.sha256=r(234),t.sha384=r(534),t.sha512=r(235)},function(e,t,r){"use strict";t.utils=r(540),t.Cipher=r(541),t.DES=r(542),t.CBC=r(543),t.EDE=r(544)},function(e,t,r){var n=r(545),i=r(553),o=r(245);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(546),CBC:r(547),CFB:r(548),CFB8:r(549),CFB1:r(550),OFB:r(551),CTR:r(243),GCM:r(243)},i=r(245);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(22),i=r(90);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,d=r.prime2,l=u.redPow(r.exponent1),p=f.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(c).umod(h);return b.imul(d),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){var n=t;n.utils=r(55),n.common=r(103),n.sha=r(569),n.ripemd=r(573),n.hmac=r(574),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){function n(e){return(n="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})(e)}var i=r(2),o=r(3),a=r(12),s=r(23);function u(e){if(!(this instanceof u))return new u(e);var t;if(i.isNumber(e))t=e;else{if(!i.isString(e))throw new TypeError('Unrecognized num type: "'+n(e)+'" for Opcode');t=u.map[e]}return s.defineImmutable(this,{num:t}),this}for(var f in u.fromBuffer=function(e){return o.checkArgument(a.isBuffer(e)),new u(Number("0x"+e.toString("hex")))},u.fromNumber=function(e){return o.checkArgument(i.isNumber(e)),new u(e)},u.fromString=function(e){o.checkArgument(i.isString(e));var t=u.map[e];if(void 0===t)throw new TypeError("Invalid opcodestr");return new u(t)},u.prototype.toHex=function(){return this.num.toString(16)},u.prototype.toBuffer=function(){return t.from(this.toHex(),"hex")},u.prototype.toNumber=function(){return this.num},u.prototype.toString=function(){var e=u.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},u.smallInt=function(e){return o.checkArgument(i.isNumber(e),"Invalid Argument: n should be number"),o.checkArgument(e>=0&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?u("OP_0"):new u(u.map.OP_1+e-1)},u.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},u.reverseMap=[],u.map)u.reverseMap[u.map[f]]=f;i.extend(u,u.map),u.isSmallIntOp=function(e){return e instanceof u&&(e=e.toNumber()),e===u.map.OP_0||e>=u.map.OP_1&&e<=u.map.OP_16},u.prototype.inspect=function(){return""},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(1),a=t.compare||r(606),s=r(21),u=r(12),f=r(23),c=r(61),h=r(15),d=r(8),l=r(24),p=r(67),b=r(180),g=r(29),m=r(265),v=r(179),y=v.PublicKeyHash,w=v.PublicKey,_=v.MultiSigScriptHash,S=v.MultiSig,x=r(62),I=r(41),k=r(82),A=r(14);function E(e){if(!(this instanceof E))return new E(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof E)return E.shallowCopy(e);if(f.isHexa(e))this.fromString(e);else if(u.isBuffer(e))this.fromBuffer(e);else{if(!n.isObject(e))throw new s.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e)}}else this._newTransaction()}E.DUST_AMOUNT=546,E.FEE_SECURITY_MARGIN=150,E.MAX_MONEY=21e14,E.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,E.NLOCKTIME_MAX_VALUE=4294967295,E.FEE_PER_KB=1e5,E.CHANGE_OUTPUT_MAX_SIZE=62,E.MAXIMUM_EXTRA_SIZE=26,E.shallowCopy=function(e){return new E(e.toBuffer())};var M={configurable:!1,enumerable:!0,get:function(){return this._hash=new c(this._getHash()).readReverse().toString("hex"),this._hash}},T={configurable:!1,enumerable:!0,get:function(){return new c(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(E.prototype,"witnessHash",T),Object.defineProperty(E.prototype,"hash",M),Object.defineProperty(E.prototype,"id",M);var R={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(E.prototype,"inputAmount",R),R.get=function(){return this._getOutputAmount()},Object.defineProperty(E.prototype,"outputAmount",R),E.prototype._getHash=function(){return d.sha256sha256(this.toBuffer(!0))},E.prototype._getWitnessHash=function(){return d.sha256sha256(this.toBuffer(!1))},E.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},E.prototype.uncheckedSerialize=E.prototype.toString=function(){return this.toBuffer().toString("hex")},E.prototype.checkedSerialize=function(e){var t=this.getSerializationError(e);if(t)throw t.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",t;return this.uncheckedSerialize()},E.prototype.invalidSatoshis=function(){for(var e=!1,t=0;tr)return this._missingChange()?new s.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new s.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){var i=Math.ceil(this._estimateFee()/E.FEE_SECURITY_MARGIN);if(t"},E.prototype.toBuffer=function(e){var t=new h;return this.toBufferWriter(t,e).toBuffer()},E.prototype.hasWitnesses=function(){for(var e=0;e=E.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new s.Transaction.BlockHeightTooHigh;if(e<0)throw new s.Transaction.NLockTimeOutOfRange;for(var t=0;t0?(this._changeIndex=this.outputs.length,this._addOutput(new x({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0}},E.prototype.getFee=function(){return this.isCoinbase()?0:n.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},E.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue();return E._estimateFee(e,t,this._feePerKb)},E.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},E.prototype._clearSignatures=function(){n.each(this.inputs,function(e){e.clearSignatures()})},E._estimateFee=function(e,t,r){return t>Math.ceil(e/1e3)*(r||E.FEE_PER_KB)&&(e+=E.CHANGE_OUTPUT_MAX_SIZE),Math.ceil(e/1e3)*(r||E.FEE_PER_KB)},E.prototype._estimateSize=function(){var e=E.MAXIMUM_EXTRA_SIZE;return n.each(this.inputs,function(t){e+=t._estimateSize()}),n.each(this.outputs,function(t){e+=t.script.toBuffer().length+9}),e},E.prototype._removeOutput=function(e){var t=this.outputs[e];this.outputs=n.without(this.outputs,t),this._outputAmount=void 0},E.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},E.prototype.sort=function(){return this.sortInputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return a(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex}),t}),this.sortOutputs(function(e){var t=Array.prototype.concat.apply([],e);return t.sort(function(e,t){return e.satoshis-t.satoshis||a(e.script.toBuffer(),t.script.toBuffer())}),t}),this},E.prototype.shuffleOutputs=function(){return this.sortOutputs(n.shuffle)},E.prototype.sortOutputs=function(e){var t=e(this.outputs);return this._newOutputOrder(t)},E.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},E.prototype._newOutputOrder=function(e){if(this.outputs.length!==e.length||0!==n.difference(this.outputs,e).length)throw new s.Transaction.InvalidSorting;if(!n.isUndefined(this._changeIndex)){var t=this.outputs[this._changeIndex];this._changeIndex=n.findIndex(e,t)}return this.outputs=e,this},E.prototype.removeInput=function(e,t){var r;if((r=!t&&n.isNumber(e)?e:n.findIndex(this.inputs,function(r){return r.prevTxId.toString("hex")===e&&r.outputIndex===t}))<0||r>=this.inputs.length)throw new s.Transaction.InvalidIndex(r,this.inputs.length);var i=this.inputs[r];this.inputs=n.without(this.inputs,i),this._inputAmount=void 0,this._updateChangeOutput()},E.prototype.sign=function(e,t){i.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var r=this;return n.isArray(e)?(n.each(e,function(e){r.sign(e,t)}),this):(n.each(this.getSignatures(e,t),function(e){r.applySignature(e)}),this)},E.prototype.getSignatures=function(e,t){e=new k(e),t=t||l.SIGHASH_ALL;var r=this,i=[],o=d.sha256ripemd160(e.publicKey.toBuffer());return n.each(this.inputs,function(a,s){n.each(a.getSignatures(r,e,s,t,o),function(e){i.push(e)})}),i},E.prototype.applySignature=function(e){return this.inputs[e.inputIndex].addSignature(this,e),this},E.prototype.isFullySigned=function(){return n.each(this.inputs,function(e){if(e.isFullySigned===v.prototype.isFullySigned)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),n.every(n.map(this.inputs,function(e){return e.isFullySigned()}))},E.prototype.isValidSignature=function(e){if(this.inputs[e.inputIndex].isValidSignature===v.prototype.isValidSignature)throw new s.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e)},E.prototype.verifySignature=function(e,t,r,o,a,s){if(n.isUndefined(a)&&(a=0),1===a){var u,c=o.toBuffer(),d=new h;return d.writeVarintNum(c.length),d.write(c),s?(i.checkState(f.isNaturalNumber(s)),u=(new h).writeUInt64LEBN(new A(s)).toBuffer()):u=this.inputs[r].getSatoshisBuffer(),b.verify(this,e,t,r,d.toBuffer(),u)}return p.verify(this,e,t,r,o)},E.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new A(0),t=0;t1e6)return"transaction over the maximum block size";var i={};for(t=0;t100)return"coinbase transaction script size invalid"}else for(t=0;t=v.MAXINT-1&&(t.sequenceNumber=v.DEFAULT_RBF_SEQNUMBER)}return this},e.exports=E}).call(this,r(1).Buffer)},function(e,t,r){e.exports=r(107),e.exports.PublicKey=r(607),e.exports.PublicKeyHash=r(608),e.exports.MultiSig=r(609),e.exports.MultiSigScriptHash=r(610)},function(e,t,r){"use strict";(function(t){var n=r(24),i=(r(41),r(62),r(61)),o=r(15),a=(r(14),r(8)),s=r(19),u=r(3),f=r(2),c=function(e,r,s,u,f){var c,h,d;if(!(r&n.SIGHASH_ANYONECANPAY)){for(var l=[],p=0;p"},e.exports=s},function(e,t,r){"use strict";(function(t){var n=r(53),i=r(1),o=r(2),a=r(3),s=r(14),u=r(131),f=r(106),c=r(8),h=r(81),d=r(88),l=r(82),p=r(109),b=r(21),g=b.HDPrivateKey,m=r(12),v=r(23);function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(h.get(e))return this._generateRandomly(e);if(o.isString(e)||m.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(v.isValidJSON(e))this._buildFromJSON(e);else{if(!m.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!o.isObject(e))throw new g.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(o.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&o.every(r,y.isValidPath)}return!!o.isNumber(e)&&(e=0&&e=y.Hardened||t,e64)throw new g.InvalidEntropyArgument.TooMuchEntropy(e);var n=c.sha512hmac(e,new i.Buffer("Bitcoin seed"));return new y({network:h.get(r)||h.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:n.slice(0,32),chainCode:n.slice(32,64)})},y.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=r(273);this._hdPublicKey=new e(this)}},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,m.emptyBuffer(1),e.privateKey],n=i.Buffer.concat(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==f.checksum(n).toString())throw new b.InvalidB58Checksum(n)}else e.checksum=f.checksum(n);var o,a=h.get(m.integerFromBuffer(e.version));o=f.encode(i.Buffer.concat(r)),e.xprivkey=t.from(o);var u=new l(s.fromBuffer(e.privateKey),a),d=u.toPublicKey(),p=y.ParentFingerPrintSize,g=c.sha256ripemd160(d.toBuffer()).slice(0,p);return v.defineImmutable(this,{xprivkey:o,network:a,depth:m.integerFromSingleByteBuffer(e.depth),privateKey:u,publicKey:d,fingerPrint:g}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];n(m.isBuffer(i),t+" argument is not a buffer"),n(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",y.VersionSize),t("depth",y.DepthSize),t("parentFingerPrint",y.ParentFingerPrintSize),t("childIndex",y.ChildIndexSize),t("chainCode",y.ChainCodeSize),t("privateKey",y.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return""},y.prototype.toObject=y.prototype.toJSON=function(){return{network:h.get(m.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:m.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return m.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,n(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this,r(1).Buffer)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),o=(i=n).lib,a=o.WordArray,s=o.Hasher,u=i.algo,f=[],c=u.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+s+f[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),n.SHA1)},function(e,t,r){var n,i,o,a,s,u,f;e.exports=(n=r(9),o=(i=n).lib,a=o.Base,s=i.enc,u=s.Utf8,f=i.algo,void(f.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),a=i.words,s=o.words,f=0;fu;)n(s,r=t[u++])&&(~o(f,r)||f.push(r));return f}},function(e,t,r){var n=r(18),i=r(4),o=r(70);e.exports=r(17)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(37),i=r(73).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(17),i=r(70),o=r(111),a=r(96),s=r(20),u=r(95),f=Object.assign;e.exports=!f||r(10)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=s(e),f=arguments.length,c=1,h=o.f,d=a.f;f>c;)for(var l,p=u(arguments[c++]),b=h?i(p).concat(h(p)):i(p),g=b.length,m=0;g>m;)l=b[m++],n&&!d.call(p,l)||(r[l]=p[l]);return r}:f},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){"use strict";var n=r(28),i=r(11),o=r(193),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i>>0||(a.test(r)?16:10))}:n},function(e,t,r){var n=r(7).parseFloat,i=r(86).trim;e.exports=1/n(r(141)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},function(e,t,r){var n=r(44);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},function(e,t,r){var n=r(11),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,r){var n=r(144),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),f=n(e);return is||r!=r?f*(1/0):f*r}},function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(28),i=r(20),o=r(95),a=r(16);e.exports=function(e,t,r,s,u){n(t);var f=i(e),c=o(f),h=a(f.length),d=u?h-1:0,l=u?-1:1;if(r<2)for(;;){if(d in c){s=c[d],d+=l;break}if(d+=l,u?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:h>d;d+=l)d in c&&(s=t(s,c[d],d,f));return s}},function(e,t,r){"use strict";var n=r(20),i=r(71),o=r(16);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),u=i(t,a),f=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===f?a:i(f,a))-u,a-s),h=1;for(u0;)u in r?r[s]=r[u]:delete r[s],s+=h,u+=h;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(156);r(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){r(17)&&"g"!=/./g.flags&&r(18).f(RegExp.prototype,"flags",{configurable:!0,get:r(97)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(11),o=r(160);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(209),i=r(78);e.exports=r(119)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t,r){"use strict";var n=r(18).f,i=r(72),o=r(77),a=r(43),s=r(75),u=r(76),f=r(146),c=r(203),h=r(74),d=r(17),l=r(64).fastKey,p=r(78),b=d?"_s":"size",g=function(e,t){var r,n=l(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,f){var c=e(function(e,n){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,null!=n&&u(n,r,e[f],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var r=p(this,t),n=g(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[b]--}return!!n},forEach:function(e){p(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!g(p(this,t),e)}}),d&&n(c.prototype,"size",{get:function(){return p(this,t)[b]}}),c},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=l(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,r){f(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,r){"use strict";var n=r(209),i=r(78);e.exports=r(119)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n,i=r(7),o=r(52)(0),a=r(32),s=r(64),u=r(190),f=r(212),c=r(11),h=r(78),d=r(78),l=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,b=Object.isExtensible,g=f.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=p(e);return!0===t?g(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return f.def(h(this,"WeakMap"),e,t)}},y=e.exports=r(119)("WeakMap",m,v,f,!0,!0);d&&l&&(u((n=f.getConstructor(m,"WeakMap")).prototype,v),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];a(t,e,function(t,i){if(c(t)&&!b(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var n=r(77),i=r(64).getWeak,o=r(4),a=r(11),s=r(75),u=r(76),f=r(52),c=r(36),h=r(78),d=f(5),l=f(6),p=0,b=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=l(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var f=e(function(e,n){s(e,f,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=n&&u(n,r,e[o],e)});return n(f.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?b(h(this,t)).has(e):r&&c(r,this._i)}}),f},def:function(e,t,r){var n=i(o(t),!0);return!0===n?b(e).set(t,r):n[e._i]=r,e},ufstore:b}},function(e,t,r){var n=r(45),i=r(16);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(73),i=r(111),o=r(4),a=r(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){"use strict";var n=r(112),i=r(11),o=r(16),a=r(43),s=r(13)("isConcatSpreadable");e.exports=function e(t,r,u,f,c,h,d,l){for(var p,b,g=c,m=0,v=!!d&&a(d,l,3);m0)g=e(t,r,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}m++}return g}},function(e,t,r){var n=r(16),i=r(143),o=r(50);e.exports=function(e,t,r,a){var s=String(o(e)),u=s.length,f=void 0===r?" ":String(r),c=n(t);if(c<=u||""==f)return s;var h=c-u,d=i.call(f,Math.ceil(h/f.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(e,t,r){var n=r(17),i=r(70),o=r(37),a=r(96).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),f=u.length,c=0,h=[];f>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(85),i=r(219);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){var n=r(76);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},function(e,t){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){var n=r(223),i=n.crypto.BN,o=r(622),a=n.deps._,s=r(623),u=r(21),f=n.crypto.Hash,c=n.crypto.Random,h=n.util.preconditions,d=function e(r,i){if(!(this instanceof e))return new e(r,i);var s,f,c;if(a.isArray(r)&&(i=r,r=null),t.isBuffer(r))c=r;else if(a.isString(r))f=o.nfkd(r);else if(a.isNumber(r))s=r;else if(r)throw new n.errors.InvalidArgument("data","Must be a Buffer, a string or an integer");if(s=s||128,i=i||e._getDictionary(f),f&&!i)throw new u.UnknownWordlist(f);if(i=i||e.Words.ENGLISH,c&&(f=e._entropy2mnemonic(c,i)),f&&!e.isValid(f,i))throw new u.InvalidMnemonic(f);if(s%32!=0||s<128)throw new n.errors.InvalidArgument("ENT","Values must be ENT > 128 and ENT % 32 == 0");f=f||e._mnemonic(s,i),Object.defineProperty(this,"wordlist",{configurable:!1,value:i}),Object.defineProperty(this,"phrase",{configurable:!1,value:f})};d.Words=r(624),d.isValid=function(e,r){if(e=o.nfkd(e),!(r=r||d._getDictionary(e)))return!1;for(var n=e.split(" "),i="",a=0;a"},d._mnemonic=function(e,t){var r=c.getRandomBuffer(e/8);return d._entropy2mnemonic(r,t)},d._entropy2mnemonic=function(e,t){for(var r="",n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(99),o=r(225),a=r(79),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(126);e.exports=y;var o,a=r(221);y.ReadableState=v;r(166).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(230),f=r(6).Buffer,c=t.Uint8Array||function(){};var h=r(101);h.inherits=r(5);var d=r(521),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(522),g=r(231);h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(80));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(169).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(80),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}(e,a)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){l("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):I(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function f(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){l("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var h=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",h);var d=!1;var p=!1;function b(t){l("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){l("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){l("onfinish"),e.removeListener("close",m),y()}function y(){l("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(524),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(27))},function(e,t,r){"use strict";e.exports=a;var n=r(80),i=r(101);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.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},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+l(r[m-15])+r[m-16];for(var v=0;v<64;++v){var y=g+d(u)+f(u,p,b)+a[v]+r[v]|0,w=h(n)+c(n,i,o)|0;g=b,b=p,p=u,u=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(91),o=r(6).Buffer,a=[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 u(){this.init(),this._w=s,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(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}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,x=0|this._dl,I=0|this._el,k=0|this._fl,A=0|this._gl,E=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var T=t[M-30],R=t[M-30+1],B=l(T,R),P=p(R,T),O=b(T=t[M-4],R=t[M-4+1]),N=g(R,T),C=t[M-14],j=t[M-14+1],z=t[M-32],U=t[M-32+1],D=P+j|0,L=B+C+m(D,P)|0;L=(L=L+O+m(D=D+N|0,N)|0)+z+m(D=D+U|0,U)|0,t[M]=L,t[M+1]=D}for(var V=0;V<160;V+=2){L=t[V],D=t[V+1];var H=c(r,n,i),F=c(w,_,S),K=h(r,w),q=h(w,r),W=d(s,I),G=d(I,s),Y=a[V],X=a[V+1],Z=f(s,u,v),J=f(I,k,A),$=E+G|0,Q=y+W+m($,E)|0;Q=(Q=(Q=Q+Z+m($=$+J|0,J)|0)+Y+m($=$+X|0,X)|0)+L+m($=$+D|0,D)|0;var ee=q+F|0,te=K+H+m(ee,q)|0;y=v,E=A,v=u,A=k,u=s,k=I,s=o+Q+m(I=x+$|0,x)|0,o=i,x=S,i=n,S=_,n=r,_=w,r=Q+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+x|0,this._el=this._el+I|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,I)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+y+m(this._hl,E)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(535),o=r(66),a=r(6).Buffer,s=r(237),u=r(170),f=r(171),c=a.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.lengthr||o!=o)throw new TypeError("Bad key length")}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(48))},function(e,t,r){var n=r(237),i=r(170),o=r(171),a=r(240),s=r(241),u=r(6).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(22),i=r(250);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(f);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l0;t--){var c=this._randrange(new n(2),a),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var l=1;l>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=r(55).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(55),i=r(103),o=r(252),a=r(40),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.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&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&a0&&a0&&(i=n?i+" "+e.buf.toString("hex"):i+" "+e.len+" 0x"+e.buf.toString("hex"));else if(void 0!==u.reverseMap[r])n?0===r?i+=" 0":79===r?i+=" -1":i=i+" "+u(r).toString():i=i+" "+u(r).toString();else{var o=r.toString(16);o.length%2!=0&&(o="0"+o),i=n?i+" "+o:i+" 0x"+o}return i},v.prototype.toASM=function(){for(var e="",t=0;t"},v.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},v.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){var r=t[0];if((4===r||6===r||7===r)&&65===t.length)return!0;if((3===r||2===r)&&33===t.length)return!0}}return!1},v.prototype.getPublicKey=function(){return d.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},v.prototype.getPublicKeyHash=function(){return d.checkState(this.isPublicKeyHashOut(),"Can't retrieve PublicKeyHash from a non-PKH output"),this.chunks[2].buf},v.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if((4!==t&&6!==t&&7!==t||65!==e.length)&&(3!==t&&2!==t||33!==e.length)||(r=!0),r)return f.isValid(e)}return!1},v.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},v.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},v.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},v.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},v.prototype.isWitnessProgram=function(e){e||(e={});var t=this.toBuffer();return!(t.length<4||t.length>42)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},v.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=v.fromBuffer(t)}catch(e){if(e instanceof p.Script.InvalidBuffer)return!1;throw e}return e.classify()!==v.types.UNKNOWN},v.prototype.isMultisigOut=function(){return this.chunks.length>3&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&g.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},v.prototype.isMultisigIn=function(){return this.chunks.length>=2&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&g.isBuffer(e.buf)&&c.isTxDER(e.buf)})},v.prototype.isDataOut=function(){return this.chunks.length>=1&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=v.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},v.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut())return l.isUndefined(this.chunks[1])?t.alloc(0):t.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return t.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},v.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(v.types={}).UNKNOWN="Unknown",v.types.PUBKEY_OUT="Pay to public key",v.types.PUBKEY_IN="Spend from public key",v.types.PUBKEYHASH_OUT="Pay to public key hash",v.types.PUBKEYHASH_IN="Spend from public key hash",v.types.SCRIPTHASH_OUT="Pay to script hash",v.types.SCRIPTHASH_IN="Spend from script hash",v.types.MULTISIG_OUT="Pay to multisig",v.types.MULTISIG_IN="Spend from multisig",v.types.DATA_OUT="Data push",v.OP_RETURN_STANDARD_SIZE=80,v.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=v.types.UNKNOWN?e:this.classifyInput()},(v.outputIdentifiers={}).PUBKEY_OUT=v.prototype.isPublicKeyOut,v.outputIdentifiers.PUBKEYHASH_OUT=v.prototype.isPublicKeyHashOut,v.outputIdentifiers.MULTISIG_OUT=v.prototype.isMultisigOut,v.outputIdentifiers.SCRIPTHASH_OUT=v.prototype.isScriptHashOut,v.outputIdentifiers.DATA_OUT=v.prototype.isDataOut,v.prototype.classifyOutput=function(){for(var e in v.outputIdentifiers)if(v.outputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},(v.inputIdentifiers={}).PUBKEY_IN=v.prototype.isPublicKeyIn,v.inputIdentifiers.PUBKEYHASH_IN=v.prototype.isPublicKeyHashIn,v.inputIdentifiers.MULTISIG_IN=v.prototype.isMultisigIn,v.inputIdentifiers.SCRIPTHASH_IN=v.prototype.isScriptHashIn,v.prototype.classifyInput=function(){for(var e in v.inputIdentifiers)if(v.inputIdentifiers[e].bind(this)())return v.types[e];return v.types.UNKNOWN},v.prototype.isStandard=function(){return this.classify()!==v.types.UNKNOWN},v.prototype.prepend=function(e){return this._addByType(e,!0),this},v.prototype.equals=function(e){if(d.checkState(e instanceof v,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;var t;for(t=0;t=0&&n=1&&r[0]<=16?n===u.OP_1+(r[0]-1):1===r.length&&129===r[0]?n===u.OP_1NEGATE:r.length<=75?n===r.length:r.length<=255?n===u.OP_PUSHDATA1:!(r.length<=65535)||n===u.OP_PUSHDATA2)},v.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},v.prototype.getSignatureOperationsCount=function(e){e=!!l.isUndefined(e)||e;var t=this,r=0,n=u.OP_INVALIDOPCODE;return l.each(t.chunks,function(i){var o=i.opcodenum;o==u.OP_CHECKSIG||o==u.OP_CHECKSIGVERIFY?r++:o!=u.OP_CHECKMULTISIG&&o!=u.OP_CHECKMULTISIGVERIFY||(e&&n>=u.OP_1&&n<=u.OP_16?r+=t._decodeOP_N(n):r+=20),n=o}),r},e.exports=v}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(23),a=r(41),s=r(29),u=r(181);function f(e){if(!(this instanceof f))return new f(e);i.checkArgument(n.isObject(e),"Must provide an object from where to extract data");var t=e.address?new s(e.address):void 0,r=e.txid?e.txid:e.txId;if(!r||!o.isHexaString(r)||r.length>64)throw new Error("Invalid TXID in object",e);var c=n.isUndefined(e.vout)?e.outputIndex:e.vout;if(!n.isNumber(c))throw new Error("Invalid outputIndex, received "+c);i.checkArgument(!n.isUndefined(e.scriptPubKey)||!n.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var h=new a(e.scriptPubKey||e.script);i.checkArgument(!n.isUndefined(e.amount)||!n.isUndefined(e.satoshis),"Must provide an amount for the output");var d=n.isUndefined(e.amount)?e.satoshis:new u.fromBTC(e.amount).toSatoshis();i.checkArgument(n.isNumber(d),"Amount must be a number"),o.defineImmutable(this,{address:t,txId:r,outputIndex:c,script:h,satoshis:d})}f.prototype.inspect=function(){return""},f.prototype.toString=function(){return this.txId+":"+this.outputIndex},f.fromObject=function(e){return new f(e)},f.prototype.toObject=f.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:u.fromSatoshis(this.satoshis).toBTC()}},e.exports=f},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.pubkey=r.pubkey,this.minerPubkey=r.minerPubkey,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAccountTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,pubkey:e.pubkey,minerPubkey:e.minerPubkey}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);e.write(r);var n=new t(this.pubkey,"hex"),i=n.length;e.writeVarintNum(i),e.write(n);var s=new t(this.minerPubkey,"hex");i=s.length,e.writeVarintNum(i),i>0&&e.write(s);var f=o.writeVarInt(8,this.fees);e.write(f);var c=e.toBuffer();return a.sha256sha256(c)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var n=o.writeVarInt(4,this.nValidHeight);r.write(n);var i=new t(this.pubkey,"hex"),a=i.length;r.writeVarintNum(a),r.write(i);var s=new t(this.minerPubkey,"hex");a=s.length,r.writeVarintNum(a),a>0&&r.write(s);var f=o.writeVarInt(8,this.fees);r.write(f);var c=this._Signtx(e);return a=c.length,r.writeVarintNum(a),r.write(c),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.playType=r.playType,this.betType=r.betType,this.times=r.times,this.money=r.money,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for BetItem");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{playType:e.playType,betType:e.betType,times:e.times,money:e.money}},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(3),o=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.operType=r.operType,this.pubkey=r.pubkey,this.value=r.value,this};o._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for VoteFund");return o._fromObject(e)},o._fromObject=function(e){return i.checkArgument(e,"data is required"),{operType:e.operType,pubkey:e.pubkey,value:e.value}},o.NULL_OPER=0,o.ADD_FUND=1,o.MINUS_FUND=2,e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=r(29),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.destAddr=r.destAddr,this.value=r.value,this.publicKey=r.publicKey,this.memo=r.memo,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,destAddr:e.destAddr,value:e.value,publicKey:e.publicKey,memo:e.memo}},c.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;e.writeUInt8(b),e.write(p.hashBuffer);var g=o.writeVarInt(8,this.fees);e.write(g);var m=o.writeVarInt(8,this.value);e.write(m),e.writeString(this.memo);var v=e.toBuffer();return a.sha256sha256(v)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}var p=f.fromString(this.destAddr,this.network,"pubkeyhash"),b=p.hashBuffer.length;if(r.writeUInt8(b),r.write(p.hashBuffer),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var g=o.writeVarInt(8,this.fees);if(r.write(g),!/^[1-9]*[1-9][0-9]*$/.test(this.value))return!1;var m=o.writeVarInt(8,this.value);r.write(m),r.writeString(this.memo);var v=this._Signtx(e),y=v.length;return r.writeVarintNum(y),r.write(v),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.publicKey=r.publicKey,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeVarInt(8,this.fees),e.writeVarInt(8,this.value),e.writeString(t.from(this.vContract));var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeVarInt(8,this.fees),r.writeVarInt(8,this.value),r.writeBuf(t.from(this.vContract));var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(56),u=r(21),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.publicKey=r.publicKey,this.delegateData=r.delegateData,this.fees=r.fees,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for DelegateTx");return f._fromObject(e)},f._checkDelegateData=function(e){if(!n.isArray(e)||n.isEmpty(e))throw new u.InvalidArgument("delegateData","delegateData must be array and not empty.");for(var t=0;tthis.numTransactions)return!1;if(8*this.flags.lengththis.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length8*this.flags.length)return null;var o=this.flags[n.flagBitsUsed>>3]>>>(7&n.flagBitsUsed++)&1;if(0!==e&&o){var a=this._traverseMerkleTree(e-1,2*r,n),s=a;return 2*r+1=this.hashes.length)return null;var f=this.hashes[n.hashesUsed++];return 0===e&&o&&n.txs.push(f),t.from(f,"hex")},d.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<>e},d.prototype._calcTreeHeight=function(){for(var e=0;this._calcTreeWidth(e)>1;)e++;return e},d.prototype.hasTransaction=function(e){h.checkArgument(!n.isUndefined(e),"tx cannot be undefined"),h.checkArgument(e instanceof f||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var r=e;e instanceof f&&(r=o.reverse(t.from(e.id,"hex")).toString("hex"));var i=[],a=this._calcTreeHeight();return this._traverseMerkleTree(a,0,{txs:i}),-1!==i.indexOf(r)},d._fromBufferReader=function(e){h.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=i.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var n=0;n=0&&e=w.Hardened||t)throw new g.InvalidIndexCantDeriveHardened;if(e<0)throw new g.InvalidPath(e);var r,n=y.integerAsBuffer(e),i=y.concat([this.publicKey.toBuffer(),n]),o=f.sha512hmac(i,this._buffers.chainCode),s=a.fromBuffer(o.slice(0,32),{size:32}),u=o.slice(32,64);try{r=l.fromPoint(d.getG().mul(s).add(this.publicKey.point))}catch(t){return this._deriveWithNumber(e+1)}return new w({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:u,publicKey:r})},w.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new g.InvalidIndexCantDeriveHardened;if(!w.isValidPath(e))throw new g.InvalidPath(e);return c._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},w.isValidSerialized=function(e,t){return i.isNull(w.getSerializedError(e,t))},w.getSerializedError=function(e,t){if(!i.isString(e)&&!y.isBuffer(e))return new g.UnrecognizedArgument("expected buffer or string");if(!s.validCharacters(e))return new b.InvalidB58Char("(unknown)",e);try{e=u.decode(e)}catch(t){return new b.InvalidB58Checksum(e)}if(e.length!==w.DataSize)return new g.InvalidLength(e);if(!i.isUndefined(t)){var r=w._validateNetwork(e,t);if(r)return r}var n=y.integerFromBuffer(e.slice(0,4));return n===h.livenet.xprivkey||n===h.testnet.xprivkey?new g.ArgumentIsPrivateExtended:null},w._validateNetwork=function(e,t){var r=h.get(t);if(!r)return new b.InvalidNetworkArgument(t);var n=e.slice(w.VersionStart,w.VersionEnd);return y.integerFromBuffer(n)!==r.xpubkey?new b.InvalidNetwork(n):null},w.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),r=d.getG().mul(a.fromBuffer(t.privateKey));return t.publicKey=d.pointToCompressed(r),t.version=y.integerAsBuffer(h.get(y.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},w.prototype._buildFromObject=function(e){var t={version:e.network?y.integerAsBuffer(h.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?y.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?y.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?y.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?y.hexToBuffer(e.chainCode):e.chainCode,publicKey:i.isString(e.publicKey)?y.hexToBuffer(e.publicKey):y.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?y.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)},w.prototype._buildFromSerialized=function(e){var t=u.decode(e),r={version:t.slice(w.VersionStart,w.VersionEnd),depth:t.slice(w.DepthStart,w.DepthEnd),parentFingerPrint:t.slice(w.ParentFingerPrintStart,w.ParentFingerPrintEnd),childIndex:t.slice(w.ChildIndexStart,w.ChildIndexEnd),chainCode:t.slice(w.ChainCodeStart,w.ChainCodeEnd),publicKey:t.slice(w.PublicKeyStart,w.PublicKeyEnd),checksum:t.slice(w.ChecksumStart,w.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)},w.prototype._buildFromBuffers=function(e){w._validateBufferArguments(e),v.defineImmutable(this,{_buffers:e});var r=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],n=y.concat(r),i=u.checksum(n);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new b.InvalidB58Checksum(n,i)}else e.checksum=i;var o,a=h.get(y.integerFromBuffer(e.version));o=u.encode(y.concat(r)),e.xpubkey=t.from(o);var s=new l(e.publicKey,{network:a}),c=w.ParentFingerPrintSize,d=f.sha256ripemd160(s.toBuffer()).slice(0,c);return v.defineImmutable(this,{xpubkey:o,network:a,depth:y.integerFromSingleByteBuffer(e.depth),publicKey:s,fingerPrint:d}),this},w._validateBufferArguments=function(e){var t=function(t,r){var i=e[t];m(y.isBuffer(i),t+" argument is not a buffer, it's "+n(i)),m(i.length===r,t+" has not the expected size: found "+i.length+", expected "+r)};t("version",w.VersionSize),t("depth",w.DepthSize),t("parentFingerPrint",w.ParentFingerPrintSize),t("childIndex",w.ChildIndexSize),t("chainCode",w.ChainCodeSize),t("publicKey",w.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",w.CheckSumSize)},w.fromString=function(e){return o.checkArgument(i.isString(e),"No valid string was provided"),new w(e)},w.fromObject=function(e){return o.checkArgument(i.isObject(e),"No valid argument was provided"),new w(e)},w.prototype.toString=function(){return this.xpubkey},w.prototype.inspect=function(){return""},w.prototype.toObject=w.prototype.toJSON=function(){return{network:h.get(y.integerFromBuffer(this._buffers.version)).name,depth:y.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:y.integerFromBuffer(this.fingerPrint),parentFingerPrint:y.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:y.integerFromBuffer(this._buffers.childIndex),chainCode:y.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:y.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},w.fromBuffer=function(e){return new w(e)},w.prototype.toBuffer=function(){return y.copy(this._buffers.xpubkey)},w.Hardened=2147483648,w.RootElementAlias=["m","M"],w.VersionSize=4,w.DepthSize=1,w.ParentFingerPrintSize=4,w.ChildIndexSize=4,w.ChainCodeSize=32,w.PublicKeySize=33,w.CheckSumSize=4,w.DataSize=78,w.SerializedByteSize=82,w.VersionStart=0,w.VersionEnd=w.VersionStart+w.VersionSize,w.DepthStart=w.VersionEnd,w.DepthEnd=w.DepthStart+w.DepthSize,w.ParentFingerPrintStart=w.DepthEnd,w.ParentFingerPrintEnd=w.ParentFingerPrintStart+w.ParentFingerPrintSize,w.ChildIndexStart=w.ParentFingerPrintEnd,w.ChildIndexEnd=w.ChildIndexStart+w.ChildIndexSize,w.ChainCodeStart=w.ChildIndexEnd,w.ChainCodeEnd=w.ChainCodeStart+w.ChainCodeSize,w.PublicKeyStart=w.ChainCodeEnd,w.PublicKeyEnd=w.PublicKeyStart+w.PublicKeySize,w.ChecksumStart=w.PublicKeyEnd,w.ChecksumEnd=w.ChecksumStart+w.CheckSumSize,m(w.PublicKeyEnd===w.DataSize),m(w.ChecksumEnd===w.SerializedByteSize),e.exports=w}).call(this,r(1).Buffer)},function(e,t,r){(function(t,n){const i=r(89),o=2147483647,a=5e3;function s(e,t,r,n,i,o,a){let s;for(h(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)c(e,64*s,i,0,64),f(i,o,a),h(i,0,e,r+64*s,64);for(s=0;s>>32-t}function f(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(h(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=u(r[0]+r[12],7),r[8]^=u(r[4]+r[0],9),r[12]^=u(r[8]+r[4],13),r[0]^=u(r[12]+r[8],18),r[9]^=u(r[5]+r[1],7),r[13]^=u(r[9]+r[5],9),r[1]^=u(r[13]+r[9],13),r[5]^=u(r[1]+r[13],18),r[14]^=u(r[10]+r[6],7),r[2]^=u(r[14]+r[10],9),r[6]^=u(r[2]+r[14],13),r[10]^=u(r[6]+r[2],18),r[3]^=u(r[15]+r[11],7),r[7]^=u(r[3]+r[15],9),r[11]^=u(r[7]+r[3],13),r[15]^=u(r[11]+r[7],18),r[1]^=u(r[0]+r[3],7),r[2]^=u(r[1]+r[0],9),r[3]^=u(r[2]+r[1],13),r[0]^=u(r[3]+r[2],18),r[6]^=u(r[5]+r[4],7),r[7]^=u(r[6]+r[5],9),r[4]^=u(r[7]+r[6],13),r[5]^=u(r[4]+r[7],18),r[11]^=u(r[10]+r[9],7),r[8]^=u(r[11]+r[10],9),r[9]^=u(r[8]+r[11],13),r[10]^=u(r[9]+r[8],18),r[12]^=u(r[15]+r[14],7),r[13]^=u(r[12]+r[15],9),r[14]^=u(r[13]+r[12],13),r[15]^=u(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function c(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(n>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let c,h=t.alloc(256*a),d=t.alloc(128*a*n),l=new Int32Array(16),p=new Int32Array(16),b=t.alloc(64),g=i.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(f){let e=s*n*2,t=0;c=function(){++t%1e3==0&&f({current:t,total:e,percent:t/e*100})}}return{XY:h,V:d,B32:l,x:p,_X:b,B:g,tickCallback:c}},smix:async function(e,t,r,i,o,u,f,h,d,l,p){p=p||a;let b,g=128*r;for(e.copy(u,0,t,t+g),b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l();for(b=0;bn(e)),s(u,0,g,r,f,h,d),l&&l()}u.copy(e,t,0,0+g)},smixSync:function(e,t,r,n,i,o,a,u,f,h){let d,l=128*r;for(e.copy(o,0,t,t+l),d=0;d>>7)^(p<<14|p>>>18)^p>>>3,g=f[l-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[l]=b+f[l-7]+m+f[l-16]}var v=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[l]+f[l];d=h,h=c,c=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(134),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!function(){for(var e=0;e<80;e++)f[e]=s()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],h=r[6],d=r[7],l=n.high,p=n.low,b=i.high,g=i.low,m=o.high,v=o.low,y=a.high,w=a.low,_=s.high,S=s.low,x=c.high,I=c.low,k=h.high,A=h.low,E=d.high,M=d.low,T=l,R=p,B=b,P=g,O=m,N=v,C=y,j=w,z=_,U=S,D=x,L=I,V=k,H=A,F=E,K=M,q=0;q<80;q++){var W=f[q];if(q<16)var G=W.high=0|e[t+2*q],Y=W.low=0|e[t+2*q+1];else{var X=f[q-15],Z=X.high,J=X.low,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=f[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[q-7],ae=oe.high,se=oe.low,ue=f[q-16],fe=ue.high,ce=ue.low;G=(G=(G=$+ae+((Y=Q+se)>>>0>>0?1:0))+ne+((Y+=ie)>>>0>>0?1:0))+fe+((Y+=ce)>>>0>>0?1:0),W.high=G,W.low=Y}var he,de=z&D^~z&V,le=U&L^~U&H,pe=T&B^T&O^B&O,be=R&P^R&N^P&N,ge=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),me=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ve=(z>>>14|U<<18)^(z>>>18|U<<14)^(z<<23|U>>>9),ye=(U>>>14|z<<18)^(U>>>18|z<<14)^(U<<23|z>>>9),we=u[q],_e=we.high,Se=we.low,xe=F+ve+((he=K+ye)>>>0>>0?1:0),Ie=me+be;F=V,K=H,V=D,H=L,D=z,L=U,z=C+(xe=(xe=(xe=xe+de+((he+=le)>>>0>>0?1:0))+_e+((he+=Se)>>>0>>0?1:0))+G+((he+=Y)>>>0>>0?1:0))+((U=j+he|0)>>>0>>0?1:0)|0,C=O,j=N,O=B,N=P,B=T,P=R,T=xe+(ge+pe+(Ie>>>0>>0?1:0))+((R=he+Ie|0)>>>0>>0?1:0)|0}p=n.low=p+R,n.high=l+T+(p>>>0>>0?1:0),g=i.low=g+P,i.high=b+B+(g>>>0

>>0?1:0),v=o.low=v+N,o.high=m+O+(v>>>0>>0?1:0),w=a.low=w+j,a.high=y+C+(w>>>0>>0?1:0),S=s.low=S+U,s.high=_+z+(S>>>0>>0?1:0),I=c.low=I+L,c.high=x+D+(I>>>0>>0?1:0),A=h.low=A+H,h.high=k+V+(A>>>0>>0?1:0),M=d.low=M+K,d.high=E+F+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)},function(e,t,r){(function(t){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||!s.trim(t).length)throw"private key is required";this.privateKey=t,this._getAddress()}var r,u,f;return r=e,(u=[{key:"_getAddress",value:function(){var e=i.fromWIF(this.privateKey);this.address=e.toAddress().toString()}},{key:"signMessage",value:function(e){var r=i.fromWIF(this.privateKey),n=t.from(e),s=o.sha256(o.sha256ripemd160(n));return a.sign(s,r,"endian")}},{key:"publicKeyAsHex",value:function(){return i.fromWIF(this.privateKey).toPublicKey()}}])&&n(r.prototype,u),f&&n(r,f),e}();e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(o)}),e.exports=u}).call(this,r(48))},function(e,t,r){"use strict";var n=r(35),i=r(683),o=r(280),a=r(685),s=r(686),u=r(284);e.exports=function(e){return new Promise(function(t,f){var c=e.data,h=e.headers;n.isFormData(c)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",p=e.auth.password||"";h.Authorization="Basic "+btoa(l+":"+p)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,f,n),d=null}},d.onabort=function(){d&&(f(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r(687),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;g&&(h[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(h,function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===c&&(c=null),d.send(c)})}},function(e,t,r){"use strict";var n=r(684);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(r[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(i){n.isObject(t[i])?r[i]=n.deepMerge(e[i],t[i]):void 0!==t[i]?r[i]=t[i]:n.isObject(e[i])?r[i]=n.deepMerge(e[i]):void 0!==e[i]&&(r[i]=e[i])}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){r(288),e.exports=r(490)},function(e,t,r){"use strict";(function(e){if(r(289),r(486),r(487),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function n(e,r,n){e[r]||Object[t](e,r,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,r(27))},function(e,t,r){r(290),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(370),r(371),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(381),r(382),r(383),r(384),r(385),r(386),r(387),r(388),r(389),r(390),r(391),r(392),r(393),r(155),r(394),r(204),r(395),r(205),r(396),r(397),r(398),r(399),r(400),r(208),r(210),r(211),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(448),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(471),r(472),r(473),r(474),r(475),r(476),r(477),r(478),r(479),r(480),r(481),r(482),r(483),r(484),r(485),e.exports=r(42)},function(e,t,r){"use strict";var n=r(7),i=r(36),o=r(17),a=r(0),s=r(32),u=r(64).KEY,f=r(10),c=r(94),h=r(84),d=r(69),l=r(13),p=r(186),b=r(136),g=r(292),m=r(112),v=r(4),y=r(11),w=r(20),_=r(37),S=r(49),x=r(68),I=r(72),k=r(189),A=r(38),E=r(111),M=r(18),T=r(70),R=A.f,B=M.f,P=k.f,O=n.Symbol,N=n.JSON,C=N&&N.stringify,j=l("_hidden"),z=l("toPrimitive"),U={}.propertyIsEnumerable,D=c("symbol-registry"),L=c("symbols"),V=c("op-symbols"),H=Object.prototype,F="function"==typeof O&&!!E.f,K=n.QObject,q=!K||!K.prototype||!K.prototype.findChild,W=o&&f(function(){return 7!=I(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=R(H,t);n&&delete H[t],B(e,t,r),n&&e!==H&&B(H,t,n)}:B,G=function(e){var t=L[e]=I(O.prototype);return t._k=e,t},Y=F&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,t,r){return e===H&&X(V,t,r),v(e),t=S(t,!0),v(r),i(L,t)?(r.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),r=I(r,{enumerable:x(0,!1)})):(i(e,j)||B(e,j,x(1,{})),e[j][t]=!0),W(e,t,r)):B(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===H&&i(L,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!i(L,t)||i(V,t)){var r=R(e,t);return!r||!i(L,t)||i(e,j)&&e[j][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=P(_(e)),n=[],o=0;r.length>o;)i(L,t=r[o++])||t==j||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===H,n=P(r?V:_(e)),o=[],a=0;n.length>a;)!i(L,t=n[a++])||r&&!i(H,t)||o.push(L[t]);return o};F||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(V,r),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),W(this,e,x(1,r))};return o&&q&&W(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),A.f=$,M.f=X,r(73).f=k.f=Q,r(96).f=J,E.f=ee,o&&!r(63)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(l(e))}),a(a.G+a.W+a.F*!F,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)l(te[re++]);for(var ne=T(l.store),ie=0;ne.length>ie;)b(ne[ie++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?I(e):Z(I(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=f(function(){E.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),N&&a(a.S+a.F*(!F||f(function(){var e=O();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(y(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,C.apply(N,n)}}),O.prototype[z]||r(31)(O.prototype,z,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){e.exports=r(94)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(70),i=r(111),o=r(96);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,f=0;s.length>f;)u.call(e,a=s[f++])&&t.push(a);return t}},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(72)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperty:r(18).f})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(17),"Object",{defineProperties:r(188)})},function(e,t,r){var n=r(37),i=r(38).f;r(51)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(20),i=r(39);r(51)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(20),i=r(70);r(51)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){r(51)("getOwnPropertyNames",function(){return r(189).f})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11),i=r(64).onFreeze;r(51)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(11);r(51)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(51)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(11);r(51)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(190)})},function(e,t,r){var n=r(0);n(n.S,"Object",{is:r(191)})},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(140).set})},function(e,t,r){"use strict";var n=r(85),i={};i[r(13)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){var n=r(0);n(n.P,"Function",{bind:r(192)})},function(e,t,r){var n=r(18).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(17)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(11),i=r(39),o=r(13)("hasInstance"),a=Function.prototype;o in a||r(18).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(0),i=r(194);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){var n=r(0),i=r(195);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(7),i=r(36),o=r(44),a=r(142),s=r(49),u=r(10),f=r(73).f,c=r(38).f,h=r(18).f,d=r(86).trim,l=n.Number,p=l,b=l.prototype,g="Number"==o(r(72)(b)),m="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,u=t.slice(2),f=0,c=u.length;fi)return NaN;return parseInt(u,n)}}return+t};if(!l(" 0o1")||!l("0b1")||l("+0x1")){l=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof l&&(g?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?a(new p(v(t)),r,l):v(t)};for(var y,w=r(17)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(p,y=w[_])&&!i(l,y)&&h(l,y,c(p,y));l.prototype=b,b.constructor=l,r(32)(n,"Number",l)}},function(e,t,r){"use strict";var n=r(0),i=r(45),o=r(196),a=r(143),s=1..toFixed,u=Math.floor,f=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},d=function(e){for(var t=6,r=0;--t>=0;)r+=f[t],f[t]=u(r/e),r=r%e*1e7},l=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(10)(function(){s.call({})})),"Number",{toFixed:function(e){var t,r,n,s,u=o(this,c),f=i(e),b="",g="0";if(f<0||f>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(b="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*p(2,69,1))-69)<0?u*p(2,-t,1):u/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=f;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=t-1;n>=23;)d(1<<23),n-=23;d(1<0?b+((s=g.length)<=f?"0."+a.call("0",f-s)+g:g.slice(0,s-f)+"."+g.slice(s-f)):b+g}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(196),a=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){var n=r(0),i=r(7).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Number",{isInteger:r(197)})},function(e,t,r){var n=r(0);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(0),i=r(197),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(0),i=r(195);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){var n=r(0),i=r(194);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){var n=r(0),i=r(198),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,r){var n=r(0),i=r(144);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,r){var n=r(0),i=r(145);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){var n=r(0);n(n.S,"Math",{fround:r(199)})},function(e,t,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,u=0;a0?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,r){var n=r(0);n(n.S,"Math",{log1p:r(198)})},function(e,t,r){var n=r(0);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){var n=r(0);n(n.S,"Math",{sign:r(144)})},function(e,t,r){var n=r(0),i=r(145),o=Math.exp;n(n.S+n.F*r(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,r){var n=r(0),i=r(145),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,r){var n=r(0),i=r(71),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){var n=r(0),i=r(37),o=r(16);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(0),i=r(113)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(148),a="".endsWith;n(n.P+n.F*r(149)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),s=void 0===r?n:Math.min(i(r),n),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){"use strict";var n=r(0),i=r(148);n(n.P+n.F*r(149)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(0);n(n.P,"String",{repeat:r(143)})},function(e,t,r){"use strict";var n=r(0),i=r(16),o=r(148),a="".startsWith;n(n.P+n.F*r(149)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";r(33)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,r){"use strict";r(33)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(33)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(33)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(33)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(33)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,r){"use strict";r(33)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,r){"use strict";r(33)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(33)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,r){"use strict";r(33)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(33)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(33)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(33)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49);n(n.P+n.F*r(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(0),i=r(369);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(32)(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,r){var n=r(13)("toPrimitive"),i=Date.prototype;n in i||r(31)(i,n,r(372))},function(e,t,r){"use strict";var n=r(4),i=r(49);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(112)})},function(e,t,r){"use strict";var n=r(43),i=r(0),o=r(20),a=r(200),s=r(150),u=r(16),f=r(151),c=r(152);i(i.S+i.F*!r(115)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,d=o(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,m=0,v=c(d);if(g&&(b=n(b,p>2?arguments[2]:void 0,2)),null==v||l==Array&&s(v))for(r=new l(t=u(d.length));t>m;m++)f(r,m,g?b(d[m],m):d[m]);else for(h=v.call(d),r=new l;!(i=h.next()).done;m++)f(r,m,g?a(h,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(0),i=r(151);n(n.S+n.F*r(10)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(0),i=r(37),o=[].join;n(n.P+n.F*(r(95)!=Object||!r(46)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(139),o=r(44),a=r(71),s=r(16),u=[].slice;n(n.P+n.F*r(10)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return u.call(this,e,t);for(var i=a(e,r),f=a(t,r),c=s(f-i),h=new Array(c),d=0;d1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(202)}),r(65)("copyWithin")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(154)}),r(65)("fill")},function(e,t,r){"use strict";var n=r(0),i=r(52)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)("find")},function(e,t,r){"use strict";var n=r(0),i=r(52)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)(o)},function(e,t,r){r(74)("Array")},function(e,t,r){var n=r(7),i=r(142),o=r(18).f,a=r(73).f,s=r(114),u=r(97),f=n.RegExp,c=f,h=f.prototype,d=/a/g,l=/a/g,p=new f(d)!==d;if(r(17)&&(!p||r(10)(function(){return l[r(13)("match")]=!1,f(d)!=d||f(l)==l||"/a/i"!=f(d,"i")}))){f=function(e,t){var r=this instanceof f,n=s(e),o=void 0===t;return!r&&n&&e.constructor===f&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof f)?e.source:e,n&&o?u.call(e):t),r?this:h,f)};for(var b=function(e){e in f||o(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),m=0;g.length>m;)b(g[m++]);h.constructor=f,f.prototype=h,r(32)(n,"RegExp",f)}r(74)("RegExp")},function(e,t,r){"use strict";r(205);var n=r(4),i=r(97),o=r(17),a=/./.toString,s=function(e){r(32)(RegExp.prototype,"toString",e,!0)};r(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,r){"use strict";var n=r(4),i=r(16),o=r(157),a=r(116);r(117)("match",1,function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var u=n(e),f=String(this);if(!u.global)return a(u,f);var c=u.unicode;u.lastIndex=0;for(var h,d=[],l=0;null!==(h=a(u,f));){var p=String(h[0]);d[l]=p,""===p&&(u.lastIndex=o(f,i(u.lastIndex),c)),l++}return 0===l?null:d}]})},function(e,t,r){"use strict";var n=r(4),i=r(20),o=r(16),a=r(45),s=r(157),u=r(116),f=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,l=/\$([$&`']|\d\d?)/g;r(117)("replace",2,function(e,t,r,p){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=p(r,e,this,t);if(i.done)return i.value;var h=n(e),d=String(this),l="function"==typeof t;l||(t=String(t));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var v=[];;){var y=u(h,d);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(h.lastIndex=s(d,o(h.lastIndex),m))}for(var w,_="",S=0,x=0;x=S&&(_+=d.slice(S,k)+R,S=k+I.length)}return _+d.slice(S)}];function b(e,t,n,o,a,s){var u=n+e.length,f=o.length,c=l;return void 0!==a&&(a=i(a),c=d),r.call(s,c,function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=h(c/10);return 0===d?r:d<=f?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(4),i=r(191),o=r(116);r(117)("search",1,function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this),f=s.lastIndex;i(f,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,f)||(s.lastIndex=f),null===c?-1:c.index}]})},function(e,t,r){"use strict";var n=r(114),i=r(4),o=r(98),a=r(157),s=r(16),u=r(116),f=r(156),c=r(10),h=Math.min,d=[].push,l=!c(function(){RegExp(4294967295,"y")});r(117)("split",2,function(e,t,r,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,l=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(o=f.call(p,i))&&!((a=p.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index=l));)p.lastIndex===o.index&&p.lastIndex++;return h===i.length?!s&&p.test("")||u.push(""):u.push(i.slice(h)),u.length>l?u.slice(0,l):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):p.call(String(i),r,n)},function(e,t){var n=c(p,e,this,t,p!==r);if(n.done)return n.value;var f=i(e),d=String(this),b=o(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(l?"y":"g"),v=new b(l?f:"^(?:"+f.source+")",m),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var w=0,_=0,S=[];_o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,i=e._v,o=C(e);if(o&&(t=w(function(){M?I.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=M||C(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(u,function(){var t;M?I.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},U=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw x("Promise can't be resolved itself");(t=P(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,f(U,n,1),f(z,n,1))}catch(e){z.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){z.call({_w:r,_d:!1},e)}}};B||(E=function(e){p(this,E,"Promise","_h"),l(e),n.call(this);try{e(f(U,this,1),f(z,this,1))}catch(e){z.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(77)(E.prototype,{then:function(e,t){var r=R(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?I.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=f(U,e,1),this.reject=f(z,e,1)},y.f=R=function(e){return e===E||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!B,{Promise:E}),r(84)(E,"Promise"),r(74)("Promise"),a=r(42).Promise,h(h.S+h.F*!B,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!B),"Promise",{resolve:function(e){return S(s&&this===a?E:this,e)}}),h(h.S+h.F*!(B&&r(115)(function(e){E.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=R(t),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,a=1;b(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=R(t),n=r.reject,i=w(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){"use strict";var n=r(212),i=r(78);r(119)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},function(e,t,r){"use strict";var n=r(0),i=r(120),o=r(161),a=r(4),s=r(71),u=r(16),f=r(11),c=r(7).ArrayBuffer,h=r(98),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&c.isView,b=d.prototype.slice,g=i.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||f(e)&&g in e}}),n(n.P+n.U+n.F*r(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(h(this,d))(u(i-n)),f=new l(this),c=new l(o),p=0;n=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,r){var n=r(38),i=r(39),o=r(36),a=r(0),s=r(11),u=r(4);a(a.S,"Reflect",{get:function e(t,r){var a,f,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(f=i(t))?e(f,r,c):void 0}})},function(e,t,r){var n=r(38),i=r(0),o=r(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},function(e,t,r){var n=r(0),i=r(39),o=r(4);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,r){var n=r(0),i=r(4),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(214)})},function(e,t,r){var n=r(0),i=r(4),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(18),i=r(38),o=r(39),a=r(36),s=r(0),u=r(68),f=r(4),c=r(11);s(s.S,"Reflect",{set:function e(t,r,s){var h,d,l=arguments.length<4?t:arguments[3],p=i.f(f(t),r);if(!p){if(c(d=o(t)))return e(d,r,s,l);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(l))return!1;if(h=i.f(l,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(l,r,h)}else n.f(l,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(l,s),!0)}})},function(e,t,r){var n=r(0),i=r(140);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,r){"use strict";var n=r(0),i=r(110)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(65)("includes")},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(20),a=r(16),s=r(28),u=r(153);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=u(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(65)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(215),o=r(20),a=r(16),s=r(45),u=r(153);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=a(t.length),n=u(t,0);return i(n,t,t,r,0,void 0===e?1:s(e)),n}}),r(65)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(113)(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n=r(0),i=r(216),o=r(118),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(216),o=r(118),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,r){"use strict";r(86)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(86)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(0),i=r(50),o=r(16),a=r(114),s=r(97),u=RegExp.prototype,f=function(e,t){this._r=e,this._s=t};r(147)(f,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in u?String(e.flags):s.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new f(n,t)}})},function(e,t,r){r(136)("asyncIterator")},function(e,t,r){r(136)("observable")},function(e,t,r){var n=r(0),i=r(214),o=r(37),a=r(38),s=r(151);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),u=a.f,f=i(n),c={},h=0;f.length>h;)void 0!==(r=u(n,t=f[h++]))&&s(c,t,r);return c}})},function(e,t,r){var n=r(0),i=r(217)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(217)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(121),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(28),a=r(18);r(17)&&n(n.P+r(121),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49),a=r(39),s=r(38).f;r(17)&&n(n.P+r(121),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(20),o=r(49),a=r(39),s=r(38).f;r(17)&&n(n.P+r(121),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},function(e,t,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(218)("Map")})},function(e,t,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(218)("Set")})},function(e,t,r){r(122)("Map")},function(e,t,r){r(122)("Set")},function(e,t,r){r(122)("WeakMap")},function(e,t,r){r(122)("WeakSet")},function(e,t,r){r(123)("Map")},function(e,t,r){r(123)("Set")},function(e,t,r){r(123)("WeakMap")},function(e,t,r){r(123)("WeakSet")},function(e,t,r){var n=r(0);n(n.G,{global:r(7)})},function(e,t,r){var n=r(0);n(n.S,"System",{global:r(7)})},function(e,t,r){var n=r(0),i=r(44);n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(0),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},function(e,t,r){var n=r(0),i=r(220),o=r(199);n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},function(e,t,r){var n=r(0);n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,r){var n=r(0);n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>16,s=n>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(0),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},function(e,t,r){var n=r(0);n(n.S,"Math",{scale:r(220)})},function(e,t,r){var n=r(0);n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,a=r>>>16,s=n>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,r){var n=r(0);n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,r){"use strict";var n=r(0),i=r(42),o=r(7),a=r(98),s=r(207);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),i=r(160),o=r(206);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){var n=r(58),i=r(4),o=n.key,a=n.set;n.exp({defineMetadata:function(e,t,r,n){a(e,t,i(r),o(n))}})},function(e,t,r){var n=r(58),i=r(4),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=a(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var u=s.get(t);return u.delete(r),!!u.size||s.delete(t)}})},function(e,t,r){var n=r(58),i=r(4),o=r(39),a=n.has,s=n.get,u=n.key,f=function(e,t,r){if(a(e,t,r))return s(e,t,r);var n=o(t);return null!==n?f(e,n,r):void 0};n.exp({getMetadata:function(e,t){return f(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,r){var n=r(210),i=r(219),o=r(58),a=r(4),s=r(39),u=o.keys,f=o.key,c=function(e,t){var r=u(e,t),o=s(e);if(null===o)return r;var a=c(o,t);return a.length?r.length?i(new n(r.concat(a))):a:r};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:f(arguments[1]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,r){var n=r(58),i=r(4),o=r(39),a=n.has,s=n.key,u=function(e,t,r){if(a(e,t,r))return!0;var n=o(t);return null!==n&&u(e,n,r)};n.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,r){var n=r(58),i=r(4),o=r(28),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},function(e,t,r){var n=r(0),i=r(159)(),o=r(7).process,a="process"==r(44)(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(42),a=r(159)(),s=r(13)("observable"),u=r(28),f=r(4),c=r(75),h=r(77),d=r(31),l=r(76),p=l.RETURN,b=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},v=function(e){m(e)||(e._o=void 0,g(e))},y=function(e,t){f(e),this._c=void 0,this._o=e,e=new w(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(t){return void e.error(t)}m(this)&&g(this)};y.prototype=h({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=h({},{next:function(e){var t=this._s;if(!m(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var _=function(e){c(this,_,"Observable","_f")._f=u(e)};h(_.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,r=b(f(e)[s]);if(r){var n=f(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return a(function(){if(!r){try{if(l(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){var n=r(0),i=r(158);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){for(var n=r(155),i=r(70),o=r(32),a=r(7),s=r(31),u=r(87),f=r(13),c=f("iterator"),h=f("toStringTag"),d=u.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}}}function w(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new R(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=_(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function _(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function I(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){function r(t,n,o,a){var s=_(e[t],e,n);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&i.call(f,"__await")?Promise.resolve(f.__await).then(function(e){r("next",e,o,a)},function(e){r("throw",e,o,a)}):Promise.resolve(f).then(function(e){u.value=e,o(u)},a)}a(s.arg)}var n;"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=_(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=f}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<0;e[r+l]=255&a,l+=p,a/=256,f-=8);e[r+l-p]|=128*b}},function(e){e.exports={name:"wicc-wallet-lib",version:"2.0.0",description:"A pure and powerful JavaScript Wicc Wallet library.",author:"coredev@waykichainhk.com",main:"./index.js",scripts:{build:"webpack --mode production --progress --display-modules --colors --display-reasons",test:"node demo/index.js"},keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig","wicc","wusd","wgrt","dex","cdp"],browser:{request:"browser-request"},dependencies:{"aes-js":"^3.1.1",axios:"^0.19.0","babel-polyfill":"^6.26.0","bn.js":"=4.11.8",bs58:"=4.0.1","buffer-compare":"=1.1.1","crypto-js":"^3.1.9-1",decimal:"0.0.2",elliptic:"=6.4.0",inherits:"=2.0.1",lodash:"=4.17.5","scrypt-js":"^2.0.3",scryptsy:"^2.0.0",superagent:"^5.1.2",unorm:"^1.4.1"},license:"MIT",devDependencies:{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-loader":"^8.0.6"}}},function(e,t){},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var f,w="",I=!1,k=["{","}"];(l(r)&&(I=!0,k=["[","]"]),x(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+h(r)),0!==a.length||I&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=I?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===I(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===I(e)}function S(e){return w(e)&&("[object Error]"===I(e)||e instanceof Error)}function x(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(496);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(125),i=r(47),o=r(59),a=n.base,s=r(34).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(125),i=r(34),o=r(47),a=r(59),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(163),a=r(34),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(513)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(508),t.sha224=r(509),t.sha256=r(226),t.sha384=r(510),t.sha512=r(227)},function(e,t,r){"use strict";var n=r(54),i=r(99),o=r(225),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(163),i=r(224),o=r(79);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(47),i=r(34).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(163),i=r(34),o=i.utils,a=o.assert,s=o.parseBytes,u=r(519),f=r(520);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,o,s)+u+r[d]+a[l];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(91),o=r(6).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+h(p,i,o,s)+u+r[l]+a[p]|0;u=s,s=o,o=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.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=u},function(e,t,r){var n=r(5),i=r(234),o=r(91),a=r(6).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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=u},function(e,t,r){var n=r(5),i=r(235),o=r(91),a=r(6).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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=u},function(e,t,r){"use strict";var n=r(5),i=r(6).Buffer,o=r(66),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>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,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var h=a.substitute(f,c),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(40),i=r(5),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(246),i=r(6).Buffer,o=r(174),a=r(247),s=r(66),u=r(127),f=r(128);function c(e,t,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(5)(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)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},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(248),i=r(558),o=r(559);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(22),i=new(r(249)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(248),h=r(90);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function l(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=l):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(h=e.mod(s)).cmp(u)&&h.cmp(f)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function h(e,r,i){var o,a;do{for(o=new t(0);8*o.length=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(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);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)f=(f<<1)+n[t];a.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(t=0;f>=0&&0===a[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=a[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[l],r[p]);c=Math.max(m[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var v=0;v=0;h--){for(var x=0;h>=0;){var I=!0;for(v=0;v=0&&x++,_=_.dblp(x),h<0)break;for(v=0;v0?k=u[v][A-1>>1]:A<0&&(k=u[v][-A-1>>1].neg()),_="affine"===k.type?_.mixedAdd(k):_.add(k))}}for(h=0;h=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(f).neg()}},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.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))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),l=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},h.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),d=s.redMul(c.redISub(h)).redISub(i.redMul(f)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(129),i=r(22),o=r(5),a=n.base,s=r(30).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new f(this,e,t)},u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(129),i=r(30),o=r(22),a=r(5),s=n.base,u=i.utils.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},f.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),f.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),d=a.redMul(s);return this.curve.point(f,c,d,h)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(176),a=r(30),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.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 f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:o.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"]}),f("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:o.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(575)}catch(e){n=void 0}f("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(570),t.sha224=r(571),t.sha256=r(253),t.sha384=r(572),t.sha512=r(254)},function(e,t,r){"use strict";var n=r(55),i=r(103),o=r(252),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new u({r:g,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,f=a.invm(this.n),c=f.mul(e).umod(this.n),h=f.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,f,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(176),i=r(251),o=r(40);function a(e){if(!(this instanceof a))return new a(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(22),i=r(30).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(176),i=r(30),o=i.utils,a=o.assert,s=o.parseBytes,u=r(581),f=r(582);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[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=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var h=o(u);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),h=c.s,d=c.r;s(h,a),s(d,a);var l=n.mont(i),p=h.invm(a);return 0===u.toRed(l).redPow(new n(t).mul(p).mod(a)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,r,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var d=h.modulus.byteLength(),l=[1],p=0;r.length+l.length+2r-d-2)throw new Error("message too long");var l=h.alloc(r-n-d-2),p=r-c-1,b=i(c),g=s(h.concat([f,l,h.alloc(1,1),t],p),a(b,p)),m=s(b,a(g,c));return new u(h.concat([h.alloc(1),m,g],r))}(p,t);else if(1===d)l=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(l,p):f(l,p)}},function(e,t,r){var n=r(130),i=r(260),o=r(261),a=r(22),s=r(175),u=r(100),f=r(262),c=r(6).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw new Error("decryption error");d=r?f(new a(t),l):s(t,l);var b=c.alloc(p-d.length);if(d=c.concat([b,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),f=t.slice(a+1),h=o(s,i(f,a)),d=o(f,i(h,r-a-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(6),a=r(90),s=o.Buffer,u=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function l(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),l(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),l(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(27),r(48))},function(e,t,r){"use strict";var n=r(604).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var r=0;r>>0,c=new Uint8Array(f);e[r];){var h=t[e.charCodeAt(r)];if(255===h)return;for(var d=0,l=f-1;(0!==h||d>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,r++}if(" "!==e[r]){for(var p=f-o;p!==f&&0===c[p];)p++;var b=n.allocUnsafe(i+(f-p));b.fill(0,0,i);for(var g=i;p!==f;)b[g++]=c[p++];return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,r++;for(var c=(u-o)*f+1>>>0,h=new Uint8Array(c);o!==u;){for(var d=t[o],l=0,p=c-1;(0!==d||l>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var g=s.repeat(r);b0)return this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED",!1}return!0},e.exports=c,c.prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},c.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=void 0!==e.nin?e.nin:this.nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=void 0!==e.pc?e.pc:this.pc,this.pbegincodehash=void 0!==e.pbegincodehash?e.pbegincodehash:this.pbegincodehash,this.sigversion=void 0!==e.sigversion?e.sigversion:this.sigversion,this.satoshis=void 0!==e.satoshis?e.satoshis:this.satoshis,this.nOpCount=void 0!==e.nOpCount?e.nOpCount:this.nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=void 0!==e.flags?e.flags:this.flags},c.true=t.from([1]),c.false=t.from([]),c.MAX_SCRIPT_ELEMENT_SIZE=520,c.LOCKTIME_THRESHOLD_BN=new a(c.LOCKTIME_THRESHOLD=5e8),c.SCRIPT_VERIFY_NONE=0,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,c.SCRIPT_VERIFY_P2SH=1,c.SCRIPT_VERIFY_STRICTENC=2,c.SCRIPT_VERIFY_DERSIG=4,c.SCRIPT_VERIFY_LOW_S=8,c.SCRIPT_VERIFY_NULLDUMMY=16,c.SCRIPT_VERIFY_SIGPUSHONLY=32,c.SCRIPT_VERIFY_MINIMALDATA=64,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,c.SCRIPT_VERIFY_WITNESS=1024,c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,c.castToBool=function(e){for(var t=0;t1e4)return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc1e3)return this.errstr="SCRIPT_ERR_STACK_SIZE",!1}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(this.vfExec.length>0)||(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1)},c.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime=c.LOCKTIME_THRESHOLD&&e.gte(c.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new a(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},c.prototype.step=function(){var e,t,r,h,d,l,p,b,g,m,v,y,w,_,S,x,I,k=0!=(this.flags&c.SCRIPT_VERIFY_MINIMALDATA),A=-1===this.vfExec.indexOf(!1),E=this.script.chunks[this.pc];this.pc++;var M=E.opcodenum;if(n.isUndefined(M))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(E.buf&&E.buf.length>c.MAX_SCRIPT_ELEMENT_SIZE)return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(M>o.OP_16&&++this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(M===o.OP_CAT||M===o.OP_SUBSTR||M===o.OP_LEFT||M===o.OP_RIGHT||M===o.OP_INVERT||M===o.OP_AND||M===o.OP_OR||M===o.OP_XOR||M===o.OP_2MUL||M===o.OP_2DIV||M===o.OP_MUL||M===o.OP_DIV||M===o.OP_MOD||M===o.OP_LSHIFT||M===o.OP_RSHIFT)return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(A&&0<=M&&M<=o.OP_PUSHDATA4){if(k&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(E.buf){if(E.len!==E.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(E.buf)}else this.stack.push(c.false)}else if(A||o.OP_IF<=M&&M<=o.OP_ENDIF)switch(M){case o.OP_1NEGATE:case o.OP_1:case o.OP_2:case o.OP_3:case o.OP_4:case o.OP_5:case o.OP_6:case o.OP_7:case o.OP_8:case o.OP_9:case o.OP_10:case o.OP_11:case o.OP_12:case o.OP_13:case o.OP_14:case o.OP_15:case o.OP_16:d=M-(o.OP_1-1),e=new a(d).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_NOP:break;case o.OP_NOP2:case o.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&c.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var T=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k,5);if(T.lt(new a(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(T))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case o.OP_NOP1:case o.OP_NOP3:case o.OP_NOP4:case o.OP_NOP5:case o.OP_NOP6:case o.OP_NOP7:case o.OP_NOP8:case o.OP_NOP9:case o.OP_NOP10:if(this.flags&c.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case o.OP_IF:case o.OP_NOTIF:if(x=!1,A){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;e=this.stack.pop(),x=c.castToBool(e),M===o.OP_NOTIF&&(x=!x)}this.vfExec.push(x);break;case o.OP_ELSE:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case o.OP_ENDIF:if(0===this.vfExec.length)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop();break;case o.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],!(x=c.castToBool(e)))return this.errstr="SCRIPT_ERR_VERIFY",!1;this.stack.pop();break;case o.OP_RETURN:return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case o.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case o.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case o.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case o.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],this.stack.push(t),this.stack.push(r);break;case o.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-3],r=this.stack[this.stack.length-2];var R=this.stack[this.stack.length-1];this.stack.push(t),this.stack.push(r),this.stack.push(R);break;case o.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-4],r=this.stack[this.stack.length-3],this.stack.push(t),this.stack.push(r);break;case o.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-6,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;h=this.stack.splice(this.stack.length-4,2),this.stack.push(h[0]),this.stack.push(h[1]);break;case o.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-1],(x=c.castToBool(e))&&this.stack.push(e);break;case o.OP_DEPTH:e=new a(this.stack.length).toScriptNumBuffer(),this.stack.push(e);break;case o.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case o.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case o.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case o.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case o.OP_PICK:case o.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(e=this.stack[this.stack.length-1],d=(b=a.fromScriptNumBuffer(e,k)).toNumber(),this.stack.pop(),d<0||d>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;e=this.stack[this.stack.length-d-1],M===o.OP_ROLL&&this.stack.splice(this.stack.length-d-1,1),this.stack.push(e);break;case o.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-3],p=this.stack[this.stack.length-2];var B=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=p,this.stack[this.stack.length-2]=B,this.stack[this.stack.length-1]=l;break;case o.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;l=this.stack[this.stack.length-2],p=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=p,this.stack[this.stack.length-1]=l;break;case o.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case o.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;b=new a(this.stack[this.stack.length-1].length),this.stack.push(b.toScriptNumBuffer());break;case o.OP_EQUAL:case o.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1];var P=t.toString("hex")===r.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(P?c.true:c.false),M===o.OP_EQUALVERIFY){if(!P)return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;this.stack.pop()}break;case o.OP_1ADD:case o.OP_1SUB:case o.OP_NEGATE:case o.OP_ABS:case o.OP_NOT:case o.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(e=this.stack[this.stack.length-1],b=a.fromScriptNumBuffer(e,k),M){case o.OP_1ADD:b=b.add(a.One);break;case o.OP_1SUB:b=b.sub(a.One);break;case o.OP_NEGATE:b=b.neg();break;case o.OP_ABS:b.cmp(a.Zero)<0&&(b=b.neg());break;case o.OP_NOT:b=new a((0===b.cmp(a.Zero))+0);break;case o.OP_0NOTEQUAL:b=new a((0!==b.cmp(a.Zero))+0)}this.stack.pop(),this.stack.push(b.toScriptNumBuffer());break;case o.OP_ADD:case o.OP_SUB:case o.OP_BOOLAND:case o.OP_BOOLOR:case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:case o.OP_NUMNOTEQUAL:case o.OP_LESSTHAN:case o.OP_GREATERTHAN:case o.OP_LESSTHANOREQUAL:case o.OP_GREATERTHANOREQUAL:case o.OP_MIN:case o.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(g=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k),b=new a(0),M){case o.OP_ADD:b=g.add(m);break;case o.OP_SUB:b=g.sub(m);break;case o.OP_BOOLAND:b=new a((0!==g.cmp(a.Zero)&&0!==m.cmp(a.Zero))+0);break;case o.OP_BOOLOR:b=new a((0!==g.cmp(a.Zero)||0!==m.cmp(a.Zero))+0);break;case o.OP_NUMEQUAL:case o.OP_NUMEQUALVERIFY:b=new a((0===g.cmp(m))+0);break;case o.OP_NUMNOTEQUAL:b=new a((0!==g.cmp(m))+0);break;case o.OP_LESSTHAN:b=new a((g.cmp(m)<0)+0);break;case o.OP_GREATERTHAN:b=new a((g.cmp(m)>0)+0);break;case o.OP_LESSTHANOREQUAL:b=new a((g.cmp(m)<=0)+0);break;case o.OP_GREATERTHANOREQUAL:b=new a((g.cmp(m)>=0)+0);break;case o.OP_MIN:b=g.cmp(m)<0?g:m;break;case o.OP_MAX:b=g.cmp(m)>0?g:m}if(this.stack.pop(),this.stack.pop(),this.stack.push(b.toScriptNumBuffer()),M===o.OP_NUMEQUALVERIFY){if(!c.castToBool(this.stack[this.stack.length-1]))return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;this.stack.pop()}break;case o.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;g=a.fromScriptNumBuffer(this.stack[this.stack.length-3],k),m=a.fromScriptNumBuffer(this.stack[this.stack.length-2],k);var O=a.fromScriptNumBuffer(this.stack[this.stack.length-1],k);x=m.cmp(g)<=0&&g.cmp(O)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(x?c.true:c.false);break;case o.OP_RIPEMD160:case o.OP_SHA1:case o.OP_SHA256:case o.OP_HASH160:case o.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var N;e=this.stack[this.stack.length-1],M===o.OP_RIPEMD160?N=s.ripemd160(e):M===o.OP_SHA1?N=s.sha1(e):M===o.OP_SHA256?N=s.sha256(e):M===o.OP_HASH160?N=s.sha256ripemd160(e):M===o.OP_HASH256&&(N=s.sha256sha256(e)),this.stack.pop(),this.stack.push(N);break;case o.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case o.OP_CHECKSIG:case o.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;v=this.stack[this.stack.length-2],y=this.stack[this.stack.length-1],w=(new i).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var C=(new i).add(v);if(w.findAndDelete(C),!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),I=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){I=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKSIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;this.stack.pop()}break;case o.OP_CHECKMULTISIG:case o.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length20)return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=z,this.nOpCount>201)return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var U=++j;if(j+=z,this.stack.lengthz)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var L=++j;if(j+=D,this.stack.length0;){if(v=this.stack[this.stack.length-L],y=this.stack[this.stack.length-U],!this.checkSignatureEncoding(v)||!this.checkPubkeyEncoding(y))return!1;var H;try{_=u.fromTxFormat(v),S=f.fromBuffer(y,!1),H=this.tx.verifySignature(_,S,this.nin,w,this.sigversion,this.satoshis)}catch(e){H=!1}H&&(L++,D--),U++,D>--z&&(I=!1)}for(;j-- >1;)this.stack.pop();if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&c.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?c.true:c.false),M===o.OP_CHECKMULTISIGVERIFY){if(!I)return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;this.stack.pop()}break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0&&(e=a(r)+e,n="0.");var i=e.length;return e.substr(0,i-t)+n+e.substring(i-t,i)},i=function(e,t){var r=a(t);return String(e+r)},o=function(e,t){return e=String(e),(t>=0?i:n)(e,t)},a=function(e){return new Array(e+1).join("0")},s=["add","mul","sub","div"],u=0;u1;n=Math.floor((n+1)/2)){for(var i=0;i"},d.Values={START_OF_BLOCK:8,NULL_HASH:t.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e){return(n="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})(e)}var i=r(2),o=r(616),a=r(29),s=r(181),u=function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.extras={},this.knownParams=r||[],this.address=this.network=this.amount=this.message=null,"string"==typeof t){var i=e.parse(t);i.amount&&(i.amount=this._parseAmount(i.amount)),this._fromObject(i)}else{if("object"!==n(t))throw new TypeError("Unrecognized data format.");this._fromObject(t)}};u.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new u(e)},u.fromObject=function(e){return new u(e)},u.isValid=function(e,t){try{new u(e,t)}catch(e){return!1}return!0},u.parse=function(e){var t=o.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");var r=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=r&&r[1]||void 0,t.query},u.Members=["address","amount","message","label","r"],u.prototype._fromObject=function(e){if(!a.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new a(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(u.Members.indexOf(t)>-1?this:this.extras)[t]=e[t]}},u.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},u.prototype.toObject=u.prototype.toJSON=function(){for(var e={},t=0;t"},e.exports=u},function(e,t,r){"use strict";var n=r(617),i=r(618);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(619);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=P[N];if(!O.match(l)){var j=R.slice(0,E),z=R.slice(E+1),U=P.match(p);U&&(j.push(U[1]),z.unshift(U[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+D,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!b[S])for(E=0,B=c.length;E0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=x.slice(-1)[0],A=(r.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,E=0,M=x.length;M>=0;M--)"."===(k=x[M])?x.splice(M,1):".."===k?(x.splice(M,1),E++):E&&(x.splice(M,1),E--);if(!_&&!S)for(;E--;E)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,R=""===x[0]||x[0]&&"/"===x[0].charAt(0);I&&(r.hostname=r.host=R?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(_=_||r.host&&x.length)&&!R&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,f=36,c=1,h=26,d=38,l=700,p=72,b=128,g="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=f-c,S=Math.floor,x=String.fromCharCode;function I(e){throw new RangeError(w[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?S(e/l):e>>1,e+=S(e/t);e>_*h>>1;n+=f)e=S(e/_);return S(n+(_+1)*e/(e+d))}function B(e){var t,r,n,i,o,a,s,d,l,m,v,y=[],w=e.length,_=0,x=b,k=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&I("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&I("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:f)>=f||d>S((u-_)/a))&&I("overflow"),_+=d*a,!(d<(l=s<=k?c:s>=k+h?h:s-k));s+=f)a>S(u/(m=f-l))&&I("overflow"),a*=m;k=R(_-o,t=y.length+1,0==o),S(_/t)>u-x&&I("overflow"),x+=S(_/t),_%=t,y.splice(_++,0,x)}return M(y)}function P(e){var t,r,n,i,o,a,s,d,l,m,v,y,w,_,k,A=[];for(y=(e=E(e)).length,t=b,r=0,o=p,a=0;a=t&&vS((u-r)/(w=n+1))&&I("overflow"),r+=(s-t)*w,t=s,a=0;au&&I("overflow"),v==t){for(d=r,l=f;!(d<(m=l<=o?c:l>=o+h?h:l-o));l+=f)k=d-m,_=f-m,A.push(x(T(m+k%_,0))),d=S(k/_);A.push(x(T(d,0))),o=R(r,w,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:M},decode:B,encode:P,toASCII:function(e){return A(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return m.test(e)?B(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(124)(e),r(27))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(620),t.encode=t.stringify=r(621)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=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,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var v=function(e){this.str=e,this.cursor=0};v.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass64*(Math.pow(2,32)-1))throw Error("Requested key length too long");if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError("key must a string or Buffer");if("string"!=typeof r&&!t.isBuffer(r))throw new TypeError("salt must a string or Buffer");"string"==typeof e&&(e=new t(e)),"string"==typeof r&&(r=new t(r));var a=new t(o),s=new t(64),u=new t(64),f=new t(r.length+4),c=Math.ceil(o/64),h=o-64*(c-1);r.copy(f,0,0,r.length);for(var d=1;d<=c;d++){f[r.length+0]=d>>24&255,f[r.length+1]=d>>16&255,f[r.length+2]=d>>8&255,f[r.length+3]=d>>0&255,(s=n.createHmac("sha512",e).update(f).digest()).copy(u,0,0,64);for(var l=1;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,i,o,a,s,u;e.exports=(n=r(9),r(276),o=(i=n).lib.WordArray,a=i.algo,s=a.SHA256,u=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=s._createHelper(u),i.HmacSHA224=s._createHmacHelper(u),n.SHA224)},function(e,t,r){var n,i,o,a,s,u,f,c;e.exports=(n=r(9),r(134),r(277),o=(i=n).x64,a=o.Word,s=o.WordArray,u=i.algo,f=u.SHA512,c=u.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=f._createHelper(c),i.HmacSHA384=f._createHmacHelper(c),n.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(134),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,u=[],f=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var l=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=r[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var l=0,p=0,b=0;b<5;b++)l^=(M=r[d+5*b]).high,p^=M.low;var g=h[d];g.high=l,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],v=h[(d+1)%5],y=v.high,w=v.low;for(l=m.high^(y<<1|w>>>31),p=m.low^(w<<1|y>>>31),b=0;b<5;b++)(M=r[d+5*b]).high^=l,M.low^=p}for(var _=1;_<25;_++){var S=(M=r[_]).high,x=M.low,I=u[_];I<32?(l=S<>>32-I,p=x<>>32-I):(l=x<>>64-I,p=S<>>64-I);var k=h[f[_]];k.high=l,k.low=p}var A=h[0],E=r[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(b=0;b<5;b++){var M=r[_=d+5*b],T=h[_],R=h[(d+1)%5+5*b],B=h[(d+2)%5+5*b];M.high=T.high^~R.high&B.high,M.low=T.low^~R.low&B.low}M=r[0];var P=c[s];M.high^=P.high,M.low^=P.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,f=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f.push(l),f.push(d)}return new i.init(f,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9), -/** @preserve - (c) 2012 by Cédric Mesnil. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([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]),u=i.create([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]),f=i.create([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]),c=i.create([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]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,l,w,_,S,x,I,k,A,E,M=this._hash.words,T=h.words,R=d.words,B=s.words,P=u.words,O=f.words,N=c.words;for(S=o=M[0],x=a=M[1],I=l=M[2],k=w=M[3],A=_=M[4],r=0;r<80;r+=1)E=o+e[t+B[r]]|0,E+=r<16?p(a,l,w)+T[0]:r<32?b(a,l,w)+T[1]:r<48?g(a,l,w)+T[2]:r<64?m(a,l,w)+T[3]:v(a,l,w)+T[4],E=(E=y(E|=0,O[r]))+_|0,o=_,_=w,w=y(l,10),l=a,a=E,E=S+e[t+P[r]]|0,E+=r<16?v(x,I,k)+R[0]:r<32?m(x,I,k)+R[1]:r<48?g(x,I,k)+R[2]:r<64?b(x,I,k)+R[3]:p(x,I,k)+R[4],E=(E=y(E|=0,N[r]))+A|0,S=A,A=k,k=y(I,10),I=x,x=E;E=M[1]+l+k|0,M[1]=M[2]+w+A|0,M[2]=M[3]+_+S|0,M[3]=M[4]+o+x|0,M[4]=M[0]+a+I|0,M[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(l),t.HmacRIPEMD160=o._createHmacHelper(l)}(Math),n.RIPEMD160)},function(e,t,r){var n,i,o,a,s,u,f,c,h;e.exports=(n=r(9),r(183),r(184),o=(i=n).lib,a=o.Base,s=o.WordArray,u=i.algo,f=u.SHA1,c=u.HMAC,h=u.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,f=r.keySize,h=r.iterations;a.length>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(26),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i,o,a;e.exports=(n=r(9),r(26),o=(i=n).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}},n.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],h=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=e[r],g=e[b],m=e[g],v=257*e[p]^16843008*p;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,f[r]=v,v=16843009*m^65537*g^257*b^16843008*r,c[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,l[p]=v,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],f=0;f>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^l[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,f,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,l,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,f=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],l=4,p=1;p>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&d]^r[l++],g=n[c>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^r[l++],m=n[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^r[l++],v=n[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&h]^r[l++];f=b,c=g,h=m,d=v}b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[l++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[l++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[l++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++],e[t]=b,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var f=i[o]=[],c=u[o];for(r=0;r<24;r++)f[r/6|0]|=t[(s[r]-1+c)%28]<<31-r%6,f[4+(r/6|0)]|=t[28+(s[r+24]-1+c)%28]<<31-r%6;for(f[0]=f[0]<<1|f[0]>>>31,r=1;r<7;r++)f[r]=f[r]>>>4*(r-1)+3;f[7]=f[7]<<5|f[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=f[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[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],i=this._C=[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._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(i[0]^=f,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=f,i[5]^=h,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(92),r(93),r(83),r(26),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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],n=this._C=[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]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=f>>>16|4294901760&c,d=c<<16|65535&f;for(n[0]^=f,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=f,n[5]^=h,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|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._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,f=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^f}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},function(e,t,r){"use strict";var n=r(2),i=r(3),o=(r(25),r(8)),a=r(19),s=r(56),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.regAcctId=r.regAcctId,this.script=r.script,this.scryptDesc=r.scriptDesc,this.publicKey=r.publicKey,this.fees=r.fees,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for RegisterAppTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,regAcctId:e.regAcctId,script:e.script,scryptDesc:e.scriptDesc,publicKey:e.publicKey,fees:e.fees}},u.prototype._SignatureHash=function(){var e=new s;e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),e.writeRegId(this.regAcctId);var t=new s;t.writeString(this.script),t.writeString(this.scriptDesc),e.writeBuf(t.toBuffer()),e.writeVarInt(8,this.fees);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var t=new s;t.writeUInt8(this.nTxType),t.writeVarintNum(this.nVersion),t.writeVarInt(4,this.nValidHeight),t.writeRegId(this.regAcctId);var r=new s;r.writeString(this.script),r.writeString(this.scriptDesc),t.writeBuf(r.toBuffer()),t.writeVarInt(8,this.fees);var n=this._Signtx(e);return t.writeBuf(n),t.toBuffer().toString("hex")},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=(r(25),r(8)),a=r(19),s=r(56),u=(r(21),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetData=r.assetData,this});u._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return u._fromObject(e)},u._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetData:e.assetData}},u.prototype._SignatureHash=function(){var e=new s;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;e.writeAssetData(this.assetData,this.network);var r=e.toBuffer();return o.sha256sha256(r)},u.prototype._Signtx=function(e){var t=this._SignatureHash();return a.sign(t,e,"endian").toBuffer()},u.prototype.SerializeTx=function(e){var r=new s;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetData.assetSymbol))return!1;r.writeAssetData(this.assetData,this.network);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.feesCoinSymbol=r.feesCoinSymbol,this.assetUpdateData=r.assetUpdateData,this.assetSymbol=r.assetSymbol,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.srcRegId))throw new f.InvalidArgument("srcRegId","Invalid reg id");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,feesCoinSymbol:e.feesCoinSymbol,assetUpdateData:e.assetUpdateData,assetSymbol:e.assetSymbol}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;e.writeRegId(this.srcRegId),e.writeString(t.from(this.feesCoinSymbol)),e.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;e.writeString(t.from(this.assetSymbol)),e.writeassetUpdateData(this.assetUpdateData);var r=e.toBuffer();return a.sha256sha256(r)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId))return!1;r.writeRegId(this.srcRegId),r.writeString(t.from(this.feesCoinSymbol)),r.writeVarInt(8,this.fees);if(!/^[A-Z]{6,7}$/.test(this.assetSymbol))return!1;r.writeString(t.from(this.assetSymbol)),r.writeassetUpdateData(this.assetUpdateData);var i=this._Signtx(e);return r.writeBuf(i),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(12),c=r(56),h=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destArr=r.destArr,this.fees=r.fees,this.publicKey=r.publicKey,this.feesCoinType=r.feesCoinType,this.memo=r.memo,this.network=r.network,this};h._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for UCoinTransferTx");return h._fromObject(e)},h._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destArr:e.destArr,fees:e.fees,publicKey:e.publicKey,feesCoinType:e.feesCoinType,memo:e.memo}},h.prototype._SignatureHash=function(){var e=new c;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();e.writeUInt8(p.length),e.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;e.writeString(this.feesCoinType);var b=o.writeVarInt(8,this.fees);e.write(b),e.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),e.writeVarintNum(g),g>0&&e.write(m);var v=e.toBuffer();return a.sha256sha256(v)},h.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},h.prototype.SerializeTx=function(e){var r=new c;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var h=new u,d=o.writeVarInt(4,s.height);h.write(d);var l=o.writeVarInt(2,s.index);h.write(l);var p=h.toBuffer();r.writeUInt8(p.length),r.write(p)}if(null==this.feesCoinType||n.isEmpty(this.feesCoinType))return fasle;if(r.writeString(this.feesCoinType),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var b=o.writeVarInt(8,this.fees);r.write(b),r.writeDestArrData(this.destArr);var g=0,m=this.memo;n.isEmpty(this.memo)||(f.isBuffer(m)||(m=t.from(m)),g=m.length),r.writeVarintNum(g),g>0&&r.write(m);var v=this._Signtx(e);g=v.length;return r.writeVarintNum(g),r.write(v),r.toBuffer().toString("hex")},e.exports=h}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=(r(53),r(3)),o=r(25),a=r(8),s=r(19),u=r(56),f=r(21),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.srcRegId=r.srcRegId,this.destRegId=r.destRegId,this.fees=r.fees,this.value=r.value,this.feesCoinType=r.feesCoinType,this.publicKey=r.publicKey,this.coinType=r.coinType,this.vContract=r.vContract,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for ContractTx");return c._fromObject(e)},c._fromObject=function(e){if(i.checkArgument(e,"data is required"),!o.checkRegId(e.destRegId))throw new f.InvalidArgument("destRegId","Invalid reg id");if(!n.isString(e.vContract)||n.isEmpty(e.vContract))throw new f.InvalidArgument("vContract","Invalid vContract");var t=o.hexToBytes(e.vContract);if(!t)throw new f.InvalidArgument("vContract","Invalid vContract");return{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,srcRegId:e.srcRegId,destRegId:e.destRegId,fees:e.fees,value:e.value,publicKey:e.publicKey,coinType:e.coinType,feesCoinType:e.feesCoinType,vContract:t}},c.prototype._SignatureHash=function(){var e=new u;if(e.writeVarInt(4,this.nVersion),e.writeUInt8(this.nTxType),e.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var r=t.from(this.publicKey,"hex");e.writeUInt8(r.length),e.write(r)}else e.writeRegId(this.srcRegId);e.writeRegId(this.destRegId),e.writeString(t.from(this.vContract)),e.writeVarInt(8,this.fees),e.writeString(t.from(this.feesCoinType)),e.writeString(t.from(this.coinType)),e.writeVarInt(8,this.value);var i=e.toBuffer();return a.sha256sha256(i)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new u;if(r.writeUInt8(this.nTxType),r.writeVarInt(4,this.nVersion),r.writeVarInt(4,this.nValidHeight),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");r.writeUInt8(i.length),r.write(i)}else r.writeRegId(this.srcRegId);r.writeRegId(this.destRegId),r.writeString(t.from(this.vContract)),r.writeVarInt(8,this.fees),r.writeString(t.from(this.feesCoinType)),r.writeString(t.from(this.coinType)),r.writeVarInt(8,this.value);var o=this._Signtx(e);return r.writeBuf(o),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(56),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.assetMap=r.assetMap,this.scoinsToMint=r.scoinsToMint,this.fee_symbol=r.fee_symbol,this.scoin_symbol=r.scoin_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,assetMap:e.assetMap,scoinsToMint:e.scoinsToMint,fee_symbol:e.fee_symbol,scoin_symbol:e.scoin_symbol,publicKey:e.publicKey}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);e.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),e.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(e.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);e.write(g);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);r.write(p),null==this.cdpTxId&&(this.cdpTxId="0000000000000000000000000000000000000000000000000000000000000000");var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),r.writeCdpAsset(this.assetMap),null==this.scoin_symbol||n.isEmpty(this.scoin_symbol))return fasle;if(r.writeString(this.scoin_symbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToMint))return!1;var g=o.writeVarInt(8,this.scoinsToMint);r.write(g);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=r(56),c=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.scoins_to_repay=r.scoins_to_repay,this.assetMap=r.assetMap,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.network=r.network,this};c._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return c._fromObject(e)},c._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoins_to_repay:e.scoins_to_repay,assetMap:e.assetMap,publicKey:e.publicKey,fee_symbol:e.fee_symbol}},c.prototype._SignatureHash=function(){var e=new f;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();e.writeUInt8(l.length),e.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var p=o.writeVarInt(8,this.fees);if(e.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(e.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);e.write(g),e.writeCdpAsset(this.assetMap);var m=e.toBuffer();return a.sha256sha256(m)},c.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},c.prototype.SerializeTx=function(e){var r=new f;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var c=new u,h=o.writeVarInt(4,s.height);c.write(h);var d=o.writeVarInt(2,s.index);c.write(d);var l=c.toBuffer();r.writeUInt8(l.length),r.write(l)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var p=o.writeVarInt(8,this.fees);if(r.write(p),null==this.cdpTxId)return!1;var b=new t.from(this.cdpTxId,"hex");if(r.writeReverse(b),!/^[0-9]*[0-9][0-9]*$/.test(this.scoins_to_repay))return!1;var g=o.writeVarInt(8,this.scoins_to_repay);r.write(g),r.writeCdpAsset(this.assetMap);var m=this._Signtx(e),v=m.length;return r.writeVarintNum(v),r.write(m),r.toBuffer().toString("hex")},e.exports=c}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=r(8),s=r(19),u=r(15),f=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.txUid=r.txUid,this.fees=r.fees,this.cdpTxId=r.cdpTxId,this.fee_symbol=r.fee_symbol,this.publicKey=r.publicKey,this.scoinsToLiquidate=r.scoinsToLiquidate,this.assetSymbol=r.assetSymbol,this};f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,txUid:e.txUid,fees:e.fees,cdpTxId:e.cdpTxId,scoinsToLiquidate:e.scoinsToLiquidate,publicKey:e.publicKey,fee_symbol:e.fee_symbol,assetSymbol:e.assetSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;e.writeString(this.fee_symbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(e.writeReverse(p),e.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.txUid||n.isEmpty(this.txUid)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.txUid);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.fee_symbol||n.isEmpty(this.fee_symbol))return fasle;if(r.writeString(this.fee_symbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.cdpTxId||this.cdpTxId.length<64)return!1;var p=new t.from(this.cdpTxId,"hex");if(r.writeReverse(p),r.writeString(this.assetSymbol),!/^[0-9]*[0-9][0-9]*$/.test(this.scoinsToLiquidate))return!1;var b=o.writeVarInt(8,this.scoinsToLiquidate);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.bidPrice=r.bidPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,feeSymbol:e.feeSymbol,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,bidPrice:e.bidPrice}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.bidPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.bidPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.askPrice=r.askPrice,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,askPrice:e.askPrice,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=o.writeVarInt(8,this.askPrice);e.write(b);var g=e.toBuffer();return a.sha256sha256(g)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=o.writeVarInt(8,this.askPrice);r.write(b);var g=this._Signtx(e),m=g.length;return r.writeVarintNum(m),r.write(g),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.coinAmount=r.coinAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,coinAmount:e.coinAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.coinAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.coinSymbol=r.coinSymbol,this.assetSymbol=r.assetSymbol,this.assetAmount=r.assetAmount,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,coinSymbol:e.coinSymbol,assetSymbol:e.assetSymbol,assetAmount:e.assetAmount,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(e.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;e.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);e.write(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),this.coinSymbol.isNull||n.isEmpty(this.coinSymbol))return!1;if(r.writeString(this.coinSymbol),this.assetSymbol.isNull||n.isEmpty(this.assetSymbol))return!1;r.writeString(this.assetSymbol);var p=o.writeVarInt(8,this.assetAmount);r.write(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(2),i=r(3),o=r(25),a=(r(14),r(8)),s=r(19),u=(r(24),r(15)),f=(r(29),function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.nTxType=r.nTxType,this.nVersion=r.nVersion,this.nValidHeight=r.nValidHeight,this.fees=r.fees,this.srcRegId=r.srcRegId,this.orderId=r.orderId,this.feeSymbol=r.feeSymbol,this.publicKey=r.publicKey,this.network=r.network,this});f._from=function(e){if(!n.isObject(e))throw new TypeError("Unrecognized argument for CommonTx");return f._fromObject(e)},f._fromObject=function(e){return i.checkArgument(e,"data is required"),{nTxType:e.nTxType,nVersion:e.nVersion,nValidHeight:e.nValidHeight,fees:e.fees,srcRegId:e.srcRegId,orderId:e.orderId,publicKey:e.publicKey,feeSymbol:e.feeSymbol}},f.prototype._SignatureHash=function(){var e=new u;e.writeVarintNum(this.nVersion),e.writeVarintNum(this.nTxType);var r=o.writeVarInt(4,this.nValidHeight);if(e.write(r),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var i=t.from(this.publicKey,"hex");e.writeUInt8(i.length),e.write(i)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();e.writeUInt8(d.length),e.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;e.writeString(this.feeSymbol);var l=o.writeVarInt(8,this.fees);if(e.write(l),null==this.orderId)return!1;var p=new t.from(this.orderId,"hex");e.writeReverse(p);var b=e.toBuffer();return a.sha256sha256(b)},f.prototype._Signtx=function(e){var t=this._SignatureHash();return s.sign(t,e,"endian").toBuffer()},f.prototype.SerializeTx=function(e){var r=new u;r.writeVarintNum(this.nTxType),r.writeVarintNum(this.nVersion);var i=o.writeVarInt(4,this.nValidHeight);if(r.write(i),null==this.srcRegId||n.isEmpty(this.srcRegId)){if(null==this.publicKey||n.isEmpty(this,this.publicKey))return!1;var a=t.from(this.publicKey,"hex");r.writeUInt8(a.length),r.write(a)}else{var s=o.splitRegID(this.srcRegId);if(n.isNull(s.height)||n.isUndefined(s.height))return!1;var f=new u,c=o.writeVarInt(4,s.height);f.write(c);var h=o.writeVarInt(2,s.index);f.write(h);var d=f.toBuffer();r.writeUInt8(d.length),r.write(d)}if(null==this.feeSymbol||n.isEmpty(this.feeSymbol))return fasle;if(r.writeString(this.feeSymbol),!/^[1-9]*[1-9][0-9]*$/.test(this.fees))return!1;var l=o.writeVarInt(8,this.fees);if(r.write(l),null==this.orderId||0==this.orderId.length)return!1;var p=new t.from(this.orderId,"hex");r.writeReverse(p);var b=this._Signtx(e),g=b.length;return r.writeVarintNum(g),r.write(b),r.toBuffer().toString("hex")},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"testnet";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.networkType=t,this.wiccApi=new o({network:this.networkType})}var t,r,a;return t=e,(r=[{key:"randomMnemonicCodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ENGLISH";return this.wiccApi.createAllCoinMnemonicCode(e)}},{key:"createWallet",value:function(e){var t=this.wiccApi.createWallet(e,""),r=this.wiccApi.getPriKeyFromSeed(t.seedinfo,"");return new i(r)}},{key:"importWalletFromMnemonic",value:function(e){var t=this.wiccApi.getPriKeyFromMnemonicCode(e);return new i(t)}},{key:"importWalletFromPrivateKey",value:function(e){return new i(e)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},function(e,t,r){function n(e,t){for(var r=0;r - * @license MIT - */ -e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";var n=r(35),i=r(280),o=r(679),a=r(680),s=r(285);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.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():"get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,r,i){return this.request(n.merge(i||{},{method:e,url:t,data:r}))}}),e.exports=u},function(e,t,r){"use strict";var n=r(35);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,r){"use strict";var n=r(35),i=r(681),o=r(281),a=r(282),s=r(688),u=r(689);function f(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return f(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return f(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(f(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(284);e.exports=function(e,t,r){var i=r.config.validateStatus;!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,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}},function(e,t,r){"use strict";var n=r(35),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(286);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); \ No newline at end of file From a44c41ec0f25c96ddc2dfeb04c14d642a85db6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 14:58:23 +0800 Subject: [PATCH 15/33] update .gitignore --- demo/test-walletmanager.js | 2 +- src/Wallet.js | 3 +++ src/WalletManager.js | 10 ++++++++++ src/WaykiTransaction.js | 1 - 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/demo/test-walletmanager.js b/demo/test-walletmanager.js index 24bc73e..cbdfb78 100644 --- a/demo/test-walletmanager.js +++ b/demo/test-walletmanager.js @@ -7,7 +7,7 @@ var mnemonic = walletManager.randomMnemonicCodes("ENGLISH") console.log("助记词:", mnemonic) //创建钱包 -var walletInfo = walletManager.createWallet(mnemonic) +var walletInfo = walletManager.createWallet('romance chunk tape soon bitter option wet space veteran matter embrace cactus') console.log("助记词:", walletInfo) //导入助记词 diff --git a/src/Wallet.js b/src/Wallet.js index 69269de..8e423bb 100644 --- a/src/Wallet.js +++ b/src/Wallet.js @@ -8,6 +8,9 @@ class Wallet { if (!privateKey || !_.trim(privateKey).length) { throw "private key is required" } + if (!PrivateKey.isValid(privateKey) ) { + throw "Invalid privatekey" + } this.privateKey = privateKey; this._getAddress() } diff --git a/src/WalletManager.js b/src/WalletManager.js index 972eb3e..bf31b6e 100644 --- a/src/WalletManager.js +++ b/src/WalletManager.js @@ -1,5 +1,6 @@ var Wallet = require('./Wallet') var WiccApi = require("../src/lib/wiccapi") +var PrivateKey = require('../src/lib/privatekey'); class WalletManager { constructor(networkType = "testnet") { @@ -10,15 +11,24 @@ class WalletManager { return this.wiccApi.createAllCoinMnemonicCode(language) } createWallet(mnemonic) { + if (!this.wiccApi.checkMnemonicCode(mnemonic)) { + throw "Invalid mnemonic" + } let walletInfo = this.wiccApi.createWallet(mnemonic, "") let key = this.wiccApi.getPriKeyFromSeed(walletInfo.seedinfo, "") return new Wallet(key) } importWalletFromMnemonic(mnemonic) { + if (!this.wiccApi.checkMnemonicCode(mnemonic)) { + throw "Invalid mnemonic" + } let privateKey = this.wiccApi.getPriKeyFromMnemonicCode(mnemonic) return new Wallet(privateKey) } importWalletFromPrivateKey(privateKeyWIF) { + if (!PrivateKey.isValid(privateKeyWIF)) { + throw "Invalid privatekey" + } return new Wallet(privateKeyWIF) } } diff --git a/src/WaykiTransaction.js b/src/WaykiTransaction.js index eb4a69d..977c7f4 100644 --- a/src/WaykiTransaction.js +++ b/src/WaykiTransaction.js @@ -24,7 +24,6 @@ class WaykiTransaction { let wiccApi = new WiccApi({network: this._getNetwork()}) return wiccApi.createSignTransaction(privKey, params) } - decodeTxRaw(rawTx) {} } module.exports = WaykiTransaction \ No newline at end of file From 9e3ea1c3d8fc535d02f260ffe86df625453c24c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 15:28:17 +0800 Subject: [PATCH 16/33] update --- LICENSE | 32 ++++++++++++++++++++++++++++++++ README.md | 25 +++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..96b54d3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,32 @@ +Copyright (c) 2013-2017 BitPay, Inc. + +Parts of this software are based on Bitcoin Core +Copyright (c) 2009-2015 The Bitcoin Core developers + +Parts of this software are based on fullnode +Copyright (c) 2014 Ryan X. Charles +Copyright (c) 2014 reddit, Inc. + +Parts of this software are based on BitcoinJS +Copyright (c) 2011 Stefan Thomas + +Parts of this software are based on BitcoinJ +Copyright (c) 2011 Google Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 45da203..40530c1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,28 @@ # wicc-wallet-utils-js Official JavaScript library that provides WICC Offline Wallet capabilities +## Contact us +To get community assistance and ask for help with implementation questions + +* Telegram group: https://t.me/waykichaindeveng +* Wechat ID: wjlT2D2 + +## Development & Tests + +```sh +$ git clone https://github.com/WaykiChain/wicc-wallet-utils-js.git +$ cd wicc-wallet-utils-js +$ npm install +``` + +Run all the tests: + +```sh +$ npm run test +``` + +## License + +Code released under [the MIT license](https://github.com/WaykiChain/wicc-wallet-utils-js/blob/master/LICENSE). + +Copyright 2017-2019 WaykiChain, Inc. \ No newline at end of file From 5f85d3e38ec211c4ef06a61fee268ff6fc066baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 20:21:17 +0800 Subject: [PATCH 17/33] update --- README.md | 196 +++++++++++++++++++++++++++++++++++-- demo/test-baasclient.js | 4 + demo/test-wallet.js | 6 +- demo/test-walletmanager.js | 6 +- demo/test-wiccapi.js | 4 +- webpack.config.js | 4 +- 6 files changed, 206 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 40530c1..213f073 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,174 @@ # wicc-wallet-utils-js Official JavaScript library that provides WICC Offline Wallet capabilities -## Contact us -To get community assistance and ask for help with implementation questions +# Installation +### CDN +```html + +``` +### NPM +``` +npm install wicc-wallet-lib +``` +# Usage +```javascript +const { Wallet, WalletManager, WaykiTransaction, BaasClient } = require("wicc-wallet-lib") +``` +## Key Classes +### Wallet —— Constructor of a blockchain wallet +[Demo](demo/test-wallet.js) +```javascript +const privKeyWIF = "Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13" +const wallet = new Wallet(privKeyWIF) +//{privateKey: 'Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13', address: 'wLKf2NqwtHk3BfzK5wMDfbKYN1SC3weyR4' } +``` +#### Instance Methods +- **signMessage** -* Telegram group: https://t.me/waykichaindeveng -* Wechat ID: wjlT2D2 + Message signature method + +```javascript +const msg = "wicc test" +const signTx = wallet.signMessage(msg) +``` +- **publicKeyAsHex** -## Development & Tests + Get wallet public key + +```javascript +const pubKey = wallet.publicKeyAsHex() +``` + +### WalletManager —— Constructor of wallet management +[Demo](demo/test-walletmanager.js) +```javascript +const networkType = "testnet" +var walletManager = new WalletManager(networkType) +``` +#### Instance Methods +- **randomMnemonicCodes** + + Randomly generate a mnemonic +```javascript +const lang = "ENGLISH" // or CHINESE +const mnemonics = walletManager.randomMnemonicCodes(lang) +//mnemonics = "clinic dose kingdom fetch away industry squirrel cheese purchase mean slide mixed" +``` +- **createWallet** + + Create a blockchain wallet from valid mnemonics, returns a instance object of **Wallet** +```javascript +var wallet = walletManager.createWallet(mnemonics) +``` +- **importWalletFromMnemonic** + + Import an existing wallet from its mnemonics +```javascript +var wallet = walletManager.importWalletFromMnemonic(mnemonics) +``` +- **importWalletFromPrivateKey** + + Import an existing wallet from its private key +```javascript +var wallet = walletManager.importWalletFromPrivateKey(privateKeyWIF) +``` + +### WaykiTransaction —— Constructor of transaction signature +```javascript +var wallet = new Wallet(privKeyWIF) +var txParams = { + nTxType: 15, // transaction type + nValidHeight: 34400, // create height + srcRegId: '0-1', // sender's regId + appId: "24555-1", // app regId + feeSymbol: "WICC", + coinSymbol: "WUSD", + fees: 1000000, // fees pay for miner + amount: 8, // amount of WICC to be sent to the app account + vContract: "f018" // contract method, hex format string +}; +var transaction = new WaykiTransaction(txParams, wallet) +``` + +#### Instance Methods +- **genRawTx** +```javascript +var rawTx = transaction.genRawTx() +``` +### List of all transactions +| Transaction type | nTxType | Demo | +| :------------ |:---------------:| -----:| +| ACCOUNT_REGISTER_TX | 2 | [test-registeraccounttx.js](demo/test-registeraccounttx.js) | +| BCOIN_TRANSFER_TX | 3 | [test-commontx.js](demo/test-commontx.js) | +| LCONTRACT_INVOKE_TX | 4 | [test-callcontracttx.js](demo/test-callcontracttx.js) | +| LCONTRACT_DEPLOY_TX | 5 | [test-registercontracttx.js](demo/test-registercontracttx.js) | +| DELEGATE_VOTE_TX | 6 | [test-delegatetx.js](demo/test-delegatetx.js) | +| ASSET_ISSUE_TX | 9 | [test-assetcreatetx.js](demo/test-assetcreatetx.js) | +| ASSET_UPDATE_TX | 10 | [test-assetupdatetx.js](demo/test-assetupdatetx.js) | +| UCOIN_TRANSFER_TX | 11 | [test-ucointransfertx.js](demo/test-ucointransfertx.js) | +| UCOIN_CONTRACT_INVOKE_TX | 15 | [test-ucontractinvoketx.js](demo/test-ucontractinvoketx.js) | +| CDP_STAKE_TX | 21 | [test-cdpstaketx.js](demo/test-cdpstaketx.js) | +| CDP_REDEEMP_TX | 22 | [test-cdpredeemtx.js](demo/test-cdpredeemtx.js) | +| CDP_LIQUIDATE_TX | 23 | [test-cdpliquidatetx.js](demo/test-cdpliquidatetx.js) | +| DEX_LIMIT_BUY_ORDER_TX | 84 | [test-dexbuylimitordertx.js](demo/test-dexbuylimitordertx.js) | +| DEX_LIMIT_SELL_ORDER_TX | 85 | [test-dexselllimitordertx.js](demo/test-dexselllimitordertx.js) | +| DEX_MARKET_BUY_ORDER_TX | 86 | [test-dexbuymarketordertx.js](demo/test-dexbuymarketordertx.js) | +| DEX_MARKET_SELL_ORDER_TX | 87 | [test-dexsellmarketordertx.js](demo/test-dexsellmarketordertx.js) | +| DEX_CANCEL_ORDER_TX | 88 | [test-dexcancelordertx.js](demo/test-dexcancelordertx.js) | + +### BaasClient —— Contains some of Baas (Blockchain as a Service) API; HTTP requerts +[Demo](demo/test-baasclient.js) +```javascript +var baasClient = new BaasClient(BaasUrl) +``` + +| BaasNetwork | BaasUrl | Remarks | +| :------------ |:---------------:| -----:| +| TestNetwork | https://baas-test.wiccdev.org/v2/api | [documentation](https://baas-test.wiccdev.org/v2/api/swagger-ui.html#!/) | +| ProdNetwork | https://baas.wiccdev.org/v2/api | [documentation](https://baas.wiccdev.org/v2/api/swagger-ui.html#!/) | + +#### Instance Methods +- **getAccountInfo** + + Get information of a specific wallet address, returns a Promise +```javascript +const address = "whiRBzMprDzY5wq3oPsHvAnyDV8ggYNaZE" +const response = baasClient.getAccountInfo(address) +response.then(data => { + console.log(data) +}) +``` +- **getBlockCount** + + Get the current block height, returns a Promise +```javascript +const response = baasClient.getBlockCount() +response.then(data => { + console.log(data) +}) +``` +- **sendRawTx** + + Broadcast transaction signature data to blockchain, returns a Promise +```javascript +const rawTx = "0301818c760200011476c6077b5679c8ef47f4243ca25537d5c3f7fad883e1ac009f80e7eeef000d74657374207472616e73666572473045022100e2853b6dfb8a892659de4a43181f8a02e983cca319def2457ea7b0a14c8966ea0220733ce86e172bff8aba750d104b6f39b737c897df7c33413142bd13b2415ce2f2" +const response = baasClient.sendRawTx(rawTx) +response.then(data => { + console.log(data) +}) +``` +- **decodeRawTx** + + Get the original transaction detail based on the signature data, returns a Promise +```javascript +const rawTx = "0301818c760200011476c6077b5679c8ef47f4243ca25537d5c3f7fad883e1ac009f80e7eeef000d74657374207472616e73666572473045022100e2853b6dfb8a892659de4a43181f8a02e983cca319def2457ea7b0a14c8966ea0220733ce86e172bff8aba750d104b6f39b737c897df7c33413142bd13b2415ce2f2" +const response = baasClient.decodeRawTx(rawTx) +response.then(data => { + console.log(data) +}) +``` + +# Development & Tests ```sh $ git clone https://github.com/WaykiChain/wicc-wallet-utils-js.git @@ -15,14 +176,33 @@ $ cd wicc-wallet-utils-js $ npm install ``` -Run all the tests: +### Build (you will get a UMD module): +- Execution Command +```sh +$ npm run build +``` +- Output +``` +dist/wicc-wallet-lib-2.0.js +``` +## Examples + +Run all the Examples: ```sh $ npm run test ``` +# Reference Projects +[bitpay/bitcore-lib](https://github.com/bitpay/bitcore-lib) + +# Contact us +To get community assistance and ask for help with implementation questions + +* Telegram group: https://t.me/waykichaindeveng +* Wechat ID: wjlT2D2 -## License +# License Code released under [the MIT license](https://github.com/WaykiChain/wicc-wallet-utils-js/blob/master/LICENSE). -Copyright 2017-2019 WaykiChain, Inc. \ No newline at end of file +© 2017-present WaykiChain, Inc. \ No newline at end of file diff --git a/demo/test-baasclient.js b/demo/test-baasclient.js index 8dcb743..f8ccfa2 100644 --- a/demo/test-baasclient.js +++ b/demo/test-baasclient.js @@ -1,3 +1,5 @@ +console.error('\n=====RUN-TEST-BAASCLIENT-START=====\n') + var { WaykiTransaction, WalletManager, BaasClient } = require("../index") var wallet = new WalletManager("testnet").importWalletFromPrivateKey("Y8AvAr4cajNnYfzVU9gAzNuQ8rYWJ5Dq5XyTkczeb9mNmGxEKWua") @@ -39,3 +41,5 @@ Promise.all([response, countResponse]).then(res => { console.log(res.data.hash) }) }) + +console.error('\n=====RUN-TEST-BAASCLIENT-END=====\n') \ No newline at end of file diff --git a/demo/test-wallet.js b/demo/test-wallet.js index b93f6c6..96c9d95 100644 --- a/demo/test-wallet.js +++ b/demo/test-wallet.js @@ -1,3 +1,5 @@ +console.error('\n=====RUN-TEST-WALLET-START=====\n') + var { Wallet } = require("../index") var privKey = "Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13" @@ -10,4 +12,6 @@ var signMsg = wallet.signMessage(msg) console.log("签名消息:"+signMsg) var pubKey = wallet.publicKeyAsHex() -console.log("公钥:"+pubKey) \ No newline at end of file +console.log("公钥:"+pubKey) + +console.error('\n=====RUN-TEST-WALLET-END=====\n') \ No newline at end of file diff --git a/demo/test-walletmanager.js b/demo/test-walletmanager.js index cbdfb78..a14aa8d 100644 --- a/demo/test-walletmanager.js +++ b/demo/test-walletmanager.js @@ -1,3 +1,5 @@ +console.error('\n=====RUN-TEST-WALLETMANAGER-START=====\n') + var { WalletManager } = require("../index") var walletManager = new WalletManager("testnet") @@ -16,4 +18,6 @@ console.log("wallet1:", wallet1) //导入私钥 var wallet2 = walletManager.importWalletFromPrivateKey('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') -console.log("wallet2:", wallet2) \ No newline at end of file +console.log("wallet2:", wallet2) + +console.error('\n=====RUN-TEST-WALLETMANAGER-END=====\n') \ No newline at end of file diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js index ec650f1..6475b8e 100644 --- a/demo/test-wiccapi.js +++ b/demo/test-wiccapi.js @@ -1,5 +1,5 @@ 'use strict'; -console.error('\n=====RUN-TEST-WALLET-START=====\n') +console.error('\n=====RUN-TEST-WICCAPI-START=====\n') var WiccApi = require('../index'); //environment init @@ -50,4 +50,4 @@ console.log("New Create publicKey1="+pubKey,"New Create address="+address.toStri ret = wiccApi.validateAddress(address) console.log("Check address Result="+ret) -console.error('\n=====RUN-TEST-WALLET-END=====\n') +console.error('\n=====RUN-TEST-WICCAPI-END=====\n') diff --git a/webpack.config.js b/webpack.config.js index 31a2eb2..6350473 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,8 +5,8 @@ module.exports = { entry: ["babel-polyfill", "./index.js"], output: { path: path.resolve(__dirname, './dist'), - filename: 'wicc-wallet-lib.js', - library: 'WiccWalletLib', + filename: 'wicc-wallet-lib-2.0.js', + library: 'wicc-wallet-lib', libraryTarget: 'umd', globalObject: 'this' }, From 3e97f4d1caee51d040d07c20297033bb42b98886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 11 Dec 2019 20:31:06 +0800 Subject: [PATCH 18/33] update --- demo/test-assetupdatetx.js | 2 +- demo/test-wiccapi.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/test-assetupdatetx.js b/demo/test-assetupdatetx.js index 89c53d9..5745c4d 100644 --- a/demo/test-assetupdatetx.js +++ b/demo/test-assetupdatetx.js @@ -44,7 +44,7 @@ var assetUpdateInfo = { nValidHeight: 28128, // create height srcRegId: "0-1", // sender's regId updateData: assetUpdateData, - feeSymbol: WriterHelper.prototype.CoinType.WICC, + feeSymbol: "WICC", assetSymbol: "LOLLLL", //Symbol Capital letter A-Z 6-7 digits [A_Z] fees: 11000000000, // fees pay for miner min 0.01 wicc +110wicc }; diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js index 6475b8e..bd70618 100644 --- a/demo/test-wiccapi.js +++ b/demo/test-wiccapi.js @@ -1,6 +1,6 @@ 'use strict'; console.error('\n=====RUN-TEST-WICCAPI-START=====\n') -var WiccApi = require('../index'); +var { WiccApi } = require("../index") //environment init //环境初始化 From b0b5002e7edf73070253b48f0f063776d324f060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 12 Dec 2019 18:05:33 +0800 Subject: [PATCH 19/33] update --- README.md | 2 +- demo/test-assetcreatetx.js | 12 +++++------ src/lib/util/writerhelper.js | 4 ++-- test/test-assetcreatetx.js | 39 ++++++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 test/test-assetcreatetx.js diff --git a/README.md b/README.md index 213f073..7d797f5 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ dist/wicc-wallet-lib-2.0.js ``` ## Examples -Run all the Examples: +Run all the Demos: ```sh $ npm run test diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index 964e578..0c70364 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -11,10 +11,10 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4. assetSymbol: Asset symbols, publishing success can not be modified (asset Symbol Capital letter A-Z 1-7 digits [A_Z]) -5. ownerAddress: asset owner +5. ownerRegid: asset owner 6. tokeName: asset name 7. totalSupply: total asset circulation -8. minTable: Whether the asset can be issued +8. modifiAble: Whether the asset can be issued 9、feesCoinSymbol: fee type(WICC/WUSD) */ /* @@ -27,10 +27,10 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) 3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 4、assetSymbol: 资产符号,发布成功无法再修改(1-7位大写字母) -5、ownerAddress: 资产拥有者 +ownerRegid: 资产拥有者 6、assetName: 资产名称 7、totalSupply: 资产总发行量 -8、minTable: 资产是否可以增发 +8、modifiAble: 资产是否可以增发 9、feesCoinSymbol: 小费类型(WICC/WUSD) */ @@ -39,10 +39,10 @@ var wallet = new Wallet("Y9wDyMys64KVhqwAVxbAB4aYDNVQ4HpRhQ7FLWFC3MhNNXz4JHot") var assetData = { assetSymbol: "STOKENN", //asset Symbol Capital letter A-Z 6-7 digits [A_Z] - ownerAddress: "0-1", //asset owner + ownerRegid: "0-1", //asset owner assetName: "SS Token", //asset token name totalSupply: 10000000000000000,// total Supply *10^8 - minTable: false //Whether to increase the number + modifiAble: false //Whether to increase the number } //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result diff --git a/src/lib/util/writerhelper.js b/src/lib/util/writerhelper.js index 00be203..f9afc84 100644 --- a/src/lib/util/writerhelper.js +++ b/src/lib/util/writerhelper.js @@ -133,10 +133,10 @@ WriterHelper.prototype.writeCdpAsset = function (map) { WriterHelper.prototype.writeAssetData = function (assetData, network) { this.writeString(assetData.assetSymbol) - this.writeRegId(assetData.ownerAddress) + this.writeRegId(assetData.ownerRegid) this.writeString(assetData.assetName) var minTable = 1 - if (!assetData.minTable) minTable = 0 + if (!assetData.modifiAble) minTable = 0 this.writeUInt8(minTable) this.writeVarInt(8, assetData.totalSupply) } diff --git a/test/test-assetcreatetx.js b/test/test-assetcreatetx.js new file mode 100644 index 0000000..5478728 --- /dev/null +++ b/test/test-assetcreatetx.js @@ -0,0 +1,39 @@ +'use strict'; + +var { WaykiTransaction, Wallet, BaasClient } = require("../index"); +var wallet = new Wallet("Y9nSdtBMWzWnEzx3TCgZ2iR8n4mq33AgkwbuoFT8VUWjDrcYjfgD"); +var baasClient = new BaasClient("https://baas-test.wiccdev.org/v2/api") + +;(async () => { + var heightResponse = await baasClient.getBlockCount() + var regIdResponse = await baasClient.getAccountInfo(wallet.address) + + var assetData = { + assetSymbol: "STOKENN", //asset Symbol Capital letter A-Z 6-7 digits [A_Z] + ownerRegid: "0-1", //asset owner + assetName: "SS Token", //asset token name + totalSupply: 10000000000000000,// total Supply *10^8 + modifiAble: false //Whether to increase the number + } + + //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result + var assetCreateInfo = { + nTxType: 9, + nValidHeight: heightResponse.data, // create height + srcRegId: regIdResponse.data.regid, // sender's regId + asset: assetData, + feeSymbol: "WICC", + fees: 55001000000, // fees pay for miner min 0.01 wicc +550wicc + }; + + var transaction = new WaykiTransaction(assetCreateInfo, wallet) + var rawtx = transaction.genRawTx() + console.log("asset create tx raw: ") + console.log(rawtx) + console.log(" Broadcast transaction signature data to blockchain => ") + baasClient.sendRawTx(rawtx).then(res => { + console.log(res) + }).catch(err => { + console.log(err) + }) +})() \ No newline at end of file From 8505889d79ba05f8c007d1ded533f2db6fd6f698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Fri, 13 Dec 2019 11:03:26 +0800 Subject: [PATCH 20/33] update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d797f5..776c5ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# wicc-wallet-utils-js +# wicc-wallet-utils-js v2.0 Official JavaScript library that provides WICC Offline Wallet capabilities # Installation From 494c045f921cbd4225c2255d871d90a18a1de9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Fri, 13 Dec 2019 11:21:19 +0800 Subject: [PATCH 21/33] update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 776c5ba..74579a0 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ var walletManager = new WalletManager(networkType) #### Instance Methods - **randomMnemonicCodes** - Randomly generate a mnemonic + Generate a mnemonic randomly ```javascript const lang = "ENGLISH" // or CHINESE const mnemonics = walletManager.randomMnemonicCodes(lang) From c1389bc9ec200db363db464b2040ac4f5c66e411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Fri, 13 Dec 2019 17:19:52 +0800 Subject: [PATCH 22/33] update --- demo/test-assetcreatetx.js | 2 +- demo/test-assetupdatetx.js | 6 +++--- demo/test-callcontracttx.js | 2 +- demo/test-cdpliquidatetx.js | 16 ++++++++-------- demo/test-cdpredeemtx.js | 9 ++++++--- demo/test-cdpstaketx.js | 18 +++++++++--------- demo/test-commontx.js | 6 +++--- demo/test-delegatetx.js | 6 +++--- demo/test-dexbuylimitordertx.js | 14 +++++++------- demo/test-dexbuymarketordertx.js | 14 +++++++------- demo/test-dexcancelordertx.js | 4 ++-- demo/test-dexselllimitordertx.js | 2 +- demo/test-dexsellmarketordertx.js | 2 +- demo/test-ucointransfertx.js | 28 +++++++++++++++------------- demo/test-ucontractinvoketx.js | 2 +- 15 files changed, 68 insertions(+), 63 deletions(-) diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index 0c70364..4a4a58d 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -15,7 +15,7 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 6. tokeName: asset name 7. totalSupply: total asset circulation 8. modifiAble: Whether the asset can be issued -9、feesCoinSymbol: fee type(WICC/WUSD) +9、feeSymbol: fee type(WICC/WUSD) */ /* 构建发布资产交易 diff --git a/demo/test-assetupdatetx.js b/demo/test-assetupdatetx.js index 5745c4d..576c06a 100644 --- a/demo/test-assetupdatetx.js +++ b/demo/test-assetupdatetx.js @@ -12,7 +12,7 @@ note: 2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4. assetSymbol: Asset symbols, publishing success can not be modified -5、feesCoinSymbol: fee type(WICC/WUSD) +5、feeSymbol: fee type(WICC/WUSD) 6、 updateType: update type 1: asset owner 2: asset name 3. number of assets */ /* @@ -25,7 +25,7 @@ note: 2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) 3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 4、assetSymbol: 资产符号,发布成功无法再修改 -5、feesCoinSymbol: 小费类型(WICC/WUSD) +5、feeSymbol: 小费类型(WICC/WUSD) 6、updateType:更新类型 1:资产拥有者 2:资产名称 3.资产数量 */ @@ -35,7 +35,7 @@ var wallet = new Wallet("YCnMXzTmEbvjMHA8zLHA8ratHH5noPdFEENKfYPa2uVLcmL3wb6H") //update asset owner regid var assetUpdateData = { updateType: 1, - updateValue: "0-1", //owner address + updateValue: "0-1", //owner regid } //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result diff --git a/demo/test-callcontracttx.js b/demo/test-callcontracttx.js index da70f50..82f7542 100644 --- a/demo/test-callcontracttx.js +++ b/demo/test-callcontracttx.js @@ -22,7 +22,7 @@ var regAppInfo = { nTxType: 4, nValidHeight: 34400, // create height srcRegId: '', // sender's regId - appId: "24555-1", // app regId + appId: "24555-1", // contact regId fees: 1000000, // fees pay for miner amount: 8, // amount of WICC to be sent to the app account vContract: "f018" // contract method, hex format string diff --git a/demo/test-cdpliquidatetx.js b/demo/test-cdpliquidatetx.js index 19fffee..0b9c0ce 100644 --- a/demo/test-cdpliquidatetx.js +++ b/demo/test-cdpliquidatetx.js @@ -10,11 +10,11 @@ note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4. cdpOwnerRegId: reg of the cdp creator +4. srcRegId: reg of the cdp creator 5. cdpTxId: the transaction hash created by the cdp -6. scoinsToLiquidate: the number of liquidation -7, fee_symbol: fee type (WICC/WUSD) -8、assetSymbol:get stake coin symbol +6. sCoinsToLiquidate: the number of liquidation +7, feeSymbol: fee type (WICC/WUSD) +8、liquidateAssetSymbol:get stake coin symbol */ /* 构建cdp清算交易 @@ -22,11 +22,11 @@ note: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、cdpOwnerRegId:cdp创建者的regid +4、srcRegId:cdp创建者的regid 5、cdpTxId:该cdp的创建的交易hash -6、scoinsToLiquidate:清算的数量 -7、fee_symbol:小费类型(WICC/WUSD) -8、assetSymbol:赎回币种类型 +6、sCoinsToLiquidate:清算的数量 +7、feeSymbol:小费类型(WICC/WUSD) +8、liquidateAssetSymbol:赎回币种类型 */ var cdpliquidateTxinfo = { nTxType: 23, diff --git a/demo/test-cdpredeemtx.js b/demo/test-cdpredeemtx.js index d1ac932..ca30447 100644 --- a/demo/test-cdpredeemtx.js +++ b/demo/test-cdpredeemtx.js @@ -12,7 +12,9 @@ note: 4, cdpTxId: cdp transaction hash 5, assetAmount: stake coin amount 6, assetSymbol: stake asset symbol -7, fee_symbol: fee type (WICC/WUSD) +7, feeSymbol: fee type (WICC/WUSD) +8, regid of the cdp creator +9, sCoinsToRepay: stake redeem amount */ /* 构建cdp赎回的交易 @@ -21,10 +23,11 @@ note: 2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、cdpTxId:cdp交易hash -5、scoins_to_repay:销毁的wusd数量 +5、sCoinsToRepay:销毁的wusd数量 6、assetAmount:赎回的数量 7、assetSymbol: 赎回币种类型 -8、fee_symbol:小费类型(WICC/WUSD) +8、feeSymbol:小费类型(WICC/WUSD) +9、srcRegId: 创建者的regid */ var assetSymbol = "WICC" var assetAmount = 100000000 diff --git a/demo/test-cdpstaketx.js b/demo/test-cdpstaketx.js index 32a37fd..75aec05 100644 --- a/demo/test-cdpstaketx.js +++ b/demo/test-cdpstaketx.js @@ -10,11 +10,11 @@ note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -5、assetAmount:stake coin amount -6、scoinsToMint:get coin amount -7、fee_symbol:fee symbol(WICC/WUSD) +5、feeSymbol:fee symbol(WICC/WUSD) +6、sCoinToMint:get coin amount +7、assetAmount:stake coin amount 8、assetAmount:stake coin symbol -9、coin_symbol:get coind symbol +9、sCoinSymbol:get coind symbol */ /* 构建cdp抵押交易 @@ -23,11 +23,11 @@ note: 2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、cdpTxId:cdp创建生成的交易hash -5、assetAmount:抵押的数量(最低1WICC) -6、scoinsToMint:获得的wusd -7、fee_symbol:小费类型(WICC/WUSD) +5、feeSymbol:小费类型(WICC/WUSD) +6、sCoinToMint:获得的wusd +7、assetAmount:抵押的数量(最低1WICC) 8、assetAmount:抵押币种 -9、coin_symbol:获得币种 +9、sCoinSymbol:获得币种 */ var assetSymbol = "WICC" var assetAmount = 100000000 @@ -35,7 +35,7 @@ var map = new Map([[assetSymbol, assetAmount]]) var cdpStakeTxinfo = { nTxType: 21, nValidHeight: 25, - srcRegId: "0-1", + srcRegId: "0-1",// sender's regid fees: 100000, feeSymbol: "WICC", cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 1e12e84..9de9ed4 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -22,10 +22,10 @@ var commonTxinfo = { nTxType: 3, nValidHeight: 34550, fees: 10000000, - srcRegId: '0-1', - destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if', + srcRegId: '0-1',// regid of sender + destAddr: 'wWTStcDL4gma6kPziyHhFGAP6xUzKpA5if',// address of receiver amount: 1100000000000, - memo: "test transfer" + memo: "test transfer"// remark }; var transaction = new WaykiTransaction(commonTxinfo, wallet) diff --git a/demo/test-delegatetx.js b/demo/test-delegatetx.js index d6efe0b..5e1777c 100644 --- a/demo/test-delegatetx.js +++ b/demo/test-delegatetx.js @@ -8,11 +8,11 @@ publicKey can get from "getaccountinfo" cmd if the account have registered */ var delegateData = [ // array, item is object data of delegate { - srcRegId: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", - voteValue: 201 + srcRegId: "0369e834a7e5708d4c94b098447fbead8213c679cf4a37b953bfed28af104239d3", // regid of whom to be delegated + voteValue: 201 // delegate amount },{ srcRegId: "02dc40112e2e12106c749c5bee34b4037b2dff4cd300ee5a57948961a6c9441e27", - voteValue: 202 + voteValue: 202 } ] diff --git a/demo/test-dexbuylimitordertx.js b/demo/test-dexbuylimitordertx.js index 38085f9..8d22a3c 100644 --- a/demo/test-dexbuylimitordertx.js +++ b/demo/test-dexbuylimitordertx.js @@ -9,10 +9,10 @@ note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, coinType: currency type -5, assetType: asset type +4, coinSymbol: currency type +5, assetSymbol: asset type 6, assetAmount: the amount of assets -7, bidPrice: price +7, price: price */ /* 构建普通限价买交易的交易单 @@ -20,16 +20,16 @@ note: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、coinType:币种类型 -5、assetType:资产类型 +4、coinSymbol:币种类型 +5、assetSymbol:资产类型 6、assetAmount:资产金额 -7、bidPrice:价格 +7、price: 价格 */ var dexBuyLimitTxinfo = { nTxType: 84, nValidHeight: 5360, fees: 10000, - srcRegId: '0-1', + srcRegId: '0-1',// regid of the buyer feeSymbol: "WICC", coinSymbol: "WUSD", assetSymbol:"WICC", diff --git a/demo/test-dexbuymarketordertx.js b/demo/test-dexbuymarketordertx.js index 2bbf072..aa393e7 100644 --- a/demo/test-dexbuymarketordertx.js +++ b/demo/test-dexbuymarketordertx.js @@ -10,9 +10,9 @@ note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. -4, coinType: currency type -5, assetType: asset type -6, coinAmount: the amount of assets +4, coinSymbol: currency type +5, assetSymbol: asset type +6, assetAmount: the amount of assets */ /* 构建市价买单交易的交易单 @@ -20,15 +20,15 @@ note: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、coinType:币种类型 -5、assetType:资产类型 -6、coinAmount:资产金额 +4、coinSymbol:币种类型 +5、assetSymbol:资产类型 +6、assetAmount:资产金额 */ var dexBuyMarketTxinfo = { nTxType: 86, nValidHeight: 5360, fees: 10000, - srcRegId: '', + srcRegId: '',// regid of the buyer feeSymbol: "WICC", coinSymbol: "WUSD", assetSymbol:"WICC", diff --git a/demo/test-dexcancelordertx.js b/demo/test-dexcancelordertx.js index 2b6c4ae..b102ba0 100644 --- a/demo/test-dexcancelordertx.js +++ b/demo/test-dexcancelordertx.js @@ -10,7 +10,7 @@ note: 2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, orderId:pending trading hash -5, fee_symbol: fee type (WICC/WUSD) +5, feeSymbol: fee type (WICC/WUSD) */ /* 构建取消交易的交易单 @@ -19,7 +19,7 @@ note: 2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、orderId:挂单的交易hash -5, fee_symbol: 小费类型(WICC/WUSD) +5, feeSymbol: 小费类型(WICC/WUSD) */ var dexCancelTxinfo = { nTxType: 88, diff --git a/demo/test-dexselllimitordertx.js b/demo/test-dexselllimitordertx.js index 53db7a2..e17cc83 100644 --- a/demo/test-dexselllimitordertx.js +++ b/demo/test-dexselllimitordertx.js @@ -22,7 +22,7 @@ var dexSellLimitTxinfo = { nTxType: 85, nValidHeight: 602371, fees: 10000, - srcRegId: '0-1', + srcRegId: '0-1',// regid of the seller feeSymbol: "WICC", coinSymbol: "WUSD", assetSymbol:"WICC", diff --git a/demo/test-dexsellmarketordertx.js b/demo/test-dexsellmarketordertx.js index 04eb0d9..50a1349 100644 --- a/demo/test-dexsellmarketordertx.js +++ b/demo/test-dexsellmarketordertx.js @@ -21,7 +21,7 @@ var dexSellMarketTxinfo = { nTxType: 87, nValidHeight: 602371, fees: 10000, - srcRegId: '0-1', + srcRegId: '0-1',// regid of the seller feeSymbol: "WICC", coinSymbol: "WUSD", assetSymbol:"WICC", diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js index d58fd31..c425879 100644 --- a/demo/test-ucointransfertx.js +++ b/demo/test-ucointransfertx.js @@ -11,9 +11,10 @@ note: 2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, srcRegId: the regid of the transferor -5, value: transfer amount -6, coinType: currency type -7, feesCoinType: fees type +5, transferAmount: transfer amount +6, coinSymbol: currency type +7, feeSymbol: fees type +8, destAddress: receiver‘s address */ /* 构建转账交易的交易单 @@ -22,19 +23,20 @@ note: 2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、srcRegId:转账者的regid -5、value:转账金额 -6、coinType:币种类型 -7、feesCoinType:小费类型 +5、transferAmount:转账金额 +6、coinSymbol:币种类型 +7、feeSymbol:小费类型, +8、收款地址 */ -var coinType = "WUSD" +var coinSymbol = "WUSD" var destAddr = 'wh82HNEDZkZP2eVAS5t7dDxmJWqyx9gr65' -var value = 32432 +var transferAmount = 32432 var destArr = [{ - "coinSymbol":coinType, - "destAddress":destAddr, - "transferAmount":value - } + "coinSymbol": coinSymbol, + "destAddress": destAddr, + "transferAmount": transferAmount +} ] var cointransferTxinfo = { nTxType: 11, @@ -42,7 +44,7 @@ var cointransferTxinfo = { fees: 10000, srcRegId: '', dests: destArr, - memo: "test transfer", + memo: "test transfer",// remark feeSymbol: "WICC" }; diff --git a/demo/test-ucontractinvoketx.js b/demo/test-ucontractinvoketx.js index c62b457..d8e3998 100644 --- a/demo/test-ucontractinvoketx.js +++ b/demo/test-ucontractinvoketx.js @@ -23,7 +23,7 @@ var invokeAppInfo = { nTxType: 15, nValidHeight: 34400, // create height srcRegId: '0-1', // sender's regId - appId: "24555-1", // app regId + appId: "24555-1", // contract regId feeSymbol: "WICC", coinSymbol: "WUSD", fees: 1000000, // fees pay for miner From 2249ab44f0b29d797c5a49ae1ae7d7ea5e03a762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 16 Dec 2019 10:40:18 +0800 Subject: [PATCH 23/33] fix bug --- demo/test-assetcreatetx.js | 2 +- test/test-assetcreatetx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index 4a4a58d..b288b30 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -42,7 +42,7 @@ var assetData = { ownerRegid: "0-1", //asset owner assetName: "SS Token", //asset token name totalSupply: 10000000000000000,// total Supply *10^8 - modifiAble: false //Whether to increase the number + modifiAble: false //whether to allow modify } //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result diff --git a/test/test-assetcreatetx.js b/test/test-assetcreatetx.js index 5478728..373e990 100644 --- a/test/test-assetcreatetx.js +++ b/test/test-assetcreatetx.js @@ -13,7 +13,7 @@ var baasClient = new BaasClient("https://baas-test.wiccdev.org/v2/api") ownerRegid: "0-1", //asset owner assetName: "SS Token", //asset token name totalSupply: 10000000000000000,// total Supply *10^8 - modifiAble: false //Whether to increase the number + modifiAble: false //whether to allow modify } //note: change "nValidHeight" to current valid height, so that you can execute “submittx” ok after get the result From fee957c4eef022fd6cf33270369875ca1d52b3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 16 Dec 2019 15:07:01 +0800 Subject: [PATCH 24/33] fix bug --- demo/test-assetcreatetx.js | 6 +++--- demo/test-assetupdatetx.js | 6 +++--- demo/test-callcontracttx.js | 4 ++-- demo/test-cdpliquidatetx.js | 4 ++-- demo/test-cdpredeemtx.js | 4 ++-- demo/test-cdpstaketx.js | 4 ++-- demo/test-commontx.js | 2 +- demo/test-delegatetx.js | 2 +- demo/test-dexcancelordertx.js | 2 +- demo/test-ucointransfertx.js | 4 ++-- demo/test-ucontractinvoketx.js | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index b288b30..c6e16ce 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -8,7 +8,7 @@ note: In addition to publishing assets miners fee, we need additional deduction 550WICC 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +2, fees: >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4. assetSymbol: Asset symbols, publishing success can not be modified (asset Symbol Capital letter A-Z 1-7 digits [A_Z]) 5. ownerRegid: asset owner @@ -24,7 +24,7 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 4、assetSymbol: 资产符号,发布成功无法再修改(1-7位大写字母) ownerRegid: 资产拥有者 @@ -52,7 +52,7 @@ var assetCreateInfo = { srcRegId: "8267-2", // sender's regId asset: assetData, feeSymbol: "WICC", - fees: 10000000, // fees pay for miner min 0.01 wicc +550wicc + fees: 55000000000 + 1000000, // fees pay for miner min 0.01 wicc +550wicc }; var transaction = new WaykiTransaction(assetCreateInfo, wallet) diff --git a/demo/test-assetupdatetx.js b/demo/test-assetupdatetx.js index 576c06a..4bda791 100644 --- a/demo/test-assetupdatetx.js +++ b/demo/test-assetupdatetx.js @@ -9,7 +9,7 @@ In addition to updating assets miners fee, we need additional deduction 110WICC note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +2, fees: >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4. assetSymbol: Asset symbols, publishing success can not be modified 5、feeSymbol: fee type(WICC/WUSD) @@ -22,7 +22,7 @@ note: 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、同一笔交易在确认之前无法重复提交(BPS = 0.1)。 建议通过增加随机手续费来解决批量启动交易的问题。 4、assetSymbol: 资产符号,发布成功无法再修改 5、feeSymbol: 小费类型(WICC/WUSD) @@ -46,7 +46,7 @@ var assetUpdateInfo = { updateData: assetUpdateData, feeSymbol: "WICC", assetSymbol: "LOLLLL", //Symbol Capital letter A-Z 6-7 digits [A_Z] - fees: 11000000000, // fees pay for miner min 0.01 wicc +110wicc + fees: 11000000000 + 1000000, // fees pay for miner min 0.01 wicc +110wicc }; var transaction = new WaykiTransaction(assetUpdateInfo, wallet) diff --git a/demo/test-callcontracttx.js b/demo/test-callcontracttx.js index 82f7542..8843f14 100644 --- a/demo/test-callcontracttx.js +++ b/demo/test-callcontracttx.js @@ -8,14 +8,14 @@ var wallet = new Wallet("Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ") Build a transaction for calling smart contract note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +2, fees: >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建调用合约的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var regAppInfo = { diff --git a/demo/test-cdpliquidatetx.js b/demo/test-cdpliquidatetx.js index 0b9c0ce..c066a01 100644 --- a/demo/test-cdpliquidatetx.js +++ b/demo/test-cdpliquidatetx.js @@ -20,7 +20,7 @@ note: 构建cdp清算交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、srcRegId:cdp创建者的regid 5、cdpTxId:该cdp的创建的交易hash @@ -32,7 +32,7 @@ var cdpliquidateTxinfo = { nTxType: 23, nValidHeight: 501, srcRegId: "", - fees: 100000, + fees: 1000000, feeSymbol: "WICC", cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", sCoinsToLiquidate: 2000000000000, diff --git a/demo/test-cdpredeemtx.js b/demo/test-cdpredeemtx.js index ca30447..30148ab 100644 --- a/demo/test-cdpredeemtx.js +++ b/demo/test-cdpredeemtx.js @@ -20,7 +20,7 @@ note: 构建cdp赎回的交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、cdpTxId:cdp交易hash 5、sCoinsToRepay:销毁的wusd数量 @@ -36,7 +36,7 @@ var cdpRedeemTxinfo = { nTxType: 22, nValidHeight: 78, srcRegId: "", - fees: 100000, + fees: 1000000, cdpTxId: "009c0e665acdd9e8ae754f9a51337b85bb8996980a93d6175b61edccd3cdc144", feeSymbol: "WICC", sCoinsToRepay: 0, diff --git a/demo/test-cdpstaketx.js b/demo/test-cdpstaketx.js index 75aec05..de19961 100644 --- a/demo/test-cdpstaketx.js +++ b/demo/test-cdpstaketx.js @@ -20,7 +20,7 @@ note: 构建cdp抵押交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、cdpTxId:cdp创建生成的交易hash 5、feeSymbol:小费类型(WICC/WUSD) @@ -36,7 +36,7 @@ var cdpStakeTxinfo = { nTxType: 21, nValidHeight: 25, srcRegId: "0-1",// sender's regid - fees: 100000, + fees: 1000000, feeSymbol: "WICC", cdpTxId: "0b9734e5db3cfa38e76bb273dba4f65a210cc76ca2cf739f3c131d0b24ff89c1", assetMap: map, diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 9de9ed4..9a84b8d 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -8,7 +8,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for common transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000000 sawi (0.1 wicc) +2, fees: handling fee when deploying a smart contract, >= 10000000 sawi (0.1 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* diff --git a/demo/test-delegatetx.js b/demo/test-delegatetx.js index 5e1777c..ff3be55 100644 --- a/demo/test-delegatetx.js +++ b/demo/test-delegatetx.js @@ -22,7 +22,7 @@ var delegateInfo = { nValidHeight: 28128, // create height userId: "", // sender's regId voteLists: delegateData, - fees: 1001, // fees pay for miner + fees: 1000000, // fees pay for miner, >= 1000000 sawi (0.01 wicc) }; var transaction = new WaykiTransaction(delegateInfo, wallet) diff --git a/demo/test-dexcancelordertx.js b/demo/test-dexcancelordertx.js index b102ba0..cf9ba52 100644 --- a/demo/test-dexcancelordertx.js +++ b/demo/test-dexcancelordertx.js @@ -16,7 +16,7 @@ note: 构建取消交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000 sawi(0.0001 wicc) +2、fees:发布合约时的手续费, >= 100000 sawi(0.0001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、orderId:挂单的交易hash 5, feeSymbol: 小费类型(WICC/WUSD) diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js index c425879..c41f629 100644 --- a/demo/test-ucointransfertx.js +++ b/demo/test-ucointransfertx.js @@ -8,7 +8,7 @@ var wallet = new Wallet("Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ") Build a transaction for common transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, srcRegId: the regid of the transferor 5, transferAmount: transfer amount @@ -20,7 +20,7 @@ note: 构建转账交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、srcRegId:转账者的regid 5、transferAmount:转账金额 diff --git a/demo/test-ucontractinvoketx.js b/demo/test-ucontractinvoketx.js index d8e3998..6b20b71 100644 --- a/demo/test-ucontractinvoketx.js +++ b/demo/test-ucontractinvoketx.js @@ -9,14 +9,14 @@ var wallet = new Wallet("Y9f6JFRnYkHMPuEhymC15wHD9FbYBmeV2S6VfDicb4ghNhtXhgAJ") Build a transaction for calling smart contract note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when calling smart contract , >= 1000000 sawi (0.01 wicc) +2, fees: >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建调用合约的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:调用合约交易时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var invokeAppInfo = { From f0da9d4b02e5ab5616b502bb1910c70f1ed7c7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Tue, 17 Dec 2019 16:48:27 +0800 Subject: [PATCH 25/33] update --- src/transactionParams.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transactionParams.js b/src/transactionParams.js index 8704c9b..b15385e 100644 --- a/src/transactionParams.js +++ b/src/transactionParams.js @@ -138,7 +138,9 @@ var transactionParams = function (arg, wallet) { txParams.txUid = arg.srcRegId txParams.fees = arg.fees txParams.fee_symbol = arg.feeSymbol - txParams.cdpTxId = arg.cdpTxId + if (arg.cdpTxId) { + txParams.cdpTxId = arg.cdpTxId + } txParams.assetMap = arg.assetMap txParams.scoin_symbol = arg.sCoinSymbol txParams.scoinsToMint = arg.sCoinToMint From c1321c670e56c6fda5e7ffe91159a7b3edb2e91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 18 Dec 2019 11:19:25 +0800 Subject: [PATCH 26/33] update --- README.md | 12 ++++++++++++ demo/test-walletmanager.js | 13 +++++++++++-- demo/test-wiccapi.js | 5 +++++ src/WalletManager.js | 3 +++ src/lib/wiccapi.js | 30 ++++++++++++++++++++++++++++++ 5 files changed, 61 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74579a0..76bdee5 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,18 @@ const lang = "ENGLISH" // or CHINESE const mnemonics = walletManager.randomMnemonicCodes(lang) //mnemonics = "clinic dose kingdom fetch away industry squirrel cheese purchase mean slide mixed" ``` +- **switchMnemonicCodes** + + Switching from mnemonics in the current language to mnemonics in another language, both can generate the same wallet +```javascript +var mnemonics1 = walletManager.randomMnemonicCodes("ENGLISH") +var wallet1 = walletManager.importWalletFromMnemonic(mnemonics) + +var mnemonics2 = walletManager.switchMnemonicCodes(mnemonics1, "CHINESE") +var wallet2 = walletManager.importWalletFromMnemonic(mnemonics2) + +wallet1.address === wallet2.address +``` - **createWallet** Create a blockchain wallet from valid mnemonics, returns a instance object of **Wallet** diff --git a/demo/test-walletmanager.js b/demo/test-walletmanager.js index a14aa8d..e683b71 100644 --- a/demo/test-walletmanager.js +++ b/demo/test-walletmanager.js @@ -8,13 +8,22 @@ var walletManager = new WalletManager("testnet") var mnemonic = walletManager.randomMnemonicCodes("ENGLISH") console.log("助记词:", mnemonic) +//切换成中文助记词 +var chineseMnemonic = walletManager.switchMnemonicCodes(mnemonic, "CHINESE") +console.log("中文助记词:", chineseMnemonic) + //创建钱包 -var walletInfo = walletManager.createWallet('romance chunk tape soon bitter option wet space veteran matter embrace cactus') -console.log("助记词:", walletInfo) +var walletInfo = walletManager.createWallet(mnemonic) +console.log("钱包1:\n", walletInfo) + +var walletInfo2 = walletManager.createWallet(chineseMnemonic) +console.log("钱包2:\n", walletInfo2) //导入助记词 var wallet1 = walletManager.importWalletFromMnemonic('romance chunk tape soon bitter option wet space veteran matter embrace cactus') +var wallet3 = walletManager.importWalletFromMnemonic(walletManager.switchMnemonicCodes('romance chunk tape soon bitter option wet space veteran matter embrace cactus', "CHINESE")) console.log("wallet1:", wallet1) +console.log("wallet3:", wallet3) //导入私钥 var wallet2 = walletManager.importWalletFromPrivateKey('Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13') diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js index bd70618..407d610 100644 --- a/demo/test-wiccapi.js +++ b/demo/test-wiccapi.js @@ -12,6 +12,8 @@ var wiccApi = new WiccApi(arg) var strMne = wiccApi.createAllCoinMnemonicCode() console.log('New MnemonicCode='+ strMne) +var switchCode = wiccApi.switchMnemonicCode(strMne, "CHINESE") +console.log("switchCode=", switchCode) //Check if the mnemonic is valid //检查助记词是否有效 var ret = wiccApi.checkMnemonicCode(strMne) @@ -22,6 +24,9 @@ console.log('Check MnemonicCode Result=' + ret) var privateKey1 = wiccApi.getPriKeyFromMnemonicCode(strMne) console.log('privateKey1='+privateKey1) +var privateKey3 = wiccApi.getPriKeyFromMnemonicCode(switchCode) +console.log('privateKey3='+privateKey3) + //Create a wallet based on the mnemonic, '12345678' is the wallet password //根据助记词创建钱包,'12345678'为钱包密码 var walletInfo = wiccApi.createWallet(strMne, '12345678') diff --git a/src/WalletManager.js b/src/WalletManager.js index bf31b6e..fb26b7a 100644 --- a/src/WalletManager.js +++ b/src/WalletManager.js @@ -10,6 +10,9 @@ class WalletManager { randomMnemonicCodes(language = "ENGLISH") { return this.wiccApi.createAllCoinMnemonicCode(language) } + switchMnemonicCodes(mnemonic, targetLanguage) { + return this.wiccApi.switchMnemonicCode(mnemonic, targetLanguage) + } createWallet(mnemonic) { if (!this.wiccApi.checkMnemonicCode(mnemonic)) { throw "Invalid mnemonic" diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 39af84e..8ab7176 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -124,6 +124,33 @@ WiccApi.prototype.createAllCoinMnemonicCode = function (language) { return strCode } +WiccApi.prototype.switchMnemonicCode = function (mnemonic, targetLanguage) { + if (!targetLanguage) return mnemonic + var lang = "" + var ret = [] + var indexArr = [] + var dicts = Object.keys(Mnemonic.Words); + if (dicts.indexOf(targetLanguage) === -1) { + throw `${targetLanguage} is not supported` + } + for (var i = 0; i < dicts.length; i++) { + var key = dicts[i]; + if (Mnemonic._belongsToWordlist(mnemonic, Mnemonic.Words[key])) { + lang = key + break + } + } + if (lang === targetLanguage) return mnemonic; + var wordArr = mnemonic.split(" ") + indexArr = wordArr.map(item => { + return Mnemonic.Words[lang].indexOf(item) + }) + indexArr.map(item => { + ret.push(Mnemonic.Words[targetLanguage][item]) + }) + return ret.join(" ") +} + WiccApi.prototype.checkMnemonicCode = function (mnemonic) { return Mnemonic.isValid(mnemonic) } @@ -133,6 +160,7 @@ WiccApi.prototype.validateAddress = function (address) { } WiccApi.prototype.getPriKeyFromMnemonicCode = function (mnemonic) { + mnemonic = this.switchMnemonicCode(mnemonic, "ENGLISH") var code = new Mnemonic(mnemonic) var xpriv = code.toHDPrivateKey(null, this.network); var p = xpriv.deriveChild(this.getBIP44Path()); @@ -140,6 +168,7 @@ WiccApi.prototype.getPriKeyFromMnemonicCode = function (mnemonic) { } WiccApi.prototype.getAddressFromMnemonicCode = function (mnemonic) { + mnemonic = this.switchMnemonicCode(mnemonic, "ENGLISH") var code = new Mnemonic(mnemonic) var xpriv = code.toHDPrivateKey(null, this.network); var p = xpriv.deriveChild(this.getBIP44Path()); @@ -147,6 +176,7 @@ WiccApi.prototype.getAddressFromMnemonicCode = function (mnemonic) { } WiccApi.prototype.createWallet = function (mnemonic, password) { + mnemonic = this.switchMnemonicCode(mnemonic, "ENGLISH") var salt = Random.getRandomBuffer(8) var passbuf = new buffer.Buffer(password, 'utf8'); From c17f8a9956a435eeef6fdcbdf24e055a361d3636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 18 Dec 2019 14:40:14 +0800 Subject: [PATCH 27/33] update --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index ea75d94..a0a2ab6 100644 --- a/index.js +++ b/index.js @@ -6,12 +6,11 @@ var WalletManager = require("./src/WalletManager") var WaykiTransaction = require('./src/WaykiTransaction') var BaasClient = require('./src/BaasClient') -WiccApi = Object.assign(WiccApi, bitcore) - WiccWalletLib.Wallet = Wallet WiccWalletLib.WalletManager = WalletManager WiccWalletLib.WaykiTransaction = WaykiTransaction WiccWalletLib.WiccApi = WiccApi +WiccWalletLib.bitcore = bitcore WiccWalletLib.BaasClient = BaasClient module.exports = WiccWalletLib \ No newline at end of file From 3cf18e394d1f3d6ce3a440d7e531b18868d7f447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 18 Dec 2019 14:44:48 +0800 Subject: [PATCH 28/33] update --- demo/test-wiccapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js index 407d610..f063245 100644 --- a/demo/test-wiccapi.js +++ b/demo/test-wiccapi.js @@ -1,6 +1,6 @@ 'use strict'; console.error('\n=====RUN-TEST-WICCAPI-START=====\n') -var { WiccApi } = require("../index") +var { WiccApi, bitcore } = require("../index") //environment init //环境初始化 @@ -45,7 +45,7 @@ console.log("Get MnemonicCode from wallet seed="+Mne) //Get an address based on the WIF format private key. Note: privateKey2 and privateKey1 are equal. //根据WIF格式私钥获取地址 ,注意:privateKey2 和 privateKey1 是一样的 -var privateKey = WiccApi.PrivateKey.fromWIF(privateKey2) +var privateKey = bitcore.PrivateKey.fromWIF(privateKey2) var pubKey=privateKey.toPublicKey(); var address = privateKey.toAddress(); console.log("New Create publicKey1="+pubKey,"New Create address="+address.toString()) From 1d2c4adf961056cd9a87ee3b694350f397e31fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 19 Dec 2019 11:36:50 +0800 Subject: [PATCH 29/33] update --- src/lib/wiccapi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 8ab7176..7e07d8e 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -118,6 +118,7 @@ WiccApi.prototype.getBIP44Path = function () { } WiccApi.prototype.createAllCoinMnemonicCode = function (language) { + language = language || "ENGLISH" var code = new Mnemonic(Mnemonic.Words[language]) var strCode = code.toString() From 9e6e508c79ff23b2d74292e978d0ef6abaecfbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Thu, 19 Dec 2019 12:18:51 +0800 Subject: [PATCH 30/33] update --- demo/test-wiccapi.js | 5 +++++ src/lib/wiccapi.js | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/demo/test-wiccapi.js b/demo/test-wiccapi.js index f063245..1a42c6c 100644 --- a/demo/test-wiccapi.js +++ b/demo/test-wiccapi.js @@ -14,6 +14,11 @@ console.log('New MnemonicCode='+ strMne) var switchCode = wiccApi.switchMnemonicCode(strMne, "CHINESE") console.log("switchCode=", switchCode) + +//获取助记词语言 +var lang = wiccApi.getMnemonicCodeLanguage(switchCode) +console.log("language is", lang) + //Check if the mnemonic is valid //检查助记词是否有效 var ret = wiccApi.checkMnemonicCode(strMne) diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 7e07d8e..5b73a06 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -125,6 +125,19 @@ WiccApi.prototype.createAllCoinMnemonicCode = function (language) { return strCode } +WiccApi.prototype.getMnemonicCodeLanguage = function (mnemonic) { + let lang + var dicts = Object.keys(Mnemonic.Words); + for (var i = 0; i < dicts.length; i++) { + var key = dicts[i]; + if (Mnemonic._belongsToWordlist(mnemonic, Mnemonic.Words[key])) { + lang = key + break + } + } + return lang +} + WiccApi.prototype.switchMnemonicCode = function (mnemonic, targetLanguage) { if (!targetLanguage) return mnemonic var lang = "" From 234cfe391ffeac7d5c135a5060d216e46462e1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Fri, 20 Dec 2019 17:28:11 +0800 Subject: [PATCH 31/33] update --- demo/test-assetcreatetx.js | 4 ++-- demo/test-cdpliquidatetx.js | 4 ++-- demo/test-cdpredeemtx.js | 4 ++-- demo/test-cdpstaketx.js | 7 ++++--- demo/test-commontx.js | 4 ++-- demo/test-dexbuylimitordertx.js | 4 ++-- demo/test-dexbuymarketordertx.js | 4 ++-- demo/test-dexcancelordertx.js | 4 ++-- demo/test-dexselllimitordertx.js | 4 ++-- demo/test-dexsellmarketordertx.js | 4 ++-- demo/test-registercontracttx.js | 4 ++-- demo/test-ucointransfertx.js | 6 +++--- 12 files changed, 27 insertions(+), 26 deletions(-) diff --git a/demo/test-assetcreatetx.js b/demo/test-assetcreatetx.js index c6e16ce..63d1a03 100644 --- a/demo/test-assetcreatetx.js +++ b/demo/test-assetcreatetx.js @@ -14,7 +14,7 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC 5. ownerRegid: asset owner 6. tokeName: asset name 7. totalSupply: total asset circulation -8. modifiAble: Whether the asset can be issued +8. modifiAble: Whether the asset can be updated 9、feeSymbol: fee type(WICC/WUSD) */ /* @@ -30,7 +30,7 @@ In addition to publishing assets miners fee, we need additional deduction 550WIC ownerRegid: 资产拥有者 6、assetName: 资产名称 7、totalSupply: 资产总发行量 -8、modifiAble: 资产是否可以增发 +8、modifiAble: 资产是否可以更新 9、feesCoinSymbol: 小费类型(WICC/WUSD) */ diff --git a/demo/test-cdpliquidatetx.js b/demo/test-cdpliquidatetx.js index c066a01..d35a159 100644 --- a/demo/test-cdpliquidatetx.js +++ b/demo/test-cdpliquidatetx.js @@ -8,7 +8,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for cdp liquidate transaction note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +2, fees: handling fee , >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4. srcRegId: reg of the cdp creator 5. cdpTxId: the transaction hash created by the cdp @@ -20,7 +20,7 @@ note: 构建cdp清算交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、srcRegId:cdp创建者的regid 5、cdpTxId:该cdp的创建的交易hash diff --git a/demo/test-cdpredeemtx.js b/demo/test-cdpredeemtx.js index 30148ab..c7e5879 100644 --- a/demo/test-cdpredeemtx.js +++ b/demo/test-cdpredeemtx.js @@ -7,7 +7,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for cdp redeem note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +2, fees: handling fee , >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, cdpTxId: cdp transaction hash 5, assetAmount: stake coin amount @@ -20,7 +20,7 @@ note: 构建cdp赎回的交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、cdpTxId:cdp交易hash 5、sCoinsToRepay:销毁的wusd数量 diff --git a/demo/test-cdpstaketx.js b/demo/test-cdpstaketx.js index de19961..31d6112 100644 --- a/demo/test-cdpstaketx.js +++ b/demo/test-cdpstaketx.js @@ -8,8 +8,9 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for cdp stake transaction note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 1000000 sawi (0.01 wicc) +2, fees: handling fee , >= 1000000 sawi (0.01 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. +4、cdpTxId: The transaction hash generated by CDP creation. If the value is empty, it means a new CDP is created. 5、feeSymbol:fee symbol(WICC/WUSD) 6、sCoinToMint:get coin amount 7、assetAmount:stake coin amount @@ -20,9 +21,9 @@ note: 构建cdp抵押交易 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 1000000 sawi(0.01 wicc) +2、fees:手续费, >= 1000000 sawi(0.01 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 -4、cdpTxId:cdp创建生成的交易hash +4、cdpTxId:cdp创建生成的交易hash,值为空时表示新建cdp 5、feeSymbol:小费类型(WICC/WUSD) 6、sCoinToMint:获得的wusd 7、assetAmount:抵押的数量(最低1WICC) diff --git a/demo/test-commontx.js b/demo/test-commontx.js index 9a84b8d..5113339 100644 --- a/demo/test-commontx.js +++ b/demo/test-commontx.js @@ -8,14 +8,14 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for common transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 10000000 sawi (0.1 wicc) +2, fees: handling fee , >= 10000000 sawi (0.1 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建普通转账交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 10000000 sawi(0.1 wicc) +2、fees:手续费, >= 10000000 sawi(0.1 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var commonTxinfo = { diff --git a/demo/test-dexbuylimitordertx.js b/demo/test-dexbuylimitordertx.js index 8d22a3c..8f52745 100644 --- a/demo/test-dexbuylimitordertx.js +++ b/demo/test-dexbuylimitordertx.js @@ -7,7 +7,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for dex buy limit transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, coinSymbol: currency type 5, assetSymbol: asset type @@ -18,7 +18,7 @@ note: 构建普通限价买交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、coinSymbol:币种类型 5、assetSymbol:资产类型 diff --git a/demo/test-dexbuymarketordertx.js b/demo/test-dexbuymarketordertx.js index aa393e7..dbcbd08 100644 --- a/demo/test-dexbuymarketordertx.js +++ b/demo/test-dexbuymarketordertx.js @@ -8,7 +8,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for market buy transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, coinSymbol: currency type 5, assetSymbol: asset type @@ -18,7 +18,7 @@ note: 构建市价买单交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、coinSymbol:币种类型 5、assetSymbol:资产类型 diff --git a/demo/test-dexcancelordertx.js b/demo/test-dexcancelordertx.js index cf9ba52..98bdb72 100644 --- a/demo/test-dexcancelordertx.js +++ b/demo/test-dexcancelordertx.js @@ -7,7 +7,7 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for cancel order transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, orderId:pending trading hash 5, feeSymbol: fee type (WICC/WUSD) @@ -16,7 +16,7 @@ note: 构建取消交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.0001 wicc) +2、fees:手续费, >= 100000 sawi(0.0001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、orderId:挂单的交易hash 5, feeSymbol: 小费类型(WICC/WUSD) diff --git a/demo/test-dexselllimitordertx.js b/demo/test-dexselllimitordertx.js index e17cc83..b0fb4c1 100644 --- a/demo/test-dexselllimitordertx.js +++ b/demo/test-dexselllimitordertx.js @@ -8,14 +8,14 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for sell limit transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建限价卖单交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var dexSellLimitTxinfo = { diff --git a/demo/test-dexsellmarketordertx.js b/demo/test-dexsellmarketordertx.js index 50a1349..8691d66 100644 --- a/demo/test-dexsellmarketordertx.js +++ b/demo/test-dexsellmarketordertx.js @@ -7,14 +7,14 @@ var wallet = new Wallet("Y6J4aK6Wcs4A3Ex4HXdfjJ6ZsHpNZfjaS4B9w7xqEnmFEYMqQd13") Build a transaction for sell limit transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建限价卖单交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var dexSellMarketTxinfo = { diff --git a/demo/test-registercontracttx.js b/demo/test-registercontracttx.js index d9bd197..407d220 100644 --- a/demo/test-registercontracttx.js +++ b/demo/test-registercontracttx.js @@ -19,14 +19,14 @@ console.log(_.isBuffer(script)) Build a transaction for deploy smart contract note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 110000000 sawi (1.1 wicc) +2, fees: handling fee , >= 110000000 sawi (1.1 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. */ /* 构建发布合约的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 110000000 sawi(1.1 wicc) +2、fees:手续费, >= 110000000 sawi(1.1 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 */ var regAppInfo = { diff --git a/demo/test-ucointransfertx.js b/demo/test-ucointransfertx.js index c41f629..6a01968 100644 --- a/demo/test-ucointransfertx.js +++ b/demo/test-ucointransfertx.js @@ -8,7 +8,7 @@ var wallet = new Wallet("Y8JhshTg5j2jeTrwk3qBJDYGi5MVsAvfBJRgFfAp14T91UY9AHgZ") Build a transaction for common transfer note: 1, nValidHeight: the height of the block when creating the signature, and the height difference when submitting the broadcast transaction must be <=250 -2, fees: handling fee when deploying a smart contract, >= 100000 sawi (0.001 wicc) +2, fees: handling fee , >= 100000 sawi (0.001 wicc) 3. The same transaction cannot be submitted repeatedly before it is confirmed(BPS=0.1). It is recommended to solve the problem of batch initiated transaction by adding random handling fee. 4, srcRegId: the regid of the transferor 5, transferAmount: transfer amount @@ -20,13 +20,13 @@ note: 构建转账交易的交易单 注意: 1、nValidHeight:创建签名时的区块高度,与提交广播交易时的高度差必须 <=250 -2、fees:发布合约时的手续费, >= 100000 sawi(0.001 wicc) +2、fees:手续费, >= 100000 sawi(0.001 wicc) 3、相同的交易在未被确认前不能重复提交(BPS=0.1),建议采用添加随机手续费方式解决批量发起交易问题 4、srcRegId:转账者的regid 5、transferAmount:转账金额 6、coinSymbol:币种类型 7、feeSymbol:小费类型, -8、收款地址 +8、destAddress:收款地址 */ var coinSymbol = "WUSD" From 4614189a0a6708ac9622c87fbaec589e90fcb332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Wed, 25 Dec 2019 16:19:01 +0800 Subject: [PATCH 32/33] update --- src/lib/wiccapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wiccapi.js b/src/lib/wiccapi.js index 5b73a06..0cba8b1 100644 --- a/src/lib/wiccapi.js +++ b/src/lib/wiccapi.js @@ -114,7 +114,7 @@ WiccApi._fromObject = function _fromObject(data) { }; WiccApi.prototype.getBIP44Path = function () { - return this.network === "testnet" ? "m/44'/999999'/0'/0/0" : "m/44'/99999'/0'/0/0" + return this.network === "testnet" ? "m/44'/99999'/0'/0/0" : "m/44'/99999'/0'/0/0" } WiccApi.prototype.createAllCoinMnemonicCode = function (language) { From 0ec384b99d686b3be6e41dc34522dd010a060a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=B9=8F?= Date: Mon, 6 Jan 2020 13:04:22 +0800 Subject: [PATCH 33/33] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8C=85?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 6350473..f2e1b59 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,11 +1,12 @@ const path = require('path'); +const ver = require("./package.json").version module.exports = { mode: 'production', entry: ["babel-polyfill", "./index.js"], output: { path: path.resolve(__dirname, './dist'), - filename: 'wicc-wallet-lib-2.0.js', + filename: `wicc-wallet-lib-${ver}.js`, library: 'wicc-wallet-lib', libraryTarget: 'umd', globalObject: 'this'